瀏覽代碼

Input: fix when value is zero (#10714)

杨奕 7 年之前
父節點
當前提交
769db14516
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/input/src/input.vue

+ 1 - 1
packages/input/src/input.vue

@@ -121,7 +121,7 @@
 
     data() {
       return {
-        currentValue: this.value || '',
+        currentValue: this.value === undefined ? '' : this.value,
         textareaCalcStyle: {},
         prefixOffset: null,
         suffixOffset: null,