@tmagic/form 1.2.0-beta.18 → 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.
@@ -184,6 +184,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
184
184
  model: null,
185
185
  config: null,
186
186
  prop: { default: "" },
187
+ disabled: { type: Boolean },
187
188
  labelWidth: null,
188
189
  expandMore: { type: Boolean, default: false },
189
190
  stepActive: null,
@@ -214,7 +215,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
214
215
  return component;
215
216
  return "m-fields-text";
216
217
  });
217
- const disabled = computed(() => filterFunction(mForm, props.config.disabled, props));
218
+ const disabled = computed(
219
+ () => typeof props.disabled === "undefined" ? filterFunction(mForm, props.config.disabled, props) : props.disabled
220
+ );
218
221
  const tooltip = computed(() => filterFunction(mForm, props.config.tooltip, props));
219
222
  const extra = computed(() => filterFunction(mForm, props.config.extra, props));
220
223
  const rule = computed(() => getRules(mForm, props.config.rules, props));
@@ -311,13 +314,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
311
314
  size: __props.size,
312
315
  model: __props.model,
313
316
  config: __props.config,
317
+ disabled: unref(disabled),
314
318
  name: unref(name),
315
319
  prop: unref(itemProp),
316
320
  "step-active": __props.stepActive,
317
321
  "expand-more": expand.value,
318
322
  "label-width": unref(itemLabelWidth),
319
323
  onChange: onChangeHandler
320
- }, null, 40, ["size", "model", "config", "name", "prop", "step-active", "expand-more", "label-width"])) : unref(type) && unref(display$1) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
324
+ }, null, 40, ["size", "model", "config", "disabled", "name", "prop", "step-active", "expand-more", "label-width"])) : unref(type) && unref(display$1) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
321
325
  createVNode(unref(TMagicFormItem), {
322
326
  style: normalizeStyle(__props.config.tip ? "flex: 1" : ""),
323
327
  class: normalizeClass({ hidden: `${unref(itemLabelWidth)}` === "0" || !__props.config.text }),
@@ -392,18 +396,20 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
392
396
  model: unref(name) || unref(name) === 0 ? __props.model[unref(name)] : __props.model,
393
397
  config: item,
394
398
  size: __props.size,
399
+ disabled: unref(disabled),
395
400
  "step-active": __props.stepActive,
396
401
  "expand-more": expand.value,
397
402
  "label-width": unref(itemLabelWidth),
398
403
  prop: unref(itemProp),
399
404
  onChange: onChangeHandler
400
- }, null, 8, ["model", "config", "size", "step-active", "expand-more", "label-width", "prop"]);
405
+ }, null, 8, ["model", "config", "size", "disabled", "step-active", "expand-more", "label-width", "prop"]);
401
406
  }), 128)) : createCommentVNode("", true)
402
407
  ], 64)) : createCommentVNode("", true),
403
408
  __props.config.expand && unref(type) !== "fieldset" ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
404
409
  createVNode(unref(TMagicButton), {
405
410
  type: "primary",
406
411
  size: "small",
412
+ disabled: false,
407
413
  text: "",
408
414
  onClick: expandHandler
409
415
  }, {
@@ -440,7 +446,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
440
446
  size: null,
441
447
  model: null,
442
448
  config: null,
443
- rules: { default: {} }
449
+ rules: { default: {} },
450
+ disabled: { type: Boolean }
444
451
  },
445
452
  emits: ["change"],
446
453
  setup(__props, { emit }) {
@@ -519,10 +526,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
519
526
  rules: unref(name) ? __props.rules[unref(name)] : [],
520
527
  config: item,
521
528
  prop: __props.prop,
529
+ disabled: __props.disabled,
522
530
  labelWidth: unref(lWidth),
523
531
  size: __props.size,
524
532
  onChange: change
525
- }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size"]);
533
+ }, null, 8, ["model", "rules", "config", "prop", "disabled", "labelWidth", "size"]);
526
534
  }), 128))
527
535
  ]),
528
536
  createElementVNode("img", {
@@ -538,8 +546,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
538
546
  prop: __props.prop,
539
547
  labelWidth: unref(lWidth),
540
548
  size: __props.size,
549
+ disabled: __props.disabled,
541
550
  onChange: change
542
- }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size"]);
551
+ }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size", "disabled"]);
543
552
  }), 128)) : createCommentVNode("", true)
544
553
  ], 4)) : createCommentVNode("", true);
545
554
  };
@@ -562,7 +571,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
562
571
  labelWidth: null,
563
572
  prop: null,
564
573
  size: null,
565
- index: null
574
+ index: null,
575
+ disabled: { type: Boolean }
566
576
  },
567
577
  emits: ["swap-item", "remove-item", "change"],
568
578
  setup(__props, { emit }) {
@@ -623,24 +633,27 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
623
633
  }),
624
634
  createVNode(unref(TMagicButton), {
625
635
  text: "",
636
+ disabled: __props.disabled,
626
637
  onClick: expandHandler
627
638
  }, {
628
639
  default: withCtx(() => [
629
640
  createTextVNode(toDisplayString(unref(title)), 1)
630
641
  ]),
631
642
  _: 1
632
- }),
643
+ }, 8, ["disabled"]),
633
644
  withDirectives(createVNode(unref(TMagicButton), {
645
+ style: { "color": "#f56c6c" },
634
646
  text: "",
635
647
  icon: unref(Delete),
636
- style: { "color": "#f56c6c" },
648
+ disabled: __props.disabled,
637
649
  onClick: removeHandler
638
- }, null, 8, ["icon"]), [
650
+ }, null, 8, ["icon", "disabled"]), [
639
651
  [vShow, showDelete(parseInt(String(__props.index)))]
640
652
  ]),
641
653
  movable() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
642
654
  withDirectives(createVNode(unref(TMagicButton), {
643
655
  text: "",
656
+ disabled: __props.disabled,
644
657
  size: "small",
645
658
  onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
646
659
  }, {
@@ -654,10 +667,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
654
667
  })
655
668
  ]),
656
669
  _: 1
657
- }, 512), [
670
+ }, 8, ["disabled"]), [
658
671
  [vShow, __props.index !== 0]
659
672
  ]),
660
673
  withDirectives(createVNode(unref(TMagicButton), {
674
+ disabled: __props.disabled,
661
675
  text: "",
662
676
  size: "small",
663
677
  onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
@@ -672,7 +686,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
672
686
  })
673
687
  ]),
674
688
  _: 1
675
- }, 512), [
689
+ }, 8, ["disabled"]), [
676
690
  [vShow, __props.index !== unref(length) - 1]
677
691
  ])
678
692
  ], 64)) : createCommentVNode("", true),
@@ -689,8 +703,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
689
703
  labelWidth: __props.labelWidth,
690
704
  prop: `${__props.prop}${__props.prop ? "." : ""}${String(__props.index)}`,
691
705
  size: __props.size,
706
+ disabled: __props.disabled,
692
707
  onChange: changeHandler
693
- }, null, 8, ["config", "model", "labelWidth", "prop", "size"])) : createCommentVNode("", true)
708
+ }, null, 8, ["config", "model", "labelWidth", "prop", "size", "disabled"])) : createCommentVNode("", true)
694
709
  ]);
695
710
  };
696
711
  }
@@ -719,7 +734,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
719
734
  name: null,
720
735
  labelWidth: null,
721
736
  prop: null,
722
- size: null
737
+ size: null,
738
+ disabled: { type: Boolean }
723
739
  },
724
740
  emits: ["change"],
725
741
  setup(__props, { emit }) {
@@ -801,22 +817,24 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
801
817
  index,
802
818
  "label-width": __props.labelWidth,
803
819
  size: __props.size,
820
+ disabled: __props.disabled,
804
821
  "group-model": __props.model[__props.name],
805
822
  onRemoveItem: removeHandler,
806
823
  onSwapItem: swapHandler,
807
824
  onChange: changeHandler
808
- }, null, 8, ["model", "config", "prop", "index", "label-width", "size", "group-model"]);
825
+ }, null, 8, ["model", "config", "prop", "index", "label-width", "size", "disabled", "group-model"]);
809
826
  }), 128)),
810
827
  unref(addable) ? (openBlock(), createBlock(unref(TMagicButton), {
811
828
  key: 3,
812
829
  onClick: addHandler,
813
- size: "small"
830
+ size: "small",
831
+ disabled: __props.disabled
814
832
  }, {
815
833
  default: withCtx(() => [
816
834
  _hoisted_6$1
817
835
  ]),
818
836
  _: 1
819
- })) : createCommentVNode("", true),
837
+ }, 8, ["disabled"])) : createCommentVNode("", true),
820
838
  __props.config.enableToggleMode ? (openBlock(), createBlock(unref(TMagicButton), {
821
839
  key: 4,
822
840
  icon: unref(Grid),
@@ -852,7 +870,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
852
870
  name: null,
853
871
  labelWidth: null,
854
872
  prop: null,
855
- size: null
873
+ size: null,
874
+ disabled: { type: Boolean }
856
875
  },
857
876
  emits: ["change"],
858
877
  setup(__props, { emit }) {
@@ -902,9 +921,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
902
921
  model: __props.name ? __props.model[__props.name] : __props.model,
903
922
  prop: __props.prop,
904
923
  size: __props.size,
924
+ disabled: __props.disabled,
905
925
  "label-width": __props.config.labelWidth || __props.labelWidth,
906
926
  onChange: changeHandler
907
- }, null, 8, ["config", "model", "prop", "size", "label-width"]);
927
+ }, null, 8, ["config", "model", "prop", "size", "disabled", "label-width"]);
908
928
  }), 128))
909
929
  ]),
910
930
  createElementVNode("img", {
@@ -918,9 +938,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
918
938
  model: __props.name ? __props.model[__props.name] : __props.model,
919
939
  prop: __props.prop,
920
940
  size: __props.size,
941
+ disabled: __props.disabled,
921
942
  "label-width": __props.config.labelWidth || __props.labelWidth,
922
943
  onChange: changeHandler
923
- }, null, 8, ["config", "model", "prop", "size", "label-width"]);
944
+ }, null, 8, ["config", "model", "prop", "size", "disabled", "label-width"]);
924
945
  }), 128))
925
946
  ])
926
947
  ]),
@@ -942,7 +963,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
942
963
  expandMore: { type: Boolean },
943
964
  span: null,
944
965
  size: null,
945
- prop: null
966
+ prop: null,
967
+ disabled: { type: Boolean }
946
968
  },
947
969
  emits: ["change"],
948
970
  setup(__props, { emit }) {
@@ -960,8 +982,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
960
982
  "label-width": __props.config.labelWidth || __props.labelWidth,
961
983
  "expand-more": __props.expandMore,
962
984
  size: __props.size,
985
+ disabled: __props.disabled,
963
986
  onChange: changeHandler
964
- }, null, 8, ["model", "config", "prop", "label-width", "expand-more", "size"])
987
+ }, null, 8, ["model", "config", "prop", "label-width", "expand-more", "size", "disabled"])
965
988
  ]),
966
989
  _: 1
967
990
  }, 8, ["span"])), [
@@ -983,7 +1006,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
983
1006
  labelWidth: null,
984
1007
  prop: null,
985
1008
  size: null,
986
- expandMore: { type: Boolean }
1009
+ expandMore: { type: Boolean },
1010
+ disabled: { type: Boolean }
987
1011
  },
988
1012
  emits: ["change"],
989
1013
  setup(__props, { emit }) {
@@ -1003,8 +1027,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1003
1027
  model: __props.name ? __props.model[__props.name] : __props.model,
1004
1028
  prop: __props.prop,
1005
1029
  size: __props.size,
1030
+ disabled: __props.disabled,
1006
1031
  onChange: changeHandler
1007
- }, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "prop", "size"]);
1032
+ }, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "prop", "size", "disabled"]);
1008
1033
  }), 128))
1009
1034
  ]),
1010
1035
  _: 1
@@ -1023,7 +1048,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1023
1048
  config: null,
1024
1049
  stepActive: { default: 1 },
1025
1050
  labelWidth: null,
1026
- size: null
1051
+ size: null,
1052
+ disabled: { type: Boolean }
1027
1053
  },
1028
1054
  emits: ["change"],
1029
1055
  setup(__props, { emit }) {
@@ -1069,9 +1095,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1069
1095
  model: step.name ? __props.model[step.name] : __props.model,
1070
1096
  prop: `${step.name}`,
1071
1097
  size: __props.size,
1098
+ disabled: __props.disabled,
1072
1099
  "label-width": __props.config.labelWidth || __props.labelWidth,
1073
1100
  onChange: changeHandler
1074
- }, null, 8, ["config", "model", "prop", "size", "label-width"])), [
1101
+ }, null, 8, ["config", "model", "prop", "size", "disabled", "label-width"])), [
1075
1102
  [vShow, active.value - 1 === index]
1076
1103
  ]) : createCommentVNode("", true)
1077
1104
  ], 64);
@@ -1109,6 +1136,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1109
1136
  prop: { default: "" },
1110
1137
  labelWidth: null,
1111
1138
  sort: { type: Boolean },
1139
+ disabled: { type: Boolean },
1112
1140
  sortKey: { default: "" },
1113
1141
  text: null,
1114
1142
  size: null,
@@ -1296,6 +1324,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1296
1324
  return fuc;
1297
1325
  };
1298
1326
  const removeHandler = (index) => {
1327
+ if (props.disabled)
1328
+ return;
1299
1329
  props.model[modelName.value].splice(index, 1);
1300
1330
  emit("change", props.model[modelName.value]);
1301
1331
  };
@@ -1457,6 +1487,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1457
1487
  ref_key: "tMagicTable",
1458
1488
  ref: tMagicTable,
1459
1489
  style: { "width": "100%" },
1490
+ "row-key": __props.config.rowKey || "id",
1460
1491
  data: unref(data),
1461
1492
  border: __props.config.border,
1462
1493
  "max-height": __props.config.maxHeight,
@@ -1518,10 +1549,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1518
1549
  size: "small",
1519
1550
  type: "primary",
1520
1551
  icon: unref(ArrowUp),
1552
+ disabled: __props.disabled,
1521
1553
  text: "",
1522
1554
  onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1523
1555
  onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1524
- }, null, 8, ["icon", "onClick", "onDblclick"])
1556
+ }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1525
1557
  ]),
1526
1558
  _: 2
1527
1559
  }, 1024)) : createCommentVNode("", true),
@@ -1536,10 +1568,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1536
1568
  size: "small",
1537
1569
  type: "primary",
1538
1570
  icon: unref(ArrowDown),
1571
+ disabled: __props.disabled,
1539
1572
  text: "",
1540
1573
  onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
1541
1574
  onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
1542
- }, null, 8, ["icon", "onClick", "onDblclick"])
1575
+ }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
1543
1576
  ]),
1544
1577
  _: 2
1545
1578
  }, 1024)) : createCommentVNode("", true)
@@ -1578,13 +1611,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1578
1611
  scope.$index > -1 ? (openBlock(), createBlock(_sfc_main$v, {
1579
1612
  key: 0,
1580
1613
  labelWidth: "0",
1614
+ disabled: __props.disabled,
1581
1615
  prop: getProp(scope.$index),
1582
1616
  rules: column.rules,
1583
1617
  config: makeConfig(column, scope.row),
1584
1618
  model: scope.row,
1585
1619
  size: __props.size,
1586
1620
  onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", __props.model[unref(modelName)]))
1587
- }, null, 8, ["prop", "rules", "config", "model", "size"])) : createCommentVNode("", true)
1621
+ }, null, 8, ["disabled", "prop", "rules", "config", "model", "size"])) : createCommentVNode("", true)
1588
1622
  ]),
1589
1623
  _: 2
1590
1624
  }, 1032, ["prop", "width", "label", "sortable", "class-name"])) : createCommentVNode("", true)
@@ -1592,7 +1626,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1592
1626
  }), 256))
1593
1627
  ]),
1594
1628
  _: 1
1595
- }, 8, ["data", "border", "max-height"])) : createCommentVNode("", true)
1629
+ }, 8, ["row-key", "data", "border", "max-height"])) : createCommentVNode("", true)
1596
1630
  ]),
1597
1631
  _: 1
1598
1632
  }, 8, ["disabled"]),
@@ -1601,6 +1635,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1601
1635
  key: 0,
1602
1636
  size: "small",
1603
1637
  type: "primary",
1638
+ disabled: __props.disabled,
1604
1639
  plain: "",
1605
1640
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
1606
1641
  }, {
@@ -1608,7 +1643,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1608
1643
  _hoisted_4$1
1609
1644
  ]),
1610
1645
  _: 1
1611
- })) : createCommentVNode("", true),
1646
+ }, 8, ["disabled"])) : createCommentVNode("", true),
1612
1647
  _hoisted_5,
1613
1648
  __props.enableToggleMode && !isFullscreen.value ? (openBlock(), createBlock(unref(TMagicButton), {
1614
1649
  key: 1,
@@ -1636,32 +1671,35 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1636
1671
  }, 8, ["icon"])) : createCommentVNode("", true),
1637
1672
  unref(importable) ? (openBlock(), createBlock(unref(TMagicUpload), {
1638
1673
  key: 3,
1674
+ style: { "display": "inline-block" },
1639
1675
  ref_key: "excelBtn",
1640
1676
  ref: excelBtn,
1641
1677
  action: "/noop",
1678
+ disabled: __props.disabled,
1642
1679
  "on-change": excelHandler,
1643
- "auto-upload": false,
1644
- style: { "display": "inline-block" }
1680
+ "auto-upload": false
1645
1681
  }, {
1646
1682
  default: withCtx(() => [
1647
1683
  createVNode(unref(TMagicButton), {
1648
1684
  size: "small",
1649
1685
  type: "success",
1686
+ disabled: __props.disabled,
1650
1687
  plain: ""
1651
1688
  }, {
1652
1689
  default: withCtx(() => [
1653
1690
  _hoisted_7
1654
1691
  ]),
1655
1692
  _: 1
1656
- })
1693
+ }, 8, ["disabled"])
1657
1694
  ]),
1658
1695
  _: 1
1659
- }, 512)) : createCommentVNode("", true),
1696
+ }, 8, ["disabled"])) : createCommentVNode("", true),
1660
1697
  _hoisted_8,
1661
1698
  unref(importable) ? (openBlock(), createBlock(unref(TMagicButton), {
1662
1699
  key: 4,
1663
1700
  size: "small",
1664
1701
  type: "warning",
1702
+ disabled: __props.disabled,
1665
1703
  plain: "",
1666
1704
  onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
1667
1705
  }, {
@@ -1669,7 +1707,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1669
1707
  _hoisted_9
1670
1708
  ]),
1671
1709
  _: 1
1672
- })) : createCommentVNode("", true)
1710
+ }, 8, ["disabled"])) : createCommentVNode("", true)
1673
1711
  ]),
1674
1712
  __props.config.pagination ? (openBlock(), createElementBlock("div", _hoisted_10, [
1675
1713
  createVNode(unref(TMagicPagination), {
@@ -1700,7 +1738,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1700
1738
  size: null,
1701
1739
  labelWidth: null,
1702
1740
  prop: null,
1703
- expandMore: { type: Boolean }
1741
+ expandMore: { type: Boolean },
1742
+ disabled: { type: Boolean }
1704
1743
  },
1705
1744
  emits: ["change"],
1706
1745
  setup(__props, { emit }) {
@@ -1818,13 +1857,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1818
1857
  return openBlock(), createBlock(_sfc_main$v, {
1819
1858
  key: item[unref(mForm)?.keyProp || "__key"],
1820
1859
  config: item,
1860
+ disabled: __props.disabled,
1821
1861
  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,
1822
1862
  prop: __props.config.dynamic ? `${__props.prop}${__props.prop ? "." : ""}${String(tabIndex)}` : __props.prop,
1823
1863
  size: __props.size,
1824
1864
  "label-width": tab.labelWidth || __props.labelWidth,
1825
1865
  "expand-more": __props.expandMore,
1826
1866
  onChange: changeHandler
1827
- }, null, 8, ["config", "model", "prop", "size", "label-width", "expand-more"]);
1867
+ }, null, 8, ["config", "disabled", "model", "prop", "size", "label-width", "expand-more"]);
1828
1868
  }), 128))
1829
1869
  ]),
1830
1870
  _: 2
@@ -2548,7 +2588,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2548
2588
  ref: tMagicForm,
2549
2589
  model: values.value,
2550
2590
  "label-width": __props.labelWidth,
2551
- disabled: __props.disabled,
2552
2591
  style: normalizeStyle(`height: ${__props.height}`),
2553
2592
  inline: __props.inline,
2554
2593
  "label-position": __props.labelPosition
@@ -2556,6 +2595,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2556
2595
  default: withCtx(() => [
2557
2596
  initialized.value && Array.isArray(__props.config) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.config, (item, index) => {
2558
2597
  return openBlock(), createBlock(_sfc_main$v, {
2598
+ disabled: __props.disabled,
2559
2599
  key: item[__props.keyProp] ?? index,
2560
2600
  config: item,
2561
2601
  model: values.value,
@@ -2563,11 +2603,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2563
2603
  "step-active": __props.stepActive,
2564
2604
  size: __props.size,
2565
2605
  onChange: changeHandler
2566
- }, null, 8, ["config", "model", "label-width", "step-active", "size"]);
2606
+ }, null, 8, ["disabled", "config", "model", "label-width", "step-active", "size"]);
2567
2607
  }), 128)) : createCommentVNode("", true)
2568
2608
  ]),
2569
2609
  _: 1
2570
- }, 8, ["model", "label-width", "disabled", "style", "inline", "label-position"]);
2610
+ }, 8, ["model", "label-width", "style", "inline", "label-position"]);
2571
2611
  };
2572
2612
  }
2573
2613
  });
@@ -2588,6 +2628,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2588
2628
  width: null,
2589
2629
  labelWidth: null,
2590
2630
  fullscreen: { type: Boolean },
2631
+ disabled: { type: Boolean },
2591
2632
  title: null,
2592
2633
  zIndex: null,
2593
2634
  size: null,
@@ -2743,12 +2784,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2743
2784
  ref_key: "form",
2744
2785
  ref: form,
2745
2786
  size: __props.size,
2787
+ disabled: __props.disabled,
2746
2788
  config: __props.config,
2747
2789
  "init-values": __props.values,
2748
2790
  "parent-values": __props.parentValues,
2749
2791
  "label-width": __props.labelWidth,
2750
2792
  onChange: changeHandler
2751
- }, null, 8, ["modelValue", "size", "config", "init-values", "parent-values", "label-width"]),
2793
+ }, null, 8, ["modelValue", "size", "disabled", "config", "init-values", "parent-values", "label-width"]),
2752
2794
  renderSlot(_ctx.$slots, "default")
2753
2795
  ], 4)) : createCommentVNode("", true)
2754
2796
  ]),