@tmagic/form 1.2.0-beta.17 → 1.2.0-beta.19

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.
@@ -20,9 +20,9 @@
20
20
  const isMultipleValue = (type) => typeof type === "string" && ["checkbox-group", "checkboxGroup", "table", "cascader", "group-list", "groupList"].includes(type);
21
21
  const initItemsValue = (mForm, value, initValue2, { items, name, extensible }) => {
22
22
  if (Array.isArray(initValue2[name])) {
23
- value[name] = initValue2[name].map((v, index) => init(mForm, items, v, value[name]?.[index]));
23
+ value[name] = initValue2[name].map((v, index) => createValues(mForm, items, v, value[name]?.[index]));
24
24
  } else {
25
- value[name] = init(mForm, items, initValue2[name], value[name]);
25
+ value[name] = createValues(mForm, items, initValue2[name], value[name]);
26
26
  if (extensible) {
27
27
  value[name] = Object.assign({}, initValue2[name], value[name]);
28
28
  }
@@ -67,12 +67,12 @@
67
67
  return names.forEach((n) => value[n] = initValue2[n] || "");
68
68
  }
69
69
  if (!name) {
70
- return init(mForm, items, initValue2, value);
70
+ return createValues(mForm, items, initValue2, value);
71
71
  }
72
72
  setValue(mForm, value, initValue2, item);
73
73
  return value;
74
74
  };
75
- const init = function(mForm, config = [], initValue2 = {}, value = {}) {
75
+ const createValues = function(mForm, config = [], initValue2 = {}, value = {}) {
76
76
  if (Array.isArray(config)) {
77
77
  config.forEach((item) => {
78
78
  initValueItem(mForm, item, initValue2, value);
@@ -159,7 +159,7 @@
159
159
  const initValue = async (mForm, { initValues, config }) => {
160
160
  if (!Array.isArray(config))
161
161
  throw new Error("config\u5E94\u8BE5\u4E3A\u6570\u7EC4");
162
- let valuesTmp = init(mForm, config, vue.toRaw(initValues), {});
162
+ let valuesTmp = createValues(mForm, config, vue.toRaw(initValues), {});
163
163
  const [firstForm] = config;
164
164
  if (firstForm && typeof firstForm.onInitValue === "function") {
165
165
  valuesTmp = await firstForm.onInitValue(mForm, {
@@ -187,6 +187,7 @@
187
187
  model: null,
188
188
  config: null,
189
189
  prop: { default: "" },
190
+ disabled: { type: Boolean },
190
191
  labelWidth: null,
191
192
  expandMore: { type: Boolean, default: false },
192
193
  stepActive: null,
@@ -217,7 +218,9 @@
217
218
  return component;
218
219
  return "m-fields-text";
219
220
  });
220
- const disabled = vue.computed(() => filterFunction(mForm, props.config.disabled, props));
221
+ const disabled = vue.computed(
222
+ () => typeof props.disabled === "undefined" ? filterFunction(mForm, props.config.disabled, props) : props.disabled
223
+ );
221
224
  const tooltip = vue.computed(() => filterFunction(mForm, props.config.tooltip, props));
222
225
  const extra = vue.computed(() => filterFunction(mForm, props.config.extra, props));
223
226
  const rule = vue.computed(() => getRules(mForm, props.config.rules, props));
@@ -314,13 +317,14 @@
314
317
  size: __props.size,
315
318
  model: __props.model,
316
319
  config: __props.config,
320
+ disabled: vue.unref(disabled),
317
321
  name: vue.unref(name),
318
322
  prop: vue.unref(itemProp),
319
323
  "step-active": __props.stepActive,
320
324
  "expand-more": expand.value,
321
325
  "label-width": vue.unref(itemLabelWidth),
322
326
  onChange: onChangeHandler
323
- }, null, 40, ["size", "model", "config", "name", "prop", "step-active", "expand-more", "label-width"])) : vue.unref(type) && vue.unref(display$1) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
327
+ }, null, 40, ["size", "model", "config", "disabled", "name", "prop", "step-active", "expand-more", "label-width"])) : vue.unref(type) && vue.unref(display$1) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
324
328
  vue.createVNode(vue.unref(design.TMagicFormItem), {
325
329
  style: vue.normalizeStyle(__props.config.tip ? "flex: 1" : ""),
326
330
  class: vue.normalizeClass({ hidden: `${vue.unref(itemLabelWidth)}` === "0" || !__props.config.text }),
@@ -395,18 +399,20 @@
395
399
  model: vue.unref(name) || vue.unref(name) === 0 ? __props.model[vue.unref(name)] : __props.model,
396
400
  config: item,
397
401
  size: __props.size,
402
+ disabled: vue.unref(disabled),
398
403
  "step-active": __props.stepActive,
399
404
  "expand-more": expand.value,
400
405
  "label-width": vue.unref(itemLabelWidth),
401
406
  prop: vue.unref(itemProp),
402
407
  onChange: onChangeHandler
403
- }, null, 8, ["model", "config", "size", "step-active", "expand-more", "label-width", "prop"]);
408
+ }, null, 8, ["model", "config", "size", "disabled", "step-active", "expand-more", "label-width", "prop"]);
404
409
  }), 128)) : vue.createCommentVNode("", true)
405
410
  ], 64)) : vue.createCommentVNode("", true),
406
411
  __props.config.expand && vue.unref(type) !== "fieldset" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$4, [
407
412
  vue.createVNode(vue.unref(design.TMagicButton), {
408
413
  type: "primary",
409
414
  size: "small",
415
+ disabled: false,
410
416
  text: "",
411
417
  onClick: expandHandler
412
418
  }, {
@@ -443,7 +449,8 @@
443
449
  size: null,
444
450
  model: null,
445
451
  config: null,
446
- rules: { default: {} }
452
+ rules: { default: {} },
453
+ disabled: { type: Boolean }
447
454
  },
448
455
  emits: ["change"],
449
456
  setup(__props, { emit }) {
@@ -522,10 +529,11 @@
522
529
  rules: vue.unref(name) ? __props.rules[vue.unref(name)] : [],
523
530
  config: item,
524
531
  prop: __props.prop,
532
+ disabled: __props.disabled,
525
533
  labelWidth: vue.unref(lWidth),
526
534
  size: __props.size,
527
535
  onChange: change
528
- }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size"]);
536
+ }, null, 8, ["model", "rules", "config", "prop", "disabled", "labelWidth", "size"]);
529
537
  }), 128))
530
538
  ]),
531
539
  vue.createElementVNode("img", {
@@ -541,8 +549,9 @@
541
549
  prop: __props.prop,
542
550
  labelWidth: vue.unref(lWidth),
543
551
  size: __props.size,
552
+ disabled: __props.disabled,
544
553
  onChange: change
545
- }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size"]);
554
+ }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size", "disabled"]);
546
555
  }), 128)) : vue.createCommentVNode("", true)
547
556
  ], 4)) : vue.createCommentVNode("", true);
548
557
  };
@@ -565,7 +574,8 @@
565
574
  labelWidth: null,
566
575
  prop: null,
567
576
  size: null,
568
- index: null
577
+ index: null,
578
+ disabled: { type: Boolean }
569
579
  },
570
580
  emits: ["swap-item", "remove-item", "change"],
571
581
  setup(__props, { emit }) {
@@ -626,24 +636,27 @@
626
636
  }),
627
637
  vue.createVNode(vue.unref(design.TMagicButton), {
628
638
  text: "",
639
+ disabled: __props.disabled,
629
640
  onClick: expandHandler
630
641
  }, {
631
642
  default: vue.withCtx(() => [
632
643
  vue.createTextVNode(vue.toDisplayString(vue.unref(title)), 1)
633
644
  ]),
634
645
  _: 1
635
- }),
646
+ }, 8, ["disabled"]),
636
647
  vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
648
+ style: { "color": "#f56c6c" },
637
649
  text: "",
638
650
  icon: vue.unref(iconsVue.Delete),
639
- style: { "color": "#f56c6c" },
651
+ disabled: __props.disabled,
640
652
  onClick: removeHandler
641
- }, null, 8, ["icon"]), [
653
+ }, null, 8, ["icon", "disabled"]), [
642
654
  [vue.vShow, showDelete(parseInt(String(__props.index)))]
643
655
  ]),
644
656
  movable() ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
645
657
  vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
646
658
  text: "",
659
+ disabled: __props.disabled,
647
660
  size: "small",
648
661
  onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
649
662
  }, {
@@ -657,10 +670,11 @@
657
670
  })
658
671
  ]),
659
672
  _: 1
660
- }, 512), [
673
+ }, 8, ["disabled"]), [
661
674
  [vue.vShow, __props.index !== 0]
662
675
  ]),
663
676
  vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
677
+ disabled: __props.disabled,
664
678
  text: "",
665
679
  size: "small",
666
680
  onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
@@ -675,7 +689,7 @@
675
689
  })
676
690
  ]),
677
691
  _: 1
678
- }, 512), [
692
+ }, 8, ["disabled"]), [
679
693
  [vue.vShow, __props.index !== vue.unref(length) - 1]
680
694
  ])
681
695
  ], 64)) : vue.createCommentVNode("", true),
@@ -692,8 +706,9 @@
692
706
  labelWidth: __props.labelWidth,
693
707
  prop: `${__props.prop}${__props.prop ? "." : ""}${String(__props.index)}`,
694
708
  size: __props.size,
709
+ disabled: __props.disabled,
695
710
  onChange: changeHandler
696
- }, null, 8, ["config", "model", "labelWidth", "prop", "size"])) : vue.createCommentVNode("", true)
711
+ }, null, 8, ["config", "model", "labelWidth", "prop", "size", "disabled"])) : vue.createCommentVNode("", true)
697
712
  ]);
698
713
  };
699
714
  }
@@ -722,7 +737,8 @@
722
737
  name: null,
723
738
  labelWidth: null,
724
739
  prop: null,
725
- size: null
740
+ size: null,
741
+ disabled: { type: Boolean }
726
742
  },
727
743
  emits: ["change"],
728
744
  setup(__props, { emit }) {
@@ -804,22 +820,24 @@
804
820
  index,
805
821
  "label-width": __props.labelWidth,
806
822
  size: __props.size,
823
+ disabled: __props.disabled,
807
824
  "group-model": __props.model[__props.name],
808
825
  onRemoveItem: removeHandler,
809
826
  onSwapItem: swapHandler,
810
827
  onChange: changeHandler
811
- }, null, 8, ["model", "config", "prop", "index", "label-width", "size", "group-model"]);
828
+ }, null, 8, ["model", "config", "prop", "index", "label-width", "size", "disabled", "group-model"]);
812
829
  }), 128)),
813
830
  vue.unref(addable) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
814
831
  key: 3,
815
832
  onClick: addHandler,
816
- size: "small"
833
+ size: "small",
834
+ disabled: __props.disabled
817
835
  }, {
818
836
  default: vue.withCtx(() => [
819
837
  _hoisted_6$1
820
838
  ]),
821
839
  _: 1
822
- })) : vue.createCommentVNode("", true),
840
+ }, 8, ["disabled"])) : vue.createCommentVNode("", true),
823
841
  __props.config.enableToggleMode ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
824
842
  key: 4,
825
843
  icon: vue.unref(iconsVue.Grid),
@@ -855,7 +873,8 @@
855
873
  name: null,
856
874
  labelWidth: null,
857
875
  prop: null,
858
- size: null
876
+ size: null,
877
+ disabled: { type: Boolean }
859
878
  },
860
879
  emits: ["change"],
861
880
  setup(__props, { emit }) {
@@ -905,9 +924,10 @@
905
924
  model: __props.name ? __props.model[__props.name] : __props.model,
906
925
  prop: __props.prop,
907
926
  size: __props.size,
927
+ disabled: __props.disabled,
908
928
  "label-width": __props.config.labelWidth || __props.labelWidth,
909
929
  onChange: changeHandler
910
- }, null, 8, ["config", "model", "prop", "size", "label-width"]);
930
+ }, null, 8, ["config", "model", "prop", "size", "disabled", "label-width"]);
911
931
  }), 128))
912
932
  ]),
913
933
  vue.createElementVNode("img", {
@@ -921,9 +941,10 @@
921
941
  model: __props.name ? __props.model[__props.name] : __props.model,
922
942
  prop: __props.prop,
923
943
  size: __props.size,
944
+ disabled: __props.disabled,
924
945
  "label-width": __props.config.labelWidth || __props.labelWidth,
925
946
  onChange: changeHandler
926
- }, null, 8, ["config", "model", "prop", "size", "label-width"]);
947
+ }, null, 8, ["config", "model", "prop", "size", "disabled", "label-width"]);
927
948
  }), 128))
928
949
  ])
929
950
  ]),
@@ -945,7 +966,8 @@
945
966
  expandMore: { type: Boolean },
946
967
  span: null,
947
968
  size: null,
948
- prop: null
969
+ prop: null,
970
+ disabled: { type: Boolean }
949
971
  },
950
972
  emits: ["change"],
951
973
  setup(__props, { emit }) {
@@ -963,8 +985,9 @@
963
985
  "label-width": __props.config.labelWidth || __props.labelWidth,
964
986
  "expand-more": __props.expandMore,
965
987
  size: __props.size,
988
+ disabled: __props.disabled,
966
989
  onChange: changeHandler
967
- }, null, 8, ["model", "config", "prop", "label-width", "expand-more", "size"])
990
+ }, null, 8, ["model", "config", "prop", "label-width", "expand-more", "size", "disabled"])
968
991
  ]),
969
992
  _: 1
970
993
  }, 8, ["span"])), [
@@ -986,7 +1009,8 @@
986
1009
  labelWidth: null,
987
1010
  prop: null,
988
1011
  size: null,
989
- expandMore: { type: Boolean }
1012
+ expandMore: { type: Boolean },
1013
+ disabled: { type: Boolean }
990
1014
  },
991
1015
  emits: ["change"],
992
1016
  setup(__props, { emit }) {
@@ -1006,8 +1030,9 @@
1006
1030
  model: __props.name ? __props.model[__props.name] : __props.model,
1007
1031
  prop: __props.prop,
1008
1032
  size: __props.size,
1033
+ disabled: __props.disabled,
1009
1034
  onChange: changeHandler
1010
- }, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "prop", "size"]);
1035
+ }, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "prop", "size", "disabled"]);
1011
1036
  }), 128))
1012
1037
  ]),
1013
1038
  _: 1
@@ -1026,7 +1051,8 @@
1026
1051
  config: null,
1027
1052
  stepActive: { default: 1 },
1028
1053
  labelWidth: null,
1029
- size: null
1054
+ size: null,
1055
+ disabled: { type: Boolean }
1030
1056
  },
1031
1057
  emits: ["change"],
1032
1058
  setup(__props, { emit }) {
@@ -1072,9 +1098,10 @@
1072
1098
  model: step.name ? __props.model[step.name] : __props.model,
1073
1099
  prop: `${step.name}`,
1074
1100
  size: __props.size,
1101
+ disabled: __props.disabled,
1075
1102
  "label-width": __props.config.labelWidth || __props.labelWidth,
1076
1103
  onChange: changeHandler
1077
- }, null, 8, ["config", "model", "prop", "size", "label-width"])), [
1104
+ }, null, 8, ["config", "model", "prop", "size", "disabled", "label-width"])), [
1078
1105
  [vue.vShow, active.value - 1 === index]
1079
1106
  ]) : vue.createCommentVNode("", true)
1080
1107
  ], 64);
@@ -1112,6 +1139,7 @@
1112
1139
  prop: { default: "" },
1113
1140
  labelWidth: null,
1114
1141
  sort: { type: Boolean },
1142
+ disabled: { type: Boolean },
1115
1143
  sortKey: { default: "" },
1116
1144
  text: null,
1117
1145
  size: null,
@@ -1299,6 +1327,8 @@
1299
1327
  return fuc;
1300
1328
  };
1301
1329
  const removeHandler = (index) => {
1330
+ if (props.disabled)
1331
+ return;
1302
1332
  props.model[modelName.value].splice(index, 1);
1303
1333
  emit("change", props.model[modelName.value]);
1304
1334
  };
@@ -1460,6 +1490,7 @@
1460
1490
  ref_key: "tMagicTable",
1461
1491
  ref: tMagicTable,
1462
1492
  style: { "width": "100%" },
1493
+ "row-key": __props.config.rowKey || "id",
1463
1494
  data: vue.unref(data),
1464
1495
  border: __props.config.border,
1465
1496
  "max-height": __props.config.maxHeight,
@@ -1521,10 +1552,11 @@
1521
1552
  size: "small",
1522
1553
  type: "primary",
1523
1554
  icon: vue.unref(iconsVue.ArrowUp),
1555
+ disabled: __props.disabled,
1524
1556
  text: "",
1525
1557
  onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1526
1558
  onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1527
- }, null, 8, ["icon", "onClick", "onDblclick"])
1559
+ }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1528
1560
  ]),
1529
1561
  _: 2
1530
1562
  }, 1024)) : vue.createCommentVNode("", true),
@@ -1539,10 +1571,11 @@
1539
1571
  size: "small",
1540
1572
  type: "primary",
1541
1573
  icon: vue.unref(iconsVue.ArrowDown),
1574
+ disabled: __props.disabled,
1542
1575
  text: "",
1543
1576
  onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1544
1577
  onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1545
- }, null, 8, ["icon", "onClick", "onDblclick"])
1578
+ }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1546
1579
  ]),
1547
1580
  _: 2
1548
1581
  }, 1024)) : vue.createCommentVNode("", true)
@@ -1581,13 +1614,14 @@
1581
1614
  scope.$index > -1 ? (vue.openBlock(), vue.createBlock(_sfc_main$v, {
1582
1615
  key: 0,
1583
1616
  labelWidth: "0",
1617
+ disabled: __props.disabled,
1584
1618
  prop: getProp(scope.$index),
1585
1619
  rules: column.rules,
1586
1620
  config: makeConfig(column, scope.row),
1587
1621
  model: scope.row,
1588
1622
  size: __props.size,
1589
1623
  onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", __props.model[vue.unref(modelName)]))
1590
- }, null, 8, ["prop", "rules", "config", "model", "size"])) : vue.createCommentVNode("", true)
1624
+ }, null, 8, ["disabled", "prop", "rules", "config", "model", "size"])) : vue.createCommentVNode("", true)
1591
1625
  ]),
1592
1626
  _: 2
1593
1627
  }, 1032, ["prop", "width", "label", "sortable", "class-name"])) : vue.createCommentVNode("", true)
@@ -1595,7 +1629,7 @@
1595
1629
  }), 256))
1596
1630
  ]),
1597
1631
  _: 1
1598
- }, 8, ["data", "border", "max-height"])) : vue.createCommentVNode("", true)
1632
+ }, 8, ["row-key", "data", "border", "max-height"])) : vue.createCommentVNode("", true)
1599
1633
  ]),
1600
1634
  _: 1
1601
1635
  }, 8, ["disabled"]),
@@ -1604,6 +1638,7 @@
1604
1638
  key: 0,
1605
1639
  size: "small",
1606
1640
  type: "primary",
1641
+ disabled: __props.disabled,
1607
1642
  plain: "",
1608
1643
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
1609
1644
  }, {
@@ -1611,7 +1646,7 @@
1611
1646
  _hoisted_4$1
1612
1647
  ]),
1613
1648
  _: 1
1614
- })) : vue.createCommentVNode("", true),
1649
+ }, 8, ["disabled"])) : vue.createCommentVNode("", true),
1615
1650
  _hoisted_5,
1616
1651
  __props.enableToggleMode && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
1617
1652
  key: 1,
@@ -1639,32 +1674,35 @@
1639
1674
  }, 8, ["icon"])) : vue.createCommentVNode("", true),
1640
1675
  vue.unref(importable) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicUpload), {
1641
1676
  key: 3,
1677
+ style: { "display": "inline-block" },
1642
1678
  ref_key: "excelBtn",
1643
1679
  ref: excelBtn,
1644
1680
  action: "/noop",
1681
+ disabled: __props.disabled,
1645
1682
  "on-change": excelHandler,
1646
- "auto-upload": false,
1647
- style: { "display": "inline-block" }
1683
+ "auto-upload": false
1648
1684
  }, {
1649
1685
  default: vue.withCtx(() => [
1650
1686
  vue.createVNode(vue.unref(design.TMagicButton), {
1651
1687
  size: "small",
1652
1688
  type: "success",
1689
+ disabled: __props.disabled,
1653
1690
  plain: ""
1654
1691
  }, {
1655
1692
  default: vue.withCtx(() => [
1656
1693
  _hoisted_7
1657
1694
  ]),
1658
1695
  _: 1
1659
- })
1696
+ }, 8, ["disabled"])
1660
1697
  ]),
1661
1698
  _: 1
1662
- }, 512)) : vue.createCommentVNode("", true),
1699
+ }, 8, ["disabled"])) : vue.createCommentVNode("", true),
1663
1700
  _hoisted_8,
1664
1701
  vue.unref(importable) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
1665
1702
  key: 4,
1666
1703
  size: "small",
1667
1704
  type: "warning",
1705
+ disabled: __props.disabled,
1668
1706
  plain: "",
1669
1707
  onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
1670
1708
  }, {
@@ -1672,7 +1710,7 @@
1672
1710
  _hoisted_9
1673
1711
  ]),
1674
1712
  _: 1
1675
- })) : vue.createCommentVNode("", true)
1713
+ }, 8, ["disabled"])) : vue.createCommentVNode("", true)
1676
1714
  ]),
1677
1715
  __props.config.pagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
1678
1716
  vue.createVNode(vue.unref(design.TMagicPagination), {
@@ -1703,7 +1741,8 @@
1703
1741
  size: null,
1704
1742
  labelWidth: null,
1705
1743
  prop: null,
1706
- expandMore: { type: Boolean }
1744
+ expandMore: { type: Boolean },
1745
+ disabled: { type: Boolean }
1707
1746
  },
1708
1747
  emits: ["change"],
1709
1748
  setup(__props, { emit }) {
@@ -1821,13 +1860,14 @@
1821
1860
  return vue.openBlock(), vue.createBlock(_sfc_main$v, {
1822
1861
  key: item[vue.unref(mForm)?.keyProp || "__key"],
1823
1862
  config: item,
1863
+ disabled: __props.disabled,
1824
1864
  model: __props.config.dynamic ? (__props.name ? __props.model[__props.name] : __props.model)[tabIndex] : tab.name ? (__props.name ? __props.model[__props.name] : __props.model)[tab.name] : __props.name ? __props.model[__props.name] : __props.model,
1825
1865
  prop: __props.config.dynamic ? `${__props.prop}${__props.prop ? "." : ""}${String(tabIndex)}` : __props.prop,
1826
1866
  size: __props.size,
1827
1867
  "label-width": tab.labelWidth || __props.labelWidth,
1828
1868
  "expand-more": __props.expandMore,
1829
1869
  onChange: changeHandler
1830
- }, null, 8, ["config", "model", "prop", "size", "label-width", "expand-more"]);
1870
+ }, null, 8, ["config", "disabled", "model", "prop", "size", "label-width", "expand-more"]);
1831
1871
  }), 128))
1832
1872
  ]),
1833
1873
  _: 2
@@ -2551,7 +2591,6 @@
2551
2591
  ref: tMagicForm,
2552
2592
  model: values.value,
2553
2593
  "label-width": __props.labelWidth,
2554
- disabled: __props.disabled,
2555
2594
  style: vue.normalizeStyle(`height: ${__props.height}`),
2556
2595
  inline: __props.inline,
2557
2596
  "label-position": __props.labelPosition
@@ -2559,6 +2598,7 @@
2559
2598
  default: vue.withCtx(() => [
2560
2599
  initialized.value && Array.isArray(__props.config) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(__props.config, (item, index) => {
2561
2600
  return vue.openBlock(), vue.createBlock(_sfc_main$v, {
2601
+ disabled: __props.disabled,
2562
2602
  key: item[__props.keyProp] ?? index,
2563
2603
  config: item,
2564
2604
  model: values.value,
@@ -2566,11 +2606,11 @@
2566
2606
  "step-active": __props.stepActive,
2567
2607
  size: __props.size,
2568
2608
  onChange: changeHandler
2569
- }, null, 8, ["config", "model", "label-width", "step-active", "size"]);
2609
+ }, null, 8, ["disabled", "config", "model", "label-width", "step-active", "size"]);
2570
2610
  }), 128)) : vue.createCommentVNode("", true)
2571
2611
  ]),
2572
2612
  _: 1
2573
- }, 8, ["model", "label-width", "disabled", "style", "inline", "label-position"]);
2613
+ }, 8, ["model", "label-width", "style", "inline", "label-position"]);
2574
2614
  };
2575
2615
  }
2576
2616
  });
@@ -2591,6 +2631,7 @@
2591
2631
  width: null,
2592
2632
  labelWidth: null,
2593
2633
  fullscreen: { type: Boolean },
2634
+ disabled: { type: Boolean },
2594
2635
  title: null,
2595
2636
  zIndex: null,
2596
2637
  size: null,
@@ -2746,12 +2787,13 @@
2746
2787
  ref_key: "form",
2747
2788
  ref: form,
2748
2789
  size: __props.size,
2790
+ disabled: __props.disabled,
2749
2791
  config: __props.config,
2750
2792
  "init-values": __props.values,
2751
2793
  "parent-values": __props.parentValues,
2752
2794
  "label-width": __props.labelWidth,
2753
2795
  onChange: changeHandler
2754
- }, null, 8, ["modelValue", "size", "config", "init-values", "parent-values", "label-width"]),
2796
+ }, null, 8, ["modelValue", "size", "disabled", "config", "init-values", "parent-values", "label-width"]),
2755
2797
  vue.renderSlot(_ctx.$slots, "default")
2756
2798
  ], 4)) : vue.createCommentVNode("", true)
2757
2799
  ]),
@@ -3657,6 +3699,7 @@
3657
3699
  exports.MText = _sfc_main$2;
3658
3700
  exports.MTextarea = _sfc_main$1;
3659
3701
  exports.MTime = _sfc_main;
3702
+ exports.createValues = createValues;
3660
3703
  exports.default = index;
3661
3704
  exports.display = display;
3662
3705
  exports.filterFunction = filterFunction;