From c71cb3f2fd5d9aff1e16edbdbc542b3b03933b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=95=8F?= Date: Fri, 21 Apr 2017 21:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4=EF=BC=8C=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=20(#3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * unit test * picker and dialog unit tes * fix:quantity and loading --- docs/examples-dist/quantity.vue | 2 +- docs/examples-docs/quantity.md | 2 +- docs/src/ExamplesApp.vue | 5 + docs/src/components/demo-list.vue | 1 + packages/checkbox/src/checkbox.vue | 9 +- packages/picker/src/picker.vue | 2 +- packages/quantity/src/quantity.vue | 2 +- packages/vant-css/src/loading.css | 4 +- packages/vant-css/src/quantity.css | 8 ++ test/unit/specs/actionsheet.spec.js | 6 ++ test/unit/specs/button.spec.js | 19 +++- test/unit/specs/checkbox.spec.js | 35 +++++-- test/unit/specs/dialog.spec.js | 27 +++++ test/unit/specs/pciker.spec.js | 149 +++++++++++++++++++++++++++- test/unit/specs/popup.spec.js | 11 ++ test/unit/specs/quantity.spec.js | 4 + 16 files changed, 268 insertions(+), 18 deletions(-) create mode 100644 test/unit/specs/dialog.spec.js diff --git a/docs/examples-dist/quantity.vue b/docs/examples-dist/quantity.vue index 29a320821..e2d0ddb94 100644 --- a/docs/examples-dist/quantity.vue +++ b/docs/examples-dist/quantity.vue @@ -7,7 +7,7 @@ -

当前值:{{ quantity2 }}

+

当前值:{{ quantity2 || 9 }}