@tmagic/form 1.6.0 → 1.6.1

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.
@@ -382,31 +382,31 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
382
382
  return (_ctx, _cache) => {
383
383
  const _component_m_fields_hidden = resolveComponent("m-fields-hidden");
384
384
  const _component_Container = resolveComponent("Container", true);
385
- return _ctx.config ? (openBlock(), createElementBlock("div", {
385
+ return __props.config ? (openBlock(), createElementBlock("div", {
386
386
  key: 0,
387
- "data-tmagic-id": _ctx.config.id,
387
+ "data-tmagic-id": __props.config.id,
388
388
  "data-tmagic-form-item-prop": itemProp.value,
389
- style: normalizeStyle(_ctx.config.tip ? "display: flex;align-items: baseline;" : ""),
390
- class: normalizeClass(`m-form-container m-container-${type.value || ""} ${_ctx.config.className || ""}`)
389
+ style: normalizeStyle(__props.config.tip ? "display: flex;align-items: baseline;" : ""),
390
+ class: normalizeClass(`m-form-container m-container-${type.value || ""} ${__props.config.className || ""}`)
391
391
  }, [
392
392
  type.value === "hidden" ? (openBlock(), createBlock(_component_m_fields_hidden, {
393
393
  key: 0,
394
- model: _ctx.model,
395
- config: _ctx.config,
396
- name: _ctx.config.name,
394
+ model: __props.model,
395
+ config: __props.config,
396
+ name: __props.config.name,
397
397
  disabled: disabled.value,
398
398
  prop: itemProp.value
399
399
  }, null, 8, ["model", "config", "name", "disabled", "prop"])) : items.value && !text.value && type.value && display$1.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
400
- key: key(_ctx.config),
401
- size: _ctx.size,
402
- model: _ctx.model,
403
- "last-values": _ctx.lastValues,
404
- "is-compare": _ctx.isCompare,
405
- config: _ctx.config,
400
+ key: key(__props.config),
401
+ size: __props.size,
402
+ model: __props.model,
403
+ "last-values": __props.lastValues,
404
+ "is-compare": __props.isCompare,
405
+ config: __props.config,
406
406
  disabled: disabled.value,
407
407
  name: name.value,
408
408
  prop: itemProp.value,
409
- "step-active": _ctx.stepActive,
409
+ "step-active": __props.stepActive,
410
410
  "expand-more": expand.value,
411
411
  "label-width": itemLabelWidth.value,
412
412
  onChange: onChangeHandler,
@@ -416,17 +416,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
416
416
  { key: 2 },
417
417
  [
418
418
  createVNode(unref(TMagicFormItem), {
419
- style: normalizeStyle(_ctx.config.tip ? "flex: 1" : ""),
419
+ style: normalizeStyle(__props.config.tip ? "flex: 1" : ""),
420
420
  class: normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
421
421
  prop: itemProp.value,
422
422
  "label-width": itemLabelWidth.value,
423
- "label-position": _ctx.config.labelPosition,
423
+ "label-position": __props.config.labelPosition,
424
424
  rules: rule.value
425
425
  }, {
426
426
  label: withCtx(() => [
427
427
  createElementVNode("span", {
428
428
  innerHTML: type.value === "checkbox" ? "" : text.value,
429
- title: _ctx.config.labelTitle
429
+ title: __props.config.labelTitle
430
430
  }, null, 8, _hoisted_2$7)
431
431
  ]),
432
432
  default: withCtx(() => [
@@ -436,11 +436,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
436
436
  ]),
437
437
  default: withCtx(() => [
438
438
  (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
439
- key: key(_ctx.config),
440
- size: _ctx.size,
441
- model: _ctx.model,
442
- "last-values": _ctx.lastValues,
443
- config: _ctx.config,
439
+ key: key(__props.config),
440
+ size: __props.size,
441
+ model: __props.model,
442
+ "last-values": __props.lastValues,
443
+ config: __props.config,
444
444
  name: name.value,
445
445
  disabled: disabled.value,
446
446
  prop: itemProp.value,
@@ -451,11 +451,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
451
451
  _: 1
452
452
  /* STABLE */
453
453
  })) : (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
454
- key: key(_ctx.config),
455
- size: _ctx.size,
456
- model: _ctx.model,
457
- "last-values": _ctx.lastValues,
458
- config: _ctx.config,
454
+ key: key(__props.config),
455
+ size: __props.size,
456
+ model: __props.model,
457
+ "last-values": __props.lastValues,
458
+ config: __props.config,
459
459
  name: name.value,
460
460
  disabled: disabled.value,
461
461
  prop: itemProp.value,
@@ -471,13 +471,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
471
471
  _: 1
472
472
  /* STABLE */
473
473
  }, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
474
- _ctx.config.tip ? (openBlock(), createBlock(unref(TMagicTooltip), {
474
+ __props.config.tip ? (openBlock(), createBlock(unref(TMagicTooltip), {
475
475
  key: 0,
476
476
  placement: "left"
477
477
  }, {
478
478
  content: withCtx(() => [
479
479
  createElementVNode("div", {
480
- innerHTML: _ctx.config.tip
480
+ innerHTML: __props.config.tip
481
481
  }, null, 8, _hoisted_5$3)
482
482
  ]),
483
483
  default: withCtx(() => [
@@ -502,17 +502,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
502
502
  createCommentVNode(" 对比 "),
503
503
  createCommentVNode(" 上次内容 "),
504
504
  createVNode(unref(TMagicFormItem), {
505
- style: normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#f7dadd" }]),
505
+ style: normalizeStyle([__props.config.tip ? "flex: 1" : "", { "background": "#f7dadd" }]),
506
506
  class: normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
507
507
  prop: itemProp.value,
508
508
  "label-width": itemLabelWidth.value,
509
- "label-position": _ctx.config.labelPosition,
509
+ "label-position": __props.config.labelPosition,
510
510
  rules: rule.value
511
511
  }, {
512
512
  label: withCtx(() => [
513
513
  createElementVNode("span", {
514
514
  innerHTML: type.value === "checkbox" ? "" : text.value,
515
- title: _ctx.config.labelTitle
515
+ title: __props.config.labelTitle
516
516
  }, null, 8, _hoisted_6$2)
517
517
  ]),
518
518
  default: withCtx(() => [
@@ -522,10 +522,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
522
522
  ]),
523
523
  default: withCtx(() => [
524
524
  (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
525
- key: key(_ctx.config),
526
- size: _ctx.size,
527
- model: _ctx.lastValues,
528
- config: _ctx.config,
525
+ key: key(__props.config),
526
+ size: __props.size,
527
+ model: __props.lastValues,
528
+ config: __props.config,
529
529
  name: name.value,
530
530
  disabled: disabled.value,
531
531
  prop: itemProp.value,
@@ -535,10 +535,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
535
535
  _: 1
536
536
  /* STABLE */
537
537
  })) : (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
538
- key: key(_ctx.config),
539
- size: _ctx.size,
540
- model: _ctx.lastValues,
541
- config: _ctx.config,
538
+ key: key(__props.config),
539
+ size: __props.size,
540
+ model: __props.lastValues,
541
+ config: __props.config,
542
542
  name: name.value,
543
543
  disabled: disabled.value,
544
544
  prop: itemProp.value,
@@ -553,13 +553,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
553
553
  _: 1
554
554
  /* STABLE */
555
555
  }, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
556
- _ctx.config.tip ? (openBlock(), createBlock(unref(TMagicTooltip), {
556
+ __props.config.tip ? (openBlock(), createBlock(unref(TMagicTooltip), {
557
557
  key: 0,
558
558
  placement: "left"
559
559
  }, {
560
560
  content: withCtx(() => [
561
561
  createElementVNode("div", {
562
- innerHTML: _ctx.config.tip
562
+ innerHTML: __props.config.tip
563
563
  }, null, 8, _hoisted_9)
564
564
  ]),
565
565
  default: withCtx(() => [
@@ -576,17 +576,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
576
576
  })) : createCommentVNode("v-if", true),
577
577
  createCommentVNode(" 当前内容 "),
578
578
  createVNode(unref(TMagicFormItem), {
579
- style: normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#def7da" }]),
579
+ style: normalizeStyle([__props.config.tip ? "flex: 1" : "", { "background": "#def7da" }]),
580
580
  class: normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
581
581
  prop: itemProp.value,
582
582
  "label-width": itemLabelWidth.value,
583
- "label-position": _ctx.config.labelPosition,
583
+ "label-position": __props.config.labelPosition,
584
584
  rules: rule.value
585
585
  }, {
586
586
  label: withCtx(() => [
587
587
  createElementVNode("span", {
588
588
  innerHTML: type.value === "checkbox" ? "" : text.value,
589
- title: _ctx.config.labelTitle
589
+ title: __props.config.labelTitle
590
590
  }, null, 8, _hoisted_10)
591
591
  ]),
592
592
  default: withCtx(() => [
@@ -596,10 +596,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
596
596
  ]),
597
597
  default: withCtx(() => [
598
598
  (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
599
- key: key(_ctx.config),
600
- size: _ctx.size,
601
- model: _ctx.model,
602
- config: _ctx.config,
599
+ key: key(__props.config),
600
+ size: __props.size,
601
+ model: __props.model,
602
+ config: __props.config,
603
603
  name: name.value,
604
604
  disabled: disabled.value,
605
605
  prop: itemProp.value,
@@ -609,10 +609,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
609
609
  _: 1
610
610
  /* STABLE */
611
611
  })) : (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
612
- key: key(_ctx.config),
613
- size: _ctx.size,
614
- model: _ctx.model,
615
- config: _ctx.config,
612
+ key: key(__props.config),
613
+ size: __props.size,
614
+ model: __props.model,
615
+ config: __props.config,
616
616
  name: name.value,
617
617
  disabled: disabled.value,
618
618
  prop: itemProp.value,
@@ -627,13 +627,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
627
627
  _: 1
628
628
  /* STABLE */
629
629
  }, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
630
- _ctx.config.tip ? (openBlock(), createBlock(unref(TMagicTooltip), {
630
+ __props.config.tip ? (openBlock(), createBlock(unref(TMagicTooltip), {
631
631
  key: 1,
632
632
  placement: "left"
633
633
  }, {
634
634
  content: withCtx(() => [
635
635
  createElementVNode("div", {
636
- innerHTML: _ctx.config.tip
636
+ innerHTML: __props.config.tip
637
637
  }, null, 8, _hoisted_13)
638
638
  ]),
639
639
  default: withCtx(() => [
@@ -655,19 +655,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
655
655
  Fragment,
656
656
  { key: 4 },
657
657
  [
658
- (isValidName() ? _ctx.model[name.value] : _ctx.model) ? (openBlock(true), createElementBlock(
658
+ (isValidName() ? __props.model[name.value] : __props.model) ? (openBlock(true), createElementBlock(
659
659
  Fragment,
660
660
  { key: 0 },
661
661
  renderList(items.value, (item) => {
662
662
  return openBlock(), createBlock(_component_Container, {
663
663
  key: key(item),
664
- model: isValidName() ? _ctx.model[name.value] : _ctx.model,
665
- "last-values": isValidName() ? _ctx.lastValues[name.value] || {} : _ctx.lastValues,
666
- "is-compare": _ctx.isCompare,
664
+ model: isValidName() ? __props.model[name.value] : __props.model,
665
+ "last-values": isValidName() ? __props.lastValues[name.value] || {} : __props.lastValues,
666
+ "is-compare": __props.isCompare,
667
667
  config: item,
668
- size: _ctx.size,
668
+ size: __props.size,
669
669
  disabled: disabled.value,
670
- "step-active": _ctx.stepActive,
670
+ "step-active": __props.stepActive,
671
671
  "expand-more": expand.value,
672
672
  "label-width": itemLabelWidth.value,
673
673
  prop: itemProp.value,
@@ -682,7 +682,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
682
682
  64
683
683
  /* STABLE_FRAGMENT */
684
684
  )) : createCommentVNode("v-if", true),
685
- _ctx.config.expand && type.value !== "fieldset" ? (openBlock(), createElementBlock("div", _hoisted_14, [
685
+ __props.config.expand && type.value !== "fieldset" ? (openBlock(), createElementBlock("div", _hoisted_14, [
686
686
  createVNode(unref(TMagicButton), {
687
687
  type: "primary",
688
688
  size: "small",
@@ -758,7 +758,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
758
758
  const key = (item, index) => item[mForm?.keyProp || "__key"] ?? index;
759
759
  const onAddDiffCount = () => emit("addDiffCount");
760
760
  return (_ctx, _cache) => {
761
- return (name.value ? _ctx.model[name.value] : _ctx.model) ? (openBlock(), createElementBlock(
761
+ return (name.value ? __props.model[name.value] : __props.model) ? (openBlock(), createElementBlock(
762
762
  "fieldset",
763
763
  {
764
764
  key: 0,
@@ -766,25 +766,25 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
766
766
  style: normalizeStyle(show.value ? "padding: 15px" : "border: 0")
767
767
  },
768
768
  [
769
- name.value && _ctx.config.checkbox ? (openBlock(), createBlock(resolveDynamicComponent(!show.value ? "div" : "legend"), { key: 0 }, {
769
+ name.value && __props.config.checkbox ? (openBlock(), createBlock(resolveDynamicComponent(!show.value ? "div" : "legend"), { key: 0 }, {
770
770
  default: withCtx(() => [
771
771
  createVNode(unref(TMagicCheckbox), {
772
- modelValue: _ctx.model[name.value].value,
772
+ modelValue: __props.model[name.value].value,
773
773
  "onUpdate:modelValue": [
774
- _cache[0] || (_cache[0] = ($event) => _ctx.model[name.value].value = $event),
774
+ _cache[0] || (_cache[0] = ($event) => __props.model[name.value].value = $event),
775
775
  valueChangeHandler
776
776
  ],
777
- prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${_ctx.config.name}.value`,
777
+ prop: `${__props.prop}${__props.prop ? "." : ""}${__props.config.name}.value`,
778
778
  "true-value": 1,
779
779
  "false-value": 0
780
780
  }, {
781
781
  default: withCtx(() => [
782
782
  createElementVNode("span", {
783
- innerHTML: _ctx.config.legend
783
+ innerHTML: __props.config.legend
784
784
  }, null, 8, _hoisted_1$d),
785
- _ctx.config.extra ? (openBlock(), createElementBlock("span", {
785
+ __props.config.extra ? (openBlock(), createElementBlock("span", {
786
786
  key: 0,
787
- innerHTML: _ctx.config.extra,
787
+ innerHTML: __props.config.extra,
788
788
  class: "m-form-tip"
789
789
  }, null, 8, _hoisted_2$6)) : createCommentVNode("v-if", true)
790
790
  ]),
@@ -796,31 +796,31 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
796
796
  /* STABLE */
797
797
  })) : (openBlock(), createElementBlock("legend", _hoisted_3$4, [
798
798
  createElementVNode("span", {
799
- innerHTML: _ctx.config.legend
799
+ innerHTML: __props.config.legend
800
800
  }, null, 8, _hoisted_4$2),
801
- _ctx.config.extra ? (openBlock(), createElementBlock("span", {
801
+ __props.config.extra ? (openBlock(), createElementBlock("span", {
802
802
  key: 0,
803
- innerHTML: _ctx.config.extra,
803
+ innerHTML: __props.config.extra,
804
804
  class: "m-form-tip"
805
805
  }, null, 8, _hoisted_5$2)) : createCommentVNode("v-if", true)
806
806
  ])),
807
- _ctx.config.schematic && show.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
807
+ __props.config.schematic && show.value ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
808
808
  createElementVNode("div", _hoisted_7, [
809
809
  (openBlock(true), createElementBlock(
810
810
  Fragment,
811
811
  null,
812
- renderList(_ctx.config.items, (item, index) => {
812
+ renderList(__props.config.items, (item, index) => {
813
813
  return openBlock(), createBlock(_sfc_main$x, {
814
814
  key: key(item, index),
815
- model: name.value ? _ctx.model[name.value] : _ctx.model,
816
- lastValues: name.value ? _ctx.lastValues[name.value] : _ctx.lastValues,
817
- "is-compare": _ctx.isCompare,
818
- rules: name.value ? _ctx.rules[name.value] : [],
815
+ model: name.value ? __props.model[name.value] : __props.model,
816
+ lastValues: name.value ? __props.lastValues[name.value] : __props.lastValues,
817
+ "is-compare": __props.isCompare,
818
+ rules: name.value ? __props.rules[name.value] : [],
819
819
  config: item,
820
- prop: _ctx.prop,
821
- disabled: _ctx.disabled,
820
+ prop: __props.prop,
821
+ disabled: __props.disabled,
822
822
  labelWidth: lWidth.value,
823
- size: _ctx.size,
823
+ size: __props.size,
824
824
  onChange: changeHandler,
825
825
  onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
826
826
  }, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "disabled", "labelWidth", "size"]);
@@ -831,23 +831,23 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
831
831
  ]),
832
832
  createElementVNode("img", {
833
833
  class: "m-form-schematic",
834
- src: _ctx.config.schematic
834
+ src: __props.config.schematic
835
835
  }, null, 8, _hoisted_8)
836
836
  ])) : show.value ? (openBlock(true), createElementBlock(
837
837
  Fragment,
838
838
  { key: 3 },
839
- renderList(_ctx.config.items, (item, index) => {
839
+ renderList(__props.config.items, (item, index) => {
840
840
  return openBlock(), createBlock(_sfc_main$x, {
841
841
  key: key(item, index),
842
- model: name.value ? _ctx.model[name.value] : _ctx.model,
843
- lastValues: name.value ? _ctx.lastValues[name.value] : _ctx.lastValues,
844
- "is-compare": _ctx.isCompare,
845
- rules: name.value ? _ctx.rules[name.value] : [],
842
+ model: name.value ? __props.model[name.value] : __props.model,
843
+ lastValues: name.value ? __props.lastValues[name.value] : __props.lastValues,
844
+ "is-compare": __props.isCompare,
845
+ rules: name.value ? __props.rules[name.value] : [],
846
846
  config: item,
847
- prop: _ctx.prop,
847
+ prop: __props.prop,
848
848
  labelWidth: lWidth.value,
849
- size: _ctx.size,
850
- disabled: _ctx.disabled,
849
+ size: __props.size,
850
+ disabled: __props.disabled,
851
851
  onChange: changeHandler,
852
852
  onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
853
853
  }, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "labelWidth", "size", "disabled"]);
@@ -948,7 +948,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
948
948
  createElementVNode("div", null, [
949
949
  createVNode(unref(TMagicButton), {
950
950
  link: "",
951
- disabled: _ctx.disabled,
951
+ disabled: __props.disabled,
952
952
  onClick: expandHandler
953
953
  }, {
954
954
  default: withCtx(() => [
@@ -973,7 +973,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
973
973
  size: "small",
974
974
  link: "",
975
975
  icon: unref(Delete),
976
- disabled: _ctx.disabled,
976
+ disabled: __props.disabled,
977
977
  onClick: removeHandler
978
978
  }, null, 8, ["icon", "disabled"]), [
979
979
  [vShow, showDelete.value]
@@ -984,7 +984,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
984
984
  size: "small",
985
985
  type: "primary",
986
986
  icon: unref(DocumentCopy),
987
- disabled: _ctx.disabled,
987
+ disabled: __props.disabled,
988
988
  onClick: copyHandler
989
989
  }, {
990
990
  default: withCtx(() => [..._cache[6] || (_cache[6] = [
@@ -1004,7 +1004,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1004
1004
  withDirectives(createVNode(unref(TMagicButton), {
1005
1005
  link: "",
1006
1006
  size: "small",
1007
- disabled: _ctx.disabled,
1007
+ disabled: __props.disabled,
1008
1008
  icon: unref(CaretTop),
1009
1009
  onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
1010
1010
  }, {
@@ -1018,12 +1018,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1018
1018
  _: 1
1019
1019
  /* STABLE */
1020
1020
  }, 8, ["disabled", "icon"]), [
1021
- [vShow, _ctx.index !== 0]
1021
+ [vShow, __props.index !== 0]
1022
1022
  ]),
1023
1023
  withDirectives(createVNode(unref(TMagicButton), {
1024
1024
  link: "",
1025
1025
  size: "small",
1026
- disabled: _ctx.disabled,
1026
+ disabled: __props.disabled,
1027
1027
  icon: unref(CaretBottom),
1028
1028
  onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
1029
1029
  }, {
@@ -1037,13 +1037,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1037
1037
  _: 1
1038
1038
  /* STABLE */
1039
1039
  }, 8, ["disabled", "icon"]), [
1040
- [vShow, _ctx.index !== length.value - 1]
1040
+ [vShow, __props.index !== length.value - 1]
1041
1041
  ])
1042
1042
  ],
1043
1043
  64
1044
1044
  /* STABLE_FRAGMENT */
1045
1045
  )) : createCommentVNode("v-if", true),
1046
- _ctx.config.moveSpecifyLocation ? (openBlock(), createBlock(unref(TMagicPopover), {
1046
+ __props.config.moveSpecifyLocation ? (openBlock(), createBlock(unref(TMagicPopover), {
1047
1047
  key: 2,
1048
1048
  trigger: "click",
1049
1049
  placement: "top",
@@ -1056,7 +1056,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1056
1056
  size: "small",
1057
1057
  type: "primary",
1058
1058
  icon: unref(Position),
1059
- disabled: _ctx.disabled,
1059
+ disabled: __props.disabled,
1060
1060
  onClick: _cache[2] || (_cache[2] = ($event) => moveSpecifyLocationVisible.value = true)
1061
1061
  }, {
1062
1062
  default: withCtx(() => [..._cache[9] || (_cache[9] = [
@@ -1084,7 +1084,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1084
1084
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => moveSpecifyLocationIndex.value = $event),
1085
1085
  size: "small",
1086
1086
  min: 1,
1087
- disabled: _ctx.disabled
1087
+ disabled: __props.disabled
1088
1088
  }, null, 8, ["modelValue", "disabled"]),
1089
1089
  _cache[11] || (_cache[11] = createTextVNode(
1090
1090
  "行 ",
@@ -1138,13 +1138,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1138
1138
  expand.value ? (openBlock(), createBlock(_sfc_main$x, {
1139
1139
  key: 0,
1140
1140
  config: rowConfig.value,
1141
- model: _ctx.model,
1142
- lastValues: _ctx.lastValues,
1143
- "is-compare": _ctx.isCompare,
1144
- labelWidth: _ctx.labelWidth,
1145
- prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${String(_ctx.index)}`,
1146
- size: _ctx.size,
1147
- disabled: _ctx.disabled,
1141
+ model: __props.model,
1142
+ lastValues: __props.lastValues,
1143
+ "is-compare": __props.isCompare,
1144
+ labelWidth: __props.labelWidth,
1145
+ prop: `${__props.prop}${__props.prop ? "." : ""}${String(__props.index)}`,
1146
+ size: __props.size,
1147
+ disabled: __props.disabled,
1148
1148
  onChange: changeHandler,
1149
1149
  onAddDiffCount: _cache[5] || (_cache[5] = ($event) => onAddDiffCount())
1150
1150
  }, null, 8, ["config", "model", "lastValues", "is-compare", "labelWidth", "prop", "size", "disabled"])) : createCommentVNode("v-if", true)
@@ -1250,12 +1250,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1250
1250
  const getLastValues = (item, index) => item?.[index] || {};
1251
1251
  return (_ctx, _cache) => {
1252
1252
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
1253
- _ctx.config.extra ? (openBlock(), createElementBlock("div", {
1253
+ __props.config.extra ? (openBlock(), createElementBlock("div", {
1254
1254
  key: 0,
1255
- innerHTML: _ctx.config.extra,
1255
+ innerHTML: __props.config.extra,
1256
1256
  style: { "color": "rgba(0, 0, 0, 0.45)" }
1257
1257
  }, null, 8, _hoisted_2$4)) : createCommentVNode("v-if", true),
1258
- !_ctx.model[_ctx.name] || !_ctx.model[_ctx.name].length ? (openBlock(), createElementBlock("div", _hoisted_3$2, [..._cache[1] || (_cache[1] = [
1258
+ !__props.model[__props.name] || !__props.model[__props.name].length ? (openBlock(), createElementBlock("div", _hoisted_3$2, [..._cache[1] || (_cache[1] = [
1259
1259
  createElementVNode(
1260
1260
  "span",
1261
1261
  { class: "el-table__empty-text" },
@@ -1266,19 +1266,19 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1266
1266
  ])])) : (openBlock(true), createElementBlock(
1267
1267
  Fragment,
1268
1268
  { key: 2 },
1269
- renderList(_ctx.model[_ctx.name], (item, index) => {
1269
+ renderList(__props.model[__props.name], (item, index) => {
1270
1270
  return openBlock(), createBlock(_sfc_main$v, {
1271
1271
  key: index,
1272
1272
  model: item,
1273
- lastValues: getLastValues(_ctx.lastValues[_ctx.name], index),
1274
- "is-compare": _ctx.isCompare,
1275
- config: _ctx.config,
1276
- prop: _ctx.prop,
1273
+ lastValues: getLastValues(__props.lastValues[__props.name], index),
1274
+ "is-compare": __props.isCompare,
1275
+ config: __props.config,
1276
+ prop: __props.prop,
1277
1277
  index,
1278
- "label-width": _ctx.labelWidth,
1279
- size: _ctx.size,
1280
- disabled: _ctx.disabled,
1281
- "group-model": _ctx.model[_ctx.name],
1278
+ "label-width": __props.labelWidth,
1279
+ size: __props.size,
1280
+ disabled: __props.disabled,
1281
+ "group-model": __props.model[__props.name],
1282
1282
  onRemoveItem: removeHandler,
1283
1283
  onCopyItem: copyHandler,
1284
1284
  onSwapItem: swapHandler,
@@ -1292,8 +1292,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1292
1292
  addable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1293
1293
  key: 3,
1294
1294
  type: "primary",
1295
- size: _ctx.config.enableToggleMode ? "small" : "default",
1296
- disabled: _ctx.disabled,
1295
+ size: __props.config.enableToggleMode ? "small" : "default",
1296
+ disabled: __props.disabled,
1297
1297
  onClick: addHandler
1298
1298
  }, {
1299
1299
  default: withCtx(() => [..._cache[2] || (_cache[2] = [
@@ -1306,7 +1306,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1306
1306
  _: 1
1307
1307
  /* STABLE */
1308
1308
  }, 8, ["size", "disabled"])) : createCommentVNode("v-if", true),
1309
- _ctx.config.enableToggleMode ? (openBlock(), createBlock(unref(TMagicButton), {
1309
+ __props.config.enableToggleMode ? (openBlock(), createBlock(unref(TMagicButton), {
1310
1310
  key: 4,
1311
1311
  icon: unref(Grid),
1312
1312
  size: "small",
@@ -1377,14 +1377,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1377
1377
  icon: expand.value ? unref(CaretBottom) : unref(CaretRight),
1378
1378
  onClick: _cache[0] || (_cache[0] = ($event) => expand.value = !expand.value)
1379
1379
  }, null, 8, ["icon"]),
1380
- _ctx.config && _ctx.config.extra ? (openBlock(), createElementBlock("span", {
1380
+ __props.config && __props.config.extra ? (openBlock(), createElementBlock("span", {
1381
1381
  key: 0,
1382
- innerHTML: _ctx.config.extra,
1382
+ innerHTML: __props.config.extra,
1383
1383
  class: "m-form-tip"
1384
1384
  }, null, 8, _hoisted_2$3)) : createCommentVNode("v-if", true),
1385
1385
  renderSlot(_ctx.$slots, "header", {}, () => [
1386
1386
  createTextVNode(
1387
- toDisplayString(filter(_ctx.config.title)),
1387
+ toDisplayString(filter(__props.config.title)),
1388
1388
  1
1389
1389
  /* TEXT */
1390
1390
  )
@@ -1394,7 +1394,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1394
1394
  default: withCtx(() => [
1395
1395
  createElementVNode("div", null, [
1396
1396
  renderSlot(_ctx.$slots, "default"),
1397
- _ctx.config.schematic ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
1397
+ __props.config.schematic ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
1398
1398
  createElementVNode("div", _hoisted_4$1, [
1399
1399
  (openBlock(true), createElementBlock(
1400
1400
  Fragment,
@@ -1403,13 +1403,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1403
1403
  return openBlock(), createBlock(_sfc_main$x, {
1404
1404
  key: item[unref(mForm)?.keyProp || "__key"] ?? index,
1405
1405
  config: item,
1406
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
1407
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
1408
- "is-compare": _ctx.isCompare,
1409
- prop: _ctx.prop,
1410
- size: _ctx.size,
1411
- disabled: _ctx.disabled,
1412
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
1406
+ model: __props.name ? __props.model[__props.name] : __props.model,
1407
+ lastValues: __props.name ? __props.lastValues[__props.name] : __props.lastValues,
1408
+ "is-compare": __props.isCompare,
1409
+ prop: __props.prop,
1410
+ size: __props.size,
1411
+ disabled: __props.disabled,
1412
+ "label-width": __props.config.labelWidth || __props.labelWidth,
1413
1413
  onChange: changeHandler,
1414
1414
  onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
1415
1415
  }, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
@@ -1420,7 +1420,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1420
1420
  ]),
1421
1421
  createElementVNode("img", {
1422
1422
  class: "m-form-schematic",
1423
- src: _ctx.config.schematic
1423
+ src: __props.config.schematic
1424
1424
  }, null, 8, _hoisted_5$1)
1425
1425
  ])) : (openBlock(true), createElementBlock(
1426
1426
  Fragment,
@@ -1429,13 +1429,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1429
1429
  return openBlock(), createBlock(_sfc_main$x, {
1430
1430
  key: item[unref(mForm)?.keyProp || "__key"] ?? index,
1431
1431
  config: item,
1432
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
1433
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
1434
- "is-compare": _ctx.isCompare,
1435
- prop: _ctx.prop,
1436
- size: _ctx.size,
1437
- disabled: _ctx.disabled,
1438
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
1432
+ model: __props.name ? __props.model[__props.name] : __props.model,
1433
+ lastValues: __props.name ? __props.lastValues[__props.name] : __props.lastValues,
1434
+ "is-compare": __props.isCompare,
1435
+ prop: __props.prop,
1436
+ size: __props.size,
1437
+ disabled: __props.disabled,
1438
+ "label-width": __props.config.labelWidth || __props.labelWidth,
1439
1439
  onChange: changeHandler,
1440
1440
  onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
1441
1441
  }, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
@@ -1478,18 +1478,18 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1478
1478
  const changeHandler = (v, eventData) => emit("change", v, eventData);
1479
1479
  const onAddDiffCount = () => emit("addDiffCount");
1480
1480
  return (_ctx, _cache) => {
1481
- return withDirectives((openBlock(), createBlock(unref(TMagicCol), { span: _ctx.span }, {
1481
+ return withDirectives((openBlock(), createBlock(unref(TMagicCol), { span: __props.span }, {
1482
1482
  default: withCtx(() => [
1483
1483
  createVNode(_sfc_main$x, {
1484
- model: _ctx.model,
1485
- lastValues: _ctx.lastValues,
1486
- "is-compare": _ctx.isCompare,
1487
- config: _ctx.config,
1488
- prop: _ctx.prop,
1489
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
1490
- "expand-more": _ctx.expandMore,
1491
- size: _ctx.size,
1492
- disabled: _ctx.disabled,
1484
+ model: __props.model,
1485
+ lastValues: __props.lastValues,
1486
+ "is-compare": __props.isCompare,
1487
+ config: __props.config,
1488
+ prop: __props.prop,
1489
+ "label-width": __props.config.labelWidth || __props.labelWidth,
1490
+ "expand-more": __props.expandMore,
1491
+ size: __props.size,
1492
+ disabled: __props.disabled,
1493
1493
  onChange: changeHandler,
1494
1494
  onAddDiffCount
1495
1495
  }, null, 8, ["model", "lastValues", "is-compare", "config", "prop", "label-width", "expand-more", "size", "disabled"])
@@ -1497,7 +1497,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1497
1497
  _: 1
1498
1498
  /* STABLE */
1499
1499
  }, 8, ["span"])), [
1500
- [vShow, display$1.value && _ctx.config.type !== "hidden"]
1500
+ [vShow, display$1.value && __props.config.type !== "hidden"]
1501
1501
  ]);
1502
1502
  };
1503
1503
  }
@@ -1535,19 +1535,19 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1535
1535
  (openBlock(true), createElementBlock(
1536
1536
  Fragment,
1537
1537
  null,
1538
- renderList(_ctx.config.items, (col, index) => {
1538
+ renderList(__props.config.items, (col, index) => {
1539
1539
  return openBlock(), createBlock(_sfc_main$s, {
1540
1540
  key: col[unref(mForm)?.keyProp || "__key"] ?? index,
1541
- span: col.span || _ctx.config.span || 24 / _ctx.config.items.length,
1541
+ span: col.span || __props.config.span || 24 / __props.config.items.length,
1542
1542
  config: col,
1543
- labelWidth: _ctx.config.labelWidth || _ctx.labelWidth,
1544
- expandMore: _ctx.expandMore,
1545
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
1546
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
1547
- "is-compare": _ctx.isCompare,
1548
- prop: _ctx.prop,
1549
- size: _ctx.size,
1550
- disabled: _ctx.disabled,
1543
+ labelWidth: __props.config.labelWidth || __props.labelWidth,
1544
+ expandMore: __props.expandMore,
1545
+ model: __props.name ? __props.model[__props.name] : __props.model,
1546
+ lastValues: __props.name ? __props.lastValues[__props.name] : __props.lastValues,
1547
+ "is-compare": __props.isCompare,
1548
+ prop: __props.prop,
1549
+ size: __props.size,
1550
+ disabled: __props.disabled,
1551
1551
  onChange: changeHandler,
1552
1552
  onAddDiffCount
1553
1553
  }, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "lastValues", "is-compare", "prop", "size", "disabled"]);
@@ -1601,13 +1601,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1601
1601
  createVNode(unref(TMagicSteps), {
1602
1602
  active: active.value,
1603
1603
  "align-center": "",
1604
- space: _ctx.config.space
1604
+ space: __props.config.space
1605
1605
  }, {
1606
1606
  default: withCtx(() => [
1607
1607
  (openBlock(true), createElementBlock(
1608
1608
  Fragment,
1609
1609
  null,
1610
- renderList(_ctx.config.items, (item, index) => {
1610
+ renderList(__props.config.items, (item, index) => {
1611
1611
  return openBlock(), createBlock(unref(TMagicStep), {
1612
1612
  key: item.__key,
1613
1613
  title: item.title,
@@ -1625,7 +1625,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1625
1625
  (openBlock(true), createElementBlock(
1626
1626
  Fragment,
1627
1627
  null,
1628
- renderList(_ctx.config.items, (step, index) => {
1628
+ renderList(__props.config.items, (step, index) => {
1629
1629
  return openBlock(), createElementBlock(
1630
1630
  Fragment,
1631
1631
  null,
@@ -1641,13 +1641,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1641
1641
  item ? withDirectives((openBlock(), createBlock(_sfc_main$x, {
1642
1642
  key: item[unref(mForm)?.keyProp || "__key"],
1643
1643
  config: item,
1644
- model: step.name ? _ctx.model[step.name] : _ctx.model,
1645
- lastValues: step.name ? _ctx.lastValues[step.name] : _ctx.lastValues,
1646
- "is-compare": _ctx.isCompare,
1644
+ model: step.name ? __props.model[step.name] : __props.model,
1645
+ lastValues: step.name ? __props.lastValues[step.name] : __props.lastValues,
1646
+ "is-compare": __props.isCompare,
1647
1647
  prop: `${step.name}`,
1648
- size: _ctx.size,
1649
- disabled: _ctx.disabled,
1650
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
1648
+ size: __props.size,
1649
+ disabled: __props.disabled,
1650
+ "label-width": __props.config.labelWidth || __props.labelWidth,
1651
1651
  onChange: changeHandler,
1652
1652
  onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
1653
1653
  }, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"])), [
@@ -2070,36 +2070,36 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2070
2070
  {
2071
2071
  ref_key: "mTable",
2072
2072
  ref: mTable,
2073
- class: normalizeClass(["m-fields-table", { "m-fields-table-item-extra": _ctx.config.itemExtra }])
2073
+ class: normalizeClass(["m-fields-table", { "m-fields-table-item-extra": __props.config.itemExtra }])
2074
2074
  },
2075
2075
  [
2076
- _ctx.config.extra ? (openBlock(), createElementBlock("span", {
2076
+ __props.config.extra ? (openBlock(), createElementBlock("span", {
2077
2077
  key: 0,
2078
2078
  style: { "color": "rgba(0, 0, 0, 0.45)" },
2079
- innerHTML: _ctx.config.extra
2079
+ innerHTML: __props.config.extra
2080
2080
  }, null, 8, _hoisted_2$2)) : createCommentVNode("v-if", true),
2081
2081
  createVNode(unref(TMagicTooltip), {
2082
2082
  content: "拖拽可排序",
2083
2083
  placement: "left-start",
2084
- disabled: _ctx.config.dropSort !== true
2084
+ disabled: __props.config.dropSort !== true
2085
2085
  }, {
2086
2086
  default: withCtx(() => [
2087
- _ctx.model[modelName.value] ? (openBlock(), createBlock(unref(TMagicTable), {
2087
+ __props.model[modelName.value] ? (openBlock(), createBlock(unref(TMagicTable), {
2088
2088
  ref_key: "tMagicTable",
2089
2089
  ref: tMagicTable,
2090
2090
  style: { "width": "100%" },
2091
- "row-key": _ctx.config.rowKey || "id",
2091
+ "row-key": __props.config.rowKey || "id",
2092
2092
  data: data.value,
2093
2093
  lastData: lastData.value,
2094
- border: _ctx.config.border,
2095
- "max-height": _ctx.config.maxHeight,
2094
+ border: __props.config.border,
2095
+ "max-height": __props.config.maxHeight,
2096
2096
  "default-expand-all": true,
2097
2097
  key: updateKey.value,
2098
2098
  onSelect: selectHandle,
2099
2099
  onSortChange: sortChange
2100
2100
  }, {
2101
2101
  default: withCtx(() => [
2102
- _ctx.config.itemExtra && !_ctx.config.dropSort ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2102
+ __props.config.itemExtra && !__props.config.dropSort ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2103
2103
  key: 0,
2104
2104
  fixed: "left",
2105
2105
  width: "30",
@@ -2107,7 +2107,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2107
2107
  }, {
2108
2108
  default: withCtx((scope) => [
2109
2109
  createElementVNode("span", {
2110
- innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
2110
+ innerHTML: itemExtra(__props.config.itemExtra, scope.$index),
2111
2111
  class: "m-form-tip"
2112
2112
  }, null, 8, _hoisted_3)
2113
2113
  ]),
@@ -2116,9 +2116,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2116
2116
  })) : createCommentVNode("v-if", true),
2117
2117
  createVNode(unref(TMagicTableColumn), {
2118
2118
  label: "操作",
2119
- width: _ctx.config.operateColWidth || 100,
2119
+ width: __props.config.operateColWidth || 100,
2120
2120
  align: "center",
2121
- fixed: _ctx.config.fixed === false ? void 0 : "left"
2121
+ fixed: __props.config.fixed === false ? void 0 : "left"
2122
2122
  }, {
2123
2123
  default: withCtx((scope) => [
2124
2124
  renderSlot(_ctx.$slots, "operateCol", { scope }),
@@ -2139,14 +2139,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2139
2139
  type: "primary",
2140
2140
  title: "复制",
2141
2141
  icon: unref(DocumentCopy),
2142
- disabled: _ctx.disabled,
2142
+ disabled: __props.disabled,
2143
2143
  onClick: ($event) => copyHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
2144
2144
  }, null, 8, ["icon", "disabled", "onClick"])) : createCommentVNode("v-if", true)
2145
2145
  ]),
2146
2146
  _: 3
2147
2147
  /* FORWARDED */
2148
2148
  }, 8, ["width", "fixed"]),
2149
- _ctx.sort && _ctx.model[modelName.value] && _ctx.model[modelName.value].length > 1 ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2149
+ __props.sort && __props.model[modelName.value] && __props.model[modelName.value].length > 1 ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2150
2150
  key: 1,
2151
2151
  label: "排序",
2152
2152
  width: "60"
@@ -2166,7 +2166,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2166
2166
  size: "small",
2167
2167
  type: "primary",
2168
2168
  icon: unref(ArrowUp),
2169
- disabled: _ctx.disabled,
2169
+ disabled: __props.disabled,
2170
2170
  link: "",
2171
2171
  onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
2172
2172
  onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
@@ -2178,7 +2178,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2178
2178
  1024
2179
2179
  /* DYNAMIC_SLOTS */
2180
2180
  )) : createCommentVNode("v-if", true),
2181
- scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (openBlock(), createBlock(
2181
+ scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== __props.model[modelName.value].length - 1 ? (openBlock(), createBlock(
2182
2182
  unref(TMagicTooltip),
2183
2183
  {
2184
2184
  key: 1,
@@ -2192,7 +2192,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2192
2192
  size: "small",
2193
2193
  type: "primary",
2194
2194
  icon: unref(ArrowDown),
2195
- disabled: _ctx.disabled,
2195
+ disabled: __props.disabled,
2196
2196
  link: "",
2197
2197
  onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
2198
2198
  onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
@@ -2215,7 +2215,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2215
2215
  type: "selection",
2216
2216
  width: "45"
2217
2217
  })) : createCommentVNode("v-if", true),
2218
- _ctx.showIndex && _ctx.config.showIndex ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2218
+ __props.showIndex && __props.config.showIndex ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2219
2219
  key: 3,
2220
2220
  width: "60",
2221
2221
  label: "序号"
@@ -2233,7 +2233,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2233
2233
  (openBlock(true), createElementBlock(
2234
2234
  Fragment,
2235
2235
  null,
2236
- renderList(_ctx.config.items, (column, index) => {
2236
+ renderList(__props.config.items, (column, index) => {
2237
2237
  return openBlock(), createElementBlock(
2238
2238
  Fragment,
2239
2239
  null,
@@ -2245,20 +2245,20 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2245
2245
  sortable: column.sortable,
2246
2246
  "sort-orders": ["ascending", "descending"],
2247
2247
  key: column[unref(mForm)?.keyProp || "__key"] ?? index,
2248
- "class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
2248
+ "class-name": __props.config.dropSort === true ? "el-table__column--dropable" : ""
2249
2249
  }, {
2250
2250
  default: withCtx((scope) => [
2251
2251
  scope.$index > -1 ? (openBlock(), createBlock(_sfc_main$x, {
2252
2252
  key: 0,
2253
2253
  labelWidth: "0",
2254
- disabled: _ctx.disabled,
2254
+ disabled: __props.disabled,
2255
2255
  prop: getProp(scope.$index),
2256
2256
  rules: column.rules,
2257
2257
  config: makeConfig(column, scope.row),
2258
2258
  model: scope.row,
2259
2259
  lastValues: lastData.value[scope.$index],
2260
- "is-compare": _ctx.isCompare,
2261
- size: _ctx.size,
2260
+ "is-compare": __props.isCompare,
2261
+ size: __props.size,
2262
2262
  onChange: changeHandler,
2263
2263
  onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
2264
2264
  }, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : createCommentVNode("v-if", true)
@@ -2288,7 +2288,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2288
2288
  key: 0,
2289
2289
  size: "small",
2290
2290
  type: "primary",
2291
- disabled: _ctx.disabled,
2291
+ disabled: __props.disabled,
2292
2292
  plain: "",
2293
2293
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
2294
2294
  }, {
@@ -2303,7 +2303,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2303
2303
  /* STABLE */
2304
2304
  }, 8, ["disabled"])) : createCommentVNode("v-if", true),
2305
2305
  createElementVNode("div", _hoisted_5, [
2306
- _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (openBlock(), createBlock(unref(TMagicButton), {
2306
+ __props.enableToggleMode && __props.config.enableToggleMode !== false && !isFullscreen.value ? (openBlock(), createBlock(unref(TMagicButton), {
2307
2307
  key: 0,
2308
2308
  icon: unref(Grid),
2309
2309
  size: "small",
@@ -2320,7 +2320,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2320
2320
  _: 1
2321
2321
  /* STABLE */
2322
2322
  }, 8, ["icon"])) : createCommentVNode("v-if", true),
2323
- _ctx.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
2323
+ __props.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
2324
2324
  key: 1,
2325
2325
  icon: unref(FullScreen),
2326
2326
  size: "small",
@@ -2343,7 +2343,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2343
2343
  ref_key: "excelBtn",
2344
2344
  ref: excelBtn,
2345
2345
  action: "/noop",
2346
- disabled: _ctx.disabled,
2346
+ disabled: __props.disabled,
2347
2347
  "on-change": excelHandler,
2348
2348
  "auto-upload": false
2349
2349
  }, {
@@ -2351,7 +2351,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2351
2351
  createVNode(unref(TMagicButton), {
2352
2352
  size: "small",
2353
2353
  type: "success",
2354
- disabled: _ctx.disabled,
2354
+ disabled: __props.disabled,
2355
2355
  plain: ""
2356
2356
  }, {
2357
2357
  default: withCtx(() => [..._cache[5] || (_cache[5] = [
@@ -2372,7 +2372,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2372
2372
  key: 3,
2373
2373
  size: "small",
2374
2374
  type: "warning",
2375
- disabled: _ctx.disabled,
2375
+ disabled: __props.disabled,
2376
2376
  plain: "",
2377
2377
  onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
2378
2378
  }, {
@@ -2388,14 +2388,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2388
2388
  }, 8, ["disabled"])) : createCommentVNode("v-if", true)
2389
2389
  ])
2390
2390
  ]),
2391
- _ctx.config.pagination ? (openBlock(), createElementBlock("div", _hoisted_6, [
2391
+ __props.config.pagination ? (openBlock(), createElementBlock("div", _hoisted_6, [
2392
2392
  createVNode(unref(TMagicPagination), {
2393
2393
  layout: "total, sizes, prev, pager, next, jumper",
2394
- "hide-on-single-page": _ctx.model[modelName.value].length < pagesize.value,
2394
+ "hide-on-single-page": __props.model[modelName.value].length < pagesize.value,
2395
2395
  "current-page": pagecontext.value + 1,
2396
2396
  "page-sizes": [pagesize.value, 60, 120, 300],
2397
2397
  "page-size": pagesize.value,
2398
- total: _ctx.model[modelName.value].length,
2398
+ total: __props.model[modelName.value].length,
2399
2399
  onSizeChange: handleSizeChange,
2400
2400
  onCurrentChange: handleCurrentChange
2401
2401
  }, null, 8, ["hide-on-single-page", "current-page", "page-sizes", "page-size", "total"])
@@ -2536,12 +2536,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2536
2536
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeTabName.value = $event)
2537
2537
  },
2538
2538
  unref(tabsComponent)?.props({
2539
- type: _ctx.config.tabType,
2540
- editable: _ctx.config.editable || false,
2541
- tabPosition: _ctx.config.tabPosition || "top"
2539
+ type: __props.config.tabType,
2540
+ editable: __props.config.editable || false,
2541
+ tabPosition: __props.config.tabPosition || "top"
2542
2542
  }) || {},
2543
2543
  {
2544
- class: `tmagic-design-tabs ${_ctx.config.dynamic ? "magic-form-dynamic-tab" : "magic-form-tab"}`,
2544
+ class: `tmagic-design-tabs ${__props.config.dynamic ? "magic-form-dynamic-tab" : "magic-form-tab"}`,
2545
2545
  onTabClick: tabClickHandler,
2546
2546
  onTabAdd,
2547
2547
  onTabRemove
@@ -2584,14 +2584,14 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2584
2584
  return openBlock(), createBlock(_sfc_main$x, {
2585
2585
  key: item[unref(mForm)?.keyProp || "__key"],
2586
2586
  config: item,
2587
- disabled: _ctx.disabled,
2588
- model: _ctx.config.dynamic ? (_ctx.name ? _ctx.model[_ctx.name] : _ctx.model)[tabIndex] : tab.name ? (_ctx.name ? _ctx.model[_ctx.name] : _ctx.model)[tab.name] : _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
2589
- "last-values": unref(isEmpty)(_ctx.lastValues) ? {} : _ctx.config.dynamic ? (_ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues)[tabIndex] : tab.name ? (_ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues)[tab.name] : _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
2590
- "is-compare": _ctx.isCompare,
2591
- prop: _ctx.config.dynamic ? `${_ctx.prop}${_ctx.prop ? "." : ""}${String(tabIndex)}` : _ctx.prop,
2592
- size: _ctx.size,
2593
- "label-width": tab.labelWidth || _ctx.labelWidth,
2594
- "expand-more": _ctx.expandMore,
2587
+ disabled: __props.disabled,
2588
+ 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,
2589
+ "last-values": unref(isEmpty)(__props.lastValues) ? {} : __props.config.dynamic ? (__props.name ? __props.lastValues[__props.name] : __props.lastValues)[tabIndex] : tab.name ? (__props.name ? __props.lastValues[__props.name] : __props.lastValues)[tab.name] : __props.name ? __props.lastValues[__props.name] : __props.lastValues,
2590
+ "is-compare": __props.isCompare,
2591
+ prop: __props.config.dynamic ? `${__props.prop}${__props.prop ? "." : ""}${String(tabIndex)}` : __props.prop,
2592
+ size: __props.size,
2593
+ "label-width": tab.labelWidth || __props.labelWidth,
2594
+ "expand-more": __props.expandMore,
2595
2595
  onChange: changeHandler,
2596
2596
  onAddDiffCount: ($event) => onAddDiffCount(tabIndex)
2597
2597
  }, null, 8, ["config", "disabled", "model", "last-values", "is-compare", "prop", "size", "label-width", "expand-more", "onAddDiffCount"]);
@@ -2748,14 +2748,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2748
2748
  style: { "width": "100%" },
2749
2749
  clearable: "",
2750
2750
  filterable: "",
2751
- size: _ctx.size,
2752
- placeholder: _ctx.config.placeholder,
2753
- disabled: _ctx.disabled,
2751
+ size: __props.size,
2752
+ placeholder: __props.config.placeholder,
2753
+ disabled: __props.disabled,
2754
2754
  options: options.value,
2755
- "popper-class": _ctx.config.popperClass,
2755
+ "popper-class": __props.config.popperClass,
2756
2756
  props: {
2757
- multiple: _ctx.config.multiple ?? false,
2758
- emitPath: _ctx.config.emitPath ?? true,
2757
+ multiple: __props.config.multiple ?? false,
2758
+ emitPath: __props.config.emitPath ?? true,
2759
2759
  checkStrictly: checkStrictly.value ?? false
2760
2760
  },
2761
2761
  onChange: changeHandler
@@ -2810,17 +2810,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2810
2810
  };
2811
2811
  return (_ctx, _cache) => {
2812
2812
  return openBlock(), createBlock(unref(TMagicCheckbox), {
2813
- modelValue: _ctx.model[_ctx.name],
2814
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
2815
- size: _ctx.size,
2813
+ modelValue: __props.model[__props.name],
2814
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
2815
+ size: __props.size,
2816
2816
  trueValue: activeValue.value,
2817
2817
  falseValue: inactiveValue.value,
2818
- disabled: _ctx.disabled,
2818
+ disabled: __props.disabled,
2819
2819
  onChange: changeHandler
2820
2820
  }, {
2821
2821
  default: withCtx(() => [
2822
2822
  createTextVNode(
2823
- toDisplayString(_ctx.config.text),
2823
+ toDisplayString(__props.config.text),
2824
2824
  1
2825
2825
  /* TEXT */
2826
2826
  )
@@ -2868,10 +2868,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2868
2868
  });
2869
2869
  return (_ctx, _cache) => {
2870
2870
  return openBlock(), createBlock(unref(TMagicCheckboxGroup), {
2871
- modelValue: _ctx.model[_ctx.name],
2872
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
2873
- size: _ctx.size,
2874
- disabled: _ctx.disabled,
2871
+ modelValue: __props.model[__props.name],
2872
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
2873
+ size: __props.size,
2874
+ disabled: __props.disabled,
2875
2875
  onChange: changeHandler
2876
2876
  }, {
2877
2877
  default: withCtx(() => [
@@ -2930,10 +2930,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2930
2930
  const changeHandler = (value) => emit("change", value);
2931
2931
  return (_ctx, _cache) => {
2932
2932
  return openBlock(), createBlock(unref(TMagicColorPicker), {
2933
- modelValue: _ctx.model[_ctx.name],
2934
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
2935
- size: _ctx.size,
2936
- disabled: _ctx.disabled,
2933
+ modelValue: __props.model[__props.name],
2934
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
2935
+ size: __props.size,
2936
+ disabled: __props.disabled,
2937
2937
  showAlpha: true,
2938
2938
  onChange: changeHandler
2939
2939
  }, null, 8, ["modelValue", "size", "disabled"]);
@@ -2968,14 +2968,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2968
2968
  };
2969
2969
  return (_ctx, _cache) => {
2970
2970
  return openBlock(), createBlock(unref(TMagicDatePicker), {
2971
- modelValue: _ctx.model[_ctx.name],
2972
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
2971
+ modelValue: __props.model[__props.name],
2972
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
2973
2973
  type: "date",
2974
- size: _ctx.size,
2975
- placeholder: _ctx.config.placeholder,
2976
- disabled: _ctx.disabled,
2977
- format: _ctx.config.format || "YYYY/MM/DD",
2978
- "value-format": _ctx.config.valueFormat || "YYYY/MM/DD",
2974
+ size: __props.size,
2975
+ placeholder: __props.config.placeholder,
2976
+ disabled: __props.disabled,
2977
+ format: __props.config.format || "YYYY/MM/DD",
2978
+ "value-format": __props.config.valueFormat || "YYYY/MM/DD",
2979
2979
  onChange: changeHandler
2980
2980
  }, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format"]);
2981
2981
  };
@@ -3069,13 +3069,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
3069
3069
  "range-separator": "-",
3070
3070
  "start-placeholder": "开始日期",
3071
3071
  "end-placeholder": "结束日期",
3072
- size: _ctx.size,
3072
+ size: __props.size,
3073
3073
  "unlink-panels": true,
3074
- disabled: _ctx.disabled,
3075
- "default-time": _ctx.config.defaultTime,
3076
- "value-format": _ctx.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
3077
- "date-format": _ctx.config.dateFormat || "YYYY/MM/DD",
3078
- "time-format": _ctx.config.timeFormat || "HH:mm:ss",
3074
+ disabled: __props.disabled,
3075
+ "default-time": __props.config.defaultTime,
3076
+ "value-format": __props.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
3077
+ "date-format": __props.config.dateFormat || "YYYY/MM/DD",
3078
+ "time-format": __props.config.timeFormat || "HH:mm:ss",
3079
3079
  onChange: changeHandler
3080
3080
  }, null, 8, ["modelValue", "size", "disabled", "default-time", "value-format", "date-format", "time-format"]);
3081
3081
  };
@@ -3120,16 +3120,16 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3120
3120
  };
3121
3121
  return (_ctx, _cache) => {
3122
3122
  return openBlock(), createBlock(unref(TMagicDatePicker), {
3123
- modelValue: _ctx.model[_ctx.name],
3124
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
3123
+ modelValue: __props.model[__props.name],
3124
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
3125
3125
  "popper-class": "magic-datetime-picker-popper",
3126
3126
  type: "datetime",
3127
- size: _ctx.size,
3128
- placeholder: _ctx.config.placeholder,
3129
- disabled: _ctx.disabled,
3130
- format: _ctx.config.format || "YYYY/MM/DD HH:mm:ss",
3131
- "value-format": _ctx.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
3132
- "default-time": _ctx.config.defaultTime,
3127
+ size: __props.size,
3128
+ placeholder: __props.config.placeholder,
3129
+ disabled: __props.disabled,
3130
+ format: __props.config.format || "YYYY/MM/DD HH:mm:ss",
3131
+ "value-format": __props.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
3132
+ "default-time": __props.config.defaultTime,
3133
3133
  onChange: changeHandler
3134
3134
  }, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time"]);
3135
3135
  };
@@ -3160,10 +3160,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3160
3160
  }
3161
3161
  useAddField(props.prop);
3162
3162
  return (_ctx, _cache) => {
3163
- return _ctx.model ? (openBlock(), createElementBlock(
3163
+ return __props.model ? (openBlock(), createElementBlock(
3164
3164
  "span",
3165
3165
  _hoisted_1$8,
3166
- toDisplayString(_ctx.model[_ctx.name]),
3166
+ toDisplayString(__props.model[__props.name]),
3167
3167
  1
3168
3168
  /* TEXT */
3169
3169
  )) : createCommentVNode("v-if", true);
@@ -3293,18 +3293,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3293
3293
  const props = __props;
3294
3294
  useAddField(props.prop);
3295
3295
  return (_ctx, _cache) => {
3296
- return _ctx.model ? withDirectives((openBlock(), createElementBlock(
3296
+ return __props.model ? withDirectives((openBlock(), createElementBlock(
3297
3297
  "input",
3298
3298
  {
3299
3299
  key: 0,
3300
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
3300
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
3301
3301
  type: "hidden"
3302
3302
  },
3303
3303
  null,
3304
3304
  512
3305
3305
  /* NEED_PATCH */
3306
3306
  )), [
3307
- [vModelText, _ctx.model[_ctx.name]]
3307
+ [vModelText, __props.model[__props.name]]
3308
3308
  ]) : createCommentVNode("v-if", true);
3309
3309
  };
3310
3310
  }
@@ -3458,27 +3458,27 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3458
3458
  ref_key: "tMagicForm",
3459
3459
  ref: tMagicForm,
3460
3460
  model: values.value,
3461
- "label-width": _ctx.labelWidth,
3462
- style: normalizeStyle(`height: ${_ctx.height}`),
3463
- inline: _ctx.inline,
3464
- "label-position": _ctx.labelPosition,
3461
+ "label-width": __props.labelWidth,
3462
+ style: normalizeStyle(`height: ${__props.height}`),
3463
+ inline: __props.inline,
3464
+ "label-position": __props.labelPosition,
3465
3465
  onSubmit: submitHandler
3466
3466
  }, {
3467
3467
  default: withCtx(() => [
3468
- initialized.value && Array.isArray(_ctx.config) ? (openBlock(true), createElementBlock(
3468
+ initialized.value && Array.isArray(__props.config) ? (openBlock(true), createElementBlock(
3469
3469
  Fragment,
3470
3470
  { key: 0 },
3471
- renderList(_ctx.config, (item, index) => {
3471
+ renderList(__props.config, (item, index) => {
3472
3472
  return openBlock(), createBlock(_sfc_main$x, {
3473
- disabled: _ctx.disabled,
3474
- key: item[_ctx.keyProp] ?? index,
3473
+ disabled: __props.disabled,
3474
+ key: item[__props.keyProp] ?? index,
3475
3475
  config: item,
3476
3476
  model: values.value,
3477
3477
  "last-values": lastValuesProcessed.value,
3478
- "is-compare": _ctx.isCompare,
3479
- "label-width": item.labelWidth || _ctx.labelWidth,
3480
- "step-active": _ctx.stepActive,
3481
- size: _ctx.size,
3478
+ "is-compare": __props.isCompare,
3479
+ "label-width": item.labelWidth || __props.labelWidth,
3480
+ "step-active": __props.stepActive,
3481
+ size: __props.size,
3482
3482
  onChange: changeHandler
3483
3483
  }, null, 8, ["disabled", "config", "model", "last-values", "is-compare", "label-width", "step-active", "size"]);
3484
3484
  }),
@@ -3588,10 +3588,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3588
3588
  class: "m-form-dialog",
3589
3589
  top: "20px",
3590
3590
  "append-to-body": "",
3591
- title: _ctx.title,
3592
- width: _ctx.width,
3593
- zIndex: _ctx.zIndex,
3594
- fullscreen: _ctx.fullscreen,
3591
+ title: __props.title,
3592
+ width: __props.width,
3593
+ zIndex: __props.zIndex,
3594
+ fullscreen: __props.fullscreen,
3595
3595
  "close-on-click-modal": false,
3596
3596
  onClose: closeHandler
3597
3597
  }, {
@@ -3662,13 +3662,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3662
3662
  key: 2,
3663
3663
  type: "primary",
3664
3664
  size: "small",
3665
- disabled: _ctx.disabled,
3665
+ disabled: __props.disabled,
3666
3666
  loading: saveFetch.value,
3667
3667
  onClick: save
3668
3668
  }, {
3669
3669
  default: withCtx(() => [
3670
3670
  createTextVNode(
3671
- toDisplayString(_ctx.confirmText),
3671
+ toDisplayString(__props.confirmText),
3672
3672
  1
3673
3673
  /* TEXT */
3674
3674
  )
@@ -3700,15 +3700,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3700
3700
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => stepActive.value = $event),
3701
3701
  ref_key: "form",
3702
3702
  ref: form,
3703
- size: _ctx.size,
3704
- disabled: _ctx.disabled,
3705
- config: _ctx.config,
3706
- "init-values": _ctx.values,
3707
- "parent-values": _ctx.parentValues,
3708
- "label-width": _ctx.labelWidth,
3709
- "label-position": _ctx.labelPosition,
3710
- inline: _ctx.inline,
3711
- "prevent-submit-default": _ctx.preventSubmitDefault,
3703
+ size: __props.size,
3704
+ disabled: __props.disabled,
3705
+ config: __props.config,
3706
+ "init-values": __props.values,
3707
+ "parent-values": __props.parentValues,
3708
+ "label-width": __props.labelWidth,
3709
+ "label-position": __props.labelPosition,
3710
+ inline: __props.inline,
3711
+ "prevent-submit-default": __props.preventSubmitDefault,
3712
3712
  onChange: changeHandler
3713
3713
  }, null, 8, ["modelValue", "size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
3714
3714
  renderSlot(_ctx.$slots, "default")
@@ -3793,16 +3793,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3793
3793
  editor.value && (editor.value.dialogVisible = false);
3794
3794
  };
3795
3795
  return (_ctx, _cache) => {
3796
- return _ctx.config.href && !_ctx.disabled ? (openBlock(), createElementBlock("a", {
3796
+ return __props.config.href && !__props.disabled ? (openBlock(), createElementBlock("a", {
3797
3797
  key: 0,
3798
3798
  target: "_blank",
3799
3799
  href: href.value,
3800
- style: normalizeStyle(_ctx.config.css || {})
3801
- }, toDisplayString(displayText.value), 13, _hoisted_1$5)) : _ctx.config.href && _ctx.disabled ? (openBlock(), createElementBlock(
3800
+ style: normalizeStyle(__props.config.css || {})
3801
+ }, toDisplayString(displayText.value), 13, _hoisted_1$5)) : __props.config.href && __props.disabled ? (openBlock(), createElementBlock(
3802
3802
  "span",
3803
3803
  {
3804
3804
  key: 1,
3805
- style: normalizeStyle(_ctx.config.disabledCss || {})
3805
+ style: normalizeStyle(__props.config.disabledCss || {})
3806
3806
  },
3807
3807
  toDisplayString(displayText.value),
3808
3808
  5
@@ -3826,12 +3826,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3826
3826
  createVNode(_sfc_main$c, {
3827
3827
  ref_key: "editor",
3828
3828
  ref: editor,
3829
- title: _ctx.config.formTitle || "编辑扩展配置",
3830
- width: _ctx.config.formWidth,
3829
+ title: __props.config.formTitle || "编辑扩展配置",
3830
+ width: __props.config.formWidth,
3831
3831
  values: formValue.value,
3832
3832
  config: formConfig.value,
3833
- parentValues: _ctx.values,
3834
- fullscreen: _ctx.config.fullscreen,
3833
+ parentValues: __props.values,
3834
+ fullscreen: __props.config.fullscreen,
3835
3835
  onSubmit: action
3836
3836
  }, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen"])
3837
3837
  ]));
@@ -3869,18 +3869,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3869
3869
  mForm?.$emit("field-input", props.prop, v);
3870
3870
  };
3871
3871
  return (_ctx, _cache) => {
3872
- return _ctx.model ? (openBlock(), createBlock(unref(TMagicInputNumber), {
3872
+ return __props.model ? (openBlock(), createBlock(unref(TMagicInputNumber), {
3873
3873
  key: 0,
3874
- modelValue: _ctx.model[_ctx.name],
3875
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
3874
+ modelValue: __props.model[__props.name],
3875
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
3876
3876
  clearable: "",
3877
3877
  "controls-position": "right",
3878
- size: _ctx.size,
3879
- max: _ctx.config.max,
3880
- min: _ctx.config.min,
3881
- step: _ctx.config.step,
3882
- placeholder: _ctx.config.placeholder,
3883
- disabled: _ctx.disabled,
3878
+ size: __props.size,
3879
+ max: __props.config.max,
3880
+ min: __props.config.min,
3881
+ step: __props.config.step,
3882
+ placeholder: __props.config.placeholder,
3883
+ disabled: __props.disabled,
3884
3884
  onChange: changeHandler,
3885
3885
  onInput: inputHandler
3886
3886
  }, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled"])) : createCommentVNode("v-if", true);
@@ -3922,11 +3922,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3922
3922
  return (_ctx, _cache) => {
3923
3923
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
3924
3924
  createVNode(unref(TMagicInput), {
3925
- modelValue: _ctx.model[_ctx.name][0],
3926
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name][0] = $event),
3925
+ modelValue: __props.model[__props.name][0],
3926
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name][0] = $event),
3927
3927
  clearable: "",
3928
- size: _ctx.size,
3929
- disabled: _ctx.disabled,
3928
+ size: __props.size,
3929
+ disabled: __props.disabled,
3930
3930
  onChange: minChangeHandler
3931
3931
  }, null, 8, ["modelValue", "size", "disabled"]),
3932
3932
  _cache[2] || (_cache[2] = createElementVNode(
@@ -3937,11 +3937,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3937
3937
  /* CACHED */
3938
3938
  )),
3939
3939
  createVNode(unref(TMagicInput), {
3940
- modelValue: _ctx.model[_ctx.name][1],
3941
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.model[_ctx.name][1] = $event),
3940
+ modelValue: __props.model[__props.name][1],
3941
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.model[__props.name][1] = $event),
3942
3942
  clearable: "",
3943
- size: _ctx.size,
3944
- disabled: _ctx.disabled,
3943
+ size: __props.size,
3944
+ disabled: __props.disabled,
3945
3945
  onChange: maxChangeHandler
3946
3946
  }, null, 8, ["modelValue", "size", "disabled"])
3947
3947
  ]);
@@ -3979,19 +3979,28 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3979
3979
  changeHandler(props.model[props.name]);
3980
3980
  };
3981
3981
  useAddField(props.prop);
3982
+ const iconSize = computed(() => {
3983
+ if (props.size === "small") {
3984
+ return "12";
3985
+ }
3986
+ if (props.size === "large") {
3987
+ return "16";
3988
+ }
3989
+ return "14";
3990
+ });
3982
3991
  return (_ctx, _cache) => {
3983
- return _ctx.model ? (openBlock(), createBlock(unref(TMagicRadioGroup), {
3992
+ return __props.model ? (openBlock(), createBlock(unref(TMagicRadioGroup), {
3984
3993
  key: 0,
3985
- modelValue: _ctx.model[_ctx.name],
3986
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
3987
- size: _ctx.size,
3988
- disabled: _ctx.disabled
3994
+ modelValue: __props.model[__props.name],
3995
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
3996
+ size: __props.size,
3997
+ disabled: __props.disabled
3989
3998
  }, {
3990
3999
  default: withCtx(() => [
3991
4000
  (openBlock(true), createElementBlock(
3992
4001
  Fragment,
3993
4002
  null,
3994
- renderList(_ctx.config.options, (option) => {
4003
+ renderList(__props.config.options, (option) => {
3995
4004
  return openBlock(), createBlock(resolveDynamicComponent(itemComponent.value), {
3996
4005
  value: option.value,
3997
4006
  key: `${option.value}`,
@@ -4005,22 +4014,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4005
4014
  }, {
4006
4015
  default: withCtx(() => [
4007
4016
  createElementVNode("div", null, [
4008
- option.icon ? (openBlock(), createBlock(
4009
- unref(TMagicIcon),
4010
- {
4011
- key: 0,
4012
- size: "16"
4013
- },
4014
- {
4015
- default: withCtx(() => [
4016
- (openBlock(), createBlock(resolveDynamicComponent(option.icon)))
4017
- ]),
4018
- _: 2
4019
- /* DYNAMIC */
4020
- },
4021
- 1024
4022
- /* DYNAMIC_SLOTS */
4023
- )) : createCommentVNode("v-if", true),
4017
+ option.icon ? (openBlock(), createBlock(unref(TMagicIcon), {
4018
+ key: 0,
4019
+ size: iconSize.value
4020
+ }, {
4021
+ default: withCtx(() => [
4022
+ (openBlock(), createBlock(resolveDynamicComponent(option.icon)))
4023
+ ]),
4024
+ _: 2
4025
+ /* DYNAMIC */
4026
+ }, 1032, ["size"])) : createCommentVNode("v-if", true),
4024
4027
  createElementVNode(
4025
4028
  "span",
4026
4029
  null,
@@ -4033,22 +4036,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4033
4036
  _: 2
4034
4037
  /* DYNAMIC */
4035
4038
  }, 1032, ["content"])) : (openBlock(), createElementBlock("div", _hoisted_1$3, [
4036
- option.icon ? (openBlock(), createBlock(
4037
- unref(TMagicIcon),
4038
- {
4039
- key: 0,
4040
- size: "16"
4041
- },
4042
- {
4043
- default: withCtx(() => [
4044
- (openBlock(), createBlock(resolveDynamicComponent(option.icon)))
4045
- ]),
4046
- _: 2
4047
- /* DYNAMIC */
4048
- },
4049
- 1024
4050
- /* DYNAMIC_SLOTS */
4051
- )) : createCommentVNode("v-if", true),
4039
+ option.icon ? (openBlock(), createBlock(unref(TMagicIcon), {
4040
+ key: 0,
4041
+ size: iconSize.value
4042
+ }, {
4043
+ default: withCtx(() => [
4044
+ (openBlock(), createBlock(resolveDynamicComponent(option.icon)))
4045
+ ]),
4046
+ _: 2
4047
+ /* DYNAMIC */
4048
+ }, 1032, ["size"])) : createCommentVNode("v-if", true),
4052
4049
  createElementVNode(
4053
4050
  "span",
4054
4051
  null,
@@ -4399,29 +4396,29 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4399
4396
  });
4400
4397
  return (_ctx, _cache) => {
4401
4398
  const _directive_loading = resolveDirective("loading");
4402
- return _ctx.model ? withDirectives((openBlock(), createBlock(unref(TMagicSelect), {
4399
+ return __props.model ? withDirectives((openBlock(), createBlock(unref(TMagicSelect), {
4403
4400
  key: 0,
4404
- modelValue: _ctx.model[_ctx.name],
4405
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
4401
+ modelValue: __props.model[__props.name],
4402
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
4406
4403
  class: "m-select",
4407
4404
  ref_key: "tMagicSelect",
4408
4405
  ref: tMagicSelect,
4409
- clearable: typeof _ctx.config.clearable !== "undefined" ? _ctx.config.clearable : true,
4410
- filterable: typeof _ctx.config.filterable !== "undefined" ? _ctx.config.filterable : true,
4406
+ clearable: typeof __props.config.clearable !== "undefined" ? __props.config.clearable : true,
4407
+ filterable: typeof __props.config.filterable !== "undefined" ? __props.config.filterable : true,
4411
4408
  "popper-class": `m-select-popper ${unref(popperClass)}`,
4412
- size: _ctx.size,
4409
+ size: __props.size,
4413
4410
  remote: remote.value,
4414
- placeholder: _ctx.config.placeholder,
4415
- multiple: _ctx.config.multiple,
4416
- "value-key": _ctx.config.valueKey || "value",
4417
- "allow-create": _ctx.config.allowCreate,
4418
- disabled: _ctx.disabled,
4419
- "remote-method": _ctx.config.remote && remoteMethod,
4411
+ placeholder: __props.config.placeholder,
4412
+ multiple: __props.config.multiple,
4413
+ "value-key": __props.config.valueKey || "value",
4414
+ "allow-create": __props.config.allowCreate,
4415
+ disabled: __props.disabled,
4416
+ "remote-method": __props.config.remote && remoteMethod,
4420
4417
  onChange: changeHandler,
4421
4418
  onVisibleChange: visibleHandler
4422
4419
  }, {
4423
4420
  default: withCtx(() => [
4424
- _ctx.config.group ? (openBlock(true), createElementBlock(
4421
+ __props.config.group ? (openBlock(true), createElementBlock(
4425
4422
  Fragment,
4426
4423
  { key: 0 },
4427
4424
  renderList(options.value, (group, index) => {
@@ -4486,7 +4483,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4486
4483
  mergeProps(
4487
4484
  {
4488
4485
  class: "tmagic-design-option",
4489
- key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value
4486
+ key: __props.config.valueKey ? option.value[__props.config.valueKey] : option.value
4490
4487
  },
4491
4488
  { ref_for: true },
4492
4489
  unref(optionComponent)?.props({
@@ -4572,19 +4569,19 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
4572
4569
  });
4573
4570
  return (_ctx, _cache) => {
4574
4571
  return openBlock(), createBlock(unref(TMagicSwitch), {
4575
- modelValue: _ctx.model[_ctx.name],
4576
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
4577
- size: _ctx.size,
4572
+ modelValue: __props.model[__props.name],
4573
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
4574
+ size: __props.size,
4578
4575
  activeValue: activeValue.value,
4579
4576
  inactiveValue: inactiveValue.value,
4580
- disabled: _ctx.disabled,
4577
+ disabled: __props.disabled,
4581
4578
  onChange: changeHandler
4582
4579
  }, null, 8, ["modelValue", "size", "activeValue", "inactiveValue", "disabled"]);
4583
4580
  };
4584
4581
  }
4585
4582
  });
4586
4583
 
4587
- const _hoisted_1$1 = { style: { "width": "100%" } };
4584
+ const _hoisted_1$1 = { class: "m-fields-text" };
4588
4585
  const _hoisted_2 = { style: { "display": "flex", "justify-content": "flex-end" } };
4589
4586
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4590
4587
  ...{
@@ -4727,14 +4724,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4727
4724
  return (_ctx, _cache) => {
4728
4725
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
4729
4726
  createVNode(unref(TMagicInput), {
4730
- modelValue: _ctx.model[_ctx.name],
4731
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
4727
+ modelValue: __props.model[__props.name],
4728
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
4732
4729
  ref_key: "input",
4733
4730
  ref: input,
4734
4731
  clearable: "",
4735
- size: _ctx.size,
4736
- placeholder: _ctx.config.placeholder,
4737
- disabled: _ctx.disabled,
4732
+ size: __props.size,
4733
+ placeholder: __props.config.placeholder,
4734
+ disabled: __props.disabled,
4738
4735
  onChange: changeHandler,
4739
4736
  onInput: inputHandler,
4740
4737
  onKeyup: _cache[1] || (_cache[1] = ($event) => keyUpHandler($event))
@@ -4748,7 +4745,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4748
4745
  appendConfig.value.type === "button" ? (openBlock(), createBlock(unref(TMagicButton), {
4749
4746
  key: 0,
4750
4747
  style: { "color": "#409eff" },
4751
- size: _ctx.size,
4748
+ size: __props.size,
4752
4749
  onClick: withModifiers(buttonClickHandler, ["prevent"])
4753
4750
  }, {
4754
4751
  default: withCtx(() => [
@@ -4865,13 +4862,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4865
4862
  };
4866
4863
  return (_ctx, _cache) => {
4867
4864
  return openBlock(), createBlock(unref(TMagicInput), {
4868
- modelValue: _ctx.model[_ctx.name],
4869
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
4865
+ modelValue: __props.model[__props.name],
4866
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
4870
4867
  type: "textarea",
4871
- size: _ctx.size,
4868
+ size: __props.size,
4872
4869
  clearable: "",
4873
- placeholder: _ctx.config.placeholder,
4874
- disabled: _ctx.disabled,
4870
+ placeholder: __props.config.placeholder,
4871
+ disabled: __props.disabled,
4875
4872
  onChange: changeHandler,
4876
4873
  onInput: inputHandler
4877
4874
  }, null, 8, ["modelValue", "size", "placeholder", "disabled"]);
@@ -4905,13 +4902,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4905
4902
  };
4906
4903
  return (_ctx, _cache) => {
4907
4904
  return openBlock(), createBlock(unref(TMagicTimePicker), {
4908
- modelValue: _ctx.model[_ctx.name],
4909
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
4910
- "value-format": _ctx.config.valueFormat || "HH:mm:ss",
4911
- format: _ctx.config.format || "HH:mm:ss",
4912
- size: _ctx.size,
4913
- placeholder: _ctx.config.placeholder,
4914
- disabled: _ctx.disabled,
4905
+ modelValue: __props.model[__props.name],
4906
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
4907
+ "value-format": __props.config.valueFormat || "HH:mm:ss",
4908
+ format: __props.config.format || "HH:mm:ss",
4909
+ size: __props.size,
4910
+ placeholder: __props.config.placeholder,
4911
+ disabled: __props.disabled,
4915
4912
  onChange: changeHandler
4916
4913
  }, null, 8, ["modelValue", "value-format", "format", "size", "placeholder", "disabled"]);
4917
4914
  };
@@ -4984,10 +4981,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4984
4981
  "range-separator": "-",
4985
4982
  "start-placeholder": "开始时间",
4986
4983
  "end-placeholder": "结束时间",
4987
- size: _ctx.size,
4984
+ size: __props.size,
4988
4985
  "unlink-panels": true,
4989
- disabled: _ctx.disabled,
4990
- "default-time": _ctx.config.defaultTime,
4986
+ disabled: __props.disabled,
4987
+ "default-time": __props.config.defaultTime,
4991
4988
  onChange: changeHandler
4992
4989
  }, null, 8, ["modelValue", "size", "disabled", "default-time"]);
4993
4990
  };
@@ -5078,14 +5075,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5078
5075
  ref: drawer,
5079
5076
  modelValue: visible.value,
5080
5077
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
5081
- title: _ctx.title,
5082
- "close-on-press-escape": _ctx.closeOnPressEscape,
5078
+ title: __props.title,
5079
+ "close-on-press-escape": __props.closeOnPressEscape,
5083
5080
  "append-to-body": true,
5084
5081
  "show-close": true,
5085
5082
  "close-on-click-modal": true,
5086
- size: _ctx.width,
5087
- zIndex: _ctx.zIndex,
5088
- "before-close": _ctx.beforeClose,
5083
+ size: __props.width,
5084
+ zIndex: __props.zIndex,
5085
+ "before-close": __props.beforeClose,
5089
5086
  onOpen: openHandler,
5090
5087
  onOpened: openedHandler,
5091
5088
  onClose: closeHandler,
@@ -5122,13 +5119,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5122
5119
  }),
5123
5120
  createVNode(unref(TMagicButton), {
5124
5121
  type: "primary",
5125
- disabled: _ctx.disabled,
5122
+ disabled: __props.disabled,
5126
5123
  loading: saveFetch.value,
5127
5124
  onClick: submitHandler
5128
5125
  }, {
5129
5126
  default: withCtx(() => [
5130
5127
  createTextVNode(
5131
- toDisplayString(_ctx.confirmText),
5128
+ toDisplayString(__props.confirmText),
5132
5129
  1
5133
5130
  /* TEXT */
5134
5131
  )
@@ -5159,15 +5156,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5159
5156
  createVNode(_sfc_main$d, {
5160
5157
  ref_key: "form",
5161
5158
  ref: form,
5162
- size: _ctx.size,
5163
- disabled: _ctx.disabled,
5164
- config: _ctx.config,
5165
- "init-values": _ctx.values,
5166
- "parent-values": _ctx.parentValues,
5167
- "label-width": _ctx.labelWidth,
5168
- "label-position": _ctx.labelPosition,
5169
- inline: _ctx.inline,
5170
- "prevent-submit-default": _ctx.preventSubmitDefault,
5159
+ size: __props.size,
5160
+ disabled: __props.disabled,
5161
+ config: __props.config,
5162
+ "init-values": __props.values,
5163
+ "parent-values": __props.parentValues,
5164
+ "label-width": __props.labelWidth,
5165
+ "label-position": __props.labelPosition,
5166
+ inline: __props.inline,
5167
+ "prevent-submit-default": __props.preventSubmitDefault,
5171
5168
  onChange: changeHandler
5172
5169
  }, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
5173
5170
  renderSlot(_ctx.$slots, "default")
@@ -5267,15 +5264,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5267
5264
  createVNode(_sfc_main$d, {
5268
5265
  ref_key: "form",
5269
5266
  ref: form,
5270
- size: _ctx.size,
5271
- disabled: _ctx.disabled,
5272
- config: _ctx.config,
5273
- "init-values": _ctx.values,
5274
- "parent-values": _ctx.parentValues,
5275
- "label-width": _ctx.labelWidth,
5276
- "label-position": _ctx.labelPosition,
5277
- inline: _ctx.inline,
5278
- "prevent-submit-default": _ctx.preventSubmitDefault,
5267
+ size: __props.size,
5268
+ disabled: __props.disabled,
5269
+ config: __props.config,
5270
+ "init-values": __props.values,
5271
+ "parent-values": __props.parentValues,
5272
+ "label-width": __props.labelWidth,
5273
+ "label-position": __props.labelPosition,
5274
+ inline: __props.inline,
5275
+ "prevent-submit-default": __props.preventSubmitDefault,
5279
5276
  onChange: changeHandler
5280
5277
  }, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
5281
5278
  renderSlot(_ctx.$slots, "default")
@@ -5301,14 +5298,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5301
5298
  renderSlot(_ctx.$slots, "footer", {}, () => [
5302
5299
  createVNode(unref(TMagicButton), {
5303
5300
  type: "primary",
5304
- size: _ctx.size,
5305
- disabled: _ctx.disabled,
5301
+ size: __props.size,
5302
+ disabled: __props.disabled,
5306
5303
  loading: saveFetch.value,
5307
5304
  onClick: submitHandler
5308
5305
  }, {
5309
5306
  default: withCtx(() => [
5310
5307
  createTextVNode(
5311
- toDisplayString(_ctx.confirmText),
5308
+ toDisplayString(__props.confirmText),
5312
5309
  1
5313
5310
  /* TEXT */
5314
5311
  )