tianheng-ui 0.1.45 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -508,6 +508,9 @@ export default {
|
|
508
508
|
"config.fields.api"(val) {
|
509
509
|
this.handleFieldsApiChange(val);
|
510
510
|
},
|
511
|
+
"data.options.remoteFunc"(val) {
|
512
|
+
this.handleFieldsApiChange(val);
|
513
|
+
},
|
511
514
|
apiOptions() {
|
512
515
|
this.handleFieldsApiChange(this.config.fields.api);
|
513
516
|
}
|
@@ -506,7 +506,7 @@ export default {
|
|
506
506
|
});
|
507
507
|
} else if (item.type === "table" || item.type === "tableH5") {
|
508
508
|
initList(item.options.columns);
|
509
|
-
} else if (item.options.remote) {
|
509
|
+
} else if (item.options.remote || item.options.remoteFunc) {
|
510
510
|
fieldsApi[item.model] = item.options.remoteFunc;
|
511
511
|
}
|
512
512
|
}
|
@@ -134,6 +134,7 @@
|
|
134
134
|
:config="formConfig.config"
|
135
135
|
:apiOptions="apiOptions"
|
136
136
|
ref="configRef"
|
137
|
+
@remote-params="handleRemoteParams"
|
137
138
|
@update="handleWidgetConfigUpdate"
|
138
139
|
>
|
139
140
|
</widget-config>
|
@@ -321,7 +322,7 @@ export default {
|
|
321
322
|
});
|
322
323
|
} else if (item.type === "table" || item.type === "tableH5") {
|
323
324
|
initList(item.options.columns);
|
324
|
-
} else if (item.options.remote) {
|
325
|
+
} else if (item.options.remote || item.options.remoteFunc) {
|
325
326
|
fieldsApi[item.model] = item.options.remoteFunc;
|
326
327
|
}
|
327
328
|
}
|
@@ -361,6 +362,9 @@ export default {
|
|
361
362
|
handleWidgetConfigUpdate(val) {
|
362
363
|
this.widgetFormSelect = Object.assign(this.widgetFormSelect, val);
|
363
364
|
},
|
365
|
+
handleRemoteParams(val, callback) {
|
366
|
+
this.$emit("remote-params", val, callback);
|
367
|
+
},
|
364
368
|
clear() {
|
365
369
|
this.handleClear();
|
366
370
|
},
|