Преглед изворни кода

Upload: fix default status of fileList (#6571)

相学长 пре 7 година
родитељ
комит
fa00fcfbf9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/upload/src/index.vue

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

@@ -127,7 +127,7 @@ export default {
       handler(fileList) {
         this.uploadFiles = fileList.map(item => {
           item.uid = item.uid || (Date.now() + this.tempIndex++);
-          item.status = 'success';
+          item.status = item.status || 'success';
           return item;
         });
       }