@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.
@@ -3312,31 +3312,31 @@
3312
3312
  return (_ctx, _cache) => {
3313
3313
  const _component_m_fields_hidden = vue.resolveComponent("m-fields-hidden");
3314
3314
  const _component_Container = vue.resolveComponent("Container", true);
3315
- return _ctx.config ? (vue.openBlock(), vue.createElementBlock("div", {
3315
+ return __props.config ? (vue.openBlock(), vue.createElementBlock("div", {
3316
3316
  key: 0,
3317
- "data-tmagic-id": _ctx.config.id,
3317
+ "data-tmagic-id": __props.config.id,
3318
3318
  "data-tmagic-form-item-prop": itemProp.value,
3319
- style: vue.normalizeStyle(_ctx.config.tip ? "display: flex;align-items: baseline;" : ""),
3320
- class: vue.normalizeClass(`m-form-container m-container-${type.value || ""} ${_ctx.config.className || ""}`)
3319
+ style: vue.normalizeStyle(__props.config.tip ? "display: flex;align-items: baseline;" : ""),
3320
+ class: vue.normalizeClass(`m-form-container m-container-${type.value || ""} ${__props.config.className || ""}`)
3321
3321
  }, [
3322
3322
  type.value === "hidden" ? (vue.openBlock(), vue.createBlock(_component_m_fields_hidden, {
3323
3323
  key: 0,
3324
- model: _ctx.model,
3325
- config: _ctx.config,
3326
- name: _ctx.config.name,
3324
+ model: __props.model,
3325
+ config: __props.config,
3326
+ name: __props.config.name,
3327
3327
  disabled: disabled.value,
3328
3328
  prop: itemProp.value
3329
3329
  }, null, 8, ["model", "config", "name", "disabled", "prop"])) : items.value && !text.value && type.value && display$1.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3330
- key: key(_ctx.config),
3331
- size: _ctx.size,
3332
- model: _ctx.model,
3333
- "last-values": _ctx.lastValues,
3334
- "is-compare": _ctx.isCompare,
3335
- config: _ctx.config,
3330
+ key: key(__props.config),
3331
+ size: __props.size,
3332
+ model: __props.model,
3333
+ "last-values": __props.lastValues,
3334
+ "is-compare": __props.isCompare,
3335
+ config: __props.config,
3336
3336
  disabled: disabled.value,
3337
3337
  name: name.value,
3338
3338
  prop: itemProp.value,
3339
- "step-active": _ctx.stepActive,
3339
+ "step-active": __props.stepActive,
3340
3340
  "expand-more": expand.value,
3341
3341
  "label-width": itemLabelWidth.value,
3342
3342
  onChange: onChangeHandler,
@@ -3346,17 +3346,17 @@
3346
3346
  { key: 2 },
3347
3347
  [
3348
3348
  vue.createVNode(vue.unref(design.TMagicFormItem), {
3349
- style: vue.normalizeStyle(_ctx.config.tip ? "flex: 1" : ""),
3349
+ style: vue.normalizeStyle(__props.config.tip ? "flex: 1" : ""),
3350
3350
  class: vue.normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
3351
3351
  prop: itemProp.value,
3352
3352
  "label-width": itemLabelWidth.value,
3353
- "label-position": _ctx.config.labelPosition,
3353
+ "label-position": __props.config.labelPosition,
3354
3354
  rules: rule.value
3355
3355
  }, {
3356
3356
  label: vue.withCtx(() => [
3357
3357
  vue.createElementVNode("span", {
3358
3358
  innerHTML: type.value === "checkbox" ? "" : text.value,
3359
- title: _ctx.config.labelTitle
3359
+ title: __props.config.labelTitle
3360
3360
  }, null, 8, _hoisted_2$7)
3361
3361
  ]),
3362
3362
  default: vue.withCtx(() => [
@@ -3366,11 +3366,11 @@
3366
3366
  ]),
3367
3367
  default: vue.withCtx(() => [
3368
3368
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3369
- key: key(_ctx.config),
3370
- size: _ctx.size,
3371
- model: _ctx.model,
3372
- "last-values": _ctx.lastValues,
3373
- config: _ctx.config,
3369
+ key: key(__props.config),
3370
+ size: __props.size,
3371
+ model: __props.model,
3372
+ "last-values": __props.lastValues,
3373
+ config: __props.config,
3374
3374
  name: name.value,
3375
3375
  disabled: disabled.value,
3376
3376
  prop: itemProp.value,
@@ -3381,11 +3381,11 @@
3381
3381
  _: 1
3382
3382
  /* STABLE */
3383
3383
  })) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3384
- key: key(_ctx.config),
3385
- size: _ctx.size,
3386
- model: _ctx.model,
3387
- "last-values": _ctx.lastValues,
3388
- config: _ctx.config,
3384
+ key: key(__props.config),
3385
+ size: __props.size,
3386
+ model: __props.model,
3387
+ "last-values": __props.lastValues,
3388
+ config: __props.config,
3389
3389
  name: name.value,
3390
3390
  disabled: disabled.value,
3391
3391
  prop: itemProp.value,
@@ -3401,13 +3401,13 @@
3401
3401
  _: 1
3402
3402
  /* STABLE */
3403
3403
  }, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
3404
- _ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
3404
+ __props.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
3405
3405
  key: 0,
3406
3406
  placement: "left"
3407
3407
  }, {
3408
3408
  content: vue.withCtx(() => [
3409
3409
  vue.createElementVNode("div", {
3410
- innerHTML: _ctx.config.tip
3410
+ innerHTML: __props.config.tip
3411
3411
  }, null, 8, _hoisted_5$3)
3412
3412
  ]),
3413
3413
  default: vue.withCtx(() => [
@@ -3432,17 +3432,17 @@
3432
3432
  vue.createCommentVNode(" 对比 "),
3433
3433
  vue.createCommentVNode(" 上次内容 "),
3434
3434
  vue.createVNode(vue.unref(design.TMagicFormItem), {
3435
- style: vue.normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#f7dadd" }]),
3435
+ style: vue.normalizeStyle([__props.config.tip ? "flex: 1" : "", { "background": "#f7dadd" }]),
3436
3436
  class: vue.normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
3437
3437
  prop: itemProp.value,
3438
3438
  "label-width": itemLabelWidth.value,
3439
- "label-position": _ctx.config.labelPosition,
3439
+ "label-position": __props.config.labelPosition,
3440
3440
  rules: rule.value
3441
3441
  }, {
3442
3442
  label: vue.withCtx(() => [
3443
3443
  vue.createElementVNode("span", {
3444
3444
  innerHTML: type.value === "checkbox" ? "" : text.value,
3445
- title: _ctx.config.labelTitle
3445
+ title: __props.config.labelTitle
3446
3446
  }, null, 8, _hoisted_6$2)
3447
3447
  ]),
3448
3448
  default: vue.withCtx(() => [
@@ -3452,10 +3452,10 @@
3452
3452
  ]),
3453
3453
  default: vue.withCtx(() => [
3454
3454
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3455
- key: key(_ctx.config),
3456
- size: _ctx.size,
3457
- model: _ctx.lastValues,
3458
- config: _ctx.config,
3455
+ key: key(__props.config),
3456
+ size: __props.size,
3457
+ model: __props.lastValues,
3458
+ config: __props.config,
3459
3459
  name: name.value,
3460
3460
  disabled: disabled.value,
3461
3461
  prop: itemProp.value,
@@ -3465,10 +3465,10 @@
3465
3465
  _: 1
3466
3466
  /* STABLE */
3467
3467
  })) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3468
- key: key(_ctx.config),
3469
- size: _ctx.size,
3470
- model: _ctx.lastValues,
3471
- config: _ctx.config,
3468
+ key: key(__props.config),
3469
+ size: __props.size,
3470
+ model: __props.lastValues,
3471
+ config: __props.config,
3472
3472
  name: name.value,
3473
3473
  disabled: disabled.value,
3474
3474
  prop: itemProp.value,
@@ -3483,13 +3483,13 @@
3483
3483
  _: 1
3484
3484
  /* STABLE */
3485
3485
  }, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
3486
- _ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
3486
+ __props.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
3487
3487
  key: 0,
3488
3488
  placement: "left"
3489
3489
  }, {
3490
3490
  content: vue.withCtx(() => [
3491
3491
  vue.createElementVNode("div", {
3492
- innerHTML: _ctx.config.tip
3492
+ innerHTML: __props.config.tip
3493
3493
  }, null, 8, _hoisted_9)
3494
3494
  ]),
3495
3495
  default: vue.withCtx(() => [
@@ -3506,17 +3506,17 @@
3506
3506
  })) : vue.createCommentVNode("v-if", true),
3507
3507
  vue.createCommentVNode(" 当前内容 "),
3508
3508
  vue.createVNode(vue.unref(design.TMagicFormItem), {
3509
- style: vue.normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#def7da" }]),
3509
+ style: vue.normalizeStyle([__props.config.tip ? "flex: 1" : "", { "background": "#def7da" }]),
3510
3510
  class: vue.normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
3511
3511
  prop: itemProp.value,
3512
3512
  "label-width": itemLabelWidth.value,
3513
- "label-position": _ctx.config.labelPosition,
3513
+ "label-position": __props.config.labelPosition,
3514
3514
  rules: rule.value
3515
3515
  }, {
3516
3516
  label: vue.withCtx(() => [
3517
3517
  vue.createElementVNode("span", {
3518
3518
  innerHTML: type.value === "checkbox" ? "" : text.value,
3519
- title: _ctx.config.labelTitle
3519
+ title: __props.config.labelTitle
3520
3520
  }, null, 8, _hoisted_10)
3521
3521
  ]),
3522
3522
  default: vue.withCtx(() => [
@@ -3526,10 +3526,10 @@
3526
3526
  ]),
3527
3527
  default: vue.withCtx(() => [
3528
3528
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3529
- key: key(_ctx.config),
3530
- size: _ctx.size,
3531
- model: _ctx.model,
3532
- config: _ctx.config,
3529
+ key: key(__props.config),
3530
+ size: __props.size,
3531
+ model: __props.model,
3532
+ config: __props.config,
3533
3533
  name: name.value,
3534
3534
  disabled: disabled.value,
3535
3535
  prop: itemProp.value,
@@ -3539,10 +3539,10 @@
3539
3539
  _: 1
3540
3540
  /* STABLE */
3541
3541
  })) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3542
- key: key(_ctx.config),
3543
- size: _ctx.size,
3544
- model: _ctx.model,
3545
- config: _ctx.config,
3542
+ key: key(__props.config),
3543
+ size: __props.size,
3544
+ model: __props.model,
3545
+ config: __props.config,
3546
3546
  name: name.value,
3547
3547
  disabled: disabled.value,
3548
3548
  prop: itemProp.value,
@@ -3557,13 +3557,13 @@
3557
3557
  _: 1
3558
3558
  /* STABLE */
3559
3559
  }, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
3560
- _ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
3560
+ __props.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
3561
3561
  key: 1,
3562
3562
  placement: "left"
3563
3563
  }, {
3564
3564
  content: vue.withCtx(() => [
3565
3565
  vue.createElementVNode("div", {
3566
- innerHTML: _ctx.config.tip
3566
+ innerHTML: __props.config.tip
3567
3567
  }, null, 8, _hoisted_13)
3568
3568
  ]),
3569
3569
  default: vue.withCtx(() => [
@@ -3585,19 +3585,19 @@
3585
3585
  vue.Fragment,
3586
3586
  { key: 4 },
3587
3587
  [
3588
- (isValidName() ? _ctx.model[name.value] : _ctx.model) ? (vue.openBlock(true), vue.createElementBlock(
3588
+ (isValidName() ? __props.model[name.value] : __props.model) ? (vue.openBlock(true), vue.createElementBlock(
3589
3589
  vue.Fragment,
3590
3590
  { key: 0 },
3591
3591
  vue.renderList(items.value, (item) => {
3592
3592
  return vue.openBlock(), vue.createBlock(_component_Container, {
3593
3593
  key: key(item),
3594
- model: isValidName() ? _ctx.model[name.value] : _ctx.model,
3595
- "last-values": isValidName() ? _ctx.lastValues[name.value] || {} : _ctx.lastValues,
3596
- "is-compare": _ctx.isCompare,
3594
+ model: isValidName() ? __props.model[name.value] : __props.model,
3595
+ "last-values": isValidName() ? __props.lastValues[name.value] || {} : __props.lastValues,
3596
+ "is-compare": __props.isCompare,
3597
3597
  config: item,
3598
- size: _ctx.size,
3598
+ size: __props.size,
3599
3599
  disabled: disabled.value,
3600
- "step-active": _ctx.stepActive,
3600
+ "step-active": __props.stepActive,
3601
3601
  "expand-more": expand.value,
3602
3602
  "label-width": itemLabelWidth.value,
3603
3603
  prop: itemProp.value,
@@ -3612,7 +3612,7 @@
3612
3612
  64
3613
3613
  /* STABLE_FRAGMENT */
3614
3614
  )) : vue.createCommentVNode("v-if", true),
3615
- _ctx.config.expand && type.value !== "fieldset" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
3615
+ __props.config.expand && type.value !== "fieldset" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
3616
3616
  vue.createVNode(vue.unref(design.TMagicButton), {
3617
3617
  type: "primary",
3618
3618
  size: "small",
@@ -3688,7 +3688,7 @@
3688
3688
  const key = (item, index) => item[mForm?.keyProp || "__key"] ?? index;
3689
3689
  const onAddDiffCount = () => emit("addDiffCount");
3690
3690
  return (_ctx, _cache) => {
3691
- return (name.value ? _ctx.model[name.value] : _ctx.model) ? (vue.openBlock(), vue.createElementBlock(
3691
+ return (name.value ? __props.model[name.value] : __props.model) ? (vue.openBlock(), vue.createElementBlock(
3692
3692
  "fieldset",
3693
3693
  {
3694
3694
  key: 0,
@@ -3696,25 +3696,25 @@
3696
3696
  style: vue.normalizeStyle(show.value ? "padding: 15px" : "border: 0")
3697
3697
  },
3698
3698
  [
3699
- name.value && _ctx.config.checkbox ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(!show.value ? "div" : "legend"), { key: 0 }, {
3699
+ name.value && __props.config.checkbox ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(!show.value ? "div" : "legend"), { key: 0 }, {
3700
3700
  default: vue.withCtx(() => [
3701
3701
  vue.createVNode(vue.unref(design.TMagicCheckbox), {
3702
- modelValue: _ctx.model[name.value].value,
3702
+ modelValue: __props.model[name.value].value,
3703
3703
  "onUpdate:modelValue": [
3704
- _cache[0] || (_cache[0] = ($event) => _ctx.model[name.value].value = $event),
3704
+ _cache[0] || (_cache[0] = ($event) => __props.model[name.value].value = $event),
3705
3705
  valueChangeHandler
3706
3706
  ],
3707
- prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${_ctx.config.name}.value`,
3707
+ prop: `${__props.prop}${__props.prop ? "." : ""}${__props.config.name}.value`,
3708
3708
  "true-value": 1,
3709
3709
  "false-value": 0
3710
3710
  }, {
3711
3711
  default: vue.withCtx(() => [
3712
3712
  vue.createElementVNode("span", {
3713
- innerHTML: _ctx.config.legend
3713
+ innerHTML: __props.config.legend
3714
3714
  }, null, 8, _hoisted_1$d),
3715
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
3715
+ __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
3716
3716
  key: 0,
3717
- innerHTML: _ctx.config.extra,
3717
+ innerHTML: __props.config.extra,
3718
3718
  class: "m-form-tip"
3719
3719
  }, null, 8, _hoisted_2$6)) : vue.createCommentVNode("v-if", true)
3720
3720
  ]),
@@ -3726,31 +3726,31 @@
3726
3726
  /* STABLE */
3727
3727
  })) : (vue.openBlock(), vue.createElementBlock("legend", _hoisted_3$4, [
3728
3728
  vue.createElementVNode("span", {
3729
- innerHTML: _ctx.config.legend
3729
+ innerHTML: __props.config.legend
3730
3730
  }, null, 8, _hoisted_4$2),
3731
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
3731
+ __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
3732
3732
  key: 0,
3733
- innerHTML: _ctx.config.extra,
3733
+ innerHTML: __props.config.extra,
3734
3734
  class: "m-form-tip"
3735
3735
  }, null, 8, _hoisted_5$2)) : vue.createCommentVNode("v-if", true)
3736
3736
  ])),
3737
- _ctx.config.schematic && show.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
3737
+ __props.config.schematic && show.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
3738
3738
  vue.createElementVNode("div", _hoisted_7, [
3739
3739
  (vue.openBlock(true), vue.createElementBlock(
3740
3740
  vue.Fragment,
3741
3741
  null,
3742
- vue.renderList(_ctx.config.items, (item, index) => {
3742
+ vue.renderList(__props.config.items, (item, index) => {
3743
3743
  return vue.openBlock(), vue.createBlock(_sfc_main$x, {
3744
3744
  key: key(item, index),
3745
- model: name.value ? _ctx.model[name.value] : _ctx.model,
3746
- lastValues: name.value ? _ctx.lastValues[name.value] : _ctx.lastValues,
3747
- "is-compare": _ctx.isCompare,
3748
- rules: name.value ? _ctx.rules[name.value] : [],
3745
+ model: name.value ? __props.model[name.value] : __props.model,
3746
+ lastValues: name.value ? __props.lastValues[name.value] : __props.lastValues,
3747
+ "is-compare": __props.isCompare,
3748
+ rules: name.value ? __props.rules[name.value] : [],
3749
3749
  config: item,
3750
- prop: _ctx.prop,
3751
- disabled: _ctx.disabled,
3750
+ prop: __props.prop,
3751
+ disabled: __props.disabled,
3752
3752
  labelWidth: lWidth.value,
3753
- size: _ctx.size,
3753
+ size: __props.size,
3754
3754
  onChange: changeHandler,
3755
3755
  onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
3756
3756
  }, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "disabled", "labelWidth", "size"]);
@@ -3761,23 +3761,23 @@
3761
3761
  ]),
3762
3762
  vue.createElementVNode("img", {
3763
3763
  class: "m-form-schematic",
3764
- src: _ctx.config.schematic
3764
+ src: __props.config.schematic
3765
3765
  }, null, 8, _hoisted_8)
3766
3766
  ])) : show.value ? (vue.openBlock(true), vue.createElementBlock(
3767
3767
  vue.Fragment,
3768
3768
  { key: 3 },
3769
- vue.renderList(_ctx.config.items, (item, index) => {
3769
+ vue.renderList(__props.config.items, (item, index) => {
3770
3770
  return vue.openBlock(), vue.createBlock(_sfc_main$x, {
3771
3771
  key: key(item, index),
3772
- model: name.value ? _ctx.model[name.value] : _ctx.model,
3773
- lastValues: name.value ? _ctx.lastValues[name.value] : _ctx.lastValues,
3774
- "is-compare": _ctx.isCompare,
3775
- rules: name.value ? _ctx.rules[name.value] : [],
3772
+ model: name.value ? __props.model[name.value] : __props.model,
3773
+ lastValues: name.value ? __props.lastValues[name.value] : __props.lastValues,
3774
+ "is-compare": __props.isCompare,
3775
+ rules: name.value ? __props.rules[name.value] : [],
3776
3776
  config: item,
3777
- prop: _ctx.prop,
3777
+ prop: __props.prop,
3778
3778
  labelWidth: lWidth.value,
3779
- size: _ctx.size,
3780
- disabled: _ctx.disabled,
3779
+ size: __props.size,
3780
+ disabled: __props.disabled,
3781
3781
  onChange: changeHandler,
3782
3782
  onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
3783
3783
  }, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "labelWidth", "size", "disabled"]);
@@ -3878,7 +3878,7 @@
3878
3878
  vue.createElementVNode("div", null, [
3879
3879
  vue.createVNode(vue.unref(design.TMagicButton), {
3880
3880
  link: "",
3881
- disabled: _ctx.disabled,
3881
+ disabled: __props.disabled,
3882
3882
  onClick: expandHandler
3883
3883
  }, {
3884
3884
  default: vue.withCtx(() => [
@@ -3903,7 +3903,7 @@
3903
3903
  size: "small",
3904
3904
  link: "",
3905
3905
  icon: vue.unref(iconsVue.Delete),
3906
- disabled: _ctx.disabled,
3906
+ disabled: __props.disabled,
3907
3907
  onClick: removeHandler
3908
3908
  }, null, 8, ["icon", "disabled"]), [
3909
3909
  [vue.vShow, showDelete.value]
@@ -3914,14 +3914,18 @@
3914
3914
  size: "small",
3915
3915
  type: "primary",
3916
3916
  icon: vue.unref(iconsVue.DocumentCopy),
3917
- disabled: _ctx.disabled,
3917
+ disabled: __props.disabled,
3918
3918
  onClick: copyHandler
3919
3919
  }, {
3920
- default: vue.withCtx(() => _cache[6] || (_cache[6] = [
3921
- vue.createTextVNode("复制")
3922
- ])),
3923
- _: 1,
3924
- __: [6]
3920
+ default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
3921
+ vue.createTextVNode(
3922
+ "复制",
3923
+ -1
3924
+ /* CACHED */
3925
+ )
3926
+ ])]),
3927
+ _: 1
3928
+ /* STABLE */
3925
3929
  }, 8, ["icon", "disabled"])) : vue.createCommentVNode("v-if", true),
3926
3930
  movable.value ? (vue.openBlock(), vue.createElementBlock(
3927
3931
  vue.Fragment,
@@ -3930,38 +3934,46 @@
3930
3934
  vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
3931
3935
  link: "",
3932
3936
  size: "small",
3933
- disabled: _ctx.disabled,
3937
+ disabled: __props.disabled,
3934
3938
  icon: vue.unref(iconsVue.CaretTop),
3935
3939
  onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
3936
3940
  }, {
3937
- default: vue.withCtx(() => _cache[7] || (_cache[7] = [
3938
- vue.createTextVNode("上移")
3939
- ])),
3940
- _: 1,
3941
- __: [7]
3941
+ default: vue.withCtx(() => [..._cache[7] || (_cache[7] = [
3942
+ vue.createTextVNode(
3943
+ "上移",
3944
+ -1
3945
+ /* CACHED */
3946
+ )
3947
+ ])]),
3948
+ _: 1
3949
+ /* STABLE */
3942
3950
  }, 8, ["disabled", "icon"]), [
3943
- [vue.vShow, _ctx.index !== 0]
3951
+ [vue.vShow, __props.index !== 0]
3944
3952
  ]),
3945
3953
  vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
3946
3954
  link: "",
3947
3955
  size: "small",
3948
- disabled: _ctx.disabled,
3956
+ disabled: __props.disabled,
3949
3957
  icon: vue.unref(iconsVue.CaretBottom),
3950
3958
  onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
3951
3959
  }, {
3952
- default: vue.withCtx(() => _cache[8] || (_cache[8] = [
3953
- vue.createTextVNode("下移")
3954
- ])),
3955
- _: 1,
3956
- __: [8]
3960
+ default: vue.withCtx(() => [..._cache[8] || (_cache[8] = [
3961
+ vue.createTextVNode(
3962
+ "下移",
3963
+ -1
3964
+ /* CACHED */
3965
+ )
3966
+ ])]),
3967
+ _: 1
3968
+ /* STABLE */
3957
3969
  }, 8, ["disabled", "icon"]), [
3958
- [vue.vShow, _ctx.index !== length.value - 1]
3970
+ [vue.vShow, __props.index !== length.value - 1]
3959
3971
  ])
3960
3972
  ],
3961
3973
  64
3962
3974
  /* STABLE_FRAGMENT */
3963
3975
  )) : vue.createCommentVNode("v-if", true),
3964
- _ctx.config.moveSpecifyLocation ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicPopover), {
3976
+ __props.config.moveSpecifyLocation ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicPopover), {
3965
3977
  key: 2,
3966
3978
  trigger: "click",
3967
3979
  placement: "top",
@@ -3974,29 +3986,41 @@
3974
3986
  size: "small",
3975
3987
  type: "primary",
3976
3988
  icon: vue.unref(iconsVue.Position),
3977
- disabled: _ctx.disabled,
3989
+ disabled: __props.disabled,
3978
3990
  onClick: _cache[2] || (_cache[2] = ($event) => moveSpecifyLocationVisible.value = true)
3979
3991
  }, {
3980
- default: vue.withCtx(() => _cache[9] || (_cache[9] = [
3981
- vue.createTextVNode("移动至")
3982
- ])),
3983
- _: 1,
3984
- __: [9]
3992
+ default: vue.withCtx(() => [..._cache[9] || (_cache[9] = [
3993
+ vue.createTextVNode(
3994
+ "移动至",
3995
+ -1
3996
+ /* CACHED */
3997
+ )
3998
+ ])]),
3999
+ _: 1
4000
+ /* STABLE */
3985
4001
  }, 8, ["icon", "disabled"])
3986
4002
  ]),
3987
4003
  default: vue.withCtx(() => [
3988
4004
  vue.createElementVNode("div", null, [
3989
4005
  vue.createElementVNode("div", null, [
3990
- _cache[10] || (_cache[10] = vue.createTextVNode(" 第")),
4006
+ _cache[10] || (_cache[10] = vue.createTextVNode(
4007
+ " 第",
4008
+ -1
4009
+ /* CACHED */
4010
+ )),
3991
4011
  vue.createVNode(vue.unref(design.TMagicInputNumber), {
3992
4012
  style: { "margin": "0 5px" },
3993
4013
  modelValue: moveSpecifyLocationIndex.value,
3994
4014
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => moveSpecifyLocationIndex.value = $event),
3995
4015
  size: "small",
3996
4016
  min: 1,
3997
- disabled: _ctx.disabled
4017
+ disabled: __props.disabled
3998
4018
  }, null, 8, ["modelValue", "disabled"]),
3999
- _cache[11] || (_cache[11] = vue.createTextVNode("行 "))
4019
+ _cache[11] || (_cache[11] = vue.createTextVNode(
4020
+ "行 ",
4021
+ -1
4022
+ /* CACHED */
4023
+ ))
4000
4024
  ]),
4001
4025
  vue.createElementVNode("div", _hoisted_2$5, [
4002
4026
  vue.createVNode(vue.unref(design.TMagicButton), {
@@ -4004,22 +4028,30 @@
4004
4028
  text: "",
4005
4029
  onClick: _cache[4] || (_cache[4] = ($event) => moveSpecifyLocationVisible.value = false)
4006
4030
  }, {
4007
- default: vue.withCtx(() => _cache[12] || (_cache[12] = [
4008
- vue.createTextVNode("取消")
4009
- ])),
4010
- _: 1,
4011
- __: [12]
4031
+ default: vue.withCtx(() => [..._cache[12] || (_cache[12] = [
4032
+ vue.createTextVNode(
4033
+ "取消",
4034
+ -1
4035
+ /* CACHED */
4036
+ )
4037
+ ])]),
4038
+ _: 1
4039
+ /* STABLE */
4012
4040
  }),
4013
4041
  vue.createVNode(vue.unref(design.TMagicButton), {
4014
4042
  size: "small",
4015
4043
  type: "primary",
4016
4044
  onClick: moveSpecifyLocationHandler
4017
4045
  }, {
4018
- default: vue.withCtx(() => _cache[13] || (_cache[13] = [
4019
- vue.createTextVNode("确认")
4020
- ])),
4021
- _: 1,
4022
- __: [13]
4046
+ default: vue.withCtx(() => [..._cache[13] || (_cache[13] = [
4047
+ vue.createTextVNode(
4048
+ "确认",
4049
+ -1
4050
+ /* CACHED */
4051
+ )
4052
+ ])]),
4053
+ _: 1
4054
+ /* STABLE */
4023
4055
  })
4024
4056
  ])
4025
4057
  ])
@@ -4036,13 +4068,13 @@
4036
4068
  expand.value ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
4037
4069
  key: 0,
4038
4070
  config: rowConfig.value,
4039
- model: _ctx.model,
4040
- lastValues: _ctx.lastValues,
4041
- "is-compare": _ctx.isCompare,
4042
- labelWidth: _ctx.labelWidth,
4043
- prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${String(_ctx.index)}`,
4044
- size: _ctx.size,
4045
- disabled: _ctx.disabled,
4071
+ model: __props.model,
4072
+ lastValues: __props.lastValues,
4073
+ "is-compare": __props.isCompare,
4074
+ labelWidth: __props.labelWidth,
4075
+ prop: `${__props.prop}${__props.prop ? "." : ""}${String(__props.index)}`,
4076
+ size: __props.size,
4077
+ disabled: __props.disabled,
4046
4078
  onChange: changeHandler,
4047
4079
  onAddDiffCount: _cache[5] || (_cache[5] = ($event) => onAddDiffCount())
4048
4080
  }, null, 8, ["config", "model", "lastValues", "is-compare", "labelWidth", "prop", "size", "disabled"])) : vue.createCommentVNode("v-if", true)
@@ -4148,12 +4180,12 @@
4148
4180
  const getLastValues = (item, index) => item?.[index] || {};
4149
4181
  return (_ctx, _cache) => {
4150
4182
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
4151
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("div", {
4183
+ __props.config.extra ? (vue.openBlock(), vue.createElementBlock("div", {
4152
4184
  key: 0,
4153
- innerHTML: _ctx.config.extra,
4185
+ innerHTML: __props.config.extra,
4154
4186
  style: { "color": "rgba(0, 0, 0, 0.45)" }
4155
4187
  }, null, 8, _hoisted_2$4)) : vue.createCommentVNode("v-if", true),
4156
- !_ctx.model[_ctx.name] || !_ctx.model[_ctx.name].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, _cache[1] || (_cache[1] = [
4188
+ !__props.model[__props.name] || !__props.model[__props.name].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [..._cache[1] || (_cache[1] = [
4157
4189
  vue.createElementVNode(
4158
4190
  "span",
4159
4191
  { class: "el-table__empty-text" },
@@ -4161,22 +4193,22 @@
4161
4193
  -1
4162
4194
  /* CACHED */
4163
4195
  )
4164
- ]))) : (vue.openBlock(true), vue.createElementBlock(
4196
+ ])])) : (vue.openBlock(true), vue.createElementBlock(
4165
4197
  vue.Fragment,
4166
4198
  { key: 2 },
4167
- vue.renderList(_ctx.model[_ctx.name], (item, index) => {
4199
+ vue.renderList(__props.model[__props.name], (item, index) => {
4168
4200
  return vue.openBlock(), vue.createBlock(_sfc_main$v, {
4169
4201
  key: index,
4170
4202
  model: item,
4171
- lastValues: getLastValues(_ctx.lastValues[_ctx.name], index),
4172
- "is-compare": _ctx.isCompare,
4173
- config: _ctx.config,
4174
- prop: _ctx.prop,
4203
+ lastValues: getLastValues(__props.lastValues[__props.name], index),
4204
+ "is-compare": __props.isCompare,
4205
+ config: __props.config,
4206
+ prop: __props.prop,
4175
4207
  index,
4176
- "label-width": _ctx.labelWidth,
4177
- size: _ctx.size,
4178
- disabled: _ctx.disabled,
4179
- "group-model": _ctx.model[_ctx.name],
4208
+ "label-width": __props.labelWidth,
4209
+ size: __props.size,
4210
+ disabled: __props.disabled,
4211
+ "group-model": __props.model[__props.name],
4180
4212
  onRemoveItem: removeHandler,
4181
4213
  onCopyItem: copyHandler,
4182
4214
  onSwapItem: swapHandler,
@@ -4190,27 +4222,35 @@
4190
4222
  addable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
4191
4223
  key: 3,
4192
4224
  type: "primary",
4193
- size: _ctx.config.enableToggleMode ? "small" : "default",
4194
- disabled: _ctx.disabled,
4225
+ size: __props.config.enableToggleMode ? "small" : "default",
4226
+ disabled: __props.disabled,
4195
4227
  onClick: addHandler
4196
4228
  }, {
4197
- default: vue.withCtx(() => _cache[2] || (_cache[2] = [
4198
- vue.createTextVNode("新增")
4199
- ])),
4200
- _: 1,
4201
- __: [2]
4229
+ default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
4230
+ vue.createTextVNode(
4231
+ "新增",
4232
+ -1
4233
+ /* CACHED */
4234
+ )
4235
+ ])]),
4236
+ _: 1
4237
+ /* STABLE */
4202
4238
  }, 8, ["size", "disabled"])) : vue.createCommentVNode("v-if", true),
4203
- _ctx.config.enableToggleMode ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
4239
+ __props.config.enableToggleMode ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
4204
4240
  key: 4,
4205
4241
  icon: vue.unref(iconsVue.Grid),
4206
4242
  size: "small",
4207
4243
  onClick: toggleMode
4208
4244
  }, {
4209
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
4210
- vue.createTextVNode("切换为表格")
4211
- ])),
4212
- _: 1,
4213
- __: [3]
4245
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
4246
+ vue.createTextVNode(
4247
+ "切换为表格",
4248
+ -1
4249
+ /* CACHED */
4250
+ )
4251
+ ])]),
4252
+ _: 1
4253
+ /* STABLE */
4214
4254
  }, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
4215
4255
  ]);
4216
4256
  };
@@ -4267,14 +4307,14 @@
4267
4307
  icon: expand.value ? vue.unref(iconsVue.CaretBottom) : vue.unref(iconsVue.CaretRight),
4268
4308
  onClick: _cache[0] || (_cache[0] = ($event) => expand.value = !expand.value)
4269
4309
  }, null, 8, ["icon"]),
4270
- _ctx.config && _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
4310
+ __props.config && __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
4271
4311
  key: 0,
4272
- innerHTML: _ctx.config.extra,
4312
+ innerHTML: __props.config.extra,
4273
4313
  class: "m-form-tip"
4274
4314
  }, null, 8, _hoisted_2$3)) : vue.createCommentVNode("v-if", true),
4275
4315
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
4276
4316
  vue.createTextVNode(
4277
- vue.toDisplayString(filter(_ctx.config.title)),
4317
+ vue.toDisplayString(filter(__props.config.title)),
4278
4318
  1
4279
4319
  /* TEXT */
4280
4320
  )
@@ -4284,7 +4324,7 @@
4284
4324
  default: vue.withCtx(() => [
4285
4325
  vue.createElementVNode("div", null, [
4286
4326
  vue.renderSlot(_ctx.$slots, "default"),
4287
- _ctx.config.schematic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$1, [
4327
+ __props.config.schematic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$1, [
4288
4328
  vue.createElementVNode("div", _hoisted_4$1, [
4289
4329
  (vue.openBlock(true), vue.createElementBlock(
4290
4330
  vue.Fragment,
@@ -4293,13 +4333,13 @@
4293
4333
  return vue.openBlock(), vue.createBlock(_sfc_main$x, {
4294
4334
  key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
4295
4335
  config: item,
4296
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
4297
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
4298
- "is-compare": _ctx.isCompare,
4299
- prop: _ctx.prop,
4300
- size: _ctx.size,
4301
- disabled: _ctx.disabled,
4302
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
4336
+ model: __props.name ? __props.model[__props.name] : __props.model,
4337
+ lastValues: __props.name ? __props.lastValues[__props.name] : __props.lastValues,
4338
+ "is-compare": __props.isCompare,
4339
+ prop: __props.prop,
4340
+ size: __props.size,
4341
+ disabled: __props.disabled,
4342
+ "label-width": __props.config.labelWidth || __props.labelWidth,
4303
4343
  onChange: changeHandler,
4304
4344
  onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
4305
4345
  }, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
@@ -4310,7 +4350,7 @@
4310
4350
  ]),
4311
4351
  vue.createElementVNode("img", {
4312
4352
  class: "m-form-schematic",
4313
- src: _ctx.config.schematic
4353
+ src: __props.config.schematic
4314
4354
  }, null, 8, _hoisted_5$1)
4315
4355
  ])) : (vue.openBlock(true), vue.createElementBlock(
4316
4356
  vue.Fragment,
@@ -4319,13 +4359,13 @@
4319
4359
  return vue.openBlock(), vue.createBlock(_sfc_main$x, {
4320
4360
  key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
4321
4361
  config: item,
4322
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
4323
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
4324
- "is-compare": _ctx.isCompare,
4325
- prop: _ctx.prop,
4326
- size: _ctx.size,
4327
- disabled: _ctx.disabled,
4328
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
4362
+ model: __props.name ? __props.model[__props.name] : __props.model,
4363
+ lastValues: __props.name ? __props.lastValues[__props.name] : __props.lastValues,
4364
+ "is-compare": __props.isCompare,
4365
+ prop: __props.prop,
4366
+ size: __props.size,
4367
+ disabled: __props.disabled,
4368
+ "label-width": __props.config.labelWidth || __props.labelWidth,
4329
4369
  onChange: changeHandler,
4330
4370
  onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
4331
4371
  }, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
@@ -4368,18 +4408,18 @@
4368
4408
  const changeHandler = (v, eventData) => emit("change", v, eventData);
4369
4409
  const onAddDiffCount = () => emit("addDiffCount");
4370
4410
  return (_ctx, _cache) => {
4371
- return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCol), { span: _ctx.span }, {
4411
+ return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCol), { span: __props.span }, {
4372
4412
  default: vue.withCtx(() => [
4373
4413
  vue.createVNode(_sfc_main$x, {
4374
- model: _ctx.model,
4375
- lastValues: _ctx.lastValues,
4376
- "is-compare": _ctx.isCompare,
4377
- config: _ctx.config,
4378
- prop: _ctx.prop,
4379
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
4380
- "expand-more": _ctx.expandMore,
4381
- size: _ctx.size,
4382
- disabled: _ctx.disabled,
4414
+ model: __props.model,
4415
+ lastValues: __props.lastValues,
4416
+ "is-compare": __props.isCompare,
4417
+ config: __props.config,
4418
+ prop: __props.prop,
4419
+ "label-width": __props.config.labelWidth || __props.labelWidth,
4420
+ "expand-more": __props.expandMore,
4421
+ size: __props.size,
4422
+ disabled: __props.disabled,
4383
4423
  onChange: changeHandler,
4384
4424
  onAddDiffCount
4385
4425
  }, null, 8, ["model", "lastValues", "is-compare", "config", "prop", "label-width", "expand-more", "size", "disabled"])
@@ -4387,7 +4427,7 @@
4387
4427
  _: 1
4388
4428
  /* STABLE */
4389
4429
  }, 8, ["span"])), [
4390
- [vue.vShow, display$1.value && _ctx.config.type !== "hidden"]
4430
+ [vue.vShow, display$1.value && __props.config.type !== "hidden"]
4391
4431
  ]);
4392
4432
  };
4393
4433
  }
@@ -4425,19 +4465,19 @@
4425
4465
  (vue.openBlock(true), vue.createElementBlock(
4426
4466
  vue.Fragment,
4427
4467
  null,
4428
- vue.renderList(_ctx.config.items, (col, index) => {
4468
+ vue.renderList(__props.config.items, (col, index) => {
4429
4469
  return vue.openBlock(), vue.createBlock(_sfc_main$s, {
4430
4470
  key: col[vue.unref(mForm)?.keyProp || "__key"] ?? index,
4431
- span: col.span || _ctx.config.span || 24 / _ctx.config.items.length,
4471
+ span: col.span || __props.config.span || 24 / __props.config.items.length,
4432
4472
  config: col,
4433
- labelWidth: _ctx.config.labelWidth || _ctx.labelWidth,
4434
- expandMore: _ctx.expandMore,
4435
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
4436
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
4437
- "is-compare": _ctx.isCompare,
4438
- prop: _ctx.prop,
4439
- size: _ctx.size,
4440
- disabled: _ctx.disabled,
4473
+ labelWidth: __props.config.labelWidth || __props.labelWidth,
4474
+ expandMore: __props.expandMore,
4475
+ model: __props.name ? __props.model[__props.name] : __props.model,
4476
+ lastValues: __props.name ? __props.lastValues[__props.name] : __props.lastValues,
4477
+ "is-compare": __props.isCompare,
4478
+ prop: __props.prop,
4479
+ size: __props.size,
4480
+ disabled: __props.disabled,
4441
4481
  onChange: changeHandler,
4442
4482
  onAddDiffCount
4443
4483
  }, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "lastValues", "is-compare", "prop", "size", "disabled"]);
@@ -4491,13 +4531,13 @@
4491
4531
  vue.createVNode(vue.unref(design.TMagicSteps), {
4492
4532
  active: active.value,
4493
4533
  "align-center": "",
4494
- space: _ctx.config.space
4534
+ space: __props.config.space
4495
4535
  }, {
4496
4536
  default: vue.withCtx(() => [
4497
4537
  (vue.openBlock(true), vue.createElementBlock(
4498
4538
  vue.Fragment,
4499
4539
  null,
4500
- vue.renderList(_ctx.config.items, (item, index) => {
4540
+ vue.renderList(__props.config.items, (item, index) => {
4501
4541
  return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicStep), {
4502
4542
  key: item.__key,
4503
4543
  title: item.title,
@@ -4515,7 +4555,7 @@
4515
4555
  (vue.openBlock(true), vue.createElementBlock(
4516
4556
  vue.Fragment,
4517
4557
  null,
4518
- vue.renderList(_ctx.config.items, (step, index) => {
4558
+ vue.renderList(__props.config.items, (step, index) => {
4519
4559
  return vue.openBlock(), vue.createElementBlock(
4520
4560
  vue.Fragment,
4521
4561
  null,
@@ -4531,13 +4571,13 @@
4531
4571
  item ? vue.withDirectives((vue.openBlock(), vue.createBlock(_sfc_main$x, {
4532
4572
  key: item[vue.unref(mForm)?.keyProp || "__key"],
4533
4573
  config: item,
4534
- model: step.name ? _ctx.model[step.name] : _ctx.model,
4535
- lastValues: step.name ? _ctx.lastValues[step.name] : _ctx.lastValues,
4536
- "is-compare": _ctx.isCompare,
4574
+ model: step.name ? __props.model[step.name] : __props.model,
4575
+ lastValues: step.name ? __props.lastValues[step.name] : __props.lastValues,
4576
+ "is-compare": __props.isCompare,
4537
4577
  prop: `${step.name}`,
4538
- size: _ctx.size,
4539
- disabled: _ctx.disabled,
4540
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
4578
+ size: __props.size,
4579
+ disabled: __props.disabled,
4580
+ "label-width": __props.config.labelWidth || __props.labelWidth,
4541
4581
  onChange: changeHandler,
4542
4582
  onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
4543
4583
  }, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"])), [
@@ -4960,36 +5000,36 @@
4960
5000
  {
4961
5001
  ref_key: "mTable",
4962
5002
  ref: mTable,
4963
- class: vue.normalizeClass(["m-fields-table", { "m-fields-table-item-extra": _ctx.config.itemExtra }])
5003
+ class: vue.normalizeClass(["m-fields-table", { "m-fields-table-item-extra": __props.config.itemExtra }])
4964
5004
  },
4965
5005
  [
4966
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
5006
+ __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
4967
5007
  key: 0,
4968
5008
  style: { "color": "rgba(0, 0, 0, 0.45)" },
4969
- innerHTML: _ctx.config.extra
5009
+ innerHTML: __props.config.extra
4970
5010
  }, null, 8, _hoisted_2$2)) : vue.createCommentVNode("v-if", true),
4971
5011
  vue.createVNode(vue.unref(design.TMagicTooltip), {
4972
5012
  content: "拖拽可排序",
4973
5013
  placement: "left-start",
4974
- disabled: _ctx.config.dropSort !== true
5014
+ disabled: __props.config.dropSort !== true
4975
5015
  }, {
4976
5016
  default: vue.withCtx(() => [
4977
- _ctx.model[modelName.value] ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTable), {
5017
+ __props.model[modelName.value] ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTable), {
4978
5018
  ref_key: "tMagicTable",
4979
5019
  ref: tMagicTable,
4980
5020
  style: { "width": "100%" },
4981
- "row-key": _ctx.config.rowKey || "id",
5021
+ "row-key": __props.config.rowKey || "id",
4982
5022
  data: data.value,
4983
5023
  lastData: lastData.value,
4984
- border: _ctx.config.border,
4985
- "max-height": _ctx.config.maxHeight,
5024
+ border: __props.config.border,
5025
+ "max-height": __props.config.maxHeight,
4986
5026
  "default-expand-all": true,
4987
5027
  key: updateKey.value,
4988
5028
  onSelect: selectHandle,
4989
5029
  onSortChange: sortChange
4990
5030
  }, {
4991
5031
  default: vue.withCtx(() => [
4992
- _ctx.config.itemExtra && !_ctx.config.dropSort ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
5032
+ __props.config.itemExtra && !__props.config.dropSort ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
4993
5033
  key: 0,
4994
5034
  fixed: "left",
4995
5035
  width: "30",
@@ -4997,7 +5037,7 @@
4997
5037
  }, {
4998
5038
  default: vue.withCtx((scope) => [
4999
5039
  vue.createElementVNode("span", {
5000
- innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
5040
+ innerHTML: itemExtra(__props.config.itemExtra, scope.$index),
5001
5041
  class: "m-form-tip"
5002
5042
  }, null, 8, _hoisted_3)
5003
5043
  ]),
@@ -5006,9 +5046,9 @@
5006
5046
  })) : vue.createCommentVNode("v-if", true),
5007
5047
  vue.createVNode(vue.unref(design.TMagicTableColumn), {
5008
5048
  label: "操作",
5009
- width: _ctx.config.operateColWidth || 100,
5049
+ width: __props.config.operateColWidth || 100,
5010
5050
  align: "center",
5011
- fixed: _ctx.config.fixed === false ? void 0 : "left"
5051
+ fixed: __props.config.fixed === false ? void 0 : "left"
5012
5052
  }, {
5013
5053
  default: vue.withCtx((scope) => [
5014
5054
  vue.renderSlot(_ctx.$slots, "operateCol", { scope }),
@@ -5029,14 +5069,14 @@
5029
5069
  type: "primary",
5030
5070
  title: "复制",
5031
5071
  icon: vue.unref(iconsVue.DocumentCopy),
5032
- disabled: _ctx.disabled,
5072
+ disabled: __props.disabled,
5033
5073
  onClick: ($event) => copyHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
5034
5074
  }, null, 8, ["icon", "disabled", "onClick"])) : vue.createCommentVNode("v-if", true)
5035
5075
  ]),
5036
5076
  _: 3
5037
5077
  /* FORWARDED */
5038
5078
  }, 8, ["width", "fixed"]),
5039
- _ctx.sort && _ctx.model[modelName.value] && _ctx.model[modelName.value].length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
5079
+ __props.sort && __props.model[modelName.value] && __props.model[modelName.value].length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
5040
5080
  key: 1,
5041
5081
  label: "排序",
5042
5082
  width: "60"
@@ -5056,7 +5096,7 @@
5056
5096
  size: "small",
5057
5097
  type: "primary",
5058
5098
  icon: vue.unref(iconsVue.ArrowUp),
5059
- disabled: _ctx.disabled,
5099
+ disabled: __props.disabled,
5060
5100
  link: "",
5061
5101
  onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
5062
5102
  onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
@@ -5068,7 +5108,7 @@
5068
5108
  1024
5069
5109
  /* DYNAMIC_SLOTS */
5070
5110
  )) : vue.createCommentVNode("v-if", true),
5071
- scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (vue.openBlock(), vue.createBlock(
5111
+ scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== __props.model[modelName.value].length - 1 ? (vue.openBlock(), vue.createBlock(
5072
5112
  vue.unref(design.TMagicTooltip),
5073
5113
  {
5074
5114
  key: 1,
@@ -5082,7 +5122,7 @@
5082
5122
  size: "small",
5083
5123
  type: "primary",
5084
5124
  icon: vue.unref(iconsVue.ArrowDown),
5085
- disabled: _ctx.disabled,
5125
+ disabled: __props.disabled,
5086
5126
  link: "",
5087
5127
  onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
5088
5128
  onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
@@ -5105,7 +5145,7 @@
5105
5145
  type: "selection",
5106
5146
  width: "45"
5107
5147
  })) : vue.createCommentVNode("v-if", true),
5108
- _ctx.showIndex && _ctx.config.showIndex ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
5148
+ __props.showIndex && __props.config.showIndex ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
5109
5149
  key: 3,
5110
5150
  width: "60",
5111
5151
  label: "序号"
@@ -5123,7 +5163,7 @@
5123
5163
  (vue.openBlock(true), vue.createElementBlock(
5124
5164
  vue.Fragment,
5125
5165
  null,
5126
- vue.renderList(_ctx.config.items, (column, index) => {
5166
+ vue.renderList(__props.config.items, (column, index) => {
5127
5167
  return vue.openBlock(), vue.createElementBlock(
5128
5168
  vue.Fragment,
5129
5169
  null,
@@ -5135,20 +5175,20 @@
5135
5175
  sortable: column.sortable,
5136
5176
  "sort-orders": ["ascending", "descending"],
5137
5177
  key: column[vue.unref(mForm)?.keyProp || "__key"] ?? index,
5138
- "class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
5178
+ "class-name": __props.config.dropSort === true ? "el-table__column--dropable" : ""
5139
5179
  }, {
5140
5180
  default: vue.withCtx((scope) => [
5141
5181
  scope.$index > -1 ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
5142
5182
  key: 0,
5143
5183
  labelWidth: "0",
5144
- disabled: _ctx.disabled,
5184
+ disabled: __props.disabled,
5145
5185
  prop: getProp(scope.$index),
5146
5186
  rules: column.rules,
5147
5187
  config: makeConfig(column, scope.row),
5148
5188
  model: scope.row,
5149
5189
  lastValues: lastData.value[scope.$index],
5150
- "is-compare": _ctx.isCompare,
5151
- size: _ctx.size,
5190
+ "is-compare": __props.isCompare,
5191
+ size: __props.size,
5152
5192
  onChange: changeHandler,
5153
5193
  onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
5154
5194
  }, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : vue.createCommentVNode("v-if", true)
@@ -5178,31 +5218,39 @@
5178
5218
  key: 0,
5179
5219
  size: "small",
5180
5220
  type: "primary",
5181
- disabled: _ctx.disabled,
5221
+ disabled: __props.disabled,
5182
5222
  plain: "",
5183
5223
  onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
5184
5224
  }, {
5185
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
5186
- vue.createTextVNode("新增一行")
5187
- ])),
5188
- _: 1,
5189
- __: [3]
5225
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
5226
+ vue.createTextVNode(
5227
+ "新增一行",
5228
+ -1
5229
+ /* CACHED */
5230
+ )
5231
+ ])]),
5232
+ _: 1
5233
+ /* STABLE */
5190
5234
  }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
5191
5235
  vue.createElementVNode("div", _hoisted_5, [
5192
- _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
5236
+ __props.enableToggleMode && __props.config.enableToggleMode !== false && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
5193
5237
  key: 0,
5194
5238
  icon: vue.unref(iconsVue.Grid),
5195
5239
  size: "small",
5196
5240
  type: "primary",
5197
5241
  onClick: toggleMode
5198
5242
  }, {
5199
- default: vue.withCtx(() => _cache[4] || (_cache[4] = [
5200
- vue.createTextVNode("展开配置")
5201
- ])),
5202
- _: 1,
5203
- __: [4]
5243
+ default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
5244
+ vue.createTextVNode(
5245
+ "展开配置",
5246
+ -1
5247
+ /* CACHED */
5248
+ )
5249
+ ])]),
5250
+ _: 1
5251
+ /* STABLE */
5204
5252
  }, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
5205
- _ctx.config.enableFullscreen !== false ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
5253
+ __props.config.enableFullscreen !== false ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
5206
5254
  key: 1,
5207
5255
  icon: vue.unref(iconsVue.FullScreen),
5208
5256
  size: "small",
@@ -5225,7 +5273,7 @@
5225
5273
  ref_key: "excelBtn",
5226
5274
  ref: excelBtn,
5227
5275
  action: "/noop",
5228
- disabled: _ctx.disabled,
5276
+ disabled: __props.disabled,
5229
5277
  "on-change": excelHandler,
5230
5278
  "auto-upload": false
5231
5279
  }, {
@@ -5233,14 +5281,18 @@
5233
5281
  vue.createVNode(vue.unref(design.TMagicButton), {
5234
5282
  size: "small",
5235
5283
  type: "success",
5236
- disabled: _ctx.disabled,
5284
+ disabled: __props.disabled,
5237
5285
  plain: ""
5238
5286
  }, {
5239
- default: vue.withCtx(() => _cache[5] || (_cache[5] = [
5240
- vue.createTextVNode("导入EXCEL")
5241
- ])),
5242
- _: 1,
5243
- __: [5]
5287
+ default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
5288
+ vue.createTextVNode(
5289
+ "导入EXCEL",
5290
+ -1
5291
+ /* CACHED */
5292
+ )
5293
+ ])]),
5294
+ _: 1
5295
+ /* STABLE */
5244
5296
  }, 8, ["disabled"])
5245
5297
  ]),
5246
5298
  _: 1
@@ -5250,26 +5302,30 @@
5250
5302
  key: 3,
5251
5303
  size: "small",
5252
5304
  type: "warning",
5253
- disabled: _ctx.disabled,
5305
+ disabled: __props.disabled,
5254
5306
  plain: "",
5255
5307
  onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
5256
5308
  }, {
5257
- default: vue.withCtx(() => _cache[6] || (_cache[6] = [
5258
- vue.createTextVNode("清空")
5259
- ])),
5260
- _: 1,
5261
- __: [6]
5309
+ default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
5310
+ vue.createTextVNode(
5311
+ "清空",
5312
+ -1
5313
+ /* CACHED */
5314
+ )
5315
+ ])]),
5316
+ _: 1
5317
+ /* STABLE */
5262
5318
  }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
5263
5319
  ])
5264
5320
  ]),
5265
- _ctx.config.pagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
5321
+ __props.config.pagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
5266
5322
  vue.createVNode(vue.unref(design.TMagicPagination), {
5267
5323
  layout: "total, sizes, prev, pager, next, jumper",
5268
- "hide-on-single-page": _ctx.model[modelName.value].length < pagesize.value,
5324
+ "hide-on-single-page": __props.model[modelName.value].length < pagesize.value,
5269
5325
  "current-page": pagecontext.value + 1,
5270
5326
  "page-sizes": [pagesize.value, 60, 120, 300],
5271
5327
  "page-size": pagesize.value,
5272
- total: _ctx.model[modelName.value].length,
5328
+ total: __props.model[modelName.value].length,
5273
5329
  onSizeChange: handleSizeChange,
5274
5330
  onCurrentChange: handleCurrentChange
5275
5331
  }, null, 8, ["hide-on-single-page", "current-page", "page-sizes", "page-size", "total"])
@@ -5410,12 +5466,12 @@
5410
5466
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeTabName.value = $event)
5411
5467
  },
5412
5468
  vue.unref(tabsComponent)?.props({
5413
- type: _ctx.config.tabType,
5414
- editable: _ctx.config.editable || false,
5415
- tabPosition: _ctx.config.tabPosition || "top"
5469
+ type: __props.config.tabType,
5470
+ editable: __props.config.editable || false,
5471
+ tabPosition: __props.config.tabPosition || "top"
5416
5472
  }) || {},
5417
5473
  {
5418
- class: `tmagic-design-tabs ${_ctx.config.dynamic ? "magic-form-dynamic-tab" : "magic-form-tab"}`,
5474
+ class: `tmagic-design-tabs ${__props.config.dynamic ? "magic-form-dynamic-tab" : "magic-form-tab"}`,
5419
5475
  onTabClick: tabClickHandler,
5420
5476
  onTabAdd,
5421
5477
  onTabRemove
@@ -5458,14 +5514,14 @@
5458
5514
  return vue.openBlock(), vue.createBlock(_sfc_main$x, {
5459
5515
  key: item[vue.unref(mForm)?.keyProp || "__key"],
5460
5516
  config: item,
5461
- disabled: _ctx.disabled,
5462
- 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,
5463
- "last-values": vue.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,
5464
- "is-compare": _ctx.isCompare,
5465
- prop: _ctx.config.dynamic ? `${_ctx.prop}${_ctx.prop ? "." : ""}${String(tabIndex)}` : _ctx.prop,
5466
- size: _ctx.size,
5467
- "label-width": tab.labelWidth || _ctx.labelWidth,
5468
- "expand-more": _ctx.expandMore,
5517
+ disabled: __props.disabled,
5518
+ 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,
5519
+ "last-values": vue.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,
5520
+ "is-compare": __props.isCompare,
5521
+ prop: __props.config.dynamic ? `${__props.prop}${__props.prop ? "." : ""}${String(tabIndex)}` : __props.prop,
5522
+ size: __props.size,
5523
+ "label-width": tab.labelWidth || __props.labelWidth,
5524
+ "expand-more": __props.expandMore,
5469
5525
  onChange: changeHandler,
5470
5526
  onAddDiffCount: ($event) => onAddDiffCount(tabIndex)
5471
5527
  }, null, 8, ["config", "disabled", "model", "last-values", "is-compare", "prop", "size", "label-width", "expand-more", "onAddDiffCount"]);
@@ -5622,14 +5678,14 @@
5622
5678
  style: { "width": "100%" },
5623
5679
  clearable: "",
5624
5680
  filterable: "",
5625
- size: _ctx.size,
5626
- placeholder: _ctx.config.placeholder,
5627
- disabled: _ctx.disabled,
5681
+ size: __props.size,
5682
+ placeholder: __props.config.placeholder,
5683
+ disabled: __props.disabled,
5628
5684
  options: options.value,
5629
- "popper-class": _ctx.config.popperClass,
5685
+ "popper-class": __props.config.popperClass,
5630
5686
  props: {
5631
- multiple: _ctx.config.multiple ?? false,
5632
- emitPath: _ctx.config.emitPath ?? true,
5687
+ multiple: __props.config.multiple ?? false,
5688
+ emitPath: __props.config.emitPath ?? true,
5633
5689
  checkStrictly: checkStrictly.value ?? false
5634
5690
  },
5635
5691
  onChange: changeHandler
@@ -5684,17 +5740,17 @@
5684
5740
  };
5685
5741
  return (_ctx, _cache) => {
5686
5742
  return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCheckbox), {
5687
- modelValue: _ctx.model[_ctx.name],
5688
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
5689
- size: _ctx.size,
5743
+ modelValue: __props.model[__props.name],
5744
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
5745
+ size: __props.size,
5690
5746
  trueValue: activeValue.value,
5691
5747
  falseValue: inactiveValue.value,
5692
- disabled: _ctx.disabled,
5748
+ disabled: __props.disabled,
5693
5749
  onChange: changeHandler
5694
5750
  }, {
5695
5751
  default: vue.withCtx(() => [
5696
5752
  vue.createTextVNode(
5697
- vue.toDisplayString(_ctx.config.text),
5753
+ vue.toDisplayString(__props.config.text),
5698
5754
  1
5699
5755
  /* TEXT */
5700
5756
  )
@@ -5742,10 +5798,10 @@
5742
5798
  });
5743
5799
  return (_ctx, _cache) => {
5744
5800
  return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCheckboxGroup), {
5745
- modelValue: _ctx.model[_ctx.name],
5746
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
5747
- size: _ctx.size,
5748
- disabled: _ctx.disabled,
5801
+ modelValue: __props.model[__props.name],
5802
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
5803
+ size: __props.size,
5804
+ disabled: __props.disabled,
5749
5805
  onChange: changeHandler
5750
5806
  }, {
5751
5807
  default: vue.withCtx(() => [
@@ -5804,10 +5860,10 @@
5804
5860
  const changeHandler = (value) => emit("change", value);
5805
5861
  return (_ctx, _cache) => {
5806
5862
  return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicColorPicker), {
5807
- modelValue: _ctx.model[_ctx.name],
5808
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
5809
- size: _ctx.size,
5810
- disabled: _ctx.disabled,
5863
+ modelValue: __props.model[__props.name],
5864
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
5865
+ size: __props.size,
5866
+ disabled: __props.disabled,
5811
5867
  showAlpha: true,
5812
5868
  onChange: changeHandler
5813
5869
  }, null, 8, ["modelValue", "size", "disabled"]);
@@ -5842,14 +5898,14 @@
5842
5898
  };
5843
5899
  return (_ctx, _cache) => {
5844
5900
  return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicDatePicker), {
5845
- modelValue: _ctx.model[_ctx.name],
5846
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
5901
+ modelValue: __props.model[__props.name],
5902
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
5847
5903
  type: "date",
5848
- size: _ctx.size,
5849
- placeholder: _ctx.config.placeholder,
5850
- disabled: _ctx.disabled,
5851
- format: _ctx.config.format || "YYYY/MM/DD",
5852
- "value-format": _ctx.config.valueFormat || "YYYY/MM/DD",
5904
+ size: __props.size,
5905
+ placeholder: __props.config.placeholder,
5906
+ disabled: __props.disabled,
5907
+ format: __props.config.format || "YYYY/MM/DD",
5908
+ "value-format": __props.config.valueFormat || "YYYY/MM/DD",
5853
5909
  onChange: changeHandler
5854
5910
  }, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format"]);
5855
5911
  };
@@ -5943,13 +5999,13 @@
5943
5999
  "range-separator": "-",
5944
6000
  "start-placeholder": "开始日期",
5945
6001
  "end-placeholder": "结束日期",
5946
- size: _ctx.size,
6002
+ size: __props.size,
5947
6003
  "unlink-panels": true,
5948
- disabled: _ctx.disabled,
5949
- "default-time": _ctx.config.defaultTime,
5950
- "value-format": _ctx.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
5951
- "date-format": _ctx.config.dateFormat || "YYYY/MM/DD",
5952
- "time-format": _ctx.config.timeFormat || "HH:mm:ss",
6004
+ disabled: __props.disabled,
6005
+ "default-time": __props.config.defaultTime,
6006
+ "value-format": __props.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
6007
+ "date-format": __props.config.dateFormat || "YYYY/MM/DD",
6008
+ "time-format": __props.config.timeFormat || "HH:mm:ss",
5953
6009
  onChange: changeHandler
5954
6010
  }, null, 8, ["modelValue", "size", "disabled", "default-time", "value-format", "date-format", "time-format"]);
5955
6011
  };
@@ -5994,16 +6050,16 @@
5994
6050
  };
5995
6051
  return (_ctx, _cache) => {
5996
6052
  return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicDatePicker), {
5997
- modelValue: _ctx.model[_ctx.name],
5998
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
6053
+ modelValue: __props.model[__props.name],
6054
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
5999
6055
  "popper-class": "magic-datetime-picker-popper",
6000
6056
  type: "datetime",
6001
- size: _ctx.size,
6002
- placeholder: _ctx.config.placeholder,
6003
- disabled: _ctx.disabled,
6004
- format: _ctx.config.format || "YYYY/MM/DD HH:mm:ss",
6005
- "value-format": _ctx.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
6006
- "default-time": _ctx.config.defaultTime,
6057
+ size: __props.size,
6058
+ placeholder: __props.config.placeholder,
6059
+ disabled: __props.disabled,
6060
+ format: __props.config.format || "YYYY/MM/DD HH:mm:ss",
6061
+ "value-format": __props.config.valueFormat || "YYYY/MM/DD HH:mm:ss",
6062
+ "default-time": __props.config.defaultTime,
6007
6063
  onChange: changeHandler
6008
6064
  }, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time"]);
6009
6065
  };
@@ -6034,10 +6090,10 @@
6034
6090
  }
6035
6091
  useAddField(props.prop);
6036
6092
  return (_ctx, _cache) => {
6037
- return _ctx.model ? (vue.openBlock(), vue.createElementBlock(
6093
+ return __props.model ? (vue.openBlock(), vue.createElementBlock(
6038
6094
  "span",
6039
6095
  _hoisted_1$8,
6040
- vue.toDisplayString(_ctx.model[_ctx.name]),
6096
+ vue.toDisplayString(__props.model[__props.name]),
6041
6097
  1
6042
6098
  /* TEXT */
6043
6099
  )) : vue.createCommentVNode("v-if", true);
@@ -6167,18 +6223,18 @@
6167
6223
  const props = __props;
6168
6224
  useAddField(props.prop);
6169
6225
  return (_ctx, _cache) => {
6170
- return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
6226
+ return __props.model ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
6171
6227
  "input",
6172
6228
  {
6173
6229
  key: 0,
6174
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
6230
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
6175
6231
  type: "hidden"
6176
6232
  },
6177
6233
  null,
6178
6234
  512
6179
6235
  /* NEED_PATCH */
6180
6236
  )), [
6181
- [vue.vModelText, _ctx.model[_ctx.name]]
6237
+ [vue.vModelText, __props.model[__props.name]]
6182
6238
  ]) : vue.createCommentVNode("v-if", true);
6183
6239
  };
6184
6240
  }
@@ -6332,27 +6388,27 @@
6332
6388
  ref_key: "tMagicForm",
6333
6389
  ref: tMagicForm,
6334
6390
  model: values.value,
6335
- "label-width": _ctx.labelWidth,
6336
- style: vue.normalizeStyle(`height: ${_ctx.height}`),
6337
- inline: _ctx.inline,
6338
- "label-position": _ctx.labelPosition,
6391
+ "label-width": __props.labelWidth,
6392
+ style: vue.normalizeStyle(`height: ${__props.height}`),
6393
+ inline: __props.inline,
6394
+ "label-position": __props.labelPosition,
6339
6395
  onSubmit: submitHandler
6340
6396
  }, {
6341
6397
  default: vue.withCtx(() => [
6342
- initialized.value && Array.isArray(_ctx.config) ? (vue.openBlock(true), vue.createElementBlock(
6398
+ initialized.value && Array.isArray(__props.config) ? (vue.openBlock(true), vue.createElementBlock(
6343
6399
  vue.Fragment,
6344
6400
  { key: 0 },
6345
- vue.renderList(_ctx.config, (item, index) => {
6401
+ vue.renderList(__props.config, (item, index) => {
6346
6402
  return vue.openBlock(), vue.createBlock(_sfc_main$x, {
6347
- disabled: _ctx.disabled,
6348
- key: item[_ctx.keyProp] ?? index,
6403
+ disabled: __props.disabled,
6404
+ key: item[__props.keyProp] ?? index,
6349
6405
  config: item,
6350
6406
  model: values.value,
6351
6407
  "last-values": lastValuesProcessed.value,
6352
- "is-compare": _ctx.isCompare,
6353
- "label-width": item.labelWidth || _ctx.labelWidth,
6354
- "step-active": _ctx.stepActive,
6355
- size: _ctx.size,
6408
+ "is-compare": __props.isCompare,
6409
+ "label-width": item.labelWidth || __props.labelWidth,
6410
+ "step-active": __props.stepActive,
6411
+ size: __props.size,
6356
6412
  onChange: changeHandler
6357
6413
  }, null, 8, ["disabled", "config", "model", "last-values", "is-compare", "label-width", "step-active", "size"]);
6358
6414
  }),
@@ -6462,10 +6518,10 @@
6462
6518
  class: "m-form-dialog",
6463
6519
  top: "20px",
6464
6520
  "append-to-body": "",
6465
- title: _ctx.title,
6466
- width: _ctx.width,
6467
- zIndex: _ctx.zIndex,
6468
- fullscreen: _ctx.fullscreen,
6521
+ title: __props.title,
6522
+ width: __props.width,
6523
+ zIndex: __props.zIndex,
6524
+ fullscreen: __props.fullscreen,
6469
6525
  "close-on-click-modal": false,
6470
6526
  onClose: closeHandler
6471
6527
  }, {
@@ -6491,11 +6547,15 @@
6491
6547
  onClick: cancel,
6492
6548
  size: "small"
6493
6549
  }, {
6494
- default: vue.withCtx(() => _cache[2] || (_cache[2] = [
6495
- vue.createTextVNode("取 消")
6496
- ])),
6497
- _: 1,
6498
- __: [2]
6550
+ default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
6551
+ vue.createTextVNode(
6552
+ "取 消",
6553
+ -1
6554
+ /* CACHED */
6555
+ )
6556
+ ])]),
6557
+ _: 1
6558
+ /* STABLE */
6499
6559
  }),
6500
6560
  hasStep.value && stepActive.value > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
6501
6561
  key: 0,
@@ -6503,11 +6563,15 @@
6503
6563
  size: "small",
6504
6564
  onClick: preStep
6505
6565
  }, {
6506
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
6507
- vue.createTextVNode("上一步")
6508
- ])),
6509
- _: 1,
6510
- __: [3]
6566
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
6567
+ vue.createTextVNode(
6568
+ "上一步",
6569
+ -1
6570
+ /* CACHED */
6571
+ )
6572
+ ])]),
6573
+ _: 1
6574
+ /* STABLE */
6511
6575
  })) : vue.createCommentVNode("v-if", true),
6512
6576
  hasStep.value && stepCount.value > stepActive.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
6513
6577
  key: 1,
@@ -6515,22 +6579,26 @@
6515
6579
  size: "small",
6516
6580
  onClick: nextStep
6517
6581
  }, {
6518
- default: vue.withCtx(() => _cache[4] || (_cache[4] = [
6519
- vue.createTextVNode("下一步")
6520
- ])),
6521
- _: 1,
6522
- __: [4]
6582
+ default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
6583
+ vue.createTextVNode(
6584
+ "下一步",
6585
+ -1
6586
+ /* CACHED */
6587
+ )
6588
+ ])]),
6589
+ _: 1
6590
+ /* STABLE */
6523
6591
  })) : (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
6524
6592
  key: 2,
6525
6593
  type: "primary",
6526
6594
  size: "small",
6527
- disabled: _ctx.disabled,
6595
+ disabled: __props.disabled,
6528
6596
  loading: saveFetch.value,
6529
6597
  onClick: save
6530
6598
  }, {
6531
6599
  default: vue.withCtx(() => [
6532
6600
  vue.createTextVNode(
6533
- vue.toDisplayString(_ctx.confirmText),
6601
+ vue.toDisplayString(__props.confirmText),
6534
6602
  1
6535
6603
  /* TEXT */
6536
6604
  )
@@ -6562,15 +6630,15 @@
6562
6630
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => stepActive.value = $event),
6563
6631
  ref_key: "form",
6564
6632
  ref: form,
6565
- size: _ctx.size,
6566
- disabled: _ctx.disabled,
6567
- config: _ctx.config,
6568
- "init-values": _ctx.values,
6569
- "parent-values": _ctx.parentValues,
6570
- "label-width": _ctx.labelWidth,
6571
- "label-position": _ctx.labelPosition,
6572
- inline: _ctx.inline,
6573
- "prevent-submit-default": _ctx.preventSubmitDefault,
6633
+ size: __props.size,
6634
+ disabled: __props.disabled,
6635
+ config: __props.config,
6636
+ "init-values": __props.values,
6637
+ "parent-values": __props.parentValues,
6638
+ "label-width": __props.labelWidth,
6639
+ "label-position": __props.labelPosition,
6640
+ inline: __props.inline,
6641
+ "prevent-submit-default": __props.preventSubmitDefault,
6574
6642
  onChange: changeHandler
6575
6643
  }, null, 8, ["modelValue", "size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
6576
6644
  vue.renderSlot(_ctx.$slots, "default")
@@ -6655,16 +6723,16 @@
6655
6723
  editor.value && (editor.value.dialogVisible = false);
6656
6724
  };
6657
6725
  return (_ctx, _cache) => {
6658
- return _ctx.config.href && !_ctx.disabled ? (vue.openBlock(), vue.createElementBlock("a", {
6726
+ return __props.config.href && !__props.disabled ? (vue.openBlock(), vue.createElementBlock("a", {
6659
6727
  key: 0,
6660
6728
  target: "_blank",
6661
6729
  href: href.value,
6662
- style: vue.normalizeStyle(_ctx.config.css || {})
6663
- }, vue.toDisplayString(displayText.value), 13, _hoisted_1$5)) : _ctx.config.href && _ctx.disabled ? (vue.openBlock(), vue.createElementBlock(
6730
+ style: vue.normalizeStyle(__props.config.css || {})
6731
+ }, vue.toDisplayString(displayText.value), 13, _hoisted_1$5)) : __props.config.href && __props.disabled ? (vue.openBlock(), vue.createElementBlock(
6664
6732
  "span",
6665
6733
  {
6666
6734
  key: 1,
6667
- style: vue.normalizeStyle(_ctx.config.disabledCss || {})
6735
+ style: vue.normalizeStyle(__props.config.disabledCss || {})
6668
6736
  },
6669
6737
  vue.toDisplayString(displayText.value),
6670
6738
  5
@@ -6675,21 +6743,25 @@
6675
6743
  type: "primary",
6676
6744
  onClick: editHandler
6677
6745
  }, {
6678
- default: vue.withCtx(() => _cache[0] || (_cache[0] = [
6679
- vue.createTextVNode("点击编辑")
6680
- ])),
6681
- _: 1,
6682
- __: [0]
6746
+ default: vue.withCtx(() => [..._cache[0] || (_cache[0] = [
6747
+ vue.createTextVNode(
6748
+ "点击编辑",
6749
+ -1
6750
+ /* CACHED */
6751
+ )
6752
+ ])]),
6753
+ _: 1
6754
+ /* STABLE */
6683
6755
  }),
6684
6756
  vue.createVNode(_sfc_main$c, {
6685
6757
  ref_key: "editor",
6686
6758
  ref: editor,
6687
- title: _ctx.config.formTitle || "编辑扩展配置",
6688
- width: _ctx.config.formWidth,
6759
+ title: __props.config.formTitle || "编辑扩展配置",
6760
+ width: __props.config.formWidth,
6689
6761
  values: formValue.value,
6690
6762
  config: formConfig.value,
6691
- parentValues: _ctx.values,
6692
- fullscreen: _ctx.config.fullscreen,
6763
+ parentValues: __props.values,
6764
+ fullscreen: __props.config.fullscreen,
6693
6765
  onSubmit: action
6694
6766
  }, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen"])
6695
6767
  ]));
@@ -6727,18 +6799,18 @@
6727
6799
  mForm?.$emit("field-input", props.prop, v);
6728
6800
  };
6729
6801
  return (_ctx, _cache) => {
6730
- return _ctx.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInputNumber), {
6802
+ return __props.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInputNumber), {
6731
6803
  key: 0,
6732
- modelValue: _ctx.model[_ctx.name],
6733
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
6804
+ modelValue: __props.model[__props.name],
6805
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
6734
6806
  clearable: "",
6735
6807
  "controls-position": "right",
6736
- size: _ctx.size,
6737
- max: _ctx.config.max,
6738
- min: _ctx.config.min,
6739
- step: _ctx.config.step,
6740
- placeholder: _ctx.config.placeholder,
6741
- disabled: _ctx.disabled,
6808
+ size: __props.size,
6809
+ max: __props.config.max,
6810
+ min: __props.config.min,
6811
+ step: __props.config.step,
6812
+ placeholder: __props.config.placeholder,
6813
+ disabled: __props.disabled,
6742
6814
  onChange: changeHandler,
6743
6815
  onInput: inputHandler
6744
6816
  }, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled"])) : vue.createCommentVNode("v-if", true);
@@ -6780,11 +6852,11 @@
6780
6852
  return (_ctx, _cache) => {
6781
6853
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
6782
6854
  vue.createVNode(vue.unref(design.TMagicInput), {
6783
- modelValue: _ctx.model[_ctx.name][0],
6784
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name][0] = $event),
6855
+ modelValue: __props.model[__props.name][0],
6856
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name][0] = $event),
6785
6857
  clearable: "",
6786
- size: _ctx.size,
6787
- disabled: _ctx.disabled,
6858
+ size: __props.size,
6859
+ disabled: __props.disabled,
6788
6860
  onChange: minChangeHandler
6789
6861
  }, null, 8, ["modelValue", "size", "disabled"]),
6790
6862
  _cache[2] || (_cache[2] = vue.createElementVNode(
@@ -6795,11 +6867,11 @@
6795
6867
  /* CACHED */
6796
6868
  )),
6797
6869
  vue.createVNode(vue.unref(design.TMagicInput), {
6798
- modelValue: _ctx.model[_ctx.name][1],
6799
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.model[_ctx.name][1] = $event),
6870
+ modelValue: __props.model[__props.name][1],
6871
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.model[__props.name][1] = $event),
6800
6872
  clearable: "",
6801
- size: _ctx.size,
6802
- disabled: _ctx.disabled,
6873
+ size: __props.size,
6874
+ disabled: __props.disabled,
6803
6875
  onChange: maxChangeHandler
6804
6876
  }, null, 8, ["modelValue", "size", "disabled"])
6805
6877
  ]);
@@ -6837,19 +6909,28 @@
6837
6909
  changeHandler(props.model[props.name]);
6838
6910
  };
6839
6911
  useAddField(props.prop);
6912
+ const iconSize = vue.computed(() => {
6913
+ if (props.size === "small") {
6914
+ return "12";
6915
+ }
6916
+ if (props.size === "large") {
6917
+ return "16";
6918
+ }
6919
+ return "14";
6920
+ });
6840
6921
  return (_ctx, _cache) => {
6841
- return _ctx.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicRadioGroup), {
6922
+ return __props.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicRadioGroup), {
6842
6923
  key: 0,
6843
- modelValue: _ctx.model[_ctx.name],
6844
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
6845
- size: _ctx.size,
6846
- disabled: _ctx.disabled
6924
+ modelValue: __props.model[__props.name],
6925
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
6926
+ size: __props.size,
6927
+ disabled: __props.disabled
6847
6928
  }, {
6848
6929
  default: vue.withCtx(() => [
6849
6930
  (vue.openBlock(true), vue.createElementBlock(
6850
6931
  vue.Fragment,
6851
6932
  null,
6852
- vue.renderList(_ctx.config.options, (option) => {
6933
+ vue.renderList(__props.config.options, (option) => {
6853
6934
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(itemComponent.value), {
6854
6935
  value: option.value,
6855
6936
  key: `${option.value}`,
@@ -6863,22 +6944,16 @@
6863
6944
  }, {
6864
6945
  default: vue.withCtx(() => [
6865
6946
  vue.createElementVNode("div", null, [
6866
- option.icon ? (vue.openBlock(), vue.createBlock(
6867
- vue.unref(design.TMagicIcon),
6868
- {
6869
- key: 0,
6870
- size: "16"
6871
- },
6872
- {
6873
- default: vue.withCtx(() => [
6874
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(option.icon)))
6875
- ]),
6876
- _: 2
6877
- /* DYNAMIC */
6878
- },
6879
- 1024
6880
- /* DYNAMIC_SLOTS */
6881
- )) : vue.createCommentVNode("v-if", true),
6947
+ option.icon ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicIcon), {
6948
+ key: 0,
6949
+ size: iconSize.value
6950
+ }, {
6951
+ default: vue.withCtx(() => [
6952
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(option.icon)))
6953
+ ]),
6954
+ _: 2
6955
+ /* DYNAMIC */
6956
+ }, 1032, ["size"])) : vue.createCommentVNode("v-if", true),
6882
6957
  vue.createElementVNode(
6883
6958
  "span",
6884
6959
  null,
@@ -6891,22 +6966,16 @@
6891
6966
  _: 2
6892
6967
  /* DYNAMIC */
6893
6968
  }, 1032, ["content"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
6894
- option.icon ? (vue.openBlock(), vue.createBlock(
6895
- vue.unref(design.TMagicIcon),
6896
- {
6897
- key: 0,
6898
- size: "16"
6899
- },
6900
- {
6901
- default: vue.withCtx(() => [
6902
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(option.icon)))
6903
- ]),
6904
- _: 2
6905
- /* DYNAMIC */
6906
- },
6907
- 1024
6908
- /* DYNAMIC_SLOTS */
6909
- )) : vue.createCommentVNode("v-if", true),
6969
+ option.icon ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicIcon), {
6970
+ key: 0,
6971
+ size: iconSize.value
6972
+ }, {
6973
+ default: vue.withCtx(() => [
6974
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(option.icon)))
6975
+ ]),
6976
+ _: 2
6977
+ /* DYNAMIC */
6978
+ }, 1032, ["size"])) : vue.createCommentVNode("v-if", true),
6910
6979
  vue.createElementVNode(
6911
6980
  "span",
6912
6981
  null,
@@ -7257,29 +7326,29 @@
7257
7326
  });
7258
7327
  return (_ctx, _cache) => {
7259
7328
  const _directive_loading = vue.resolveDirective("loading");
7260
- return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicSelect), {
7329
+ return __props.model ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicSelect), {
7261
7330
  key: 0,
7262
- modelValue: _ctx.model[_ctx.name],
7263
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
7331
+ modelValue: __props.model[__props.name],
7332
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
7264
7333
  class: "m-select",
7265
7334
  ref_key: "tMagicSelect",
7266
7335
  ref: tMagicSelect,
7267
- clearable: typeof _ctx.config.clearable !== "undefined" ? _ctx.config.clearable : true,
7268
- filterable: typeof _ctx.config.filterable !== "undefined" ? _ctx.config.filterable : true,
7336
+ clearable: typeof __props.config.clearable !== "undefined" ? __props.config.clearable : true,
7337
+ filterable: typeof __props.config.filterable !== "undefined" ? __props.config.filterable : true,
7269
7338
  "popper-class": `m-select-popper ${vue.unref(popperClass)}`,
7270
- size: _ctx.size,
7339
+ size: __props.size,
7271
7340
  remote: remote.value,
7272
- placeholder: _ctx.config.placeholder,
7273
- multiple: _ctx.config.multiple,
7274
- "value-key": _ctx.config.valueKey || "value",
7275
- "allow-create": _ctx.config.allowCreate,
7276
- disabled: _ctx.disabled,
7277
- "remote-method": _ctx.config.remote && remoteMethod,
7341
+ placeholder: __props.config.placeholder,
7342
+ multiple: __props.config.multiple,
7343
+ "value-key": __props.config.valueKey || "value",
7344
+ "allow-create": __props.config.allowCreate,
7345
+ disabled: __props.disabled,
7346
+ "remote-method": __props.config.remote && remoteMethod,
7278
7347
  onChange: changeHandler,
7279
7348
  onVisibleChange: visibleHandler
7280
7349
  }, {
7281
7350
  default: vue.withCtx(() => [
7282
- _ctx.config.group ? (vue.openBlock(true), vue.createElementBlock(
7351
+ __props.config.group ? (vue.openBlock(true), vue.createElementBlock(
7283
7352
  vue.Fragment,
7284
7353
  { key: 0 },
7285
7354
  vue.renderList(options.value, (group, index) => {
@@ -7344,7 +7413,7 @@
7344
7413
  vue.mergeProps(
7345
7414
  {
7346
7415
  class: "tmagic-design-option",
7347
- key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value
7416
+ key: __props.config.valueKey ? option.value[__props.config.valueKey] : option.value
7348
7417
  },
7349
7418
  { ref_for: true },
7350
7419
  vue.unref(optionComponent)?.props({
@@ -7430,19 +7499,19 @@
7430
7499
  });
7431
7500
  return (_ctx, _cache) => {
7432
7501
  return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicSwitch), {
7433
- modelValue: _ctx.model[_ctx.name],
7434
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
7435
- size: _ctx.size,
7502
+ modelValue: __props.model[__props.name],
7503
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
7504
+ size: __props.size,
7436
7505
  activeValue: activeValue.value,
7437
7506
  inactiveValue: inactiveValue.value,
7438
- disabled: _ctx.disabled,
7507
+ disabled: __props.disabled,
7439
7508
  onChange: changeHandler
7440
7509
  }, null, 8, ["modelValue", "size", "activeValue", "inactiveValue", "disabled"]);
7441
7510
  };
7442
7511
  }
7443
7512
  });
7444
7513
 
7445
- const _hoisted_1$1 = { style: { "width": "100%" } };
7514
+ const _hoisted_1$1 = { class: "m-fields-text" };
7446
7515
  const _hoisted_2 = { style: { "display": "flex", "justify-content": "flex-end" } };
7447
7516
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
7448
7517
  ...{
@@ -7585,14 +7654,14 @@
7585
7654
  return (_ctx, _cache) => {
7586
7655
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
7587
7656
  vue.createVNode(vue.unref(design.TMagicInput), {
7588
- modelValue: _ctx.model[_ctx.name],
7589
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
7657
+ modelValue: __props.model[__props.name],
7658
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
7590
7659
  ref_key: "input",
7591
7660
  ref: input,
7592
7661
  clearable: "",
7593
- size: _ctx.size,
7594
- placeholder: _ctx.config.placeholder,
7595
- disabled: _ctx.disabled,
7662
+ size: __props.size,
7663
+ placeholder: __props.config.placeholder,
7664
+ disabled: __props.disabled,
7596
7665
  onChange: changeHandler,
7597
7666
  onInput: inputHandler,
7598
7667
  onKeyup: _cache[1] || (_cache[1] = ($event) => keyUpHandler($event))
@@ -7606,7 +7675,7 @@
7606
7675
  appendConfig.value.type === "button" ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
7607
7676
  key: 0,
7608
7677
  style: { "color": "#409eff" },
7609
- size: _ctx.size,
7678
+ size: __props.size,
7610
7679
  onClick: vue.withModifiers(buttonClickHandler, ["prevent"])
7611
7680
  }, {
7612
7681
  default: vue.withCtx(() => [
@@ -7646,22 +7715,30 @@
7646
7715
  size: "small",
7647
7716
  onClick: _cache[2] || (_cache[2] = ($event) => popoverVisible.value = false)
7648
7717
  }, {
7649
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
7650
- vue.createTextVNode("保持原样")
7651
- ])),
7652
- _: 1,
7653
- __: [3]
7718
+ default: vue.withCtx(() => [..._cache[3] || (_cache[3] = [
7719
+ vue.createTextVNode(
7720
+ "保持原样",
7721
+ -1
7722
+ /* CACHED */
7723
+ )
7724
+ ])]),
7725
+ _: 1
7726
+ /* STABLE */
7654
7727
  }),
7655
7728
  vue.createVNode(vue.unref(design.TMagicButton), {
7656
7729
  type: "primary",
7657
7730
  size: "small",
7658
7731
  onClick: confirmTrimHandler
7659
7732
  }, {
7660
- default: vue.withCtx(() => _cache[4] || (_cache[4] = [
7661
- vue.createTextVNode("移除空格")
7662
- ])),
7663
- _: 1,
7664
- __: [4]
7733
+ default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
7734
+ vue.createTextVNode(
7735
+ "移除空格",
7736
+ -1
7737
+ /* CACHED */
7738
+ )
7739
+ ])]),
7740
+ _: 1
7741
+ /* STABLE */
7665
7742
  })
7666
7743
  ]),
7667
7744
  _cache[6] || (_cache[6] = vue.createElementVNode(
@@ -7715,13 +7792,13 @@
7715
7792
  };
7716
7793
  return (_ctx, _cache) => {
7717
7794
  return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInput), {
7718
- modelValue: _ctx.model[_ctx.name],
7719
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
7795
+ modelValue: __props.model[__props.name],
7796
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
7720
7797
  type: "textarea",
7721
- size: _ctx.size,
7798
+ size: __props.size,
7722
7799
  clearable: "",
7723
- placeholder: _ctx.config.placeholder,
7724
- disabled: _ctx.disabled,
7800
+ placeholder: __props.config.placeholder,
7801
+ disabled: __props.disabled,
7725
7802
  onChange: changeHandler,
7726
7803
  onInput: inputHandler
7727
7804
  }, null, 8, ["modelValue", "size", "placeholder", "disabled"]);
@@ -7755,13 +7832,13 @@
7755
7832
  };
7756
7833
  return (_ctx, _cache) => {
7757
7834
  return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTimePicker), {
7758
- modelValue: _ctx.model[_ctx.name],
7759
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
7760
- "value-format": _ctx.config.valueFormat || "HH:mm:ss",
7761
- format: _ctx.config.format || "HH:mm:ss",
7762
- size: _ctx.size,
7763
- placeholder: _ctx.config.placeholder,
7764
- disabled: _ctx.disabled,
7835
+ modelValue: __props.model[__props.name],
7836
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
7837
+ "value-format": __props.config.valueFormat || "HH:mm:ss",
7838
+ format: __props.config.format || "HH:mm:ss",
7839
+ size: __props.size,
7840
+ placeholder: __props.config.placeholder,
7841
+ disabled: __props.disabled,
7765
7842
  onChange: changeHandler
7766
7843
  }, null, 8, ["modelValue", "value-format", "format", "size", "placeholder", "disabled"]);
7767
7844
  };
@@ -7834,10 +7911,10 @@
7834
7911
  "range-separator": "-",
7835
7912
  "start-placeholder": "开始时间",
7836
7913
  "end-placeholder": "结束时间",
7837
- size: _ctx.size,
7914
+ size: __props.size,
7838
7915
  "unlink-panels": true,
7839
- disabled: _ctx.disabled,
7840
- "default-time": _ctx.config.defaultTime,
7916
+ disabled: __props.disabled,
7917
+ "default-time": __props.config.defaultTime,
7841
7918
  onChange: changeHandler
7842
7919
  }, null, 8, ["modelValue", "size", "disabled", "default-time"]);
7843
7920
  };
@@ -7928,14 +8005,14 @@
7928
8005
  ref: drawer,
7929
8006
  modelValue: visible.value,
7930
8007
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
7931
- title: _ctx.title,
7932
- "close-on-press-escape": _ctx.closeOnPressEscape,
8008
+ title: __props.title,
8009
+ "close-on-press-escape": __props.closeOnPressEscape,
7933
8010
  "append-to-body": true,
7934
8011
  "show-close": true,
7935
8012
  "close-on-click-modal": true,
7936
- size: _ctx.width,
7937
- zIndex: _ctx.zIndex,
7938
- "before-close": _ctx.beforeClose,
8013
+ size: __props.width,
8014
+ zIndex: __props.zIndex,
8015
+ "before-close": __props.beforeClose,
7939
8016
  onOpen: openHandler,
7940
8017
  onOpened: openedHandler,
7941
8018
  onClose: closeHandler,
@@ -7960,21 +8037,25 @@
7960
8037
  default: vue.withCtx(() => [
7961
8038
  vue.renderSlot(_ctx.$slots, "footer", {}, () => [
7962
8039
  vue.createVNode(vue.unref(design.TMagicButton), { onClick: handleClose }, {
7963
- default: vue.withCtx(() => _cache[1] || (_cache[1] = [
7964
- vue.createTextVNode("关闭")
7965
- ])),
7966
- _: 1,
7967
- __: [1]
8040
+ default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
8041
+ vue.createTextVNode(
8042
+ "关闭",
8043
+ -1
8044
+ /* CACHED */
8045
+ )
8046
+ ])]),
8047
+ _: 1
8048
+ /* STABLE */
7968
8049
  }),
7969
8050
  vue.createVNode(vue.unref(design.TMagicButton), {
7970
8051
  type: "primary",
7971
- disabled: _ctx.disabled,
8052
+ disabled: __props.disabled,
7972
8053
  loading: saveFetch.value,
7973
8054
  onClick: submitHandler
7974
8055
  }, {
7975
8056
  default: vue.withCtx(() => [
7976
8057
  vue.createTextVNode(
7977
- vue.toDisplayString(_ctx.confirmText),
8058
+ vue.toDisplayString(__props.confirmText),
7978
8059
  1
7979
8060
  /* TEXT */
7980
8061
  )
@@ -8005,15 +8086,15 @@
8005
8086
  vue.createVNode(_sfc_main$d, {
8006
8087
  ref_key: "form",
8007
8088
  ref: form,
8008
- size: _ctx.size,
8009
- disabled: _ctx.disabled,
8010
- config: _ctx.config,
8011
- "init-values": _ctx.values,
8012
- "parent-values": _ctx.parentValues,
8013
- "label-width": _ctx.labelWidth,
8014
- "label-position": _ctx.labelPosition,
8015
- inline: _ctx.inline,
8016
- "prevent-submit-default": _ctx.preventSubmitDefault,
8089
+ size: __props.size,
8090
+ disabled: __props.disabled,
8091
+ config: __props.config,
8092
+ "init-values": __props.values,
8093
+ "parent-values": __props.parentValues,
8094
+ "label-width": __props.labelWidth,
8095
+ "label-position": __props.labelPosition,
8096
+ inline: __props.inline,
8097
+ "prevent-submit-default": __props.preventSubmitDefault,
8017
8098
  onChange: changeHandler
8018
8099
  }, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
8019
8100
  vue.renderSlot(_ctx.$slots, "default")
@@ -8113,15 +8194,15 @@
8113
8194
  vue.createVNode(_sfc_main$d, {
8114
8195
  ref_key: "form",
8115
8196
  ref: form,
8116
- size: _ctx.size,
8117
- disabled: _ctx.disabled,
8118
- config: _ctx.config,
8119
- "init-values": _ctx.values,
8120
- "parent-values": _ctx.parentValues,
8121
- "label-width": _ctx.labelWidth,
8122
- "label-position": _ctx.labelPosition,
8123
- inline: _ctx.inline,
8124
- "prevent-submit-default": _ctx.preventSubmitDefault,
8197
+ size: __props.size,
8198
+ disabled: __props.disabled,
8199
+ config: __props.config,
8200
+ "init-values": __props.values,
8201
+ "parent-values": __props.parentValues,
8202
+ "label-width": __props.labelWidth,
8203
+ "label-position": __props.labelPosition,
8204
+ inline: __props.inline,
8205
+ "prevent-submit-default": __props.preventSubmitDefault,
8125
8206
  onChange: changeHandler
8126
8207
  }, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
8127
8208
  vue.renderSlot(_ctx.$slots, "default")
@@ -8147,14 +8228,14 @@
8147
8228
  vue.renderSlot(_ctx.$slots, "footer", {}, () => [
8148
8229
  vue.createVNode(vue.unref(design.TMagicButton), {
8149
8230
  type: "primary",
8150
- size: _ctx.size,
8151
- disabled: _ctx.disabled,
8231
+ size: __props.size,
8232
+ disabled: __props.disabled,
8152
8233
  loading: saveFetch.value,
8153
8234
  onClick: submitHandler
8154
8235
  }, {
8155
8236
  default: vue.withCtx(() => [
8156
8237
  vue.createTextVNode(
8157
- vue.toDisplayString(_ctx.confirmText),
8238
+ vue.toDisplayString(__props.confirmText),
8158
8239
  1
8159
8240
  /* TEXT */
8160
8241
  )