Explorar o código

添加一个同步数据方法

xiaohaizhao hai 1 ano
pai
achega
e9af389f35
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      components/My_form/index.js

+ 4 - 1
components/My_form/index.js

@@ -10,7 +10,7 @@ Component({
             value: []
         },
         CompletedOrNot: {
-            type:Function
+            type: Function
         }, //完成与否回调
     },
     options: {
@@ -85,6 +85,9 @@ Component({
             // console.log("必填总数", sumCount, '已填', count)
             this.triggerEvent("CompletedOrNot", sumCount == count)
         },
+        getForm() {
+            return this.data.fromList
+        },
         /* 提交 */
         getData() {
             let list = this.data.fromList,