@tmagic/form 1.2.0-beta.10 → 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.
@@ -1312,8 +1312,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1312
1312
  const toggleRowSelection = (row, selected) => {
1313
1313
  tMagicTable.value?.toggleRowSelection.call(tMagicTable.value, row, selected);
1314
1314
  };
1315
- const makeConfig = (config) => {
1315
+ const makeConfig = (config, row) => {
1316
1316
  const newConfig = cloneDeep(config);
1317
+ if (typeof config.itemsFunction === "function") {
1318
+ newConfig.items = config.itemsFunction(row);
1319
+ }
1317
1320
  delete newConfig.display;
1318
1321
  return newConfig;
1319
1322
  };
@@ -1577,7 +1580,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1577
1580
  labelWidth: "0",
1578
1581
  prop: getProp(scope.$index),
1579
1582
  rules: column.rules,
1580
- config: makeConfig(column),
1583
+ config: makeConfig(column, scope.row),
1581
1584
  model: scope.row,
1582
1585
  size: __props.size,
1583
1586
  onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", __props.model[unref(modelName)]))