@tmagic/form 1.2.0-beta.11 → 1.2.0-beta.12
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/dist/tmagic-form.umd.js
CHANGED
|
@@ -1315,8 +1315,11 @@
|
|
|
1315
1315
|
const toggleRowSelection = (row, selected) => {
|
|
1316
1316
|
tMagicTable.value?.toggleRowSelection.call(tMagicTable.value, row, selected);
|
|
1317
1317
|
};
|
|
1318
|
-
const makeConfig = (config) => {
|
|
1318
|
+
const makeConfig = (config, row) => {
|
|
1319
1319
|
const newConfig = lodashEs.cloneDeep(config);
|
|
1320
|
+
if (typeof config.itemsFunction === "function") {
|
|
1321
|
+
newConfig.items = config.itemsFunction(row);
|
|
1322
|
+
}
|
|
1320
1323
|
delete newConfig.display;
|
|
1321
1324
|
return newConfig;
|
|
1322
1325
|
};
|
|
@@ -1580,7 +1583,7 @@
|
|
|
1580
1583
|
labelWidth: "0",
|
|
1581
1584
|
prop: getProp(scope.$index),
|
|
1582
1585
|
rules: column.rules,
|
|
1583
|
-
config: makeConfig(column),
|
|
1586
|
+
config: makeConfig(column, scope.row),
|
|
1584
1587
|
model: scope.row,
|
|
1585
1588
|
size: __props.size,
|
|
1586
1589
|
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", __props.model[vue.unref(modelName)]))
|