From e93cab1bcc50e6d4a2e2d07a88a647ab26f57fd0 Mon Sep 17 00:00:00 2001 From: olivewind Date: Tue, 31 Jul 2018 15:29:24 +0800 Subject: [PATCH 1/7] =?UTF-8?q?fix(input):=20numeric=20input=20=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E6=B2=A1=E6=9C=89=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dao-input/dao-numeric-input.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dao-input/dao-numeric-input.vue b/src/components/dao-input/dao-numeric-input.vue index 45e4319b6..9e1839c1a 100644 --- a/src/components/dao-input/dao-numeric-input.vue +++ b/src/components/dao-input/dao-numeric-input.vue @@ -123,7 +123,7 @@ preCheck(num) { this.num = num; // not required - if (num === '' && !this.required) { + if ((num === '' || num === null || num === undefined) && !this.required) { this.updateModel(); return; } From d714d0210992f6694cd6d22d82695a4fecd7b8d4 Mon Sep 17 00:00:00 2001 From: olivewind Date: Mon, 6 Aug 2018 10:36:53 +0800 Subject: [PATCH 2/7] =?UTF-8?q?fix(input):=20numeric=20input=20v-model=20?= =?UTF-8?q?=E4=B8=BA=20null=20=E6=97=B6=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dao-input/dao-numeric-input.vue | 7 ++++--- src/utils/assist.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/dao-input/dao-numeric-input.vue b/src/components/dao-input/dao-numeric-input.vue index 45e4319b6..90d63869e 100644 --- a/src/components/dao-input/dao-numeric-input.vue +++ b/src/components/dao-input/dao-numeric-input.vue @@ -19,10 +19,11 @@