Browse Source

fix: #346支持清空预览列表

suzigang 5 years ago
parent
commit
1a5a07e428
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/packages/imagepicker/imagepicker.vue

+ 5 - 0
src/packages/imagepicker/imagepicker.vue

@@ -89,6 +89,11 @@ export default {
       list: []
     };
   },
+  watch: {
+    imgList: function(val) {
+      this.list = val;
+    }
+  },
   mounted() {
     this.list = this.imgList;
   },