소스 검색

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,