From 78f16ed43a9cf319d3bbd88d4219f498b24f853d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=93=E5=A0=82?= <532543299@qq.com> Date: Wed, 31 Oct 2018 14:09:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 显示数字输入框时, 清空输入框会导致组件失效 --- src/components/slider/slider.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/slider/slider.vue b/src/components/slider/slider.vue index 9fc13214..b441671c 100644 --- a/src/components/slider/slider.vue +++ b/src/components/slider/slider.vue @@ -379,7 +379,7 @@ }, handleInputChange (val) { - this.currentValue = [val, this.currentValue[1]]; + this.currentValue = [val || this.min, this.currentValue[1]]; this.emitChange(); },