@tmagic/form 1.6.0-beta.6 → 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,14 +984,18 @@ 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
- default: withCtx(() => _cache[6] || (_cache[6] = [
991
- createTextVNode("复制")
992
- ])),
993
- _: 1,
994
- __: [6]
990
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
991
+ createTextVNode(
992
+ "复制",
993
+ -1
994
+ /* CACHED */
995
+ )
996
+ ])]),
997
+ _: 1
998
+ /* STABLE */
995
999
  }, 8, ["icon", "disabled"])) : createCommentVNode("v-if", true),
996
1000
  movable.value ? (openBlock(), createElementBlock(
997
1001
  Fragment,
@@ -1000,38 +1004,46 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1000
1004
  withDirectives(createVNode(unref(TMagicButton), {
1001
1005
  link: "",
1002
1006
  size: "small",
1003
- disabled: _ctx.disabled,
1007
+ disabled: __props.disabled,
1004
1008
  icon: unref(CaretTop),
1005
1009
  onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
1006
1010
  }, {
1007
- default: withCtx(() => _cache[7] || (_cache[7] = [
1008
- createTextVNode("上移")
1009
- ])),
1010
- _: 1,
1011
- __: [7]
1011
+ default: withCtx(() => [..._cache[7] || (_cache[7] = [
1012
+ createTextVNode(
1013
+ "上移",
1014
+ -1
1015
+ /* CACHED */
1016
+ )
1017
+ ])]),
1018
+ _: 1
1019
+ /* STABLE */
1012
1020
  }, 8, ["disabled", "icon"]), [
1013
- [vShow, _ctx.index !== 0]
1021
+ [vShow, __props.index !== 0]
1014
1022
  ]),
1015
1023
  withDirectives(createVNode(unref(TMagicButton), {
1016
1024
  link: "",
1017
1025
  size: "small",
1018
- disabled: _ctx.disabled,
1026
+ disabled: __props.disabled,
1019
1027
  icon: unref(CaretBottom),
1020
1028
  onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
1021
1029
  }, {
1022
- default: withCtx(() => _cache[8] || (_cache[8] = [
1023
- createTextVNode("下移")
1024
- ])),
1025
- _: 1,
1026
- __: [8]
1030
+ default: withCtx(() => [..._cache[8] || (_cache[8] = [
1031
+ createTextVNode(
1032
+ "下移",
1033
+ -1
1034
+ /* CACHED */
1035
+ )
1036
+ ])]),
1037
+ _: 1
1038
+ /* STABLE */
1027
1039
  }, 8, ["disabled", "icon"]), [
1028
- [vShow, _ctx.index !== length.value - 1]
1040
+ [vShow, __props.index !== length.value - 1]
1029
1041
  ])
1030
1042
  ],
1031
1043
  64
1032
1044
  /* STABLE_FRAGMENT */
1033
1045
  )) : createCommentVNode("v-if", true),
1034
- _ctx.config.moveSpecifyLocation ? (openBlock(), createBlock(unref(TMagicPopover), {
1046
+ __props.config.moveSpecifyLocation ? (openBlock(), createBlock(unref(TMagicPopover), {
1035
1047
  key: 2,
1036
1048
  trigger: "click",
1037
1049
  placement: "top",
@@ -1044,29 +1056,41 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1044
1056
  size: "small",
1045
1057
  type: "primary",
1046
1058
  icon: unref(Position),
1047
- disabled: _ctx.disabled,
1059
+ disabled: __props.disabled,
1048
1060
  onClick: _cache[2] || (_cache[2] = ($event) => moveSpecifyLocationVisible.value = true)
1049
1061
  }, {
1050
- default: withCtx(() => _cache[9] || (_cache[9] = [
1051
- createTextVNode("移动至")
1052
- ])),
1053
- _: 1,
1054
- __: [9]
1062
+ default: withCtx(() => [..._cache[9] || (_cache[9] = [
1063
+ createTextVNode(
1064
+ "移动至",
1065
+ -1
1066
+ /* CACHED */
1067
+ )
1068
+ ])]),
1069
+ _: 1
1070
+ /* STABLE */
1055
1071
  }, 8, ["icon", "disabled"])
1056
1072
  ]),
1057
1073
  default: withCtx(() => [
1058
1074
  createElementVNode("div", null, [
1059
1075
  createElementVNode("div", null, [
1060
- _cache[10] || (_cache[10] = createTextVNode(" 第")),
1076
+ _cache[10] || (_cache[10] = createTextVNode(
1077
+ " 第",
1078
+ -1
1079
+ /* CACHED */
1080
+ )),
1061
1081
  createVNode(unref(TMagicInputNumber), {
1062
1082
  style: { "margin": "0 5px" },
1063
1083
  modelValue: moveSpecifyLocationIndex.value,
1064
1084
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => moveSpecifyLocationIndex.value = $event),
1065
1085
  size: "small",
1066
1086
  min: 1,
1067
- disabled: _ctx.disabled
1087
+ disabled: __props.disabled
1068
1088
  }, null, 8, ["modelValue", "disabled"]),
1069
- _cache[11] || (_cache[11] = createTextVNode("行 "))
1089
+ _cache[11] || (_cache[11] = createTextVNode(
1090
+ "行 ",
1091
+ -1
1092
+ /* CACHED */
1093
+ ))
1070
1094
  ]),
1071
1095
  createElementVNode("div", _hoisted_2$5, [
1072
1096
  createVNode(unref(TMagicButton), {
@@ -1074,22 +1098,30 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1074
1098
  text: "",
1075
1099
  onClick: _cache[4] || (_cache[4] = ($event) => moveSpecifyLocationVisible.value = false)
1076
1100
  }, {
1077
- default: withCtx(() => _cache[12] || (_cache[12] = [
1078
- createTextVNode("取消")
1079
- ])),
1080
- _: 1,
1081
- __: [12]
1101
+ default: withCtx(() => [..._cache[12] || (_cache[12] = [
1102
+ createTextVNode(
1103
+ "取消",
1104
+ -1
1105
+ /* CACHED */
1106
+ )
1107
+ ])]),
1108
+ _: 1
1109
+ /* STABLE */
1082
1110
  }),
1083
1111
  createVNode(unref(TMagicButton), {
1084
1112
  size: "small",
1085
1113
  type: "primary",
1086
1114
  onClick: moveSpecifyLocationHandler
1087
1115
  }, {
1088
- default: withCtx(() => _cache[13] || (_cache[13] = [
1089
- createTextVNode("确认")
1090
- ])),
1091
- _: 1,
1092
- __: [13]
1116
+ default: withCtx(() => [..._cache[13] || (_cache[13] = [
1117
+ createTextVNode(
1118
+ "确认",
1119
+ -1
1120
+ /* CACHED */
1121
+ )
1122
+ ])]),
1123
+ _: 1
1124
+ /* STABLE */
1093
1125
  })
1094
1126
  ])
1095
1127
  ])
@@ -1106,13 +1138,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1106
1138
  expand.value ? (openBlock(), createBlock(_sfc_main$x, {
1107
1139
  key: 0,
1108
1140
  config: rowConfig.value,
1109
- model: _ctx.model,
1110
- lastValues: _ctx.lastValues,
1111
- "is-compare": _ctx.isCompare,
1112
- labelWidth: _ctx.labelWidth,
1113
- prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${String(_ctx.index)}`,
1114
- size: _ctx.size,
1115
- 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,
1116
1148
  onChange: changeHandler,
1117
1149
  onAddDiffCount: _cache[5] || (_cache[5] = ($event) => onAddDiffCount())
1118
1150
  }, null, 8, ["config", "model", "lastValues", "is-compare", "labelWidth", "prop", "size", "disabled"])) : createCommentVNode("v-if", true)
@@ -1218,12 +1250,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1218
1250
  const getLastValues = (item, index) => item?.[index] || {};
1219
1251
  return (_ctx, _cache) => {
1220
1252
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
1221
- _ctx.config.extra ? (openBlock(), createElementBlock("div", {
1253
+ __props.config.extra ? (openBlock(), createElementBlock("div", {
1222
1254
  key: 0,
1223
- innerHTML: _ctx.config.extra,
1255
+ innerHTML: __props.config.extra,
1224
1256
  style: { "color": "rgba(0, 0, 0, 0.45)" }
1225
1257
  }, null, 8, _hoisted_2$4)) : createCommentVNode("v-if", true),
1226
- !_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] = [
1227
1259
  createElementVNode(
1228
1260
  "span",
1229
1261
  { class: "el-table__empty-text" },
@@ -1231,22 +1263,22 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1231
1263
  -1
1232
1264
  /* CACHED */
1233
1265
  )
1234
- ]))) : (openBlock(true), createElementBlock(
1266
+ ])])) : (openBlock(true), createElementBlock(
1235
1267
  Fragment,
1236
1268
  { key: 2 },
1237
- renderList(_ctx.model[_ctx.name], (item, index) => {
1269
+ renderList(__props.model[__props.name], (item, index) => {
1238
1270
  return openBlock(), createBlock(_sfc_main$v, {
1239
1271
  key: index,
1240
1272
  model: item,
1241
- lastValues: getLastValues(_ctx.lastValues[_ctx.name], index),
1242
- "is-compare": _ctx.isCompare,
1243
- config: _ctx.config,
1244
- prop: _ctx.prop,
1273
+ lastValues: getLastValues(__props.lastValues[__props.name], index),
1274
+ "is-compare": __props.isCompare,
1275
+ config: __props.config,
1276
+ prop: __props.prop,
1245
1277
  index,
1246
- "label-width": _ctx.labelWidth,
1247
- size: _ctx.size,
1248
- disabled: _ctx.disabled,
1249
- "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],
1250
1282
  onRemoveItem: removeHandler,
1251
1283
  onCopyItem: copyHandler,
1252
1284
  onSwapItem: swapHandler,
@@ -1260,27 +1292,35 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1260
1292
  addable.value ? (openBlock(), createBlock(unref(TMagicButton), {
1261
1293
  key: 3,
1262
1294
  type: "primary",
1263
- size: _ctx.config.enableToggleMode ? "small" : "default",
1264
- disabled: _ctx.disabled,
1295
+ size: __props.config.enableToggleMode ? "small" : "default",
1296
+ disabled: __props.disabled,
1265
1297
  onClick: addHandler
1266
1298
  }, {
1267
- default: withCtx(() => _cache[2] || (_cache[2] = [
1268
- createTextVNode("新增")
1269
- ])),
1270
- _: 1,
1271
- __: [2]
1299
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
1300
+ createTextVNode(
1301
+ "新增",
1302
+ -1
1303
+ /* CACHED */
1304
+ )
1305
+ ])]),
1306
+ _: 1
1307
+ /* STABLE */
1272
1308
  }, 8, ["size", "disabled"])) : createCommentVNode("v-if", true),
1273
- _ctx.config.enableToggleMode ? (openBlock(), createBlock(unref(TMagicButton), {
1309
+ __props.config.enableToggleMode ? (openBlock(), createBlock(unref(TMagicButton), {
1274
1310
  key: 4,
1275
1311
  icon: unref(Grid),
1276
1312
  size: "small",
1277
1313
  onClick: toggleMode
1278
1314
  }, {
1279
- default: withCtx(() => _cache[3] || (_cache[3] = [
1280
- createTextVNode("切换为表格")
1281
- ])),
1282
- _: 1,
1283
- __: [3]
1315
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
1316
+ createTextVNode(
1317
+ "切换为表格",
1318
+ -1
1319
+ /* CACHED */
1320
+ )
1321
+ ])]),
1322
+ _: 1
1323
+ /* STABLE */
1284
1324
  }, 8, ["icon"])) : createCommentVNode("v-if", true)
1285
1325
  ]);
1286
1326
  };
@@ -1337,14 +1377,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1337
1377
  icon: expand.value ? unref(CaretBottom) : unref(CaretRight),
1338
1378
  onClick: _cache[0] || (_cache[0] = ($event) => expand.value = !expand.value)
1339
1379
  }, null, 8, ["icon"]),
1340
- _ctx.config && _ctx.config.extra ? (openBlock(), createElementBlock("span", {
1380
+ __props.config && __props.config.extra ? (openBlock(), createElementBlock("span", {
1341
1381
  key: 0,
1342
- innerHTML: _ctx.config.extra,
1382
+ innerHTML: __props.config.extra,
1343
1383
  class: "m-form-tip"
1344
1384
  }, null, 8, _hoisted_2$3)) : createCommentVNode("v-if", true),
1345
1385
  renderSlot(_ctx.$slots, "header", {}, () => [
1346
1386
  createTextVNode(
1347
- toDisplayString(filter(_ctx.config.title)),
1387
+ toDisplayString(filter(__props.config.title)),
1348
1388
  1
1349
1389
  /* TEXT */
1350
1390
  )
@@ -1354,7 +1394,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1354
1394
  default: withCtx(() => [
1355
1395
  createElementVNode("div", null, [
1356
1396
  renderSlot(_ctx.$slots, "default"),
1357
- _ctx.config.schematic ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
1397
+ __props.config.schematic ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
1358
1398
  createElementVNode("div", _hoisted_4$1, [
1359
1399
  (openBlock(true), createElementBlock(
1360
1400
  Fragment,
@@ -1363,13 +1403,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1363
1403
  return openBlock(), createBlock(_sfc_main$x, {
1364
1404
  key: item[unref(mForm)?.keyProp || "__key"] ?? index,
1365
1405
  config: item,
1366
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
1367
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
1368
- "is-compare": _ctx.isCompare,
1369
- prop: _ctx.prop,
1370
- size: _ctx.size,
1371
- disabled: _ctx.disabled,
1372
- "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,
1373
1413
  onChange: changeHandler,
1374
1414
  onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
1375
1415
  }, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
@@ -1380,7 +1420,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1380
1420
  ]),
1381
1421
  createElementVNode("img", {
1382
1422
  class: "m-form-schematic",
1383
- src: _ctx.config.schematic
1423
+ src: __props.config.schematic
1384
1424
  }, null, 8, _hoisted_5$1)
1385
1425
  ])) : (openBlock(true), createElementBlock(
1386
1426
  Fragment,
@@ -1389,13 +1429,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1389
1429
  return openBlock(), createBlock(_sfc_main$x, {
1390
1430
  key: item[unref(mForm)?.keyProp || "__key"] ?? index,
1391
1431
  config: item,
1392
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
1393
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
1394
- "is-compare": _ctx.isCompare,
1395
- prop: _ctx.prop,
1396
- size: _ctx.size,
1397
- disabled: _ctx.disabled,
1398
- "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,
1399
1439
  onChange: changeHandler,
1400
1440
  onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
1401
1441
  }, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
@@ -1438,18 +1478,18 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1438
1478
  const changeHandler = (v, eventData) => emit("change", v, eventData);
1439
1479
  const onAddDiffCount = () => emit("addDiffCount");
1440
1480
  return (_ctx, _cache) => {
1441
- return withDirectives((openBlock(), createBlock(unref(TMagicCol), { span: _ctx.span }, {
1481
+ return withDirectives((openBlock(), createBlock(unref(TMagicCol), { span: __props.span }, {
1442
1482
  default: withCtx(() => [
1443
1483
  createVNode(_sfc_main$x, {
1444
- model: _ctx.model,
1445
- lastValues: _ctx.lastValues,
1446
- "is-compare": _ctx.isCompare,
1447
- config: _ctx.config,
1448
- prop: _ctx.prop,
1449
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
1450
- "expand-more": _ctx.expandMore,
1451
- size: _ctx.size,
1452
- 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,
1453
1493
  onChange: changeHandler,
1454
1494
  onAddDiffCount
1455
1495
  }, null, 8, ["model", "lastValues", "is-compare", "config", "prop", "label-width", "expand-more", "size", "disabled"])
@@ -1457,7 +1497,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1457
1497
  _: 1
1458
1498
  /* STABLE */
1459
1499
  }, 8, ["span"])), [
1460
- [vShow, display$1.value && _ctx.config.type !== "hidden"]
1500
+ [vShow, display$1.value && __props.config.type !== "hidden"]
1461
1501
  ]);
1462
1502
  };
1463
1503
  }
@@ -1495,19 +1535,19 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1495
1535
  (openBlock(true), createElementBlock(
1496
1536
  Fragment,
1497
1537
  null,
1498
- renderList(_ctx.config.items, (col, index) => {
1538
+ renderList(__props.config.items, (col, index) => {
1499
1539
  return openBlock(), createBlock(_sfc_main$s, {
1500
1540
  key: col[unref(mForm)?.keyProp || "__key"] ?? index,
1501
- span: col.span || _ctx.config.span || 24 / _ctx.config.items.length,
1541
+ span: col.span || __props.config.span || 24 / __props.config.items.length,
1502
1542
  config: col,
1503
- labelWidth: _ctx.config.labelWidth || _ctx.labelWidth,
1504
- expandMore: _ctx.expandMore,
1505
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
1506
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
1507
- "is-compare": _ctx.isCompare,
1508
- prop: _ctx.prop,
1509
- size: _ctx.size,
1510
- 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,
1511
1551
  onChange: changeHandler,
1512
1552
  onAddDiffCount
1513
1553
  }, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "lastValues", "is-compare", "prop", "size", "disabled"]);
@@ -1561,13 +1601,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1561
1601
  createVNode(unref(TMagicSteps), {
1562
1602
  active: active.value,
1563
1603
  "align-center": "",
1564
- space: _ctx.config.space
1604
+ space: __props.config.space
1565
1605
  }, {
1566
1606
  default: withCtx(() => [
1567
1607
  (openBlock(true), createElementBlock(
1568
1608
  Fragment,
1569
1609
  null,
1570
- renderList(_ctx.config.items, (item, index) => {
1610
+ renderList(__props.config.items, (item, index) => {
1571
1611
  return openBlock(), createBlock(unref(TMagicStep), {
1572
1612
  key: item.__key,
1573
1613
  title: item.title,
@@ -1585,7 +1625,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1585
1625
  (openBlock(true), createElementBlock(
1586
1626
  Fragment,
1587
1627
  null,
1588
- renderList(_ctx.config.items, (step, index) => {
1628
+ renderList(__props.config.items, (step, index) => {
1589
1629
  return openBlock(), createElementBlock(
1590
1630
  Fragment,
1591
1631
  null,
@@ -1601,13 +1641,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1601
1641
  item ? withDirectives((openBlock(), createBlock(_sfc_main$x, {
1602
1642
  key: item[unref(mForm)?.keyProp || "__key"],
1603
1643
  config: item,
1604
- model: step.name ? _ctx.model[step.name] : _ctx.model,
1605
- lastValues: step.name ? _ctx.lastValues[step.name] : _ctx.lastValues,
1606
- "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,
1607
1647
  prop: `${step.name}`,
1608
- size: _ctx.size,
1609
- disabled: _ctx.disabled,
1610
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
1648
+ size: __props.size,
1649
+ disabled: __props.disabled,
1650
+ "label-width": __props.config.labelWidth || __props.labelWidth,
1611
1651
  onChange: changeHandler,
1612
1652
  onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
1613
1653
  }, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"])), [
@@ -2030,36 +2070,36 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2030
2070
  {
2031
2071
  ref_key: "mTable",
2032
2072
  ref: mTable,
2033
- 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 }])
2034
2074
  },
2035
2075
  [
2036
- _ctx.config.extra ? (openBlock(), createElementBlock("span", {
2076
+ __props.config.extra ? (openBlock(), createElementBlock("span", {
2037
2077
  key: 0,
2038
2078
  style: { "color": "rgba(0, 0, 0, 0.45)" },
2039
- innerHTML: _ctx.config.extra
2079
+ innerHTML: __props.config.extra
2040
2080
  }, null, 8, _hoisted_2$2)) : createCommentVNode("v-if", true),
2041
2081
  createVNode(unref(TMagicTooltip), {
2042
2082
  content: "拖拽可排序",
2043
2083
  placement: "left-start",
2044
- disabled: _ctx.config.dropSort !== true
2084
+ disabled: __props.config.dropSort !== true
2045
2085
  }, {
2046
2086
  default: withCtx(() => [
2047
- _ctx.model[modelName.value] ? (openBlock(), createBlock(unref(TMagicTable), {
2087
+ __props.model[modelName.value] ? (openBlock(), createBlock(unref(TMagicTable), {
2048
2088
  ref_key: "tMagicTable",
2049
2089
  ref: tMagicTable,
2050
2090
  style: { "width": "100%" },
2051
- "row-key": _ctx.config.rowKey || "id",
2091
+ "row-key": __props.config.rowKey || "id",
2052
2092
  data: data.value,
2053
2093
  lastData: lastData.value,
2054
- border: _ctx.config.border,
2055
- "max-height": _ctx.config.maxHeight,
2094
+ border: __props.config.border,
2095
+ "max-height": __props.config.maxHeight,
2056
2096
  "default-expand-all": true,
2057
2097
  key: updateKey.value,
2058
2098
  onSelect: selectHandle,
2059
2099
  onSortChange: sortChange
2060
2100
  }, {
2061
2101
  default: withCtx(() => [
2062
- _ctx.config.itemExtra && !_ctx.config.dropSort ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2102
+ __props.config.itemExtra && !__props.config.dropSort ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2063
2103
  key: 0,
2064
2104
  fixed: "left",
2065
2105
  width: "30",
@@ -2067,7 +2107,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2067
2107
  }, {
2068
2108
  default: withCtx((scope) => [
2069
2109
  createElementVNode("span", {
2070
- innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
2110
+ innerHTML: itemExtra(__props.config.itemExtra, scope.$index),
2071
2111
  class: "m-form-tip"
2072
2112
  }, null, 8, _hoisted_3)
2073
2113
  ]),
@@ -2076,9 +2116,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2076
2116
  })) : createCommentVNode("v-if", true),
2077
2117
  createVNode(unref(TMagicTableColumn), {
2078
2118
  label: "操作",
2079
- width: _ctx.config.operateColWidth || 100,
2119
+ width: __props.config.operateColWidth || 100,
2080
2120
  align: "center",
2081
- fixed: _ctx.config.fixed === false ? void 0 : "left"
2121
+ fixed: __props.config.fixed === false ? void 0 : "left"
2082
2122
  }, {
2083
2123
  default: withCtx((scope) => [
2084
2124
  renderSlot(_ctx.$slots, "operateCol", { scope }),
@@ -2099,14 +2139,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2099
2139
  type: "primary",
2100
2140
  title: "复制",
2101
2141
  icon: unref(DocumentCopy),
2102
- disabled: _ctx.disabled,
2142
+ disabled: __props.disabled,
2103
2143
  onClick: ($event) => copyHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
2104
2144
  }, null, 8, ["icon", "disabled", "onClick"])) : createCommentVNode("v-if", true)
2105
2145
  ]),
2106
2146
  _: 3
2107
2147
  /* FORWARDED */
2108
2148
  }, 8, ["width", "fixed"]),
2109
- _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), {
2110
2150
  key: 1,
2111
2151
  label: "排序",
2112
2152
  width: "60"
@@ -2126,7 +2166,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2126
2166
  size: "small",
2127
2167
  type: "primary",
2128
2168
  icon: unref(ArrowUp),
2129
- disabled: _ctx.disabled,
2169
+ disabled: __props.disabled,
2130
2170
  link: "",
2131
2171
  onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
2132
2172
  onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
@@ -2138,7 +2178,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2138
2178
  1024
2139
2179
  /* DYNAMIC_SLOTS */
2140
2180
  )) : createCommentVNode("v-if", true),
2141
- 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(
2142
2182
  unref(TMagicTooltip),
2143
2183
  {
2144
2184
  key: 1,
@@ -2152,7 +2192,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2152
2192
  size: "small",
2153
2193
  type: "primary",
2154
2194
  icon: unref(ArrowDown),
2155
- disabled: _ctx.disabled,
2195
+ disabled: __props.disabled,
2156
2196
  link: "",
2157
2197
  onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
2158
2198
  onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
@@ -2175,7 +2215,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2175
2215
  type: "selection",
2176
2216
  width: "45"
2177
2217
  })) : createCommentVNode("v-if", true),
2178
- _ctx.showIndex && _ctx.config.showIndex ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2218
+ __props.showIndex && __props.config.showIndex ? (openBlock(), createBlock(unref(TMagicTableColumn), {
2179
2219
  key: 3,
2180
2220
  width: "60",
2181
2221
  label: "序号"
@@ -2193,7 +2233,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2193
2233
  (openBlock(true), createElementBlock(
2194
2234
  Fragment,
2195
2235
  null,
2196
- renderList(_ctx.config.items, (column, index) => {
2236
+ renderList(__props.config.items, (column, index) => {
2197
2237
  return openBlock(), createElementBlock(
2198
2238
  Fragment,
2199
2239
  null,
@@ -2205,20 +2245,20 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2205
2245
  sortable: column.sortable,
2206
2246
  "sort-orders": ["ascending", "descending"],
2207
2247
  key: column[unref(mForm)?.keyProp || "__key"] ?? index,
2208
- "class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
2248
+ "class-name": __props.config.dropSort === true ? "el-table__column--dropable" : ""
2209
2249
  }, {
2210
2250
  default: withCtx((scope) => [
2211
2251
  scope.$index > -1 ? (openBlock(), createBlock(_sfc_main$x, {
2212
2252
  key: 0,
2213
2253
  labelWidth: "0",
2214
- disabled: _ctx.disabled,
2254
+ disabled: __props.disabled,
2215
2255
  prop: getProp(scope.$index),
2216
2256
  rules: column.rules,
2217
2257
  config: makeConfig(column, scope.row),
2218
2258
  model: scope.row,
2219
2259
  lastValues: lastData.value[scope.$index],
2220
- "is-compare": _ctx.isCompare,
2221
- size: _ctx.size,
2260
+ "is-compare": __props.isCompare,
2261
+ size: __props.size,
2222
2262
  onChange: changeHandler,
2223
2263
  onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
2224
2264
  }, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : createCommentVNode("v-if", true)
@@ -2248,31 +2288,39 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2248
2288
  key: 0,
2249
2289
  size: "small",
2250
2290
  type: "primary",
2251
- disabled: _ctx.disabled,
2291
+ disabled: __props.disabled,
2252
2292
  plain: "",
2253
2293
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
2254
2294
  }, {
2255
- default: withCtx(() => _cache[3] || (_cache[3] = [
2256
- createTextVNode("新增一行")
2257
- ])),
2258
- _: 1,
2259
- __: [3]
2295
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
2296
+ createTextVNode(
2297
+ "新增一行",
2298
+ -1
2299
+ /* CACHED */
2300
+ )
2301
+ ])]),
2302
+ _: 1
2303
+ /* STABLE */
2260
2304
  }, 8, ["disabled"])) : createCommentVNode("v-if", true),
2261
2305
  createElementVNode("div", _hoisted_5, [
2262
- _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), {
2263
2307
  key: 0,
2264
2308
  icon: unref(Grid),
2265
2309
  size: "small",
2266
2310
  type: "primary",
2267
2311
  onClick: toggleMode
2268
2312
  }, {
2269
- default: withCtx(() => _cache[4] || (_cache[4] = [
2270
- createTextVNode("展开配置")
2271
- ])),
2272
- _: 1,
2273
- __: [4]
2313
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
2314
+ createTextVNode(
2315
+ "展开配置",
2316
+ -1
2317
+ /* CACHED */
2318
+ )
2319
+ ])]),
2320
+ _: 1
2321
+ /* STABLE */
2274
2322
  }, 8, ["icon"])) : createCommentVNode("v-if", true),
2275
- _ctx.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
2323
+ __props.config.enableFullscreen !== false ? (openBlock(), createBlock(unref(TMagicButton), {
2276
2324
  key: 1,
2277
2325
  icon: unref(FullScreen),
2278
2326
  size: "small",
@@ -2295,7 +2343,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2295
2343
  ref_key: "excelBtn",
2296
2344
  ref: excelBtn,
2297
2345
  action: "/noop",
2298
- disabled: _ctx.disabled,
2346
+ disabled: __props.disabled,
2299
2347
  "on-change": excelHandler,
2300
2348
  "auto-upload": false
2301
2349
  }, {
@@ -2303,14 +2351,18 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2303
2351
  createVNode(unref(TMagicButton), {
2304
2352
  size: "small",
2305
2353
  type: "success",
2306
- disabled: _ctx.disabled,
2354
+ disabled: __props.disabled,
2307
2355
  plain: ""
2308
2356
  }, {
2309
- default: withCtx(() => _cache[5] || (_cache[5] = [
2310
- createTextVNode("导入EXCEL")
2311
- ])),
2312
- _: 1,
2313
- __: [5]
2357
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
2358
+ createTextVNode(
2359
+ "导入EXCEL",
2360
+ -1
2361
+ /* CACHED */
2362
+ )
2363
+ ])]),
2364
+ _: 1
2365
+ /* STABLE */
2314
2366
  }, 8, ["disabled"])
2315
2367
  ]),
2316
2368
  _: 1
@@ -2320,26 +2372,30 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2320
2372
  key: 3,
2321
2373
  size: "small",
2322
2374
  type: "warning",
2323
- disabled: _ctx.disabled,
2375
+ disabled: __props.disabled,
2324
2376
  plain: "",
2325
2377
  onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
2326
2378
  }, {
2327
- default: withCtx(() => _cache[6] || (_cache[6] = [
2328
- createTextVNode("清空")
2329
- ])),
2330
- _: 1,
2331
- __: [6]
2379
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
2380
+ createTextVNode(
2381
+ "清空",
2382
+ -1
2383
+ /* CACHED */
2384
+ )
2385
+ ])]),
2386
+ _: 1
2387
+ /* STABLE */
2332
2388
  }, 8, ["disabled"])) : createCommentVNode("v-if", true)
2333
2389
  ])
2334
2390
  ]),
2335
- _ctx.config.pagination ? (openBlock(), createElementBlock("div", _hoisted_6, [
2391
+ __props.config.pagination ? (openBlock(), createElementBlock("div", _hoisted_6, [
2336
2392
  createVNode(unref(TMagicPagination), {
2337
2393
  layout: "total, sizes, prev, pager, next, jumper",
2338
- "hide-on-single-page": _ctx.model[modelName.value].length < pagesize.value,
2394
+ "hide-on-single-page": __props.model[modelName.value].length < pagesize.value,
2339
2395
  "current-page": pagecontext.value + 1,
2340
2396
  "page-sizes": [pagesize.value, 60, 120, 300],
2341
2397
  "page-size": pagesize.value,
2342
- total: _ctx.model[modelName.value].length,
2398
+ total: __props.model[modelName.value].length,
2343
2399
  onSizeChange: handleSizeChange,
2344
2400
  onCurrentChange: handleCurrentChange
2345
2401
  }, null, 8, ["hide-on-single-page", "current-page", "page-sizes", "page-size", "total"])
@@ -2480,12 +2536,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2480
2536
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeTabName.value = $event)
2481
2537
  },
2482
2538
  unref(tabsComponent)?.props({
2483
- type: _ctx.config.tabType,
2484
- editable: _ctx.config.editable || false,
2485
- tabPosition: _ctx.config.tabPosition || "top"
2539
+ type: __props.config.tabType,
2540
+ editable: __props.config.editable || false,
2541
+ tabPosition: __props.config.tabPosition || "top"
2486
2542
  }) || {},
2487
2543
  {
2488
- 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"}`,
2489
2545
  onTabClick: tabClickHandler,
2490
2546
  onTabAdd,
2491
2547
  onTabRemove
@@ -2528,14 +2584,14 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2528
2584
  return openBlock(), createBlock(_sfc_main$x, {
2529
2585
  key: item[unref(mForm)?.keyProp || "__key"],
2530
2586
  config: item,
2531
- disabled: _ctx.disabled,
2532
- 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,
2533
- "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,
2534
- "is-compare": _ctx.isCompare,
2535
- prop: _ctx.config.dynamic ? `${_ctx.prop}${_ctx.prop ? "." : ""}${String(tabIndex)}` : _ctx.prop,
2536
- size: _ctx.size,
2537
- "label-width": tab.labelWidth || _ctx.labelWidth,
2538
- "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,
2539
2595
  onChange: changeHandler,
2540
2596
  onAddDiffCount: ($event) => onAddDiffCount(tabIndex)
2541
2597
  }, null, 8, ["config", "disabled", "model", "last-values", "is-compare", "prop", "size", "label-width", "expand-more", "onAddDiffCount"]);
@@ -2692,14 +2748,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2692
2748
  style: { "width": "100%" },
2693
2749
  clearable: "",
2694
2750
  filterable: "",
2695
- size: _ctx.size,
2696
- placeholder: _ctx.config.placeholder,
2697
- disabled: _ctx.disabled,
2751
+ size: __props.size,
2752
+ placeholder: __props.config.placeholder,
2753
+ disabled: __props.disabled,
2698
2754
  options: options.value,
2699
- "popper-class": _ctx.config.popperClass,
2755
+ "popper-class": __props.config.popperClass,
2700
2756
  props: {
2701
- multiple: _ctx.config.multiple ?? false,
2702
- emitPath: _ctx.config.emitPath ?? true,
2757
+ multiple: __props.config.multiple ?? false,
2758
+ emitPath: __props.config.emitPath ?? true,
2703
2759
  checkStrictly: checkStrictly.value ?? false
2704
2760
  },
2705
2761
  onChange: changeHandler
@@ -2754,17 +2810,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2754
2810
  };
2755
2811
  return (_ctx, _cache) => {
2756
2812
  return openBlock(), createBlock(unref(TMagicCheckbox), {
2757
- modelValue: _ctx.model[_ctx.name],
2758
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
2759
- 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,
2760
2816
  trueValue: activeValue.value,
2761
2817
  falseValue: inactiveValue.value,
2762
- disabled: _ctx.disabled,
2818
+ disabled: __props.disabled,
2763
2819
  onChange: changeHandler
2764
2820
  }, {
2765
2821
  default: withCtx(() => [
2766
2822
  createTextVNode(
2767
- toDisplayString(_ctx.config.text),
2823
+ toDisplayString(__props.config.text),
2768
2824
  1
2769
2825
  /* TEXT */
2770
2826
  )
@@ -2812,10 +2868,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2812
2868
  });
2813
2869
  return (_ctx, _cache) => {
2814
2870
  return openBlock(), createBlock(unref(TMagicCheckboxGroup), {
2815
- modelValue: _ctx.model[_ctx.name],
2816
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
2817
- size: _ctx.size,
2818
- 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,
2819
2875
  onChange: changeHandler
2820
2876
  }, {
2821
2877
  default: withCtx(() => [
@@ -2874,10 +2930,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2874
2930
  const changeHandler = (value) => emit("change", value);
2875
2931
  return (_ctx, _cache) => {
2876
2932
  return openBlock(), createBlock(unref(TMagicColorPicker), {
2877
- modelValue: _ctx.model[_ctx.name],
2878
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
2879
- size: _ctx.size,
2880
- 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,
2881
2937
  showAlpha: true,
2882
2938
  onChange: changeHandler
2883
2939
  }, null, 8, ["modelValue", "size", "disabled"]);
@@ -2912,14 +2968,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2912
2968
  };
2913
2969
  return (_ctx, _cache) => {
2914
2970
  return openBlock(), createBlock(unref(TMagicDatePicker), {
2915
- modelValue: _ctx.model[_ctx.name],
2916
- "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),
2917
2973
  type: "date",
2918
- size: _ctx.size,
2919
- placeholder: _ctx.config.placeholder,
2920
- disabled: _ctx.disabled,
2921
- format: _ctx.config.format || "YYYY/MM/DD",
2922
- "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",
2923
2979
  onChange: changeHandler
2924
2980
  }, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format"]);
2925
2981
  };
@@ -3013,13 +3069,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
3013
3069
  "range-separator": "-",
3014
3070
  "start-placeholder": "开始日期",
3015
3071
  "end-placeholder": "结束日期",
3016
- size: _ctx.size,
3072
+ size: __props.size,
3017
3073
  "unlink-panels": true,
3018
- disabled: _ctx.disabled,
3019
- "default-time": _ctx.config.defaultTime,
3020
- "value-format": _ctx.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
3021
- "date-format": _ctx.config.dateFormat || "YYYY/MM/DD",
3022
- "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",
3023
3079
  onChange: changeHandler
3024
3080
  }, null, 8, ["modelValue", "size", "disabled", "default-time", "value-format", "date-format", "time-format"]);
3025
3081
  };
@@ -3064,16 +3120,16 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
3064
3120
  };
3065
3121
  return (_ctx, _cache) => {
3066
3122
  return openBlock(), createBlock(unref(TMagicDatePicker), {
3067
- modelValue: _ctx.model[_ctx.name],
3068
- "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),
3069
3125
  "popper-class": "magic-datetime-picker-popper",
3070
3126
  type: "datetime",
3071
- size: _ctx.size,
3072
- placeholder: _ctx.config.placeholder,
3073
- disabled: _ctx.disabled,
3074
- format: _ctx.config.format || "YYYY/MM/DD HH:mm:ss",
3075
- "value-format": _ctx.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
3076
- "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,
3077
3133
  onChange: changeHandler
3078
3134
  }, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time"]);
3079
3135
  };
@@ -3104,10 +3160,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
3104
3160
  }
3105
3161
  useAddField(props.prop);
3106
3162
  return (_ctx, _cache) => {
3107
- return _ctx.model ? (openBlock(), createElementBlock(
3163
+ return __props.model ? (openBlock(), createElementBlock(
3108
3164
  "span",
3109
3165
  _hoisted_1$8,
3110
- toDisplayString(_ctx.model[_ctx.name]),
3166
+ toDisplayString(__props.model[__props.name]),
3111
3167
  1
3112
3168
  /* TEXT */
3113
3169
  )) : createCommentVNode("v-if", true);
@@ -3237,18 +3293,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
3237
3293
  const props = __props;
3238
3294
  useAddField(props.prop);
3239
3295
  return (_ctx, _cache) => {
3240
- return _ctx.model ? withDirectives((openBlock(), createElementBlock(
3296
+ return __props.model ? withDirectives((openBlock(), createElementBlock(
3241
3297
  "input",
3242
3298
  {
3243
3299
  key: 0,
3244
- "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),
3245
3301
  type: "hidden"
3246
3302
  },
3247
3303
  null,
3248
3304
  512
3249
3305
  /* NEED_PATCH */
3250
3306
  )), [
3251
- [vModelText, _ctx.model[_ctx.name]]
3307
+ [vModelText, __props.model[__props.name]]
3252
3308
  ]) : createCommentVNode("v-if", true);
3253
3309
  };
3254
3310
  }
@@ -3402,27 +3458,27 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
3402
3458
  ref_key: "tMagicForm",
3403
3459
  ref: tMagicForm,
3404
3460
  model: values.value,
3405
- "label-width": _ctx.labelWidth,
3406
- style: normalizeStyle(`height: ${_ctx.height}`),
3407
- inline: _ctx.inline,
3408
- "label-position": _ctx.labelPosition,
3461
+ "label-width": __props.labelWidth,
3462
+ style: normalizeStyle(`height: ${__props.height}`),
3463
+ inline: __props.inline,
3464
+ "label-position": __props.labelPosition,
3409
3465
  onSubmit: submitHandler
3410
3466
  }, {
3411
3467
  default: withCtx(() => [
3412
- initialized.value && Array.isArray(_ctx.config) ? (openBlock(true), createElementBlock(
3468
+ initialized.value && Array.isArray(__props.config) ? (openBlock(true), createElementBlock(
3413
3469
  Fragment,
3414
3470
  { key: 0 },
3415
- renderList(_ctx.config, (item, index) => {
3471
+ renderList(__props.config, (item, index) => {
3416
3472
  return openBlock(), createBlock(_sfc_main$x, {
3417
- disabled: _ctx.disabled,
3418
- key: item[_ctx.keyProp] ?? index,
3473
+ disabled: __props.disabled,
3474
+ key: item[__props.keyProp] ?? index,
3419
3475
  config: item,
3420
3476
  model: values.value,
3421
3477
  "last-values": lastValuesProcessed.value,
3422
- "is-compare": _ctx.isCompare,
3423
- "label-width": item.labelWidth || _ctx.labelWidth,
3424
- "step-active": _ctx.stepActive,
3425
- size: _ctx.size,
3478
+ "is-compare": __props.isCompare,
3479
+ "label-width": item.labelWidth || __props.labelWidth,
3480
+ "step-active": __props.stepActive,
3481
+ size: __props.size,
3426
3482
  onChange: changeHandler
3427
3483
  }, null, 8, ["disabled", "config", "model", "last-values", "is-compare", "label-width", "step-active", "size"]);
3428
3484
  }),
@@ -3532,10 +3588,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3532
3588
  class: "m-form-dialog",
3533
3589
  top: "20px",
3534
3590
  "append-to-body": "",
3535
- title: _ctx.title,
3536
- width: _ctx.width,
3537
- zIndex: _ctx.zIndex,
3538
- fullscreen: _ctx.fullscreen,
3591
+ title: __props.title,
3592
+ width: __props.width,
3593
+ zIndex: __props.zIndex,
3594
+ fullscreen: __props.fullscreen,
3539
3595
  "close-on-click-modal": false,
3540
3596
  onClose: closeHandler
3541
3597
  }, {
@@ -3561,11 +3617,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3561
3617
  onClick: cancel,
3562
3618
  size: "small"
3563
3619
  }, {
3564
- default: withCtx(() => _cache[2] || (_cache[2] = [
3565
- createTextVNode("取 消")
3566
- ])),
3567
- _: 1,
3568
- __: [2]
3620
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
3621
+ createTextVNode(
3622
+ "取 消",
3623
+ -1
3624
+ /* CACHED */
3625
+ )
3626
+ ])]),
3627
+ _: 1
3628
+ /* STABLE */
3569
3629
  }),
3570
3630
  hasStep.value && stepActive.value > 1 ? (openBlock(), createBlock(unref(TMagicButton), {
3571
3631
  key: 0,
@@ -3573,11 +3633,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3573
3633
  size: "small",
3574
3634
  onClick: preStep
3575
3635
  }, {
3576
- default: withCtx(() => _cache[3] || (_cache[3] = [
3577
- createTextVNode("上一步")
3578
- ])),
3579
- _: 1,
3580
- __: [3]
3636
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
3637
+ createTextVNode(
3638
+ "上一步",
3639
+ -1
3640
+ /* CACHED */
3641
+ )
3642
+ ])]),
3643
+ _: 1
3644
+ /* STABLE */
3581
3645
  })) : createCommentVNode("v-if", true),
3582
3646
  hasStep.value && stepCount.value > stepActive.value ? (openBlock(), createBlock(unref(TMagicButton), {
3583
3647
  key: 1,
@@ -3585,22 +3649,26 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3585
3649
  size: "small",
3586
3650
  onClick: nextStep
3587
3651
  }, {
3588
- default: withCtx(() => _cache[4] || (_cache[4] = [
3589
- createTextVNode("下一步")
3590
- ])),
3591
- _: 1,
3592
- __: [4]
3652
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
3653
+ createTextVNode(
3654
+ "下一步",
3655
+ -1
3656
+ /* CACHED */
3657
+ )
3658
+ ])]),
3659
+ _: 1
3660
+ /* STABLE */
3593
3661
  })) : (openBlock(), createBlock(unref(TMagicButton), {
3594
3662
  key: 2,
3595
3663
  type: "primary",
3596
3664
  size: "small",
3597
- disabled: _ctx.disabled,
3665
+ disabled: __props.disabled,
3598
3666
  loading: saveFetch.value,
3599
3667
  onClick: save
3600
3668
  }, {
3601
3669
  default: withCtx(() => [
3602
3670
  createTextVNode(
3603
- toDisplayString(_ctx.confirmText),
3671
+ toDisplayString(__props.confirmText),
3604
3672
  1
3605
3673
  /* TEXT */
3606
3674
  )
@@ -3632,15 +3700,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
3632
3700
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => stepActive.value = $event),
3633
3701
  ref_key: "form",
3634
3702
  ref: form,
3635
- size: _ctx.size,
3636
- disabled: _ctx.disabled,
3637
- config: _ctx.config,
3638
- "init-values": _ctx.values,
3639
- "parent-values": _ctx.parentValues,
3640
- "label-width": _ctx.labelWidth,
3641
- "label-position": _ctx.labelPosition,
3642
- inline: _ctx.inline,
3643
- "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,
3644
3712
  onChange: changeHandler
3645
3713
  }, null, 8, ["modelValue", "size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
3646
3714
  renderSlot(_ctx.$slots, "default")
@@ -3725,16 +3793,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3725
3793
  editor.value && (editor.value.dialogVisible = false);
3726
3794
  };
3727
3795
  return (_ctx, _cache) => {
3728
- return _ctx.config.href && !_ctx.disabled ? (openBlock(), createElementBlock("a", {
3796
+ return __props.config.href && !__props.disabled ? (openBlock(), createElementBlock("a", {
3729
3797
  key: 0,
3730
3798
  target: "_blank",
3731
3799
  href: href.value,
3732
- style: normalizeStyle(_ctx.config.css || {})
3733
- }, 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(
3734
3802
  "span",
3735
3803
  {
3736
3804
  key: 1,
3737
- style: normalizeStyle(_ctx.config.disabledCss || {})
3805
+ style: normalizeStyle(__props.config.disabledCss || {})
3738
3806
  },
3739
3807
  toDisplayString(displayText.value),
3740
3808
  5
@@ -3745,21 +3813,25 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
3745
3813
  type: "primary",
3746
3814
  onClick: editHandler
3747
3815
  }, {
3748
- default: withCtx(() => _cache[0] || (_cache[0] = [
3749
- createTextVNode("点击编辑")
3750
- ])),
3751
- _: 1,
3752
- __: [0]
3816
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
3817
+ createTextVNode(
3818
+ "点击编辑",
3819
+ -1
3820
+ /* CACHED */
3821
+ )
3822
+ ])]),
3823
+ _: 1
3824
+ /* STABLE */
3753
3825
  }),
3754
3826
  createVNode(_sfc_main$c, {
3755
3827
  ref_key: "editor",
3756
3828
  ref: editor,
3757
- title: _ctx.config.formTitle || "编辑扩展配置",
3758
- width: _ctx.config.formWidth,
3829
+ title: __props.config.formTitle || "编辑扩展配置",
3830
+ width: __props.config.formWidth,
3759
3831
  values: formValue.value,
3760
3832
  config: formConfig.value,
3761
- parentValues: _ctx.values,
3762
- fullscreen: _ctx.config.fullscreen,
3833
+ parentValues: __props.values,
3834
+ fullscreen: __props.config.fullscreen,
3763
3835
  onSubmit: action
3764
3836
  }, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen"])
3765
3837
  ]));
@@ -3797,18 +3869,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
3797
3869
  mForm?.$emit("field-input", props.prop, v);
3798
3870
  };
3799
3871
  return (_ctx, _cache) => {
3800
- return _ctx.model ? (openBlock(), createBlock(unref(TMagicInputNumber), {
3872
+ return __props.model ? (openBlock(), createBlock(unref(TMagicInputNumber), {
3801
3873
  key: 0,
3802
- modelValue: _ctx.model[_ctx.name],
3803
- "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),
3804
3876
  clearable: "",
3805
3877
  "controls-position": "right",
3806
- size: _ctx.size,
3807
- max: _ctx.config.max,
3808
- min: _ctx.config.min,
3809
- step: _ctx.config.step,
3810
- placeholder: _ctx.config.placeholder,
3811
- 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,
3812
3884
  onChange: changeHandler,
3813
3885
  onInput: inputHandler
3814
3886
  }, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled"])) : createCommentVNode("v-if", true);
@@ -3850,11 +3922,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3850
3922
  return (_ctx, _cache) => {
3851
3923
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
3852
3924
  createVNode(unref(TMagicInput), {
3853
- modelValue: _ctx.model[_ctx.name][0],
3854
- "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),
3855
3927
  clearable: "",
3856
- size: _ctx.size,
3857
- disabled: _ctx.disabled,
3928
+ size: __props.size,
3929
+ disabled: __props.disabled,
3858
3930
  onChange: minChangeHandler
3859
3931
  }, null, 8, ["modelValue", "size", "disabled"]),
3860
3932
  _cache[2] || (_cache[2] = createElementVNode(
@@ -3865,11 +3937,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3865
3937
  /* CACHED */
3866
3938
  )),
3867
3939
  createVNode(unref(TMagicInput), {
3868
- modelValue: _ctx.model[_ctx.name][1],
3869
- "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),
3870
3942
  clearable: "",
3871
- size: _ctx.size,
3872
- disabled: _ctx.disabled,
3943
+ size: __props.size,
3944
+ disabled: __props.disabled,
3873
3945
  onChange: maxChangeHandler
3874
3946
  }, null, 8, ["modelValue", "size", "disabled"])
3875
3947
  ]);
@@ -3907,19 +3979,28 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3907
3979
  changeHandler(props.model[props.name]);
3908
3980
  };
3909
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
+ });
3910
3991
  return (_ctx, _cache) => {
3911
- return _ctx.model ? (openBlock(), createBlock(unref(TMagicRadioGroup), {
3992
+ return __props.model ? (openBlock(), createBlock(unref(TMagicRadioGroup), {
3912
3993
  key: 0,
3913
- modelValue: _ctx.model[_ctx.name],
3914
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
3915
- size: _ctx.size,
3916
- 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
3917
3998
  }, {
3918
3999
  default: withCtx(() => [
3919
4000
  (openBlock(true), createElementBlock(
3920
4001
  Fragment,
3921
4002
  null,
3922
- renderList(_ctx.config.options, (option) => {
4003
+ renderList(__props.config.options, (option) => {
3923
4004
  return openBlock(), createBlock(resolveDynamicComponent(itemComponent.value), {
3924
4005
  value: option.value,
3925
4006
  key: `${option.value}`,
@@ -3933,22 +4014,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3933
4014
  }, {
3934
4015
  default: withCtx(() => [
3935
4016
  createElementVNode("div", null, [
3936
- option.icon ? (openBlock(), createBlock(
3937
- unref(TMagicIcon),
3938
- {
3939
- key: 0,
3940
- size: "16"
3941
- },
3942
- {
3943
- default: withCtx(() => [
3944
- (openBlock(), createBlock(resolveDynamicComponent(option.icon)))
3945
- ]),
3946
- _: 2
3947
- /* DYNAMIC */
3948
- },
3949
- 1024
3950
- /* DYNAMIC_SLOTS */
3951
- )) : 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),
3952
4027
  createElementVNode(
3953
4028
  "span",
3954
4029
  null,
@@ -3961,22 +4036,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
3961
4036
  _: 2
3962
4037
  /* DYNAMIC */
3963
4038
  }, 1032, ["content"])) : (openBlock(), createElementBlock("div", _hoisted_1$3, [
3964
- option.icon ? (openBlock(), createBlock(
3965
- unref(TMagicIcon),
3966
- {
3967
- key: 0,
3968
- size: "16"
3969
- },
3970
- {
3971
- default: withCtx(() => [
3972
- (openBlock(), createBlock(resolveDynamicComponent(option.icon)))
3973
- ]),
3974
- _: 2
3975
- /* DYNAMIC */
3976
- },
3977
- 1024
3978
- /* DYNAMIC_SLOTS */
3979
- )) : 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),
3980
4049
  createElementVNode(
3981
4050
  "span",
3982
4051
  null,
@@ -4327,29 +4396,29 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4327
4396
  });
4328
4397
  return (_ctx, _cache) => {
4329
4398
  const _directive_loading = resolveDirective("loading");
4330
- return _ctx.model ? withDirectives((openBlock(), createBlock(unref(TMagicSelect), {
4399
+ return __props.model ? withDirectives((openBlock(), createBlock(unref(TMagicSelect), {
4331
4400
  key: 0,
4332
- modelValue: _ctx.model[_ctx.name],
4333
- "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),
4334
4403
  class: "m-select",
4335
4404
  ref_key: "tMagicSelect",
4336
4405
  ref: tMagicSelect,
4337
- clearable: typeof _ctx.config.clearable !== "undefined" ? _ctx.config.clearable : true,
4338
- 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,
4339
4408
  "popper-class": `m-select-popper ${unref(popperClass)}`,
4340
- size: _ctx.size,
4409
+ size: __props.size,
4341
4410
  remote: remote.value,
4342
- placeholder: _ctx.config.placeholder,
4343
- multiple: _ctx.config.multiple,
4344
- "value-key": _ctx.config.valueKey || "value",
4345
- "allow-create": _ctx.config.allowCreate,
4346
- disabled: _ctx.disabled,
4347
- "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,
4348
4417
  onChange: changeHandler,
4349
4418
  onVisibleChange: visibleHandler
4350
4419
  }, {
4351
4420
  default: withCtx(() => [
4352
- _ctx.config.group ? (openBlock(true), createElementBlock(
4421
+ __props.config.group ? (openBlock(true), createElementBlock(
4353
4422
  Fragment,
4354
4423
  { key: 0 },
4355
4424
  renderList(options.value, (group, index) => {
@@ -4414,7 +4483,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4414
4483
  mergeProps(
4415
4484
  {
4416
4485
  class: "tmagic-design-option",
4417
- key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value
4486
+ key: __props.config.valueKey ? option.value[__props.config.valueKey] : option.value
4418
4487
  },
4419
4488
  { ref_for: true },
4420
4489
  unref(optionComponent)?.props({
@@ -4500,19 +4569,19 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
4500
4569
  });
4501
4570
  return (_ctx, _cache) => {
4502
4571
  return openBlock(), createBlock(unref(TMagicSwitch), {
4503
- modelValue: _ctx.model[_ctx.name],
4504
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
4505
- 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,
4506
4575
  activeValue: activeValue.value,
4507
4576
  inactiveValue: inactiveValue.value,
4508
- disabled: _ctx.disabled,
4577
+ disabled: __props.disabled,
4509
4578
  onChange: changeHandler
4510
4579
  }, null, 8, ["modelValue", "size", "activeValue", "inactiveValue", "disabled"]);
4511
4580
  };
4512
4581
  }
4513
4582
  });
4514
4583
 
4515
- const _hoisted_1$1 = { style: { "width": "100%" } };
4584
+ const _hoisted_1$1 = { class: "m-fields-text" };
4516
4585
  const _hoisted_2 = { style: { "display": "flex", "justify-content": "flex-end" } };
4517
4586
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4518
4587
  ...{
@@ -4655,14 +4724,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4655
4724
  return (_ctx, _cache) => {
4656
4725
  return openBlock(), createElementBlock("div", _hoisted_1$1, [
4657
4726
  createVNode(unref(TMagicInput), {
4658
- modelValue: _ctx.model[_ctx.name],
4659
- "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),
4660
4729
  ref_key: "input",
4661
4730
  ref: input,
4662
4731
  clearable: "",
4663
- size: _ctx.size,
4664
- placeholder: _ctx.config.placeholder,
4665
- disabled: _ctx.disabled,
4732
+ size: __props.size,
4733
+ placeholder: __props.config.placeholder,
4734
+ disabled: __props.disabled,
4666
4735
  onChange: changeHandler,
4667
4736
  onInput: inputHandler,
4668
4737
  onKeyup: _cache[1] || (_cache[1] = ($event) => keyUpHandler($event))
@@ -4676,7 +4745,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4676
4745
  appendConfig.value.type === "button" ? (openBlock(), createBlock(unref(TMagicButton), {
4677
4746
  key: 0,
4678
4747
  style: { "color": "#409eff" },
4679
- size: _ctx.size,
4748
+ size: __props.size,
4680
4749
  onClick: withModifiers(buttonClickHandler, ["prevent"])
4681
4750
  }, {
4682
4751
  default: withCtx(() => [
@@ -4716,22 +4785,30 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
4716
4785
  size: "small",
4717
4786
  onClick: _cache[2] || (_cache[2] = ($event) => popoverVisible.value = false)
4718
4787
  }, {
4719
- default: withCtx(() => _cache[3] || (_cache[3] = [
4720
- createTextVNode("保持原样")
4721
- ])),
4722
- _: 1,
4723
- __: [3]
4788
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
4789
+ createTextVNode(
4790
+ "保持原样",
4791
+ -1
4792
+ /* CACHED */
4793
+ )
4794
+ ])]),
4795
+ _: 1
4796
+ /* STABLE */
4724
4797
  }),
4725
4798
  createVNode(unref(TMagicButton), {
4726
4799
  type: "primary",
4727
4800
  size: "small",
4728
4801
  onClick: confirmTrimHandler
4729
4802
  }, {
4730
- default: withCtx(() => _cache[4] || (_cache[4] = [
4731
- createTextVNode("移除空格")
4732
- ])),
4733
- _: 1,
4734
- __: [4]
4803
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
4804
+ createTextVNode(
4805
+ "移除空格",
4806
+ -1
4807
+ /* CACHED */
4808
+ )
4809
+ ])]),
4810
+ _: 1
4811
+ /* STABLE */
4735
4812
  })
4736
4813
  ]),
4737
4814
  _cache[6] || (_cache[6] = createElementVNode(
@@ -4785,13 +4862,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4785
4862
  };
4786
4863
  return (_ctx, _cache) => {
4787
4864
  return openBlock(), createBlock(unref(TMagicInput), {
4788
- modelValue: _ctx.model[_ctx.name],
4789
- "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),
4790
4867
  type: "textarea",
4791
- size: _ctx.size,
4868
+ size: __props.size,
4792
4869
  clearable: "",
4793
- placeholder: _ctx.config.placeholder,
4794
- disabled: _ctx.disabled,
4870
+ placeholder: __props.config.placeholder,
4871
+ disabled: __props.disabled,
4795
4872
  onChange: changeHandler,
4796
4873
  onInput: inputHandler
4797
4874
  }, null, 8, ["modelValue", "size", "placeholder", "disabled"]);
@@ -4825,13 +4902,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4825
4902
  };
4826
4903
  return (_ctx, _cache) => {
4827
4904
  return openBlock(), createBlock(unref(TMagicTimePicker), {
4828
- modelValue: _ctx.model[_ctx.name],
4829
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
4830
- "value-format": _ctx.config.valueFormat || "HH:mm:ss",
4831
- format: _ctx.config.format || "HH:mm:ss",
4832
- size: _ctx.size,
4833
- placeholder: _ctx.config.placeholder,
4834
- 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,
4835
4912
  onChange: changeHandler
4836
4913
  }, null, 8, ["modelValue", "value-format", "format", "size", "placeholder", "disabled"]);
4837
4914
  };
@@ -4904,10 +4981,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4904
4981
  "range-separator": "-",
4905
4982
  "start-placeholder": "开始时间",
4906
4983
  "end-placeholder": "结束时间",
4907
- size: _ctx.size,
4984
+ size: __props.size,
4908
4985
  "unlink-panels": true,
4909
- disabled: _ctx.disabled,
4910
- "default-time": _ctx.config.defaultTime,
4986
+ disabled: __props.disabled,
4987
+ "default-time": __props.config.defaultTime,
4911
4988
  onChange: changeHandler
4912
4989
  }, null, 8, ["modelValue", "size", "disabled", "default-time"]);
4913
4990
  };
@@ -4998,14 +5075,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4998
5075
  ref: drawer,
4999
5076
  modelValue: visible.value,
5000
5077
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
5001
- title: _ctx.title,
5002
- "close-on-press-escape": _ctx.closeOnPressEscape,
5078
+ title: __props.title,
5079
+ "close-on-press-escape": __props.closeOnPressEscape,
5003
5080
  "append-to-body": true,
5004
5081
  "show-close": true,
5005
5082
  "close-on-click-modal": true,
5006
- size: _ctx.width,
5007
- zIndex: _ctx.zIndex,
5008
- "before-close": _ctx.beforeClose,
5083
+ size: __props.width,
5084
+ zIndex: __props.zIndex,
5085
+ "before-close": __props.beforeClose,
5009
5086
  onOpen: openHandler,
5010
5087
  onOpened: openedHandler,
5011
5088
  onClose: closeHandler,
@@ -5030,21 +5107,25 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5030
5107
  default: withCtx(() => [
5031
5108
  renderSlot(_ctx.$slots, "footer", {}, () => [
5032
5109
  createVNode(unref(TMagicButton), { onClick: handleClose }, {
5033
- default: withCtx(() => _cache[1] || (_cache[1] = [
5034
- createTextVNode("关闭")
5035
- ])),
5036
- _: 1,
5037
- __: [1]
5110
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
5111
+ createTextVNode(
5112
+ "关闭",
5113
+ -1
5114
+ /* CACHED */
5115
+ )
5116
+ ])]),
5117
+ _: 1
5118
+ /* STABLE */
5038
5119
  }),
5039
5120
  createVNode(unref(TMagicButton), {
5040
5121
  type: "primary",
5041
- disabled: _ctx.disabled,
5122
+ disabled: __props.disabled,
5042
5123
  loading: saveFetch.value,
5043
5124
  onClick: submitHandler
5044
5125
  }, {
5045
5126
  default: withCtx(() => [
5046
5127
  createTextVNode(
5047
- toDisplayString(_ctx.confirmText),
5128
+ toDisplayString(__props.confirmText),
5048
5129
  1
5049
5130
  /* TEXT */
5050
5131
  )
@@ -5075,15 +5156,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5075
5156
  createVNode(_sfc_main$d, {
5076
5157
  ref_key: "form",
5077
5158
  ref: form,
5078
- size: _ctx.size,
5079
- disabled: _ctx.disabled,
5080
- config: _ctx.config,
5081
- "init-values": _ctx.values,
5082
- "parent-values": _ctx.parentValues,
5083
- "label-width": _ctx.labelWidth,
5084
- "label-position": _ctx.labelPosition,
5085
- inline: _ctx.inline,
5086
- "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,
5087
5168
  onChange: changeHandler
5088
5169
  }, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
5089
5170
  renderSlot(_ctx.$slots, "default")
@@ -5183,15 +5264,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5183
5264
  createVNode(_sfc_main$d, {
5184
5265
  ref_key: "form",
5185
5266
  ref: form,
5186
- size: _ctx.size,
5187
- disabled: _ctx.disabled,
5188
- config: _ctx.config,
5189
- "init-values": _ctx.values,
5190
- "parent-values": _ctx.parentValues,
5191
- "label-width": _ctx.labelWidth,
5192
- "label-position": _ctx.labelPosition,
5193
- inline: _ctx.inline,
5194
- "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,
5195
5276
  onChange: changeHandler
5196
5277
  }, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
5197
5278
  renderSlot(_ctx.$slots, "default")
@@ -5217,14 +5298,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5217
5298
  renderSlot(_ctx.$slots, "footer", {}, () => [
5218
5299
  createVNode(unref(TMagicButton), {
5219
5300
  type: "primary",
5220
- size: _ctx.size,
5221
- disabled: _ctx.disabled,
5301
+ size: __props.size,
5302
+ disabled: __props.disabled,
5222
5303
  loading: saveFetch.value,
5223
5304
  onClick: submitHandler
5224
5305
  }, {
5225
5306
  default: withCtx(() => [
5226
5307
  createTextVNode(
5227
- toDisplayString(_ctx.confirmText),
5308
+ toDisplayString(__props.confirmText),
5228
5309
  1
5229
5310
  /* TEXT */
5230
5311
  )