소스 검색

仅预览方法

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: {