diff --git a/build/webpack.config.js b/build/webpack.config.js index 4ddf3aa42..837954b40 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -43,6 +43,14 @@ module.exports = { publicPath: '/', filename: '[name].js' }, + devServer: { + historyApiFallback: { + rewrites: [ + { from: /^\/zanui\/vue\/examples/, to: '/examples.html' }, + { from: /^\/zanui\/vue/, to: '/index.html' } + ] + } + }, resolve: { modules: [ path.join(__dirname, '../node_modules'), diff --git a/docs/examples-dist/button.vue b/docs/examples-dist/button.vue index d568e475f..7a51f9f77 100644 --- a/docs/examples-dist/button.vue +++ b/docs/examples-dist/button.vue @@ -23,18 +23,12 @@ large - - normal - - small - - mini @@ -82,9 +76,14 @@ } .van-row { padding: 0 15px; + margin-bottom: 20px; } - .van-col { - margin-bottom: 10px; + .van-col-24 { + margin-bottom: 20px; + + &:last-child { + margin-bottom: 0; + } } } } diff --git a/docs/examples-dist/loading.vue b/docs/examples-dist/loading.vue index d4fe48b14..15f88434f 100644 --- a/docs/examples-dist/loading.vue +++ b/docs/examples-dist/loading.vue @@ -6,6 +6,8 @@ + + @@ -23,10 +25,10 @@ } .demo-loading__example--with-bg { - background-color: rgba(0, 0, 0, 0.5); + background-color: rgba(17, 17, 17, 0.7); margin: 0 auto; - width: 80px; - padding: 25px 0; + width: 120px; + padding: 45px 0; border-radius: 10px; } } diff --git a/docs/examples-dist/swipe.vue b/docs/examples-dist/swipe.vue index 9d90f3e0e..62374b944 100644 --- a/docs/examples-dist/swipe.vue +++ b/docs/examples-dist/swipe.vue @@ -1,7 +1,9 @@