zhaoxiaohai 3 lat temu
rodzic
commit
309e9236e6
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      components/My_form/index.js

+ 1 - 0
components/My_form/index.js

@@ -44,6 +44,7 @@ Component({
             item.error = item.required && item.value == '' ? true : false;
             let fromList = this.data.fromList;
             fromList[index] = item;
+            if (item.callback) item.callback(item);
             this.setData({
                 fromList
             })