From 76de16017d33817d8489ea90c2842ea13a1940d9 Mon Sep 17 00:00:00 2001 From: cookfront Date: Wed, 22 Mar 2017 17:00:29 +0800 Subject: [PATCH] fix docs --- build/webpack.config.js | 4 ++-- docs/components/demo-block.vue | 38 ++++++++++++++++++++++-------- docs/components/mobile-computed.js | 2 +- docs/examples-docs/icon.md | 2 ++ 4 files changed, 33 insertions(+), 13 deletions(-) diff --git a/build/webpack.config.js b/build/webpack.config.js index 3d79653a2..f1367cd17 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -127,7 +127,7 @@ if (process.env.NODE_ENV === 'production') { var content = tokens[idx + 1].content; var html = convert(striptags.strip(content, ['script', 'style'])); - return ` + return `
${html}
`; } @@ -183,7 +183,7 @@ if (process.env.NODE_ENV === 'production') { var content = tokens[idx + 1].content; var html = convert(striptags.strip(content, ['script', 'style'])); - return ` + return `
${html}
`; } diff --git a/docs/components/demo-block.vue b/docs/components/demo-block.vue index 44354dbf3..e37543bd1 100644 --- a/docs/components/demo-block.vue +++ b/docs/components/demo-block.vue @@ -3,13 +3,22 @@ class="demo-block" :class="blockClass"> - - +
+ + + +
diff --git a/docs/components/mobile-computed.js b/docs/components/mobile-computed.js index 0604eb1b6..3922294c4 100644 --- a/docs/components/mobile-computed.js +++ b/docs/components/mobile-computed.js @@ -7,7 +7,7 @@ export default { computed: { mobileUrl() { - return location.pathname + 'examples.html' + location.hash; + return '/examples.html#' + location.pathname; } }, diff --git a/docs/examples-docs/icon.md b/docs/examples-docs/icon.md index 29942bc50..4467a021f 100644 --- a/docs/examples-docs/icon.md +++ b/docs/examples-docs/icon.md @@ -5,6 +5,8 @@ .zan-icon { margin: 10px; font-size: 45px; + width: 56px; + text-align: center; } } }