From ce279571332cb5d10a950b36622a2ba28fee16d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=95=8F?= Date: Sun, 23 Apr 2017 22:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=BB=86=E8=8A=82=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8Csearch=E3=80=81=E5=92=AF=E9=98=BF=E4=B8=81?= =?UTF-8?q?=E5=92=8Cdialog=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20(#5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: loading small style, search style and dialog style * fix: scroll to top * fix mobile scroll * fix scroll to top --- build/webpack.config.js | 8 ++++++++ docs/examples-dist/button.vue | 15 +++++++-------- docs/examples-dist/loading.vue | 8 +++++--- docs/examples-dist/swipe.vue | 4 +++- docs/examples-dist/waterfall.vue | 1 + docs/examples-docs/button.md | 15 +++++++-------- docs/examples-docs/loading.md | 15 ++++++++++++--- docs/examples-docs/swipe.md | 4 +++- docs/examples-docs/waterfall.md | 1 + docs/src/ExamplesApp.vue | 3 ++- docs/src/components/demo-list.vue | 2 +- docs/src/components/mobile-computed.js | 6 +----- docs/src/components/mobile-nav.vue | 16 ++++++++++++++-- docs/src/examples.js | 14 ++++---------- docs/src/index.js | 5 ++--- package.json | 2 +- packages/loading/src/loading.vue | 2 +- packages/swipe/src/scroll.js | 4 +--- packages/vant-css/src/actionsheet.css | 6 ++---- packages/vant-css/src/dialog.css | 3 ++- packages/vant-css/src/loading.css | 14 ++++++++++++-- packages/vant-css/src/search.css | 6 ++++-- packages/vant-css/src/switch.css | 1 + 23 files changed, 95 insertions(+), 60 deletions(-) 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 @@