소스 검색

clear inptu value when uploader click

baiyaaaaa 8 년 전
부모
커밋
5536efab5c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/upload/src/upload.vue

+ 1 - 0
packages/upload/src/upload.vue

@@ -142,6 +142,7 @@ export default {
     },
     handleClick() {
       if (!this.disabled) {
+        this.$refs.input.value = null;
         this.$refs.input.click();
       }
     }