@tmagic/form 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +6 -0
- package/dist/tmagic-form.js +416 -419
- package/dist/tmagic-form.umd.cjs +416 -419
- package/package.json +6 -6
- package/src/fields/RadioGroup.vue +12 -2
- package/src/fields/Text.vue +1 -1
- package/src/theme/text.scss +6 -0
- package/types/index.d.ts +67 -36
package/dist/tmagic-form.umd.cjs
CHANGED
|
@@ -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
|
|
3315
|
+
return __props.config ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3316
3316
|
key: 0,
|
|
3317
|
-
"data-tmagic-id":
|
|
3317
|
+
"data-tmagic-id": __props.config.id,
|
|
3318
3318
|
"data-tmagic-form-item-prop": itemProp.value,
|
|
3319
|
-
style: vue.normalizeStyle(
|
|
3320
|
-
class: vue.normalizeClass(`m-form-container m-container-${type.value || ""} ${
|
|
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:
|
|
3325
|
-
config:
|
|
3326
|
-
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(
|
|
3331
|
-
size:
|
|
3332
|
-
model:
|
|
3333
|
-
"last-values":
|
|
3334
|
-
"is-compare":
|
|
3335
|
-
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":
|
|
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(
|
|
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":
|
|
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:
|
|
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(
|
|
3370
|
-
size:
|
|
3371
|
-
model:
|
|
3372
|
-
"last-values":
|
|
3373
|
-
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(
|
|
3385
|
-
size:
|
|
3386
|
-
model:
|
|
3387
|
-
"last-values":
|
|
3388
|
-
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
|
-
|
|
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:
|
|
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([
|
|
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":
|
|
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:
|
|
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(
|
|
3456
|
-
size:
|
|
3457
|
-
model:
|
|
3458
|
-
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(
|
|
3469
|
-
size:
|
|
3470
|
-
model:
|
|
3471
|
-
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
|
-
|
|
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:
|
|
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([
|
|
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":
|
|
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:
|
|
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(
|
|
3530
|
-
size:
|
|
3531
|
-
model:
|
|
3532
|
-
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(
|
|
3543
|
-
size:
|
|
3544
|
-
model:
|
|
3545
|
-
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
|
-
|
|
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:
|
|
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() ?
|
|
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() ?
|
|
3595
|
-
"last-values": isValidName() ?
|
|
3596
|
-
"is-compare":
|
|
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:
|
|
3598
|
+
size: __props.size,
|
|
3599
3599
|
disabled: disabled.value,
|
|
3600
|
-
"step-active":
|
|
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
|
-
|
|
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 ?
|
|
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 &&
|
|
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:
|
|
3702
|
+
modelValue: __props.model[name.value].value,
|
|
3703
3703
|
"onUpdate:modelValue": [
|
|
3704
|
-
_cache[0] || (_cache[0] = ($event) =>
|
|
3704
|
+
_cache[0] || (_cache[0] = ($event) => __props.model[name.value].value = $event),
|
|
3705
3705
|
valueChangeHandler
|
|
3706
3706
|
],
|
|
3707
|
-
prop: `${
|
|
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:
|
|
3713
|
+
innerHTML: __props.config.legend
|
|
3714
3714
|
}, null, 8, _hoisted_1$d),
|
|
3715
|
-
|
|
3715
|
+
__props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3716
3716
|
key: 0,
|
|
3717
|
-
innerHTML:
|
|
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:
|
|
3729
|
+
innerHTML: __props.config.legend
|
|
3730
3730
|
}, null, 8, _hoisted_4$2),
|
|
3731
|
-
|
|
3731
|
+
__props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3732
3732
|
key: 0,
|
|
3733
|
-
innerHTML:
|
|
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
|
-
|
|
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(
|
|
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 ?
|
|
3746
|
-
lastValues: name.value ?
|
|
3747
|
-
"is-compare":
|
|
3748
|
-
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:
|
|
3751
|
-
disabled:
|
|
3750
|
+
prop: __props.prop,
|
|
3751
|
+
disabled: __props.disabled,
|
|
3752
3752
|
labelWidth: lWidth.value,
|
|
3753
|
-
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:
|
|
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(
|
|
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 ?
|
|
3773
|
-
lastValues: name.value ?
|
|
3774
|
-
"is-compare":
|
|
3775
|
-
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:
|
|
3777
|
+
prop: __props.prop,
|
|
3778
3778
|
labelWidth: lWidth.value,
|
|
3779
|
-
size:
|
|
3780
|
-
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:
|
|
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:
|
|
3906
|
+
disabled: __props.disabled,
|
|
3907
3907
|
onClick: removeHandler
|
|
3908
3908
|
}, null, 8, ["icon", "disabled"]), [
|
|
3909
3909
|
[vue.vShow, showDelete.value]
|
|
@@ -3914,7 +3914,7 @@
|
|
|
3914
3914
|
size: "small",
|
|
3915
3915
|
type: "primary",
|
|
3916
3916
|
icon: vue.unref(iconsVue.DocumentCopy),
|
|
3917
|
-
disabled:
|
|
3917
|
+
disabled: __props.disabled,
|
|
3918
3918
|
onClick: copyHandler
|
|
3919
3919
|
}, {
|
|
3920
3920
|
default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
@@ -3934,7 +3934,7 @@
|
|
|
3934
3934
|
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
3935
3935
|
link: "",
|
|
3936
3936
|
size: "small",
|
|
3937
|
-
disabled:
|
|
3937
|
+
disabled: __props.disabled,
|
|
3938
3938
|
icon: vue.unref(iconsVue.CaretTop),
|
|
3939
3939
|
onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
|
|
3940
3940
|
}, {
|
|
@@ -3948,12 +3948,12 @@
|
|
|
3948
3948
|
_: 1
|
|
3949
3949
|
/* STABLE */
|
|
3950
3950
|
}, 8, ["disabled", "icon"]), [
|
|
3951
|
-
[vue.vShow,
|
|
3951
|
+
[vue.vShow, __props.index !== 0]
|
|
3952
3952
|
]),
|
|
3953
3953
|
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
3954
3954
|
link: "",
|
|
3955
3955
|
size: "small",
|
|
3956
|
-
disabled:
|
|
3956
|
+
disabled: __props.disabled,
|
|
3957
3957
|
icon: vue.unref(iconsVue.CaretBottom),
|
|
3958
3958
|
onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
|
|
3959
3959
|
}, {
|
|
@@ -3967,13 +3967,13 @@
|
|
|
3967
3967
|
_: 1
|
|
3968
3968
|
/* STABLE */
|
|
3969
3969
|
}, 8, ["disabled", "icon"]), [
|
|
3970
|
-
[vue.vShow,
|
|
3970
|
+
[vue.vShow, __props.index !== length.value - 1]
|
|
3971
3971
|
])
|
|
3972
3972
|
],
|
|
3973
3973
|
64
|
|
3974
3974
|
/* STABLE_FRAGMENT */
|
|
3975
3975
|
)) : vue.createCommentVNode("v-if", true),
|
|
3976
|
-
|
|
3976
|
+
__props.config.moveSpecifyLocation ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicPopover), {
|
|
3977
3977
|
key: 2,
|
|
3978
3978
|
trigger: "click",
|
|
3979
3979
|
placement: "top",
|
|
@@ -3986,7 +3986,7 @@
|
|
|
3986
3986
|
size: "small",
|
|
3987
3987
|
type: "primary",
|
|
3988
3988
|
icon: vue.unref(iconsVue.Position),
|
|
3989
|
-
disabled:
|
|
3989
|
+
disabled: __props.disabled,
|
|
3990
3990
|
onClick: _cache[2] || (_cache[2] = ($event) => moveSpecifyLocationVisible.value = true)
|
|
3991
3991
|
}, {
|
|
3992
3992
|
default: vue.withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
@@ -4014,7 +4014,7 @@
|
|
|
4014
4014
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => moveSpecifyLocationIndex.value = $event),
|
|
4015
4015
|
size: "small",
|
|
4016
4016
|
min: 1,
|
|
4017
|
-
disabled:
|
|
4017
|
+
disabled: __props.disabled
|
|
4018
4018
|
}, null, 8, ["modelValue", "disabled"]),
|
|
4019
4019
|
_cache[11] || (_cache[11] = vue.createTextVNode(
|
|
4020
4020
|
"行 ",
|
|
@@ -4068,13 +4068,13 @@
|
|
|
4068
4068
|
expand.value ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
4069
4069
|
key: 0,
|
|
4070
4070
|
config: rowConfig.value,
|
|
4071
|
-
model:
|
|
4072
|
-
lastValues:
|
|
4073
|
-
"is-compare":
|
|
4074
|
-
labelWidth:
|
|
4075
|
-
prop: `${
|
|
4076
|
-
size:
|
|
4077
|
-
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,
|
|
4078
4078
|
onChange: changeHandler,
|
|
4079
4079
|
onAddDiffCount: _cache[5] || (_cache[5] = ($event) => onAddDiffCount())
|
|
4080
4080
|
}, null, 8, ["config", "model", "lastValues", "is-compare", "labelWidth", "prop", "size", "disabled"])) : vue.createCommentVNode("v-if", true)
|
|
@@ -4180,12 +4180,12 @@
|
|
|
4180
4180
|
const getLastValues = (item, index) => item?.[index] || {};
|
|
4181
4181
|
return (_ctx, _cache) => {
|
|
4182
4182
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
|
|
4183
|
-
|
|
4183
|
+
__props.config.extra ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
4184
4184
|
key: 0,
|
|
4185
|
-
innerHTML:
|
|
4185
|
+
innerHTML: __props.config.extra,
|
|
4186
4186
|
style: { "color": "rgba(0, 0, 0, 0.45)" }
|
|
4187
4187
|
}, null, 8, _hoisted_2$4)) : vue.createCommentVNode("v-if", true),
|
|
4188
|
-
!
|
|
4188
|
+
!__props.model[__props.name] || !__props.model[__props.name].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [..._cache[1] || (_cache[1] = [
|
|
4189
4189
|
vue.createElementVNode(
|
|
4190
4190
|
"span",
|
|
4191
4191
|
{ class: "el-table__empty-text" },
|
|
@@ -4196,19 +4196,19 @@
|
|
|
4196
4196
|
])])) : (vue.openBlock(true), vue.createElementBlock(
|
|
4197
4197
|
vue.Fragment,
|
|
4198
4198
|
{ key: 2 },
|
|
4199
|
-
vue.renderList(
|
|
4199
|
+
vue.renderList(__props.model[__props.name], (item, index) => {
|
|
4200
4200
|
return vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
4201
4201
|
key: index,
|
|
4202
4202
|
model: item,
|
|
4203
|
-
lastValues: getLastValues(
|
|
4204
|
-
"is-compare":
|
|
4205
|
-
config:
|
|
4206
|
-
prop:
|
|
4203
|
+
lastValues: getLastValues(__props.lastValues[__props.name], index),
|
|
4204
|
+
"is-compare": __props.isCompare,
|
|
4205
|
+
config: __props.config,
|
|
4206
|
+
prop: __props.prop,
|
|
4207
4207
|
index,
|
|
4208
|
-
"label-width":
|
|
4209
|
-
size:
|
|
4210
|
-
disabled:
|
|
4211
|
-
"group-model":
|
|
4208
|
+
"label-width": __props.labelWidth,
|
|
4209
|
+
size: __props.size,
|
|
4210
|
+
disabled: __props.disabled,
|
|
4211
|
+
"group-model": __props.model[__props.name],
|
|
4212
4212
|
onRemoveItem: removeHandler,
|
|
4213
4213
|
onCopyItem: copyHandler,
|
|
4214
4214
|
onSwapItem: swapHandler,
|
|
@@ -4222,8 +4222,8 @@
|
|
|
4222
4222
|
addable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
4223
4223
|
key: 3,
|
|
4224
4224
|
type: "primary",
|
|
4225
|
-
size:
|
|
4226
|
-
disabled:
|
|
4225
|
+
size: __props.config.enableToggleMode ? "small" : "default",
|
|
4226
|
+
disabled: __props.disabled,
|
|
4227
4227
|
onClick: addHandler
|
|
4228
4228
|
}, {
|
|
4229
4229
|
default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
@@ -4236,7 +4236,7 @@
|
|
|
4236
4236
|
_: 1
|
|
4237
4237
|
/* STABLE */
|
|
4238
4238
|
}, 8, ["size", "disabled"])) : vue.createCommentVNode("v-if", true),
|
|
4239
|
-
|
|
4239
|
+
__props.config.enableToggleMode ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
4240
4240
|
key: 4,
|
|
4241
4241
|
icon: vue.unref(iconsVue.Grid),
|
|
4242
4242
|
size: "small",
|
|
@@ -4307,14 +4307,14 @@
|
|
|
4307
4307
|
icon: expand.value ? vue.unref(iconsVue.CaretBottom) : vue.unref(iconsVue.CaretRight),
|
|
4308
4308
|
onClick: _cache[0] || (_cache[0] = ($event) => expand.value = !expand.value)
|
|
4309
4309
|
}, null, 8, ["icon"]),
|
|
4310
|
-
|
|
4310
|
+
__props.config && __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
4311
4311
|
key: 0,
|
|
4312
|
-
innerHTML:
|
|
4312
|
+
innerHTML: __props.config.extra,
|
|
4313
4313
|
class: "m-form-tip"
|
|
4314
4314
|
}, null, 8, _hoisted_2$3)) : vue.createCommentVNode("v-if", true),
|
|
4315
4315
|
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
4316
4316
|
vue.createTextVNode(
|
|
4317
|
-
vue.toDisplayString(filter(
|
|
4317
|
+
vue.toDisplayString(filter(__props.config.title)),
|
|
4318
4318
|
1
|
|
4319
4319
|
/* TEXT */
|
|
4320
4320
|
)
|
|
@@ -4324,7 +4324,7 @@
|
|
|
4324
4324
|
default: vue.withCtx(() => [
|
|
4325
4325
|
vue.createElementVNode("div", null, [
|
|
4326
4326
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
4327
|
-
|
|
4327
|
+
__props.config.schematic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$1, [
|
|
4328
4328
|
vue.createElementVNode("div", _hoisted_4$1, [
|
|
4329
4329
|
(vue.openBlock(true), vue.createElementBlock(
|
|
4330
4330
|
vue.Fragment,
|
|
@@ -4333,13 +4333,13 @@
|
|
|
4333
4333
|
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
4334
4334
|
key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
4335
4335
|
config: item,
|
|
4336
|
-
model:
|
|
4337
|
-
lastValues:
|
|
4338
|
-
"is-compare":
|
|
4339
|
-
prop:
|
|
4340
|
-
size:
|
|
4341
|
-
disabled:
|
|
4342
|
-
"label-width":
|
|
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,
|
|
4343
4343
|
onChange: changeHandler,
|
|
4344
4344
|
onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
|
|
4345
4345
|
}, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
|
|
@@ -4350,7 +4350,7 @@
|
|
|
4350
4350
|
]),
|
|
4351
4351
|
vue.createElementVNode("img", {
|
|
4352
4352
|
class: "m-form-schematic",
|
|
4353
|
-
src:
|
|
4353
|
+
src: __props.config.schematic
|
|
4354
4354
|
}, null, 8, _hoisted_5$1)
|
|
4355
4355
|
])) : (vue.openBlock(true), vue.createElementBlock(
|
|
4356
4356
|
vue.Fragment,
|
|
@@ -4359,13 +4359,13 @@
|
|
|
4359
4359
|
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
4360
4360
|
key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
4361
4361
|
config: item,
|
|
4362
|
-
model:
|
|
4363
|
-
lastValues:
|
|
4364
|
-
"is-compare":
|
|
4365
|
-
prop:
|
|
4366
|
-
size:
|
|
4367
|
-
disabled:
|
|
4368
|
-
"label-width":
|
|
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,
|
|
4369
4369
|
onChange: changeHandler,
|
|
4370
4370
|
onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
|
|
4371
4371
|
}, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
|
|
@@ -4408,18 +4408,18 @@
|
|
|
4408
4408
|
const changeHandler = (v, eventData) => emit("change", v, eventData);
|
|
4409
4409
|
const onAddDiffCount = () => emit("addDiffCount");
|
|
4410
4410
|
return (_ctx, _cache) => {
|
|
4411
|
-
return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCol), { span:
|
|
4411
|
+
return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCol), { span: __props.span }, {
|
|
4412
4412
|
default: vue.withCtx(() => [
|
|
4413
4413
|
vue.createVNode(_sfc_main$x, {
|
|
4414
|
-
model:
|
|
4415
|
-
lastValues:
|
|
4416
|
-
"is-compare":
|
|
4417
|
-
config:
|
|
4418
|
-
prop:
|
|
4419
|
-
"label-width":
|
|
4420
|
-
"expand-more":
|
|
4421
|
-
size:
|
|
4422
|
-
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,
|
|
4423
4423
|
onChange: changeHandler,
|
|
4424
4424
|
onAddDiffCount
|
|
4425
4425
|
}, null, 8, ["model", "lastValues", "is-compare", "config", "prop", "label-width", "expand-more", "size", "disabled"])
|
|
@@ -4427,7 +4427,7 @@
|
|
|
4427
4427
|
_: 1
|
|
4428
4428
|
/* STABLE */
|
|
4429
4429
|
}, 8, ["span"])), [
|
|
4430
|
-
[vue.vShow, display$1.value &&
|
|
4430
|
+
[vue.vShow, display$1.value && __props.config.type !== "hidden"]
|
|
4431
4431
|
]);
|
|
4432
4432
|
};
|
|
4433
4433
|
}
|
|
@@ -4465,19 +4465,19 @@
|
|
|
4465
4465
|
(vue.openBlock(true), vue.createElementBlock(
|
|
4466
4466
|
vue.Fragment,
|
|
4467
4467
|
null,
|
|
4468
|
-
vue.renderList(
|
|
4468
|
+
vue.renderList(__props.config.items, (col, index) => {
|
|
4469
4469
|
return vue.openBlock(), vue.createBlock(_sfc_main$s, {
|
|
4470
4470
|
key: col[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
4471
|
-
span: col.span ||
|
|
4471
|
+
span: col.span || __props.config.span || 24 / __props.config.items.length,
|
|
4472
4472
|
config: col,
|
|
4473
|
-
labelWidth:
|
|
4474
|
-
expandMore:
|
|
4475
|
-
model:
|
|
4476
|
-
lastValues:
|
|
4477
|
-
"is-compare":
|
|
4478
|
-
prop:
|
|
4479
|
-
size:
|
|
4480
|
-
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,
|
|
4481
4481
|
onChange: changeHandler,
|
|
4482
4482
|
onAddDiffCount
|
|
4483
4483
|
}, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "lastValues", "is-compare", "prop", "size", "disabled"]);
|
|
@@ -4531,13 +4531,13 @@
|
|
|
4531
4531
|
vue.createVNode(vue.unref(design.TMagicSteps), {
|
|
4532
4532
|
active: active.value,
|
|
4533
4533
|
"align-center": "",
|
|
4534
|
-
space:
|
|
4534
|
+
space: __props.config.space
|
|
4535
4535
|
}, {
|
|
4536
4536
|
default: vue.withCtx(() => [
|
|
4537
4537
|
(vue.openBlock(true), vue.createElementBlock(
|
|
4538
4538
|
vue.Fragment,
|
|
4539
4539
|
null,
|
|
4540
|
-
vue.renderList(
|
|
4540
|
+
vue.renderList(__props.config.items, (item, index) => {
|
|
4541
4541
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicStep), {
|
|
4542
4542
|
key: item.__key,
|
|
4543
4543
|
title: item.title,
|
|
@@ -4555,7 +4555,7 @@
|
|
|
4555
4555
|
(vue.openBlock(true), vue.createElementBlock(
|
|
4556
4556
|
vue.Fragment,
|
|
4557
4557
|
null,
|
|
4558
|
-
vue.renderList(
|
|
4558
|
+
vue.renderList(__props.config.items, (step, index) => {
|
|
4559
4559
|
return vue.openBlock(), vue.createElementBlock(
|
|
4560
4560
|
vue.Fragment,
|
|
4561
4561
|
null,
|
|
@@ -4571,13 +4571,13 @@
|
|
|
4571
4571
|
item ? vue.withDirectives((vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
4572
4572
|
key: item[vue.unref(mForm)?.keyProp || "__key"],
|
|
4573
4573
|
config: item,
|
|
4574
|
-
model: step.name ?
|
|
4575
|
-
lastValues: step.name ?
|
|
4576
|
-
"is-compare":
|
|
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,
|
|
4577
4577
|
prop: `${step.name}`,
|
|
4578
|
-
size:
|
|
4579
|
-
disabled:
|
|
4580
|
-
"label-width":
|
|
4578
|
+
size: __props.size,
|
|
4579
|
+
disabled: __props.disabled,
|
|
4580
|
+
"label-width": __props.config.labelWidth || __props.labelWidth,
|
|
4581
4581
|
onChange: changeHandler,
|
|
4582
4582
|
onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
|
|
4583
4583
|
}, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"])), [
|
|
@@ -5000,36 +5000,36 @@
|
|
|
5000
5000
|
{
|
|
5001
5001
|
ref_key: "mTable",
|
|
5002
5002
|
ref: mTable,
|
|
5003
|
-
class: vue.normalizeClass(["m-fields-table", { "m-fields-table-item-extra":
|
|
5003
|
+
class: vue.normalizeClass(["m-fields-table", { "m-fields-table-item-extra": __props.config.itemExtra }])
|
|
5004
5004
|
},
|
|
5005
5005
|
[
|
|
5006
|
-
|
|
5006
|
+
__props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
5007
5007
|
key: 0,
|
|
5008
5008
|
style: { "color": "rgba(0, 0, 0, 0.45)" },
|
|
5009
|
-
innerHTML:
|
|
5009
|
+
innerHTML: __props.config.extra
|
|
5010
5010
|
}, null, 8, _hoisted_2$2)) : vue.createCommentVNode("v-if", true),
|
|
5011
5011
|
vue.createVNode(vue.unref(design.TMagicTooltip), {
|
|
5012
5012
|
content: "拖拽可排序",
|
|
5013
5013
|
placement: "left-start",
|
|
5014
|
-
disabled:
|
|
5014
|
+
disabled: __props.config.dropSort !== true
|
|
5015
5015
|
}, {
|
|
5016
5016
|
default: vue.withCtx(() => [
|
|
5017
|
-
|
|
5017
|
+
__props.model[modelName.value] ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTable), {
|
|
5018
5018
|
ref_key: "tMagicTable",
|
|
5019
5019
|
ref: tMagicTable,
|
|
5020
5020
|
style: { "width": "100%" },
|
|
5021
|
-
"row-key":
|
|
5021
|
+
"row-key": __props.config.rowKey || "id",
|
|
5022
5022
|
data: data.value,
|
|
5023
5023
|
lastData: lastData.value,
|
|
5024
|
-
border:
|
|
5025
|
-
"max-height":
|
|
5024
|
+
border: __props.config.border,
|
|
5025
|
+
"max-height": __props.config.maxHeight,
|
|
5026
5026
|
"default-expand-all": true,
|
|
5027
5027
|
key: updateKey.value,
|
|
5028
5028
|
onSelect: selectHandle,
|
|
5029
5029
|
onSortChange: sortChange
|
|
5030
5030
|
}, {
|
|
5031
5031
|
default: vue.withCtx(() => [
|
|
5032
|
-
|
|
5032
|
+
__props.config.itemExtra && !__props.config.dropSort ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
5033
5033
|
key: 0,
|
|
5034
5034
|
fixed: "left",
|
|
5035
5035
|
width: "30",
|
|
@@ -5037,7 +5037,7 @@
|
|
|
5037
5037
|
}, {
|
|
5038
5038
|
default: vue.withCtx((scope) => [
|
|
5039
5039
|
vue.createElementVNode("span", {
|
|
5040
|
-
innerHTML: itemExtra(
|
|
5040
|
+
innerHTML: itemExtra(__props.config.itemExtra, scope.$index),
|
|
5041
5041
|
class: "m-form-tip"
|
|
5042
5042
|
}, null, 8, _hoisted_3)
|
|
5043
5043
|
]),
|
|
@@ -5046,9 +5046,9 @@
|
|
|
5046
5046
|
})) : vue.createCommentVNode("v-if", true),
|
|
5047
5047
|
vue.createVNode(vue.unref(design.TMagicTableColumn), {
|
|
5048
5048
|
label: "操作",
|
|
5049
|
-
width:
|
|
5049
|
+
width: __props.config.operateColWidth || 100,
|
|
5050
5050
|
align: "center",
|
|
5051
|
-
fixed:
|
|
5051
|
+
fixed: __props.config.fixed === false ? void 0 : "left"
|
|
5052
5052
|
}, {
|
|
5053
5053
|
default: vue.withCtx((scope) => [
|
|
5054
5054
|
vue.renderSlot(_ctx.$slots, "operateCol", { scope }),
|
|
@@ -5069,14 +5069,14 @@
|
|
|
5069
5069
|
type: "primary",
|
|
5070
5070
|
title: "复制",
|
|
5071
5071
|
icon: vue.unref(iconsVue.DocumentCopy),
|
|
5072
|
-
disabled:
|
|
5072
|
+
disabled: __props.disabled,
|
|
5073
5073
|
onClick: ($event) => copyHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
5074
5074
|
}, null, 8, ["icon", "disabled", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
5075
5075
|
]),
|
|
5076
5076
|
_: 3
|
|
5077
5077
|
/* FORWARDED */
|
|
5078
5078
|
}, 8, ["width", "fixed"]),
|
|
5079
|
-
|
|
5079
|
+
__props.sort && __props.model[modelName.value] && __props.model[modelName.value].length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
5080
5080
|
key: 1,
|
|
5081
5081
|
label: "排序",
|
|
5082
5082
|
width: "60"
|
|
@@ -5096,7 +5096,7 @@
|
|
|
5096
5096
|
size: "small",
|
|
5097
5097
|
type: "primary",
|
|
5098
5098
|
icon: vue.unref(iconsVue.ArrowUp),
|
|
5099
|
-
disabled:
|
|
5099
|
+
disabled: __props.disabled,
|
|
5100
5100
|
link: "",
|
|
5101
5101
|
onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
|
|
5102
5102
|
onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
@@ -5108,7 +5108,7 @@
|
|
|
5108
5108
|
1024
|
|
5109
5109
|
/* DYNAMIC_SLOTS */
|
|
5110
5110
|
)) : vue.createCommentVNode("v-if", true),
|
|
5111
|
-
scope.$index + 1 + pagecontext.value * pagesize.value - 1 !==
|
|
5111
|
+
scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== __props.model[modelName.value].length - 1 ? (vue.openBlock(), vue.createBlock(
|
|
5112
5112
|
vue.unref(design.TMagicTooltip),
|
|
5113
5113
|
{
|
|
5114
5114
|
key: 1,
|
|
@@ -5122,7 +5122,7 @@
|
|
|
5122
5122
|
size: "small",
|
|
5123
5123
|
type: "primary",
|
|
5124
5124
|
icon: vue.unref(iconsVue.ArrowDown),
|
|
5125
|
-
disabled:
|
|
5125
|
+
disabled: __props.disabled,
|
|
5126
5126
|
link: "",
|
|
5127
5127
|
onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
|
|
5128
5128
|
onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
@@ -5145,7 +5145,7 @@
|
|
|
5145
5145
|
type: "selection",
|
|
5146
5146
|
width: "45"
|
|
5147
5147
|
})) : vue.createCommentVNode("v-if", true),
|
|
5148
|
-
|
|
5148
|
+
__props.showIndex && __props.config.showIndex ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
5149
5149
|
key: 3,
|
|
5150
5150
|
width: "60",
|
|
5151
5151
|
label: "序号"
|
|
@@ -5163,7 +5163,7 @@
|
|
|
5163
5163
|
(vue.openBlock(true), vue.createElementBlock(
|
|
5164
5164
|
vue.Fragment,
|
|
5165
5165
|
null,
|
|
5166
|
-
vue.renderList(
|
|
5166
|
+
vue.renderList(__props.config.items, (column, index) => {
|
|
5167
5167
|
return vue.openBlock(), vue.createElementBlock(
|
|
5168
5168
|
vue.Fragment,
|
|
5169
5169
|
null,
|
|
@@ -5175,20 +5175,20 @@
|
|
|
5175
5175
|
sortable: column.sortable,
|
|
5176
5176
|
"sort-orders": ["ascending", "descending"],
|
|
5177
5177
|
key: column[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
5178
|
-
"class-name":
|
|
5178
|
+
"class-name": __props.config.dropSort === true ? "el-table__column--dropable" : ""
|
|
5179
5179
|
}, {
|
|
5180
5180
|
default: vue.withCtx((scope) => [
|
|
5181
5181
|
scope.$index > -1 ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
5182
5182
|
key: 0,
|
|
5183
5183
|
labelWidth: "0",
|
|
5184
|
-
disabled:
|
|
5184
|
+
disabled: __props.disabled,
|
|
5185
5185
|
prop: getProp(scope.$index),
|
|
5186
5186
|
rules: column.rules,
|
|
5187
5187
|
config: makeConfig(column, scope.row),
|
|
5188
5188
|
model: scope.row,
|
|
5189
5189
|
lastValues: lastData.value[scope.$index],
|
|
5190
|
-
"is-compare":
|
|
5191
|
-
size:
|
|
5190
|
+
"is-compare": __props.isCompare,
|
|
5191
|
+
size: __props.size,
|
|
5192
5192
|
onChange: changeHandler,
|
|
5193
5193
|
onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
|
|
5194
5194
|
}, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : vue.createCommentVNode("v-if", true)
|
|
@@ -5218,7 +5218,7 @@
|
|
|
5218
5218
|
key: 0,
|
|
5219
5219
|
size: "small",
|
|
5220
5220
|
type: "primary",
|
|
5221
|
-
disabled:
|
|
5221
|
+
disabled: __props.disabled,
|
|
5222
5222
|
plain: "",
|
|
5223
5223
|
onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
|
|
5224
5224
|
}, {
|
|
@@ -5233,7 +5233,7 @@
|
|
|
5233
5233
|
/* STABLE */
|
|
5234
5234
|
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
|
|
5235
5235
|
vue.createElementVNode("div", _hoisted_5, [
|
|
5236
|
-
|
|
5236
|
+
__props.enableToggleMode && __props.config.enableToggleMode !== false && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
5237
5237
|
key: 0,
|
|
5238
5238
|
icon: vue.unref(iconsVue.Grid),
|
|
5239
5239
|
size: "small",
|
|
@@ -5250,7 +5250,7 @@
|
|
|
5250
5250
|
_: 1
|
|
5251
5251
|
/* STABLE */
|
|
5252
5252
|
}, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
|
|
5253
|
-
|
|
5253
|
+
__props.config.enableFullscreen !== false ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
5254
5254
|
key: 1,
|
|
5255
5255
|
icon: vue.unref(iconsVue.FullScreen),
|
|
5256
5256
|
size: "small",
|
|
@@ -5273,7 +5273,7 @@
|
|
|
5273
5273
|
ref_key: "excelBtn",
|
|
5274
5274
|
ref: excelBtn,
|
|
5275
5275
|
action: "/noop",
|
|
5276
|
-
disabled:
|
|
5276
|
+
disabled: __props.disabled,
|
|
5277
5277
|
"on-change": excelHandler,
|
|
5278
5278
|
"auto-upload": false
|
|
5279
5279
|
}, {
|
|
@@ -5281,7 +5281,7 @@
|
|
|
5281
5281
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
5282
5282
|
size: "small",
|
|
5283
5283
|
type: "success",
|
|
5284
|
-
disabled:
|
|
5284
|
+
disabled: __props.disabled,
|
|
5285
5285
|
plain: ""
|
|
5286
5286
|
}, {
|
|
5287
5287
|
default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
@@ -5302,7 +5302,7 @@
|
|
|
5302
5302
|
key: 3,
|
|
5303
5303
|
size: "small",
|
|
5304
5304
|
type: "warning",
|
|
5305
|
-
disabled:
|
|
5305
|
+
disabled: __props.disabled,
|
|
5306
5306
|
plain: "",
|
|
5307
5307
|
onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
|
|
5308
5308
|
}, {
|
|
@@ -5318,14 +5318,14 @@
|
|
|
5318
5318
|
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
|
|
5319
5319
|
])
|
|
5320
5320
|
]),
|
|
5321
|
-
|
|
5321
|
+
__props.config.pagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
5322
5322
|
vue.createVNode(vue.unref(design.TMagicPagination), {
|
|
5323
5323
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
5324
|
-
"hide-on-single-page":
|
|
5324
|
+
"hide-on-single-page": __props.model[modelName.value].length < pagesize.value,
|
|
5325
5325
|
"current-page": pagecontext.value + 1,
|
|
5326
5326
|
"page-sizes": [pagesize.value, 60, 120, 300],
|
|
5327
5327
|
"page-size": pagesize.value,
|
|
5328
|
-
total:
|
|
5328
|
+
total: __props.model[modelName.value].length,
|
|
5329
5329
|
onSizeChange: handleSizeChange,
|
|
5330
5330
|
onCurrentChange: handleCurrentChange
|
|
5331
5331
|
}, null, 8, ["hide-on-single-page", "current-page", "page-sizes", "page-size", "total"])
|
|
@@ -5466,12 +5466,12 @@
|
|
|
5466
5466
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeTabName.value = $event)
|
|
5467
5467
|
},
|
|
5468
5468
|
vue.unref(tabsComponent)?.props({
|
|
5469
|
-
type:
|
|
5470
|
-
editable:
|
|
5471
|
-
tabPosition:
|
|
5469
|
+
type: __props.config.tabType,
|
|
5470
|
+
editable: __props.config.editable || false,
|
|
5471
|
+
tabPosition: __props.config.tabPosition || "top"
|
|
5472
5472
|
}) || {},
|
|
5473
5473
|
{
|
|
5474
|
-
class: `tmagic-design-tabs ${
|
|
5474
|
+
class: `tmagic-design-tabs ${__props.config.dynamic ? "magic-form-dynamic-tab" : "magic-form-tab"}`,
|
|
5475
5475
|
onTabClick: tabClickHandler,
|
|
5476
5476
|
onTabAdd,
|
|
5477
5477
|
onTabRemove
|
|
@@ -5514,14 +5514,14 @@
|
|
|
5514
5514
|
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
5515
5515
|
key: item[vue.unref(mForm)?.keyProp || "__key"],
|
|
5516
5516
|
config: item,
|
|
5517
|
-
disabled:
|
|
5518
|
-
model:
|
|
5519
|
-
"last-values": vue.unref(isEmpty)(
|
|
5520
|
-
"is-compare":
|
|
5521
|
-
prop:
|
|
5522
|
-
size:
|
|
5523
|
-
"label-width": tab.labelWidth ||
|
|
5524
|
-
"expand-more":
|
|
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,
|
|
5525
5525
|
onChange: changeHandler,
|
|
5526
5526
|
onAddDiffCount: ($event) => onAddDiffCount(tabIndex)
|
|
5527
5527
|
}, null, 8, ["config", "disabled", "model", "last-values", "is-compare", "prop", "size", "label-width", "expand-more", "onAddDiffCount"]);
|
|
@@ -5678,14 +5678,14 @@
|
|
|
5678
5678
|
style: { "width": "100%" },
|
|
5679
5679
|
clearable: "",
|
|
5680
5680
|
filterable: "",
|
|
5681
|
-
size:
|
|
5682
|
-
placeholder:
|
|
5683
|
-
disabled:
|
|
5681
|
+
size: __props.size,
|
|
5682
|
+
placeholder: __props.config.placeholder,
|
|
5683
|
+
disabled: __props.disabled,
|
|
5684
5684
|
options: options.value,
|
|
5685
|
-
"popper-class":
|
|
5685
|
+
"popper-class": __props.config.popperClass,
|
|
5686
5686
|
props: {
|
|
5687
|
-
multiple:
|
|
5688
|
-
emitPath:
|
|
5687
|
+
multiple: __props.config.multiple ?? false,
|
|
5688
|
+
emitPath: __props.config.emitPath ?? true,
|
|
5689
5689
|
checkStrictly: checkStrictly.value ?? false
|
|
5690
5690
|
},
|
|
5691
5691
|
onChange: changeHandler
|
|
@@ -5740,17 +5740,17 @@
|
|
|
5740
5740
|
};
|
|
5741
5741
|
return (_ctx, _cache) => {
|
|
5742
5742
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCheckbox), {
|
|
5743
|
-
modelValue:
|
|
5744
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
5745
|
-
size:
|
|
5743
|
+
modelValue: __props.model[__props.name],
|
|
5744
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
5745
|
+
size: __props.size,
|
|
5746
5746
|
trueValue: activeValue.value,
|
|
5747
5747
|
falseValue: inactiveValue.value,
|
|
5748
|
-
disabled:
|
|
5748
|
+
disabled: __props.disabled,
|
|
5749
5749
|
onChange: changeHandler
|
|
5750
5750
|
}, {
|
|
5751
5751
|
default: vue.withCtx(() => [
|
|
5752
5752
|
vue.createTextVNode(
|
|
5753
|
-
vue.toDisplayString(
|
|
5753
|
+
vue.toDisplayString(__props.config.text),
|
|
5754
5754
|
1
|
|
5755
5755
|
/* TEXT */
|
|
5756
5756
|
)
|
|
@@ -5798,10 +5798,10 @@
|
|
|
5798
5798
|
});
|
|
5799
5799
|
return (_ctx, _cache) => {
|
|
5800
5800
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCheckboxGroup), {
|
|
5801
|
-
modelValue:
|
|
5802
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
5803
|
-
size:
|
|
5804
|
-
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,
|
|
5805
5805
|
onChange: changeHandler
|
|
5806
5806
|
}, {
|
|
5807
5807
|
default: vue.withCtx(() => [
|
|
@@ -5860,10 +5860,10 @@
|
|
|
5860
5860
|
const changeHandler = (value) => emit("change", value);
|
|
5861
5861
|
return (_ctx, _cache) => {
|
|
5862
5862
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicColorPicker), {
|
|
5863
|
-
modelValue:
|
|
5864
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
5865
|
-
size:
|
|
5866
|
-
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,
|
|
5867
5867
|
showAlpha: true,
|
|
5868
5868
|
onChange: changeHandler
|
|
5869
5869
|
}, null, 8, ["modelValue", "size", "disabled"]);
|
|
@@ -5898,14 +5898,14 @@
|
|
|
5898
5898
|
};
|
|
5899
5899
|
return (_ctx, _cache) => {
|
|
5900
5900
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicDatePicker), {
|
|
5901
|
-
modelValue:
|
|
5902
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
5901
|
+
modelValue: __props.model[__props.name],
|
|
5902
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
5903
5903
|
type: "date",
|
|
5904
|
-
size:
|
|
5905
|
-
placeholder:
|
|
5906
|
-
disabled:
|
|
5907
|
-
format:
|
|
5908
|
-
"value-format":
|
|
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",
|
|
5909
5909
|
onChange: changeHandler
|
|
5910
5910
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format"]);
|
|
5911
5911
|
};
|
|
@@ -5999,13 +5999,13 @@
|
|
|
5999
5999
|
"range-separator": "-",
|
|
6000
6000
|
"start-placeholder": "开始日期",
|
|
6001
6001
|
"end-placeholder": "结束日期",
|
|
6002
|
-
size:
|
|
6002
|
+
size: __props.size,
|
|
6003
6003
|
"unlink-panels": true,
|
|
6004
|
-
disabled:
|
|
6005
|
-
"default-time":
|
|
6006
|
-
"value-format":
|
|
6007
|
-
"date-format":
|
|
6008
|
-
"time-format":
|
|
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",
|
|
6009
6009
|
onChange: changeHandler
|
|
6010
6010
|
}, null, 8, ["modelValue", "size", "disabled", "default-time", "value-format", "date-format", "time-format"]);
|
|
6011
6011
|
};
|
|
@@ -6050,16 +6050,16 @@
|
|
|
6050
6050
|
};
|
|
6051
6051
|
return (_ctx, _cache) => {
|
|
6052
6052
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicDatePicker), {
|
|
6053
|
-
modelValue:
|
|
6054
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
6053
|
+
modelValue: __props.model[__props.name],
|
|
6054
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
6055
6055
|
"popper-class": "magic-datetime-picker-popper",
|
|
6056
6056
|
type: "datetime",
|
|
6057
|
-
size:
|
|
6058
|
-
placeholder:
|
|
6059
|
-
disabled:
|
|
6060
|
-
format:
|
|
6061
|
-
"value-format":
|
|
6062
|
-
"default-time":
|
|
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,
|
|
6063
6063
|
onChange: changeHandler
|
|
6064
6064
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time"]);
|
|
6065
6065
|
};
|
|
@@ -6090,10 +6090,10 @@
|
|
|
6090
6090
|
}
|
|
6091
6091
|
useAddField(props.prop);
|
|
6092
6092
|
return (_ctx, _cache) => {
|
|
6093
|
-
return
|
|
6093
|
+
return __props.model ? (vue.openBlock(), vue.createElementBlock(
|
|
6094
6094
|
"span",
|
|
6095
6095
|
_hoisted_1$8,
|
|
6096
|
-
vue.toDisplayString(
|
|
6096
|
+
vue.toDisplayString(__props.model[__props.name]),
|
|
6097
6097
|
1
|
|
6098
6098
|
/* TEXT */
|
|
6099
6099
|
)) : vue.createCommentVNode("v-if", true);
|
|
@@ -6223,18 +6223,18 @@
|
|
|
6223
6223
|
const props = __props;
|
|
6224
6224
|
useAddField(props.prop);
|
|
6225
6225
|
return (_ctx, _cache) => {
|
|
6226
|
-
return
|
|
6226
|
+
return __props.model ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
6227
6227
|
"input",
|
|
6228
6228
|
{
|
|
6229
6229
|
key: 0,
|
|
6230
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
6230
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
6231
6231
|
type: "hidden"
|
|
6232
6232
|
},
|
|
6233
6233
|
null,
|
|
6234
6234
|
512
|
|
6235
6235
|
/* NEED_PATCH */
|
|
6236
6236
|
)), [
|
|
6237
|
-
[vue.vModelText,
|
|
6237
|
+
[vue.vModelText, __props.model[__props.name]]
|
|
6238
6238
|
]) : vue.createCommentVNode("v-if", true);
|
|
6239
6239
|
};
|
|
6240
6240
|
}
|
|
@@ -6388,27 +6388,27 @@
|
|
|
6388
6388
|
ref_key: "tMagicForm",
|
|
6389
6389
|
ref: tMagicForm,
|
|
6390
6390
|
model: values.value,
|
|
6391
|
-
"label-width":
|
|
6392
|
-
style: vue.normalizeStyle(`height: ${
|
|
6393
|
-
inline:
|
|
6394
|
-
"label-position":
|
|
6391
|
+
"label-width": __props.labelWidth,
|
|
6392
|
+
style: vue.normalizeStyle(`height: ${__props.height}`),
|
|
6393
|
+
inline: __props.inline,
|
|
6394
|
+
"label-position": __props.labelPosition,
|
|
6395
6395
|
onSubmit: submitHandler
|
|
6396
6396
|
}, {
|
|
6397
6397
|
default: vue.withCtx(() => [
|
|
6398
|
-
initialized.value && Array.isArray(
|
|
6398
|
+
initialized.value && Array.isArray(__props.config) ? (vue.openBlock(true), vue.createElementBlock(
|
|
6399
6399
|
vue.Fragment,
|
|
6400
6400
|
{ key: 0 },
|
|
6401
|
-
vue.renderList(
|
|
6401
|
+
vue.renderList(__props.config, (item, index) => {
|
|
6402
6402
|
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
6403
|
-
disabled:
|
|
6404
|
-
key: item[
|
|
6403
|
+
disabled: __props.disabled,
|
|
6404
|
+
key: item[__props.keyProp] ?? index,
|
|
6405
6405
|
config: item,
|
|
6406
6406
|
model: values.value,
|
|
6407
6407
|
"last-values": lastValuesProcessed.value,
|
|
6408
|
-
"is-compare":
|
|
6409
|
-
"label-width": item.labelWidth ||
|
|
6410
|
-
"step-active":
|
|
6411
|
-
size:
|
|
6408
|
+
"is-compare": __props.isCompare,
|
|
6409
|
+
"label-width": item.labelWidth || __props.labelWidth,
|
|
6410
|
+
"step-active": __props.stepActive,
|
|
6411
|
+
size: __props.size,
|
|
6412
6412
|
onChange: changeHandler
|
|
6413
6413
|
}, null, 8, ["disabled", "config", "model", "last-values", "is-compare", "label-width", "step-active", "size"]);
|
|
6414
6414
|
}),
|
|
@@ -6518,10 +6518,10 @@
|
|
|
6518
6518
|
class: "m-form-dialog",
|
|
6519
6519
|
top: "20px",
|
|
6520
6520
|
"append-to-body": "",
|
|
6521
|
-
title:
|
|
6522
|
-
width:
|
|
6523
|
-
zIndex:
|
|
6524
|
-
fullscreen:
|
|
6521
|
+
title: __props.title,
|
|
6522
|
+
width: __props.width,
|
|
6523
|
+
zIndex: __props.zIndex,
|
|
6524
|
+
fullscreen: __props.fullscreen,
|
|
6525
6525
|
"close-on-click-modal": false,
|
|
6526
6526
|
onClose: closeHandler
|
|
6527
6527
|
}, {
|
|
@@ -6592,13 +6592,13 @@
|
|
|
6592
6592
|
key: 2,
|
|
6593
6593
|
type: "primary",
|
|
6594
6594
|
size: "small",
|
|
6595
|
-
disabled:
|
|
6595
|
+
disabled: __props.disabled,
|
|
6596
6596
|
loading: saveFetch.value,
|
|
6597
6597
|
onClick: save
|
|
6598
6598
|
}, {
|
|
6599
6599
|
default: vue.withCtx(() => [
|
|
6600
6600
|
vue.createTextVNode(
|
|
6601
|
-
vue.toDisplayString(
|
|
6601
|
+
vue.toDisplayString(__props.confirmText),
|
|
6602
6602
|
1
|
|
6603
6603
|
/* TEXT */
|
|
6604
6604
|
)
|
|
@@ -6630,15 +6630,15 @@
|
|
|
6630
6630
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => stepActive.value = $event),
|
|
6631
6631
|
ref_key: "form",
|
|
6632
6632
|
ref: form,
|
|
6633
|
-
size:
|
|
6634
|
-
disabled:
|
|
6635
|
-
config:
|
|
6636
|
-
"init-values":
|
|
6637
|
-
"parent-values":
|
|
6638
|
-
"label-width":
|
|
6639
|
-
"label-position":
|
|
6640
|
-
inline:
|
|
6641
|
-
"prevent-submit-default":
|
|
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,
|
|
6642
6642
|
onChange: changeHandler
|
|
6643
6643
|
}, null, 8, ["modelValue", "size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
|
|
6644
6644
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -6723,16 +6723,16 @@
|
|
|
6723
6723
|
editor.value && (editor.value.dialogVisible = false);
|
|
6724
6724
|
};
|
|
6725
6725
|
return (_ctx, _cache) => {
|
|
6726
|
-
return
|
|
6726
|
+
return __props.config.href && !__props.disabled ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
6727
6727
|
key: 0,
|
|
6728
6728
|
target: "_blank",
|
|
6729
6729
|
href: href.value,
|
|
6730
|
-
style: vue.normalizeStyle(
|
|
6731
|
-
}, vue.toDisplayString(displayText.value), 13, _hoisted_1$5)) :
|
|
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(
|
|
6732
6732
|
"span",
|
|
6733
6733
|
{
|
|
6734
6734
|
key: 1,
|
|
6735
|
-
style: vue.normalizeStyle(
|
|
6735
|
+
style: vue.normalizeStyle(__props.config.disabledCss || {})
|
|
6736
6736
|
},
|
|
6737
6737
|
vue.toDisplayString(displayText.value),
|
|
6738
6738
|
5
|
|
@@ -6756,12 +6756,12 @@
|
|
|
6756
6756
|
vue.createVNode(_sfc_main$c, {
|
|
6757
6757
|
ref_key: "editor",
|
|
6758
6758
|
ref: editor,
|
|
6759
|
-
title:
|
|
6760
|
-
width:
|
|
6759
|
+
title: __props.config.formTitle || "编辑扩展配置",
|
|
6760
|
+
width: __props.config.formWidth,
|
|
6761
6761
|
values: formValue.value,
|
|
6762
6762
|
config: formConfig.value,
|
|
6763
|
-
parentValues:
|
|
6764
|
-
fullscreen:
|
|
6763
|
+
parentValues: __props.values,
|
|
6764
|
+
fullscreen: __props.config.fullscreen,
|
|
6765
6765
|
onSubmit: action
|
|
6766
6766
|
}, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen"])
|
|
6767
6767
|
]));
|
|
@@ -6799,18 +6799,18 @@
|
|
|
6799
6799
|
mForm?.$emit("field-input", props.prop, v);
|
|
6800
6800
|
};
|
|
6801
6801
|
return (_ctx, _cache) => {
|
|
6802
|
-
return
|
|
6802
|
+
return __props.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInputNumber), {
|
|
6803
6803
|
key: 0,
|
|
6804
|
-
modelValue:
|
|
6805
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
6804
|
+
modelValue: __props.model[__props.name],
|
|
6805
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
6806
6806
|
clearable: "",
|
|
6807
6807
|
"controls-position": "right",
|
|
6808
|
-
size:
|
|
6809
|
-
max:
|
|
6810
|
-
min:
|
|
6811
|
-
step:
|
|
6812
|
-
placeholder:
|
|
6813
|
-
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,
|
|
6814
6814
|
onChange: changeHandler,
|
|
6815
6815
|
onInput: inputHandler
|
|
6816
6816
|
}, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled"])) : vue.createCommentVNode("v-if", true);
|
|
@@ -6852,11 +6852,11 @@
|
|
|
6852
6852
|
return (_ctx, _cache) => {
|
|
6853
6853
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
6854
6854
|
vue.createVNode(vue.unref(design.TMagicInput), {
|
|
6855
|
-
modelValue:
|
|
6856
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
6855
|
+
modelValue: __props.model[__props.name][0],
|
|
6856
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name][0] = $event),
|
|
6857
6857
|
clearable: "",
|
|
6858
|
-
size:
|
|
6859
|
-
disabled:
|
|
6858
|
+
size: __props.size,
|
|
6859
|
+
disabled: __props.disabled,
|
|
6860
6860
|
onChange: minChangeHandler
|
|
6861
6861
|
}, null, 8, ["modelValue", "size", "disabled"]),
|
|
6862
6862
|
_cache[2] || (_cache[2] = vue.createElementVNode(
|
|
@@ -6867,11 +6867,11 @@
|
|
|
6867
6867
|
/* CACHED */
|
|
6868
6868
|
)),
|
|
6869
6869
|
vue.createVNode(vue.unref(design.TMagicInput), {
|
|
6870
|
-
modelValue:
|
|
6871
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
6870
|
+
modelValue: __props.model[__props.name][1],
|
|
6871
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.model[__props.name][1] = $event),
|
|
6872
6872
|
clearable: "",
|
|
6873
|
-
size:
|
|
6874
|
-
disabled:
|
|
6873
|
+
size: __props.size,
|
|
6874
|
+
disabled: __props.disabled,
|
|
6875
6875
|
onChange: maxChangeHandler
|
|
6876
6876
|
}, null, 8, ["modelValue", "size", "disabled"])
|
|
6877
6877
|
]);
|
|
@@ -6909,19 +6909,28 @@
|
|
|
6909
6909
|
changeHandler(props.model[props.name]);
|
|
6910
6910
|
};
|
|
6911
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
|
+
});
|
|
6912
6921
|
return (_ctx, _cache) => {
|
|
6913
|
-
return
|
|
6922
|
+
return __props.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicRadioGroup), {
|
|
6914
6923
|
key: 0,
|
|
6915
|
-
modelValue:
|
|
6916
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
6917
|
-
size:
|
|
6918
|
-
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
|
|
6919
6928
|
}, {
|
|
6920
6929
|
default: vue.withCtx(() => [
|
|
6921
6930
|
(vue.openBlock(true), vue.createElementBlock(
|
|
6922
6931
|
vue.Fragment,
|
|
6923
6932
|
null,
|
|
6924
|
-
vue.renderList(
|
|
6933
|
+
vue.renderList(__props.config.options, (option) => {
|
|
6925
6934
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(itemComponent.value), {
|
|
6926
6935
|
value: option.value,
|
|
6927
6936
|
key: `${option.value}`,
|
|
@@ -6935,22 +6944,16 @@
|
|
|
6935
6944
|
}, {
|
|
6936
6945
|
default: vue.withCtx(() => [
|
|
6937
6946
|
vue.createElementVNode("div", null, [
|
|
6938
|
-
option.icon ? (vue.openBlock(), vue.createBlock(
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
_: 2
|
|
6949
|
-
/* DYNAMIC */
|
|
6950
|
-
},
|
|
6951
|
-
1024
|
|
6952
|
-
/* DYNAMIC_SLOTS */
|
|
6953
|
-
)) : 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),
|
|
6954
6957
|
vue.createElementVNode(
|
|
6955
6958
|
"span",
|
|
6956
6959
|
null,
|
|
@@ -6963,22 +6966,16 @@
|
|
|
6963
6966
|
_: 2
|
|
6964
6967
|
/* DYNAMIC */
|
|
6965
6968
|
}, 1032, ["content"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
|
|
6966
|
-
option.icon ? (vue.openBlock(), vue.createBlock(
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
_: 2
|
|
6977
|
-
/* DYNAMIC */
|
|
6978
|
-
},
|
|
6979
|
-
1024
|
|
6980
|
-
/* DYNAMIC_SLOTS */
|
|
6981
|
-
)) : 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),
|
|
6982
6979
|
vue.createElementVNode(
|
|
6983
6980
|
"span",
|
|
6984
6981
|
null,
|
|
@@ -7329,29 +7326,29 @@
|
|
|
7329
7326
|
});
|
|
7330
7327
|
return (_ctx, _cache) => {
|
|
7331
7328
|
const _directive_loading = vue.resolveDirective("loading");
|
|
7332
|
-
return
|
|
7329
|
+
return __props.model ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicSelect), {
|
|
7333
7330
|
key: 0,
|
|
7334
|
-
modelValue:
|
|
7335
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
7331
|
+
modelValue: __props.model[__props.name],
|
|
7332
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
7336
7333
|
class: "m-select",
|
|
7337
7334
|
ref_key: "tMagicSelect",
|
|
7338
7335
|
ref: tMagicSelect,
|
|
7339
|
-
clearable: typeof
|
|
7340
|
-
filterable: typeof
|
|
7336
|
+
clearable: typeof __props.config.clearable !== "undefined" ? __props.config.clearable : true,
|
|
7337
|
+
filterable: typeof __props.config.filterable !== "undefined" ? __props.config.filterable : true,
|
|
7341
7338
|
"popper-class": `m-select-popper ${vue.unref(popperClass)}`,
|
|
7342
|
-
size:
|
|
7339
|
+
size: __props.size,
|
|
7343
7340
|
remote: remote.value,
|
|
7344
|
-
placeholder:
|
|
7345
|
-
multiple:
|
|
7346
|
-
"value-key":
|
|
7347
|
-
"allow-create":
|
|
7348
|
-
disabled:
|
|
7349
|
-
"remote-method":
|
|
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,
|
|
7350
7347
|
onChange: changeHandler,
|
|
7351
7348
|
onVisibleChange: visibleHandler
|
|
7352
7349
|
}, {
|
|
7353
7350
|
default: vue.withCtx(() => [
|
|
7354
|
-
|
|
7351
|
+
__props.config.group ? (vue.openBlock(true), vue.createElementBlock(
|
|
7355
7352
|
vue.Fragment,
|
|
7356
7353
|
{ key: 0 },
|
|
7357
7354
|
vue.renderList(options.value, (group, index) => {
|
|
@@ -7416,7 +7413,7 @@
|
|
|
7416
7413
|
vue.mergeProps(
|
|
7417
7414
|
{
|
|
7418
7415
|
class: "tmagic-design-option",
|
|
7419
|
-
key:
|
|
7416
|
+
key: __props.config.valueKey ? option.value[__props.config.valueKey] : option.value
|
|
7420
7417
|
},
|
|
7421
7418
|
{ ref_for: true },
|
|
7422
7419
|
vue.unref(optionComponent)?.props({
|
|
@@ -7502,19 +7499,19 @@
|
|
|
7502
7499
|
});
|
|
7503
7500
|
return (_ctx, _cache) => {
|
|
7504
7501
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicSwitch), {
|
|
7505
|
-
modelValue:
|
|
7506
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
7507
|
-
size:
|
|
7502
|
+
modelValue: __props.model[__props.name],
|
|
7503
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
7504
|
+
size: __props.size,
|
|
7508
7505
|
activeValue: activeValue.value,
|
|
7509
7506
|
inactiveValue: inactiveValue.value,
|
|
7510
|
-
disabled:
|
|
7507
|
+
disabled: __props.disabled,
|
|
7511
7508
|
onChange: changeHandler
|
|
7512
7509
|
}, null, 8, ["modelValue", "size", "activeValue", "inactiveValue", "disabled"]);
|
|
7513
7510
|
};
|
|
7514
7511
|
}
|
|
7515
7512
|
});
|
|
7516
7513
|
|
|
7517
|
-
const _hoisted_1$1 = {
|
|
7514
|
+
const _hoisted_1$1 = { class: "m-fields-text" };
|
|
7518
7515
|
const _hoisted_2 = { style: { "display": "flex", "justify-content": "flex-end" } };
|
|
7519
7516
|
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
7520
7517
|
...{
|
|
@@ -7657,14 +7654,14 @@
|
|
|
7657
7654
|
return (_ctx, _cache) => {
|
|
7658
7655
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
7659
7656
|
vue.createVNode(vue.unref(design.TMagicInput), {
|
|
7660
|
-
modelValue:
|
|
7661
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
7657
|
+
modelValue: __props.model[__props.name],
|
|
7658
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
7662
7659
|
ref_key: "input",
|
|
7663
7660
|
ref: input,
|
|
7664
7661
|
clearable: "",
|
|
7665
|
-
size:
|
|
7666
|
-
placeholder:
|
|
7667
|
-
disabled:
|
|
7662
|
+
size: __props.size,
|
|
7663
|
+
placeholder: __props.config.placeholder,
|
|
7664
|
+
disabled: __props.disabled,
|
|
7668
7665
|
onChange: changeHandler,
|
|
7669
7666
|
onInput: inputHandler,
|
|
7670
7667
|
onKeyup: _cache[1] || (_cache[1] = ($event) => keyUpHandler($event))
|
|
@@ -7678,7 +7675,7 @@
|
|
|
7678
7675
|
appendConfig.value.type === "button" ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
7679
7676
|
key: 0,
|
|
7680
7677
|
style: { "color": "#409eff" },
|
|
7681
|
-
size:
|
|
7678
|
+
size: __props.size,
|
|
7682
7679
|
onClick: vue.withModifiers(buttonClickHandler, ["prevent"])
|
|
7683
7680
|
}, {
|
|
7684
7681
|
default: vue.withCtx(() => [
|
|
@@ -7795,13 +7792,13 @@
|
|
|
7795
7792
|
};
|
|
7796
7793
|
return (_ctx, _cache) => {
|
|
7797
7794
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInput), {
|
|
7798
|
-
modelValue:
|
|
7799
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
7795
|
+
modelValue: __props.model[__props.name],
|
|
7796
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
7800
7797
|
type: "textarea",
|
|
7801
|
-
size:
|
|
7798
|
+
size: __props.size,
|
|
7802
7799
|
clearable: "",
|
|
7803
|
-
placeholder:
|
|
7804
|
-
disabled:
|
|
7800
|
+
placeholder: __props.config.placeholder,
|
|
7801
|
+
disabled: __props.disabled,
|
|
7805
7802
|
onChange: changeHandler,
|
|
7806
7803
|
onInput: inputHandler
|
|
7807
7804
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled"]);
|
|
@@ -7835,13 +7832,13 @@
|
|
|
7835
7832
|
};
|
|
7836
7833
|
return (_ctx, _cache) => {
|
|
7837
7834
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTimePicker), {
|
|
7838
|
-
modelValue:
|
|
7839
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
7840
|
-
"value-format":
|
|
7841
|
-
format:
|
|
7842
|
-
size:
|
|
7843
|
-
placeholder:
|
|
7844
|
-
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,
|
|
7845
7842
|
onChange: changeHandler
|
|
7846
7843
|
}, null, 8, ["modelValue", "value-format", "format", "size", "placeholder", "disabled"]);
|
|
7847
7844
|
};
|
|
@@ -7914,10 +7911,10 @@
|
|
|
7914
7911
|
"range-separator": "-",
|
|
7915
7912
|
"start-placeholder": "开始时间",
|
|
7916
7913
|
"end-placeholder": "结束时间",
|
|
7917
|
-
size:
|
|
7914
|
+
size: __props.size,
|
|
7918
7915
|
"unlink-panels": true,
|
|
7919
|
-
disabled:
|
|
7920
|
-
"default-time":
|
|
7916
|
+
disabled: __props.disabled,
|
|
7917
|
+
"default-time": __props.config.defaultTime,
|
|
7921
7918
|
onChange: changeHandler
|
|
7922
7919
|
}, null, 8, ["modelValue", "size", "disabled", "default-time"]);
|
|
7923
7920
|
};
|
|
@@ -8008,14 +8005,14 @@
|
|
|
8008
8005
|
ref: drawer,
|
|
8009
8006
|
modelValue: visible.value,
|
|
8010
8007
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
8011
|
-
title:
|
|
8012
|
-
"close-on-press-escape":
|
|
8008
|
+
title: __props.title,
|
|
8009
|
+
"close-on-press-escape": __props.closeOnPressEscape,
|
|
8013
8010
|
"append-to-body": true,
|
|
8014
8011
|
"show-close": true,
|
|
8015
8012
|
"close-on-click-modal": true,
|
|
8016
|
-
size:
|
|
8017
|
-
zIndex:
|
|
8018
|
-
"before-close":
|
|
8013
|
+
size: __props.width,
|
|
8014
|
+
zIndex: __props.zIndex,
|
|
8015
|
+
"before-close": __props.beforeClose,
|
|
8019
8016
|
onOpen: openHandler,
|
|
8020
8017
|
onOpened: openedHandler,
|
|
8021
8018
|
onClose: closeHandler,
|
|
@@ -8052,13 +8049,13 @@
|
|
|
8052
8049
|
}),
|
|
8053
8050
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
8054
8051
|
type: "primary",
|
|
8055
|
-
disabled:
|
|
8052
|
+
disabled: __props.disabled,
|
|
8056
8053
|
loading: saveFetch.value,
|
|
8057
8054
|
onClick: submitHandler
|
|
8058
8055
|
}, {
|
|
8059
8056
|
default: vue.withCtx(() => [
|
|
8060
8057
|
vue.createTextVNode(
|
|
8061
|
-
vue.toDisplayString(
|
|
8058
|
+
vue.toDisplayString(__props.confirmText),
|
|
8062
8059
|
1
|
|
8063
8060
|
/* TEXT */
|
|
8064
8061
|
)
|
|
@@ -8089,15 +8086,15 @@
|
|
|
8089
8086
|
vue.createVNode(_sfc_main$d, {
|
|
8090
8087
|
ref_key: "form",
|
|
8091
8088
|
ref: form,
|
|
8092
|
-
size:
|
|
8093
|
-
disabled:
|
|
8094
|
-
config:
|
|
8095
|
-
"init-values":
|
|
8096
|
-
"parent-values":
|
|
8097
|
-
"label-width":
|
|
8098
|
-
"label-position":
|
|
8099
|
-
inline:
|
|
8100
|
-
"prevent-submit-default":
|
|
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,
|
|
8101
8098
|
onChange: changeHandler
|
|
8102
8099
|
}, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
|
|
8103
8100
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -8197,15 +8194,15 @@
|
|
|
8197
8194
|
vue.createVNode(_sfc_main$d, {
|
|
8198
8195
|
ref_key: "form",
|
|
8199
8196
|
ref: form,
|
|
8200
|
-
size:
|
|
8201
|
-
disabled:
|
|
8202
|
-
config:
|
|
8203
|
-
"init-values":
|
|
8204
|
-
"parent-values":
|
|
8205
|
-
"label-width":
|
|
8206
|
-
"label-position":
|
|
8207
|
-
inline:
|
|
8208
|
-
"prevent-submit-default":
|
|
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,
|
|
8209
8206
|
onChange: changeHandler
|
|
8210
8207
|
}, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
|
|
8211
8208
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -8231,14 +8228,14 @@
|
|
|
8231
8228
|
vue.renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
8232
8229
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
8233
8230
|
type: "primary",
|
|
8234
|
-
size:
|
|
8235
|
-
disabled:
|
|
8231
|
+
size: __props.size,
|
|
8232
|
+
disabled: __props.disabled,
|
|
8236
8233
|
loading: saveFetch.value,
|
|
8237
8234
|
onClick: submitHandler
|
|
8238
8235
|
}, {
|
|
8239
8236
|
default: vue.withCtx(() => [
|
|
8240
8237
|
vue.createTextVNode(
|
|
8241
|
-
vue.toDisplayString(
|
|
8238
|
+
vue.toDisplayString(__props.confirmText),
|
|
8242
8239
|
1
|
|
8243
8240
|
/* TEXT */
|
|
8244
8241
|
)
|