浏览代码

仅预览方法

xiaohaizhao 1 年之前
父节点
当前提交
6a51feb73b
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      components/Yl_Files/index.js

+ 9 - 0
components/Yl_Files/index.js

@@ -26,6 +26,15 @@ Component({
         },
         strict: {
             type: Boolean
+        },
+        attinfos: {
+            type: Array
+        }
+    },
+    observers: {
+        'attinfos': function (attinfos) {
+            this.initData();
+            this.handleFiles(attinfos, true)
         }
     },
     methods: {