@tmagic/form 1.5.22 → 1.5.24
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/tmagic-form.js +1490 -1042
- package/dist/tmagic-form.umd.cjs +1490 -1042
- package/package.json +6 -6
- package/types/index.d.ts +58 -1307
package/dist/tmagic-form.umd.cjs
CHANGED
|
@@ -3341,238 +3341,277 @@
|
|
|
3341
3341
|
"label-width": itemLabelWidth.value,
|
|
3342
3342
|
onChange: onChangeHandler,
|
|
3343
3343
|
onAddDiffCount
|
|
3344
|
-
}, null, 40, ["size", "model", "last-values", "is-compare", "config", "disabled", "name", "prop", "step-active", "expand-more", "label-width"])) : type.value && display$1.value && !showDiff.value ? (vue.openBlock(), vue.createElementBlock(
|
|
3345
|
-
vue.
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
"
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
default: vue.withCtx(() => [
|
|
3439
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
3440
|
-
key: key(_ctx.config),
|
|
3441
|
-
size: _ctx.size,
|
|
3442
|
-
model: _ctx.lastValues,
|
|
3443
|
-
config: _ctx.config,
|
|
3444
|
-
name: name.value,
|
|
3445
|
-
disabled: disabled.value,
|
|
3446
|
-
prop: itemProp.value,
|
|
3447
|
-
onChange: onChangeHandler
|
|
3448
|
-
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"]))
|
|
3449
|
-
]),
|
|
3450
|
-
_: 1
|
|
3451
|
-
})) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
3452
|
-
key: key(_ctx.config),
|
|
3453
|
-
size: _ctx.size,
|
|
3454
|
-
model: _ctx.lastValues,
|
|
3455
|
-
config: _ctx.config,
|
|
3456
|
-
name: name.value,
|
|
3457
|
-
disabled: disabled.value,
|
|
3458
|
-
prop: itemProp.value,
|
|
3459
|
-
onChange: onChangeHandler
|
|
3460
|
-
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"])),
|
|
3461
|
-
extra.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3462
|
-
key: 2,
|
|
3463
|
-
innerHTML: extra.value,
|
|
3464
|
-
class: "m-form-tip"
|
|
3465
|
-
}, null, 8, _hoisted_8$1)) : vue.createCommentVNode("", true)
|
|
3466
|
-
]),
|
|
3467
|
-
_: 1
|
|
3468
|
-
}, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
|
|
3469
|
-
_ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
3470
|
-
key: 0,
|
|
3471
|
-
placement: "left"
|
|
3472
|
-
}, {
|
|
3473
|
-
content: vue.withCtx(() => [
|
|
3474
|
-
vue.createElementVNode("div", {
|
|
3475
|
-
innerHTML: _ctx.config.tip
|
|
3476
|
-
}, null, 8, _hoisted_9)
|
|
3477
|
-
]),
|
|
3478
|
-
default: vue.withCtx(() => [
|
|
3479
|
-
vue.createVNode(vue.unref(design.TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
|
|
3480
|
-
default: vue.withCtx(() => [
|
|
3481
|
-
vue.createVNode(vue.unref(iconsVue.WarningFilled))
|
|
3482
|
-
]),
|
|
3483
|
-
_: 1
|
|
3484
|
-
})
|
|
3485
|
-
]),
|
|
3486
|
-
_: 1
|
|
3487
|
-
})) : vue.createCommentVNode("", true),
|
|
3488
|
-
vue.createVNode(vue.unref(design.TMagicFormItem), {
|
|
3489
|
-
style: vue.normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#def7da" }]),
|
|
3490
|
-
class: vue.normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
|
|
3491
|
-
prop: itemProp.value,
|
|
3492
|
-
"label-width": itemLabelWidth.value,
|
|
3493
|
-
"label-position": _ctx.config.labelPosition,
|
|
3494
|
-
rules: rule.value
|
|
3495
|
-
}, {
|
|
3496
|
-
label: vue.withCtx(() => [
|
|
3497
|
-
vue.createElementVNode("span", {
|
|
3498
|
-
innerHTML: type.value === "checkbox" ? "" : text.value,
|
|
3499
|
-
title: _ctx.config.labelTitle
|
|
3500
|
-
}, null, 8, _hoisted_10)
|
|
3501
|
-
]),
|
|
3502
|
-
default: vue.withCtx(() => [
|
|
3503
|
-
tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
|
|
3504
|
-
content: vue.withCtx(() => [
|
|
3505
|
-
vue.createElementVNode("div", { innerHTML: tooltip.value }, null, 8, _hoisted_11)
|
|
3506
|
-
]),
|
|
3507
|
-
default: vue.withCtx(() => [
|
|
3508
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
3509
|
-
key: key(_ctx.config),
|
|
3510
|
-
size: _ctx.size,
|
|
3511
|
-
model: _ctx.model,
|
|
3512
|
-
config: _ctx.config,
|
|
3513
|
-
name: name.value,
|
|
3514
|
-
disabled: disabled.value,
|
|
3515
|
-
prop: itemProp.value,
|
|
3516
|
-
onChange: onChangeHandler
|
|
3517
|
-
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"]))
|
|
3518
|
-
]),
|
|
3519
|
-
_: 1
|
|
3520
|
-
})) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
3521
|
-
key: key(_ctx.config),
|
|
3522
|
-
size: _ctx.size,
|
|
3523
|
-
model: _ctx.model,
|
|
3524
|
-
config: _ctx.config,
|
|
3525
|
-
name: name.value,
|
|
3526
|
-
disabled: disabled.value,
|
|
3527
|
-
prop: itemProp.value,
|
|
3528
|
-
onChange: onChangeHandler
|
|
3529
|
-
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"])),
|
|
3530
|
-
extra.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3531
|
-
key: 2,
|
|
3532
|
-
innerHTML: extra.value,
|
|
3533
|
-
class: "m-form-tip"
|
|
3534
|
-
}, null, 8, _hoisted_12)) : vue.createCommentVNode("", true)
|
|
3535
|
-
]),
|
|
3536
|
-
_: 1
|
|
3537
|
-
}, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
|
|
3538
|
-
_ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
3539
|
-
key: 1,
|
|
3540
|
-
placement: "left"
|
|
3541
|
-
}, {
|
|
3542
|
-
content: vue.withCtx(() => [
|
|
3543
|
-
vue.createElementVNode("div", {
|
|
3544
|
-
innerHTML: _ctx.config.tip
|
|
3545
|
-
}, null, 8, _hoisted_13)
|
|
3546
|
-
]),
|
|
3547
|
-
default: vue.withCtx(() => [
|
|
3548
|
-
vue.createVNode(vue.unref(design.TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
|
|
3549
|
-
default: vue.withCtx(() => [
|
|
3550
|
-
vue.createVNode(vue.unref(iconsVue.WarningFilled))
|
|
3551
|
-
]),
|
|
3552
|
-
_: 1
|
|
3553
|
-
})
|
|
3554
|
-
]),
|
|
3555
|
-
_: 1
|
|
3556
|
-
})) : vue.createCommentVNode("", true)
|
|
3557
|
-
], 64)) : items.value && display$1.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
|
|
3558
|
-
(isValidName() ? _ctx.model[name.value] : _ctx.model) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(items.value, (item) => {
|
|
3559
|
-
return vue.openBlock(), vue.createBlock(_component_Container, {
|
|
3560
|
-
key: key(item),
|
|
3561
|
-
model: isValidName() ? _ctx.model[name.value] : _ctx.model,
|
|
3562
|
-
"last-values": isValidName() ? _ctx.lastValues[name.value] || {} : _ctx.lastValues,
|
|
3563
|
-
"is-compare": _ctx.isCompare,
|
|
3564
|
-
config: item,
|
|
3565
|
-
size: _ctx.size,
|
|
3566
|
-
disabled: disabled.value,
|
|
3567
|
-
"step-active": _ctx.stepActive,
|
|
3568
|
-
"expand-more": expand.value,
|
|
3344
|
+
}, null, 40, ["size", "model", "last-values", "is-compare", "config", "disabled", "name", "prop", "step-active", "expand-more", "label-width"])) : type.value && display$1.value && !showDiff.value ? (vue.openBlock(), vue.createElementBlock(
|
|
3345
|
+
vue.Fragment,
|
|
3346
|
+
{ key: 2 },
|
|
3347
|
+
[
|
|
3348
|
+
vue.createVNode(vue.unref(design.TMagicFormItem), {
|
|
3349
|
+
style: vue.normalizeStyle(_ctx.config.tip ? "flex: 1" : ""),
|
|
3350
|
+
class: vue.normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
|
|
3351
|
+
prop: itemProp.value,
|
|
3352
|
+
"label-width": itemLabelWidth.value,
|
|
3353
|
+
"label-position": _ctx.config.labelPosition,
|
|
3354
|
+
rules: rule.value
|
|
3355
|
+
}, {
|
|
3356
|
+
label: vue.withCtx(() => [
|
|
3357
|
+
vue.createElementVNode("span", {
|
|
3358
|
+
innerHTML: type.value === "checkbox" ? "" : text.value,
|
|
3359
|
+
title: _ctx.config.labelTitle
|
|
3360
|
+
}, null, 8, _hoisted_2$7)
|
|
3361
|
+
]),
|
|
3362
|
+
default: vue.withCtx(() => [
|
|
3363
|
+
tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
|
|
3364
|
+
content: vue.withCtx(() => [
|
|
3365
|
+
vue.createElementVNode("div", { innerHTML: tooltip.value }, null, 8, _hoisted_3$5)
|
|
3366
|
+
]),
|
|
3367
|
+
default: vue.withCtx(() => [
|
|
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,
|
|
3374
|
+
name: name.value,
|
|
3375
|
+
disabled: disabled.value,
|
|
3376
|
+
prop: itemProp.value,
|
|
3377
|
+
onChange: onChangeHandler,
|
|
3378
|
+
onAddDiffCount
|
|
3379
|
+
}, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"]))
|
|
3380
|
+
]),
|
|
3381
|
+
_: 1
|
|
3382
|
+
/* STABLE */
|
|
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,
|
|
3389
|
+
name: name.value,
|
|
3390
|
+
disabled: disabled.value,
|
|
3391
|
+
prop: itemProp.value,
|
|
3392
|
+
onChange: onChangeHandler,
|
|
3393
|
+
onAddDiffCount
|
|
3394
|
+
}, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"])),
|
|
3395
|
+
extra.value && type.value !== "table" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3396
|
+
key: 2,
|
|
3397
|
+
innerHTML: extra.value,
|
|
3398
|
+
class: "m-form-tip"
|
|
3399
|
+
}, null, 8, _hoisted_4$3)) : vue.createCommentVNode("v-if", true)
|
|
3400
|
+
]),
|
|
3401
|
+
_: 1
|
|
3402
|
+
/* STABLE */
|
|
3403
|
+
}, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
|
|
3404
|
+
_ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
3405
|
+
key: 0,
|
|
3406
|
+
placement: "left"
|
|
3407
|
+
}, {
|
|
3408
|
+
content: vue.withCtx(() => [
|
|
3409
|
+
vue.createElementVNode("div", {
|
|
3410
|
+
innerHTML: _ctx.config.tip
|
|
3411
|
+
}, null, 8, _hoisted_5$3)
|
|
3412
|
+
]),
|
|
3413
|
+
default: vue.withCtx(() => [
|
|
3414
|
+
vue.createVNode(vue.unref(design.TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
|
|
3415
|
+
default: vue.withCtx(() => [
|
|
3416
|
+
vue.createVNode(vue.unref(iconsVue.WarningFilled))
|
|
3417
|
+
]),
|
|
3418
|
+
_: 1
|
|
3419
|
+
/* STABLE */
|
|
3420
|
+
})
|
|
3421
|
+
]),
|
|
3422
|
+
_: 1
|
|
3423
|
+
/* STABLE */
|
|
3424
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
3425
|
+
],
|
|
3426
|
+
64
|
|
3427
|
+
/* STABLE_FRAGMENT */
|
|
3428
|
+
)) : type.value && display$1.value && showDiff.value ? (vue.openBlock(), vue.createElementBlock(
|
|
3429
|
+
vue.Fragment,
|
|
3430
|
+
{ key: 3 },
|
|
3431
|
+
[
|
|
3432
|
+
vue.createCommentVNode(" 对比 "),
|
|
3433
|
+
vue.createCommentVNode(" 上次内容 "),
|
|
3434
|
+
vue.createVNode(vue.unref(design.TMagicFormItem), {
|
|
3435
|
+
style: vue.normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#f7dadd" }]),
|
|
3436
|
+
class: vue.normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
|
|
3437
|
+
prop: itemProp.value,
|
|
3569
3438
|
"label-width": itemLabelWidth.value,
|
|
3439
|
+
"label-position": _ctx.config.labelPosition,
|
|
3440
|
+
rules: rule.value
|
|
3441
|
+
}, {
|
|
3442
|
+
label: vue.withCtx(() => [
|
|
3443
|
+
vue.createElementVNode("span", {
|
|
3444
|
+
innerHTML: type.value === "checkbox" ? "" : text.value,
|
|
3445
|
+
title: _ctx.config.labelTitle
|
|
3446
|
+
}, null, 8, _hoisted_6$2)
|
|
3447
|
+
]),
|
|
3448
|
+
default: vue.withCtx(() => [
|
|
3449
|
+
tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
|
|
3450
|
+
content: vue.withCtx(() => [
|
|
3451
|
+
vue.createElementVNode("div", { innerHTML: tooltip.value }, null, 8, _hoisted_7$1)
|
|
3452
|
+
]),
|
|
3453
|
+
default: vue.withCtx(() => [
|
|
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,
|
|
3459
|
+
name: name.value,
|
|
3460
|
+
disabled: disabled.value,
|
|
3461
|
+
prop: itemProp.value,
|
|
3462
|
+
onChange: onChangeHandler
|
|
3463
|
+
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"]))
|
|
3464
|
+
]),
|
|
3465
|
+
_: 1
|
|
3466
|
+
/* STABLE */
|
|
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,
|
|
3472
|
+
name: name.value,
|
|
3473
|
+
disabled: disabled.value,
|
|
3474
|
+
prop: itemProp.value,
|
|
3475
|
+
onChange: onChangeHandler
|
|
3476
|
+
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"])),
|
|
3477
|
+
extra.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3478
|
+
key: 2,
|
|
3479
|
+
innerHTML: extra.value,
|
|
3480
|
+
class: "m-form-tip"
|
|
3481
|
+
}, null, 8, _hoisted_8$1)) : vue.createCommentVNode("v-if", true)
|
|
3482
|
+
]),
|
|
3483
|
+
_: 1
|
|
3484
|
+
/* STABLE */
|
|
3485
|
+
}, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
|
|
3486
|
+
_ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
3487
|
+
key: 0,
|
|
3488
|
+
placement: "left"
|
|
3489
|
+
}, {
|
|
3490
|
+
content: vue.withCtx(() => [
|
|
3491
|
+
vue.createElementVNode("div", {
|
|
3492
|
+
innerHTML: _ctx.config.tip
|
|
3493
|
+
}, null, 8, _hoisted_9)
|
|
3494
|
+
]),
|
|
3495
|
+
default: vue.withCtx(() => [
|
|
3496
|
+
vue.createVNode(vue.unref(design.TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
|
|
3497
|
+
default: vue.withCtx(() => [
|
|
3498
|
+
vue.createVNode(vue.unref(iconsVue.WarningFilled))
|
|
3499
|
+
]),
|
|
3500
|
+
_: 1
|
|
3501
|
+
/* STABLE */
|
|
3502
|
+
})
|
|
3503
|
+
]),
|
|
3504
|
+
_: 1
|
|
3505
|
+
/* STABLE */
|
|
3506
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
3507
|
+
vue.createCommentVNode(" 当前内容 "),
|
|
3508
|
+
vue.createVNode(vue.unref(design.TMagicFormItem), {
|
|
3509
|
+
style: vue.normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#def7da" }]),
|
|
3510
|
+
class: vue.normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
|
|
3570
3511
|
prop: itemProp.value,
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3512
|
+
"label-width": itemLabelWidth.value,
|
|
3513
|
+
"label-position": _ctx.config.labelPosition,
|
|
3514
|
+
rules: rule.value
|
|
3515
|
+
}, {
|
|
3516
|
+
label: vue.withCtx(() => [
|
|
3517
|
+
vue.createElementVNode("span", {
|
|
3518
|
+
innerHTML: type.value === "checkbox" ? "" : text.value,
|
|
3519
|
+
title: _ctx.config.labelTitle
|
|
3520
|
+
}, null, 8, _hoisted_10)
|
|
3521
|
+
]),
|
|
3522
|
+
default: vue.withCtx(() => [
|
|
3523
|
+
tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
|
|
3524
|
+
content: vue.withCtx(() => [
|
|
3525
|
+
vue.createElementVNode("div", { innerHTML: tooltip.value }, null, 8, _hoisted_11)
|
|
3526
|
+
]),
|
|
3527
|
+
default: vue.withCtx(() => [
|
|
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,
|
|
3533
|
+
name: name.value,
|
|
3534
|
+
disabled: disabled.value,
|
|
3535
|
+
prop: itemProp.value,
|
|
3536
|
+
onChange: onChangeHandler
|
|
3537
|
+
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"]))
|
|
3538
|
+
]),
|
|
3539
|
+
_: 1
|
|
3540
|
+
/* STABLE */
|
|
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,
|
|
3546
|
+
name: name.value,
|
|
3547
|
+
disabled: disabled.value,
|
|
3548
|
+
prop: itemProp.value,
|
|
3549
|
+
onChange: onChangeHandler
|
|
3550
|
+
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"])),
|
|
3551
|
+
extra.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3552
|
+
key: 2,
|
|
3553
|
+
innerHTML: extra.value,
|
|
3554
|
+
class: "m-form-tip"
|
|
3555
|
+
}, null, 8, _hoisted_12)) : vue.createCommentVNode("v-if", true)
|
|
3556
|
+
]),
|
|
3557
|
+
_: 1
|
|
3558
|
+
/* STABLE */
|
|
3559
|
+
}, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
|
|
3560
|
+
_ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
3561
|
+
key: 1,
|
|
3562
|
+
placement: "left"
|
|
3563
|
+
}, {
|
|
3564
|
+
content: vue.withCtx(() => [
|
|
3565
|
+
vue.createElementVNode("div", {
|
|
3566
|
+
innerHTML: _ctx.config.tip
|
|
3567
|
+
}, null, 8, _hoisted_13)
|
|
3568
|
+
]),
|
|
3569
|
+
default: vue.withCtx(() => [
|
|
3570
|
+
vue.createVNode(vue.unref(design.TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
|
|
3571
|
+
default: vue.withCtx(() => [
|
|
3572
|
+
vue.createVNode(vue.unref(iconsVue.WarningFilled))
|
|
3573
|
+
]),
|
|
3574
|
+
_: 1
|
|
3575
|
+
/* STABLE */
|
|
3576
|
+
})
|
|
3577
|
+
]),
|
|
3578
|
+
_: 1
|
|
3579
|
+
/* STABLE */
|
|
3580
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
3581
|
+
],
|
|
3582
|
+
64
|
|
3583
|
+
/* STABLE_FRAGMENT */
|
|
3584
|
+
)) : items.value && display$1.value ? (vue.openBlock(), vue.createElementBlock(
|
|
3585
|
+
vue.Fragment,
|
|
3586
|
+
{ key: 4 },
|
|
3587
|
+
[
|
|
3588
|
+
(isValidName() ? _ctx.model[name.value] : _ctx.model) ? (vue.openBlock(true), vue.createElementBlock(
|
|
3589
|
+
vue.Fragment,
|
|
3590
|
+
{ key: 0 },
|
|
3591
|
+
vue.renderList(items.value, (item) => {
|
|
3592
|
+
return vue.openBlock(), vue.createBlock(_component_Container, {
|
|
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,
|
|
3597
|
+
config: item,
|
|
3598
|
+
size: _ctx.size,
|
|
3599
|
+
disabled: disabled.value,
|
|
3600
|
+
"step-active": _ctx.stepActive,
|
|
3601
|
+
"expand-more": expand.value,
|
|
3602
|
+
"label-width": itemLabelWidth.value,
|
|
3603
|
+
prop: itemProp.value,
|
|
3604
|
+
onChange: onChangeHandler,
|
|
3605
|
+
onAddDiffCount
|
|
3606
|
+
}, null, 8, ["model", "last-values", "is-compare", "config", "size", "disabled", "step-active", "expand-more", "label-width", "prop"]);
|
|
3607
|
+
}),
|
|
3608
|
+
128
|
|
3609
|
+
/* KEYED_FRAGMENT */
|
|
3610
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
3611
|
+
],
|
|
3612
|
+
64
|
|
3613
|
+
/* STABLE_FRAGMENT */
|
|
3614
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
3576
3615
|
_ctx.config.expand && type.value !== "fieldset" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
|
|
3577
3616
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
3578
3617
|
type: "primary",
|
|
@@ -3582,12 +3621,17 @@
|
|
|
3582
3621
|
onClick: expandHandler
|
|
3583
3622
|
}, {
|
|
3584
3623
|
default: vue.withCtx(() => [
|
|
3585
|
-
vue.createTextVNode(
|
|
3624
|
+
vue.createTextVNode(
|
|
3625
|
+
vue.toDisplayString(expand.value ? "收起配置" : "展开更多配置"),
|
|
3626
|
+
1
|
|
3627
|
+
/* TEXT */
|
|
3628
|
+
)
|
|
3586
3629
|
]),
|
|
3587
3630
|
_: 1
|
|
3631
|
+
/* STABLE */
|
|
3588
3632
|
})
|
|
3589
|
-
])) : vue.createCommentVNode("", true)
|
|
3590
|
-
], 14, _hoisted_1$e)) : vue.createCommentVNode("", true);
|
|
3633
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
3634
|
+
], 14, _hoisted_1$e)) : vue.createCommentVNode("v-if", true);
|
|
3591
3635
|
};
|
|
3592
3636
|
}
|
|
3593
3637
|
});
|
|
@@ -3644,50 +3688,85 @@
|
|
|
3644
3688
|
const key = (item, index) => item[mForm?.keyProp || "__key"] ?? index;
|
|
3645
3689
|
const onAddDiffCount = () => emit("addDiffCount");
|
|
3646
3690
|
return (_ctx, _cache) => {
|
|
3647
|
-
return (name.value ? _ctx.model[name.value] : _ctx.model) ? (vue.openBlock(), vue.createElementBlock(
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
+
return (name.value ? _ctx.model[name.value] : _ctx.model) ? (vue.openBlock(), vue.createElementBlock(
|
|
3692
|
+
"fieldset",
|
|
3693
|
+
{
|
|
3694
|
+
key: 0,
|
|
3695
|
+
class: "m-fieldset",
|
|
3696
|
+
style: vue.normalizeStyle(show.value ? "padding: 15px" : "border: 0")
|
|
3697
|
+
},
|
|
3698
|
+
[
|
|
3699
|
+
name.value && _ctx.config.checkbox ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(!show.value ? "div" : "legend"), { key: 0 }, {
|
|
3700
|
+
default: vue.withCtx(() => [
|
|
3701
|
+
vue.createVNode(vue.unref(design.TMagicCheckbox), {
|
|
3702
|
+
modelValue: _ctx.model[name.value].value,
|
|
3703
|
+
"onUpdate:modelValue": [
|
|
3704
|
+
_cache[0] || (_cache[0] = ($event) => _ctx.model[name.value].value = $event),
|
|
3705
|
+
valueChangeHandler
|
|
3706
|
+
],
|
|
3707
|
+
prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${_ctx.config.name}.value`,
|
|
3708
|
+
"true-value": 1,
|
|
3709
|
+
"false-value": 0
|
|
3710
|
+
}, {
|
|
3711
|
+
default: vue.withCtx(() => [
|
|
3712
|
+
vue.createElementVNode("span", {
|
|
3713
|
+
innerHTML: _ctx.config.legend
|
|
3714
|
+
}, null, 8, _hoisted_1$d),
|
|
3715
|
+
_ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3716
|
+
key: 0,
|
|
3717
|
+
innerHTML: _ctx.config.extra,
|
|
3718
|
+
class: "m-form-tip"
|
|
3719
|
+
}, null, 8, _hoisted_2$6)) : vue.createCommentVNode("v-if", true)
|
|
3720
|
+
]),
|
|
3721
|
+
_: 1
|
|
3722
|
+
/* STABLE */
|
|
3723
|
+
}, 8, ["modelValue", "prop"])
|
|
3724
|
+
]),
|
|
3725
|
+
_: 1
|
|
3726
|
+
/* STABLE */
|
|
3727
|
+
})) : (vue.openBlock(), vue.createElementBlock("legend", _hoisted_3$4, [
|
|
3728
|
+
vue.createElementVNode("span", {
|
|
3729
|
+
innerHTML: _ctx.config.legend
|
|
3730
|
+
}, null, 8, _hoisted_4$2),
|
|
3731
|
+
_ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3732
|
+
key: 0,
|
|
3733
|
+
innerHTML: _ctx.config.extra,
|
|
3734
|
+
class: "m-form-tip"
|
|
3735
|
+
}, null, 8, _hoisted_5$2)) : vue.createCommentVNode("v-if", true)
|
|
3736
|
+
])),
|
|
3737
|
+
_ctx.config.schematic && show.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
|
|
3738
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
3739
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
3740
|
+
vue.Fragment,
|
|
3741
|
+
null,
|
|
3742
|
+
vue.renderList(_ctx.config.items, (item, index) => {
|
|
3743
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
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] : [],
|
|
3749
|
+
config: item,
|
|
3750
|
+
prop: _ctx.prop,
|
|
3751
|
+
disabled: _ctx.disabled,
|
|
3752
|
+
labelWidth: lWidth.value,
|
|
3753
|
+
size: _ctx.size,
|
|
3754
|
+
onChange: changeHandler,
|
|
3755
|
+
onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
|
|
3756
|
+
}, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "disabled", "labelWidth", "size"]);
|
|
3757
|
+
}),
|
|
3758
|
+
128
|
|
3759
|
+
/* KEYED_FRAGMENT */
|
|
3760
|
+
))
|
|
3761
|
+
]),
|
|
3762
|
+
vue.createElementVNode("img", {
|
|
3763
|
+
class: "m-form-schematic",
|
|
3764
|
+
src: _ctx.config.schematic
|
|
3765
|
+
}, null, 8, _hoisted_8)
|
|
3766
|
+
])) : show.value ? (vue.openBlock(true), vue.createElementBlock(
|
|
3767
|
+
vue.Fragment,
|
|
3768
|
+
{ key: 3 },
|
|
3769
|
+
vue.renderList(_ctx.config.items, (item, index) => {
|
|
3691
3770
|
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
3692
3771
|
key: key(item, index),
|
|
3693
3772
|
model: name.value ? _ctx.model[name.value] : _ctx.model,
|
|
@@ -3696,35 +3775,20 @@
|
|
|
3696
3775
|
rules: name.value ? _ctx.rules[name.value] : [],
|
|
3697
3776
|
config: item,
|
|
3698
3777
|
prop: _ctx.prop,
|
|
3699
|
-
disabled: _ctx.disabled,
|
|
3700
3778
|
labelWidth: lWidth.value,
|
|
3701
3779
|
size: _ctx.size,
|
|
3780
|
+
disabled: _ctx.disabled,
|
|
3702
3781
|
onChange: changeHandler,
|
|
3703
|
-
onAddDiffCount: _cache[
|
|
3704
|
-
}, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "
|
|
3705
|
-
}),
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
key: key(item, index),
|
|
3714
|
-
model: name.value ? _ctx.model[name.value] : _ctx.model,
|
|
3715
|
-
lastValues: name.value ? _ctx.lastValues[name.value] : _ctx.lastValues,
|
|
3716
|
-
"is-compare": _ctx.isCompare,
|
|
3717
|
-
rules: name.value ? _ctx.rules[name.value] : [],
|
|
3718
|
-
config: item,
|
|
3719
|
-
prop: _ctx.prop,
|
|
3720
|
-
labelWidth: lWidth.value,
|
|
3721
|
-
size: _ctx.size,
|
|
3722
|
-
disabled: _ctx.disabled,
|
|
3723
|
-
onChange: changeHandler,
|
|
3724
|
-
onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
|
|
3725
|
-
}, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "labelWidth", "size", "disabled"]);
|
|
3726
|
-
}), 128)) : vue.createCommentVNode("", true)
|
|
3727
|
-
], 4)) : vue.createCommentVNode("", true);
|
|
3782
|
+
onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
|
|
3783
|
+
}, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "labelWidth", "size", "disabled"]);
|
|
3784
|
+
}),
|
|
3785
|
+
128
|
|
3786
|
+
/* KEYED_FRAGMENT */
|
|
3787
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
3788
|
+
],
|
|
3789
|
+
4
|
|
3790
|
+
/* STYLE */
|
|
3791
|
+
)) : vue.createCommentVNode("v-if", true);
|
|
3728
3792
|
};
|
|
3729
3793
|
}
|
|
3730
3794
|
});
|
|
@@ -3823,10 +3887,16 @@
|
|
|
3823
3887
|
expand.value ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretBottom), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretRight), { key: 1 }))
|
|
3824
3888
|
]),
|
|
3825
3889
|
_: 1
|
|
3890
|
+
/* STABLE */
|
|
3826
3891
|
}),
|
|
3827
|
-
vue.createTextVNode(
|
|
3892
|
+
vue.createTextVNode(
|
|
3893
|
+
vue.toDisplayString(title.value),
|
|
3894
|
+
1
|
|
3895
|
+
/* TEXT */
|
|
3896
|
+
)
|
|
3828
3897
|
]),
|
|
3829
3898
|
_: 1
|
|
3899
|
+
/* STABLE */
|
|
3830
3900
|
}, 8, ["disabled"]),
|
|
3831
3901
|
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
3832
3902
|
type: "danger",
|
|
@@ -3850,38 +3920,47 @@
|
|
|
3850
3920
|
default: vue.withCtx(() => _cache[6] || (_cache[6] = [
|
|
3851
3921
|
vue.createTextVNode("复制")
|
|
3852
3922
|
])),
|
|
3853
|
-
_: 1
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
vue.
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3923
|
+
_: 1,
|
|
3924
|
+
__: [6]
|
|
3925
|
+
}, 8, ["icon", "disabled"])) : vue.createCommentVNode("v-if", true),
|
|
3926
|
+
movable.value ? (vue.openBlock(), vue.createElementBlock(
|
|
3927
|
+
vue.Fragment,
|
|
3928
|
+
{ key: 1 },
|
|
3929
|
+
[
|
|
3930
|
+
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
3931
|
+
link: "",
|
|
3932
|
+
size: "small",
|
|
3933
|
+
disabled: _ctx.disabled,
|
|
3934
|
+
icon: vue.unref(iconsVue.CaretTop),
|
|
3935
|
+
onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
|
|
3936
|
+
}, {
|
|
3937
|
+
default: vue.withCtx(() => _cache[7] || (_cache[7] = [
|
|
3938
|
+
vue.createTextVNode("上移")
|
|
3939
|
+
])),
|
|
3940
|
+
_: 1,
|
|
3941
|
+
__: [7]
|
|
3942
|
+
}, 8, ["disabled", "icon"]), [
|
|
3943
|
+
[vue.vShow, _ctx.index !== 0]
|
|
3944
|
+
]),
|
|
3945
|
+
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
3946
|
+
link: "",
|
|
3947
|
+
size: "small",
|
|
3948
|
+
disabled: _ctx.disabled,
|
|
3949
|
+
icon: vue.unref(iconsVue.CaretBottom),
|
|
3950
|
+
onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
|
|
3951
|
+
}, {
|
|
3952
|
+
default: vue.withCtx(() => _cache[8] || (_cache[8] = [
|
|
3953
|
+
vue.createTextVNode("下移")
|
|
3954
|
+
])),
|
|
3955
|
+
_: 1,
|
|
3956
|
+
__: [8]
|
|
3957
|
+
}, 8, ["disabled", "icon"]), [
|
|
3958
|
+
[vue.vShow, _ctx.index !== length.value - 1]
|
|
3959
|
+
])
|
|
3960
|
+
],
|
|
3961
|
+
64
|
|
3962
|
+
/* STABLE_FRAGMENT */
|
|
3963
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
3885
3964
|
_ctx.config.moveSpecifyLocation ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicPopover), {
|
|
3886
3965
|
key: 2,
|
|
3887
3966
|
trigger: "click",
|
|
@@ -3901,7 +3980,8 @@
|
|
|
3901
3980
|
default: vue.withCtx(() => _cache[9] || (_cache[9] = [
|
|
3902
3981
|
vue.createTextVNode("移动至")
|
|
3903
3982
|
])),
|
|
3904
|
-
_: 1
|
|
3983
|
+
_: 1,
|
|
3984
|
+
__: [9]
|
|
3905
3985
|
}, 8, ["icon", "disabled"])
|
|
3906
3986
|
]),
|
|
3907
3987
|
default: vue.withCtx(() => [
|
|
@@ -3927,7 +4007,8 @@
|
|
|
3927
4007
|
default: vue.withCtx(() => _cache[12] || (_cache[12] = [
|
|
3928
4008
|
vue.createTextVNode("取消")
|
|
3929
4009
|
])),
|
|
3930
|
-
_: 1
|
|
4010
|
+
_: 1,
|
|
4011
|
+
__: [12]
|
|
3931
4012
|
}),
|
|
3932
4013
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
3933
4014
|
size: "small",
|
|
@@ -3937,18 +4018,20 @@
|
|
|
3937
4018
|
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
3938
4019
|
vue.createTextVNode("确认")
|
|
3939
4020
|
])),
|
|
3940
|
-
_: 1
|
|
4021
|
+
_: 1,
|
|
4022
|
+
__: [13]
|
|
3941
4023
|
})
|
|
3942
4024
|
])
|
|
3943
4025
|
])
|
|
3944
4026
|
]),
|
|
3945
4027
|
_: 1
|
|
3946
|
-
|
|
4028
|
+
/* STABLE */
|
|
4029
|
+
}, 8, ["visible"])) : vue.createCommentVNode("v-if", true),
|
|
3947
4030
|
itemExtra.value ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3948
4031
|
key: 3,
|
|
3949
4032
|
innerHTML: itemExtra.value,
|
|
3950
4033
|
class: "m-form-tip"
|
|
3951
|
-
}, null, 8, _hoisted_3$3)) : vue.createCommentVNode("", true)
|
|
4034
|
+
}, null, 8, _hoisted_3$3)) : vue.createCommentVNode("v-if", true)
|
|
3952
4035
|
]),
|
|
3953
4036
|
expand.value ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
3954
4037
|
key: 0,
|
|
@@ -3962,7 +4045,7 @@
|
|
|
3962
4045
|
disabled: _ctx.disabled,
|
|
3963
4046
|
onChange: changeHandler,
|
|
3964
4047
|
onAddDiffCount: _cache[5] || (_cache[5] = ($event) => onAddDiffCount())
|
|
3965
|
-
}, null, 8, ["config", "model", "lastValues", "is-compare", "labelWidth", "prop", "size", "disabled"])) : vue.createCommentVNode("", true)
|
|
4048
|
+
}, null, 8, ["config", "model", "lastValues", "is-compare", "labelWidth", "prop", "size", "disabled"])) : vue.createCommentVNode("v-if", true)
|
|
3966
4049
|
]);
|
|
3967
4050
|
};
|
|
3968
4051
|
}
|
|
@@ -4069,29 +4152,41 @@
|
|
|
4069
4152
|
key: 0,
|
|
4070
4153
|
innerHTML: _ctx.config.extra,
|
|
4071
4154
|
style: { "color": "rgba(0, 0, 0, 0.45)" }
|
|
4072
|
-
}, null, 8, _hoisted_2$4)) : vue.createCommentVNode("", true),
|
|
4155
|
+
}, null, 8, _hoisted_2$4)) : vue.createCommentVNode("v-if", true),
|
|
4073
4156
|
!_ctx.model[_ctx.name] || !_ctx.model[_ctx.name].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, _cache[1] || (_cache[1] = [
|
|
4074
|
-
vue.createElementVNode(
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4157
|
+
vue.createElementVNode(
|
|
4158
|
+
"span",
|
|
4159
|
+
{ class: "el-table__empty-text" },
|
|
4160
|
+
"暂无数据",
|
|
4161
|
+
-1
|
|
4162
|
+
/* CACHED */
|
|
4163
|
+
)
|
|
4164
|
+
]))) : (vue.openBlock(true), vue.createElementBlock(
|
|
4165
|
+
vue.Fragment,
|
|
4166
|
+
{ key: 2 },
|
|
4167
|
+
vue.renderList(_ctx.model[_ctx.name], (item, index) => {
|
|
4168
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
4169
|
+
key: index,
|
|
4170
|
+
model: item,
|
|
4171
|
+
lastValues: getLastValues(_ctx.lastValues[_ctx.name], index),
|
|
4172
|
+
"is-compare": _ctx.isCompare,
|
|
4173
|
+
config: _ctx.config,
|
|
4174
|
+
prop: _ctx.prop,
|
|
4175
|
+
index,
|
|
4176
|
+
"label-width": _ctx.labelWidth,
|
|
4177
|
+
size: _ctx.size,
|
|
4178
|
+
disabled: _ctx.disabled,
|
|
4179
|
+
"group-model": _ctx.model[_ctx.name],
|
|
4180
|
+
onRemoveItem: removeHandler,
|
|
4181
|
+
onCopyItem: copyHandler,
|
|
4182
|
+
onSwapItem: swapHandler,
|
|
4183
|
+
onChange: changeHandler,
|
|
4184
|
+
onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
|
|
4185
|
+
}, null, 8, ["model", "lastValues", "is-compare", "config", "prop", "index", "label-width", "size", "disabled", "group-model"]);
|
|
4186
|
+
}),
|
|
4187
|
+
128
|
|
4188
|
+
/* KEYED_FRAGMENT */
|
|
4189
|
+
)),
|
|
4095
4190
|
addable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
4096
4191
|
key: 3,
|
|
4097
4192
|
type: "primary",
|
|
@@ -4102,8 +4197,9 @@
|
|
|
4102
4197
|
default: vue.withCtx(() => _cache[2] || (_cache[2] = [
|
|
4103
4198
|
vue.createTextVNode("新增")
|
|
4104
4199
|
])),
|
|
4105
|
-
_: 1
|
|
4106
|
-
|
|
4200
|
+
_: 1,
|
|
4201
|
+
__: [2]
|
|
4202
|
+
}, 8, ["size", "disabled"])) : vue.createCommentVNode("v-if", true),
|
|
4107
4203
|
_ctx.config.enableToggleMode ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
4108
4204
|
key: 4,
|
|
4109
4205
|
icon: vue.unref(iconsVue.Grid),
|
|
@@ -4113,8 +4209,9 @@
|
|
|
4113
4209
|
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
4114
4210
|
vue.createTextVNode("切换为表格")
|
|
4115
4211
|
])),
|
|
4116
|
-
_: 1
|
|
4117
|
-
|
|
4212
|
+
_: 1,
|
|
4213
|
+
__: [3]
|
|
4214
|
+
}, 8, ["icon"])) : vue.createCommentVNode("v-if", true)
|
|
4118
4215
|
]);
|
|
4119
4216
|
};
|
|
4120
4217
|
}
|
|
@@ -4174,9 +4271,13 @@
|
|
|
4174
4271
|
key: 0,
|
|
4175
4272
|
innerHTML: _ctx.config.extra,
|
|
4176
4273
|
class: "m-form-tip"
|
|
4177
|
-
}, null, 8, _hoisted_2$3)) : vue.createCommentVNode("", true),
|
|
4274
|
+
}, null, 8, _hoisted_2$3)) : vue.createCommentVNode("v-if", true),
|
|
4178
4275
|
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
4179
|
-
vue.createTextVNode(
|
|
4276
|
+
vue.createTextVNode(
|
|
4277
|
+
vue.toDisplayString(filter(_ctx.config.title)),
|
|
4278
|
+
1
|
|
4279
|
+
/* TEXT */
|
|
4280
|
+
)
|
|
4180
4281
|
])
|
|
4181
4282
|
])
|
|
4182
4283
|
]),
|
|
@@ -4185,45 +4286,58 @@
|
|
|
4185
4286
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
4186
4287
|
_ctx.config.schematic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$1, [
|
|
4187
4288
|
vue.createElementVNode("div", _hoisted_4$1, [
|
|
4188
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4289
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
4290
|
+
vue.Fragment,
|
|
4291
|
+
null,
|
|
4292
|
+
vue.renderList(items.value, (item, index) => {
|
|
4293
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
4294
|
+
key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
4295
|
+
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,
|
|
4303
|
+
onChange: changeHandler,
|
|
4304
|
+
onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
|
|
4305
|
+
}, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
|
|
4306
|
+
}),
|
|
4307
|
+
128
|
|
4308
|
+
/* KEYED_FRAGMENT */
|
|
4309
|
+
))
|
|
4203
4310
|
]),
|
|
4204
4311
|
vue.createElementVNode("img", {
|
|
4205
4312
|
class: "m-form-schematic",
|
|
4206
4313
|
src: _ctx.config.schematic
|
|
4207
4314
|
}, null, 8, _hoisted_5$1)
|
|
4208
|
-
])) : (vue.openBlock(true), vue.createElementBlock(
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4315
|
+
])) : (vue.openBlock(true), vue.createElementBlock(
|
|
4316
|
+
vue.Fragment,
|
|
4317
|
+
{ key: 1 },
|
|
4318
|
+
vue.renderList(items.value, (item, index) => {
|
|
4319
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
4320
|
+
key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
4321
|
+
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,
|
|
4329
|
+
onChange: changeHandler,
|
|
4330
|
+
onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
|
|
4331
|
+
}, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
|
|
4332
|
+
}),
|
|
4333
|
+
128
|
|
4334
|
+
/* KEYED_FRAGMENT */
|
|
4335
|
+
))
|
|
4223
4336
|
])
|
|
4224
4337
|
]),
|
|
4225
4338
|
_: 3
|
|
4226
|
-
|
|
4339
|
+
/* FORWARDED */
|
|
4340
|
+
}, 8, ["body-style"])) : vue.createCommentVNode("v-if", true);
|
|
4227
4341
|
};
|
|
4228
4342
|
}
|
|
4229
4343
|
});
|
|
@@ -4271,6 +4385,7 @@
|
|
|
4271
4385
|
}, null, 8, ["model", "lastValues", "is-compare", "config", "prop", "label-width", "expand-more", "size", "disabled"])
|
|
4272
4386
|
]),
|
|
4273
4387
|
_: 1
|
|
4388
|
+
/* STABLE */
|
|
4274
4389
|
}, 8, ["span"])), [
|
|
4275
4390
|
[vue.vShow, display$1.value && _ctx.config.type !== "hidden"]
|
|
4276
4391
|
]);
|
|
@@ -4307,25 +4422,32 @@
|
|
|
4307
4422
|
return (_ctx, _cache) => {
|
|
4308
4423
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicRow), { gutter: 10 }, {
|
|
4309
4424
|
default: vue.withCtx(() => [
|
|
4310
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4425
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
4426
|
+
vue.Fragment,
|
|
4427
|
+
null,
|
|
4428
|
+
vue.renderList(_ctx.config.items, (col, index) => {
|
|
4429
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$s, {
|
|
4430
|
+
key: col[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
4431
|
+
span: col.span || _ctx.config.span || 24 / _ctx.config.items.length,
|
|
4432
|
+
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,
|
|
4441
|
+
onChange: changeHandler,
|
|
4442
|
+
onAddDiffCount
|
|
4443
|
+
}, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "lastValues", "is-compare", "prop", "size", "disabled"]);
|
|
4444
|
+
}),
|
|
4445
|
+
128
|
|
4446
|
+
/* KEYED_FRAGMENT */
|
|
4447
|
+
))
|
|
4327
4448
|
]),
|
|
4328
4449
|
_: 1
|
|
4450
|
+
/* STABLE */
|
|
4329
4451
|
});
|
|
4330
4452
|
};
|
|
4331
4453
|
}
|
|
@@ -4372,40 +4494,71 @@
|
|
|
4372
4494
|
space: _ctx.config.space
|
|
4373
4495
|
}, {
|
|
4374
4496
|
default: vue.withCtx(() => [
|
|
4375
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4497
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
4498
|
+
vue.Fragment,
|
|
4499
|
+
null,
|
|
4500
|
+
vue.renderList(_ctx.config.items, (item, index) => {
|
|
4501
|
+
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicStep), {
|
|
4502
|
+
key: item.__key,
|
|
4503
|
+
title: item.title,
|
|
4504
|
+
active: active.value,
|
|
4505
|
+
onClick: ($event) => stepClick(index)
|
|
4506
|
+
}, null, 8, ["title", "active", "onClick"]);
|
|
4507
|
+
}),
|
|
4508
|
+
128
|
|
4509
|
+
/* KEYED_FRAGMENT */
|
|
4510
|
+
))
|
|
4383
4511
|
]),
|
|
4384
4512
|
_: 1
|
|
4513
|
+
/* STABLE */
|
|
4385
4514
|
}, 8, ["active", "space"]),
|
|
4386
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4515
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
4516
|
+
vue.Fragment,
|
|
4517
|
+
null,
|
|
4518
|
+
vue.renderList(_ctx.config.items, (step, index) => {
|
|
4519
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
4520
|
+
vue.Fragment,
|
|
4521
|
+
null,
|
|
4522
|
+
[
|
|
4523
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
4524
|
+
vue.Fragment,
|
|
4525
|
+
null,
|
|
4526
|
+
vue.renderList(step.items, (item) => {
|
|
4527
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
4528
|
+
vue.Fragment,
|
|
4529
|
+
null,
|
|
4530
|
+
[
|
|
4531
|
+
item ? vue.withDirectives((vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
4532
|
+
key: item[vue.unref(mForm)?.keyProp || "__key"],
|
|
4533
|
+
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,
|
|
4537
|
+
prop: `${step.name}`,
|
|
4538
|
+
size: _ctx.size,
|
|
4539
|
+
disabled: _ctx.disabled,
|
|
4540
|
+
"label-width": _ctx.config.labelWidth || _ctx.labelWidth,
|
|
4541
|
+
onChange: changeHandler,
|
|
4542
|
+
onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
|
|
4543
|
+
}, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"])), [
|
|
4544
|
+
[vue.vShow, active.value - 1 === index]
|
|
4545
|
+
]) : vue.createCommentVNode("v-if", true)
|
|
4546
|
+
],
|
|
4547
|
+
64
|
|
4548
|
+
/* STABLE_FRAGMENT */
|
|
4549
|
+
);
|
|
4550
|
+
}),
|
|
4551
|
+
256
|
|
4552
|
+
/* UNKEYED_FRAGMENT */
|
|
4553
|
+
))
|
|
4554
|
+
],
|
|
4555
|
+
64
|
|
4556
|
+
/* STABLE_FRAGMENT */
|
|
4557
|
+
);
|
|
4558
|
+
}),
|
|
4559
|
+
256
|
|
4560
|
+
/* UNKEYED_FRAGMENT */
|
|
4561
|
+
))
|
|
4409
4562
|
]);
|
|
4410
4563
|
};
|
|
4411
4564
|
}
|
|
@@ -4802,276 +4955,329 @@
|
|
|
4802
4955
|
to: "body",
|
|
4803
4956
|
disabled: !isFullscreen.value
|
|
4804
4957
|
}, [
|
|
4805
|
-
vue.createElementVNode(
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
_ctx.
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
vue.createVNode(vue.unref(design.TMagicTableColumn), {
|
|
4851
|
-
label: "操作",
|
|
4852
|
-
width: _ctx.config.operateColWidth || 100,
|
|
4853
|
-
align: "center",
|
|
4854
|
-
fixed: _ctx.config.fixed === false ? void 0 : "left"
|
|
4855
|
-
}, {
|
|
4856
|
-
default: vue.withCtx((scope) => [
|
|
4857
|
-
vue.renderSlot(_ctx.$slots, "operateCol", { scope }),
|
|
4858
|
-
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
4859
|
-
size: "small",
|
|
4860
|
-
type: "danger",
|
|
4861
|
-
link: "",
|
|
4862
|
-
title: "删除",
|
|
4863
|
-
icon: vue.unref(iconsVue.Delete),
|
|
4864
|
-
onClick: ($event) => removeHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
4865
|
-
}, null, 8, ["icon", "onClick"]), [
|
|
4866
|
-
[vue.vShow, showDelete(scope.$index + 1 + pagecontext.value * pagesize.value - 1)]
|
|
4958
|
+
vue.createElementVNode(
|
|
4959
|
+
"div",
|
|
4960
|
+
{
|
|
4961
|
+
ref_key: "mTable",
|
|
4962
|
+
ref: mTable,
|
|
4963
|
+
class: vue.normalizeClass(["m-fields-table", { "m-fields-table-item-extra": _ctx.config.itemExtra }])
|
|
4964
|
+
},
|
|
4965
|
+
[
|
|
4966
|
+
_ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
4967
|
+
key: 0,
|
|
4968
|
+
style: { "color": "rgba(0, 0, 0, 0.45)" },
|
|
4969
|
+
innerHTML: _ctx.config.extra
|
|
4970
|
+
}, null, 8, _hoisted_2$2)) : vue.createCommentVNode("v-if", true),
|
|
4971
|
+
vue.createVNode(vue.unref(design.TMagicTooltip), {
|
|
4972
|
+
content: "拖拽可排序",
|
|
4973
|
+
placement: "left-start",
|
|
4974
|
+
disabled: _ctx.config.dropSort !== true
|
|
4975
|
+
}, {
|
|
4976
|
+
default: vue.withCtx(() => [
|
|
4977
|
+
_ctx.model[modelName.value] ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTable), {
|
|
4978
|
+
ref_key: "tMagicTable",
|
|
4979
|
+
ref: tMagicTable,
|
|
4980
|
+
style: { "width": "100%" },
|
|
4981
|
+
"row-key": _ctx.config.rowKey || "id",
|
|
4982
|
+
data: data.value,
|
|
4983
|
+
lastData: lastData.value,
|
|
4984
|
+
border: _ctx.config.border,
|
|
4985
|
+
"max-height": _ctx.config.maxHeight,
|
|
4986
|
+
"default-expand-all": true,
|
|
4987
|
+
key: updateKey.value,
|
|
4988
|
+
onSelect: selectHandle,
|
|
4989
|
+
onSortChange: sortChange
|
|
4990
|
+
}, {
|
|
4991
|
+
default: vue.withCtx(() => [
|
|
4992
|
+
_ctx.config.itemExtra && !_ctx.config.dropSort ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
4993
|
+
key: 0,
|
|
4994
|
+
fixed: "left",
|
|
4995
|
+
width: "30",
|
|
4996
|
+
type: "expand"
|
|
4997
|
+
}, {
|
|
4998
|
+
default: vue.withCtx((scope) => [
|
|
4999
|
+
vue.createElementVNode("span", {
|
|
5000
|
+
innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
|
|
5001
|
+
class: "m-form-tip"
|
|
5002
|
+
}, null, 8, _hoisted_3)
|
|
4867
5003
|
]),
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
key: 0,
|
|
4889
|
-
content: "点击上移,双击置顶",
|
|
4890
|
-
placement: "top"
|
|
4891
|
-
}, {
|
|
4892
|
-
default: vue.withCtx(() => [
|
|
4893
|
-
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
4894
|
-
plain: "",
|
|
4895
|
-
size: "small",
|
|
4896
|
-
type: "primary",
|
|
4897
|
-
icon: vue.unref(iconsVue.ArrowUp),
|
|
4898
|
-
disabled: _ctx.disabled,
|
|
4899
|
-
link: "",
|
|
4900
|
-
onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
|
|
4901
|
-
onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
4902
|
-
}, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
|
|
4903
|
-
]),
|
|
4904
|
-
_: 2
|
|
4905
|
-
}, 1024)) : vue.createCommentVNode("", true),
|
|
4906
|
-
scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
4907
|
-
key: 1,
|
|
4908
|
-
content: "点击下移,双击置底",
|
|
4909
|
-
placement: "top"
|
|
4910
|
-
}, {
|
|
4911
|
-
default: vue.withCtx(() => [
|
|
4912
|
-
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
4913
|
-
plain: "",
|
|
4914
|
-
size: "small",
|
|
4915
|
-
type: "primary",
|
|
4916
|
-
icon: vue.unref(iconsVue.ArrowDown),
|
|
4917
|
-
disabled: _ctx.disabled,
|
|
4918
|
-
link: "",
|
|
4919
|
-
onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
|
|
4920
|
-
onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
4921
|
-
}, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
|
|
5004
|
+
_: 1
|
|
5005
|
+
/* STABLE */
|
|
5006
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
5007
|
+
vue.createVNode(vue.unref(design.TMagicTableColumn), {
|
|
5008
|
+
label: "操作",
|
|
5009
|
+
width: _ctx.config.operateColWidth || 100,
|
|
5010
|
+
align: "center",
|
|
5011
|
+
fixed: _ctx.config.fixed === false ? void 0 : "left"
|
|
5012
|
+
}, {
|
|
5013
|
+
default: vue.withCtx((scope) => [
|
|
5014
|
+
vue.renderSlot(_ctx.$slots, "operateCol", { scope }),
|
|
5015
|
+
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
5016
|
+
size: "small",
|
|
5017
|
+
type: "danger",
|
|
5018
|
+
link: "",
|
|
5019
|
+
title: "删除",
|
|
5020
|
+
icon: vue.unref(iconsVue.Delete),
|
|
5021
|
+
onClick: ($event) => removeHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
5022
|
+
}, null, 8, ["icon", "onClick"]), [
|
|
5023
|
+
[vue.vShow, showDelete(scope.$index + 1 + pagecontext.value * pagesize.value - 1)]
|
|
4922
5024
|
]),
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
4947
|
-
column.type !== "hidden" && display$1(column.display) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
4948
|
-
prop: column.name,
|
|
4949
|
-
width: column.width,
|
|
4950
|
-
label: column.label,
|
|
4951
|
-
sortable: column.sortable,
|
|
4952
|
-
"sort-orders": ["ascending", "descending"],
|
|
4953
|
-
key: column[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
4954
|
-
"class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
|
|
4955
|
-
}, {
|
|
4956
|
-
default: vue.withCtx((scope) => [
|
|
4957
|
-
scope.$index > -1 ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
5025
|
+
copyable(scope.$index + 1 + pagecontext.value * pagesize.value - 1) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
5026
|
+
key: 0,
|
|
5027
|
+
link: "",
|
|
5028
|
+
size: "small",
|
|
5029
|
+
type: "primary",
|
|
5030
|
+
title: "复制",
|
|
5031
|
+
icon: vue.unref(iconsVue.DocumentCopy),
|
|
5032
|
+
disabled: _ctx.disabled,
|
|
5033
|
+
onClick: ($event) => copyHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
5034
|
+
}, null, 8, ["icon", "disabled", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
5035
|
+
]),
|
|
5036
|
+
_: 3
|
|
5037
|
+
/* FORWARDED */
|
|
5038
|
+
}, 8, ["width", "fixed"]),
|
|
5039
|
+
_ctx.sort && _ctx.model[modelName.value] && _ctx.model[modelName.value].length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
5040
|
+
key: 1,
|
|
5041
|
+
label: "排序",
|
|
5042
|
+
width: "60"
|
|
5043
|
+
}, {
|
|
5044
|
+
default: vue.withCtx((scope) => [
|
|
5045
|
+
scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== 0 ? (vue.openBlock(), vue.createBlock(
|
|
5046
|
+
vue.unref(design.TMagicTooltip),
|
|
5047
|
+
{
|
|
4958
5048
|
key: 0,
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
+
content: "点击上移,双击置顶",
|
|
5050
|
+
placement: "top"
|
|
5051
|
+
},
|
|
5052
|
+
{
|
|
5053
|
+
default: vue.withCtx(() => [
|
|
5054
|
+
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
5055
|
+
plain: "",
|
|
5056
|
+
size: "small",
|
|
5057
|
+
type: "primary",
|
|
5058
|
+
icon: vue.unref(iconsVue.ArrowUp),
|
|
5059
|
+
disabled: _ctx.disabled,
|
|
5060
|
+
link: "",
|
|
5061
|
+
onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
|
|
5062
|
+
onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
5063
|
+
}, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
|
|
5064
|
+
]),
|
|
5065
|
+
_: 2
|
|
5066
|
+
/* DYNAMIC */
|
|
5067
|
+
},
|
|
5068
|
+
1024
|
|
5069
|
+
/* DYNAMIC_SLOTS */
|
|
5070
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
5071
|
+
scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (vue.openBlock(), vue.createBlock(
|
|
5072
|
+
vue.unref(design.TMagicTooltip),
|
|
5073
|
+
{
|
|
5074
|
+
key: 1,
|
|
5075
|
+
content: "点击下移,双击置底",
|
|
5076
|
+
placement: "top"
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
default: vue.withCtx(() => [
|
|
5080
|
+
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
5081
|
+
plain: "",
|
|
5082
|
+
size: "small",
|
|
5083
|
+
type: "primary",
|
|
5084
|
+
icon: vue.unref(iconsVue.ArrowDown),
|
|
5085
|
+
disabled: _ctx.disabled,
|
|
5086
|
+
link: "",
|
|
5087
|
+
onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
|
|
5088
|
+
onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
5089
|
+
}, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
|
|
5090
|
+
]),
|
|
5091
|
+
_: 2
|
|
5092
|
+
/* DYNAMIC */
|
|
5093
|
+
},
|
|
5094
|
+
1024
|
|
5095
|
+
/* DYNAMIC_SLOTS */
|
|
5096
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
5097
|
+
]),
|
|
5098
|
+
_: 1
|
|
5099
|
+
/* STABLE */
|
|
5100
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
5101
|
+
selection.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
5102
|
+
key: 2,
|
|
5103
|
+
align: "center",
|
|
5104
|
+
"header-align": "center",
|
|
5105
|
+
type: "selection",
|
|
5106
|
+
width: "45"
|
|
5107
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
5108
|
+
_ctx.showIndex && _ctx.config.showIndex ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
5109
|
+
key: 3,
|
|
5110
|
+
width: "60",
|
|
5111
|
+
label: "序号"
|
|
5112
|
+
}, {
|
|
5113
|
+
default: vue.withCtx((scope) => [
|
|
5114
|
+
vue.createTextVNode(
|
|
5115
|
+
vue.toDisplayString(scope.$index + 1 + pagecontext.value * pagesize.value),
|
|
5116
|
+
1
|
|
5117
|
+
/* TEXT */
|
|
5118
|
+
)
|
|
5119
|
+
]),
|
|
5120
|
+
_: 1
|
|
5121
|
+
/* STABLE */
|
|
5122
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
5123
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
5124
|
+
vue.Fragment,
|
|
5125
|
+
null,
|
|
5126
|
+
vue.renderList(_ctx.config.items, (column, index) => {
|
|
5127
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
5128
|
+
vue.Fragment,
|
|
5129
|
+
null,
|
|
5130
|
+
[
|
|
5131
|
+
column.type !== "hidden" && display$1(column.display) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
5132
|
+
prop: column.name,
|
|
5133
|
+
width: column.width,
|
|
5134
|
+
label: column.label,
|
|
5135
|
+
sortable: column.sortable,
|
|
5136
|
+
"sort-orders": ["ascending", "descending"],
|
|
5137
|
+
key: column[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
5138
|
+
"class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
|
|
5139
|
+
}, {
|
|
5140
|
+
default: vue.withCtx((scope) => [
|
|
5141
|
+
scope.$index > -1 ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
5142
|
+
key: 0,
|
|
5143
|
+
labelWidth: "0",
|
|
5144
|
+
disabled: _ctx.disabled,
|
|
5145
|
+
prop: getProp(scope.$index),
|
|
5146
|
+
rules: column.rules,
|
|
5147
|
+
config: makeConfig(column, scope.row),
|
|
5148
|
+
model: scope.row,
|
|
5149
|
+
lastValues: lastData.value[scope.$index],
|
|
5150
|
+
"is-compare": _ctx.isCompare,
|
|
5151
|
+
size: _ctx.size,
|
|
5152
|
+
onChange: changeHandler,
|
|
5153
|
+
onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
|
|
5154
|
+
}, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : vue.createCommentVNode("v-if", true)
|
|
5155
|
+
]),
|
|
5156
|
+
_: 2
|
|
5157
|
+
/* DYNAMIC */
|
|
5158
|
+
}, 1032, ["prop", "width", "label", "sortable", "class-name"])) : vue.createCommentVNode("v-if", true)
|
|
5159
|
+
],
|
|
5160
|
+
64
|
|
5161
|
+
/* STABLE_FRAGMENT */
|
|
5162
|
+
);
|
|
5163
|
+
}),
|
|
5164
|
+
256
|
|
5165
|
+
/* UNKEYED_FRAGMENT */
|
|
5166
|
+
))
|
|
5167
|
+
]),
|
|
5168
|
+
_: 3
|
|
5169
|
+
/* FORWARDED */
|
|
5170
|
+
}, 8, ["row-key", "data", "lastData", "border", "max-height"])) : vue.createCommentVNode("v-if", true)
|
|
5171
|
+
]),
|
|
5172
|
+
_: 3
|
|
5173
|
+
/* FORWARDED */
|
|
5174
|
+
}, 8, ["disabled"]),
|
|
5175
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
|
5176
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
5177
|
+
addable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
5178
|
+
key: 0,
|
|
5049
5179
|
size: "small",
|
|
5050
|
-
type: "
|
|
5180
|
+
type: "primary",
|
|
5051
5181
|
disabled: _ctx.disabled,
|
|
5052
5182
|
plain: "",
|
|
5053
|
-
onClick: _cache[
|
|
5183
|
+
onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
|
|
5054
5184
|
}, {
|
|
5055
|
-
default: vue.withCtx(() => _cache[
|
|
5056
|
-
vue.createTextVNode("
|
|
5185
|
+
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
5186
|
+
vue.createTextVNode("新增一行")
|
|
5057
5187
|
])),
|
|
5058
|
-
_: 1
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5188
|
+
_: 1,
|
|
5189
|
+
__: [3]
|
|
5190
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
|
|
5191
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
5192
|
+
_ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
5193
|
+
key: 0,
|
|
5194
|
+
icon: vue.unref(iconsVue.Grid),
|
|
5195
|
+
size: "small",
|
|
5196
|
+
type: "primary",
|
|
5197
|
+
onClick: toggleMode
|
|
5198
|
+
}, {
|
|
5199
|
+
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
5200
|
+
vue.createTextVNode("展开配置")
|
|
5201
|
+
])),
|
|
5202
|
+
_: 1,
|
|
5203
|
+
__: [4]
|
|
5204
|
+
}, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
|
|
5205
|
+
_ctx.config.enableFullscreen !== false ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
5206
|
+
key: 1,
|
|
5207
|
+
icon: vue.unref(iconsVue.FullScreen),
|
|
5208
|
+
size: "small",
|
|
5209
|
+
type: "primary",
|
|
5210
|
+
onClick: toggleFullscreen
|
|
5211
|
+
}, {
|
|
5212
|
+
default: vue.withCtx(() => [
|
|
5213
|
+
vue.createTextVNode(
|
|
5214
|
+
vue.toDisplayString(isFullscreen.value ? "退出全屏" : "全屏编辑"),
|
|
5215
|
+
1
|
|
5216
|
+
/* TEXT */
|
|
5217
|
+
)
|
|
5218
|
+
]),
|
|
5219
|
+
_: 1
|
|
5220
|
+
/* STABLE */
|
|
5221
|
+
}, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
|
|
5222
|
+
importable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicUpload), {
|
|
5223
|
+
key: 2,
|
|
5224
|
+
style: { "display": "inline-block" },
|
|
5225
|
+
ref_key: "excelBtn",
|
|
5226
|
+
ref: excelBtn,
|
|
5227
|
+
action: "/noop",
|
|
5228
|
+
disabled: _ctx.disabled,
|
|
5229
|
+
"on-change": excelHandler,
|
|
5230
|
+
"auto-upload": false
|
|
5231
|
+
}, {
|
|
5232
|
+
default: vue.withCtx(() => [
|
|
5233
|
+
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
5234
|
+
size: "small",
|
|
5235
|
+
type: "success",
|
|
5236
|
+
disabled: _ctx.disabled,
|
|
5237
|
+
plain: ""
|
|
5238
|
+
}, {
|
|
5239
|
+
default: vue.withCtx(() => _cache[5] || (_cache[5] = [
|
|
5240
|
+
vue.createTextVNode("导入EXCEL")
|
|
5241
|
+
])),
|
|
5242
|
+
_: 1,
|
|
5243
|
+
__: [5]
|
|
5244
|
+
}, 8, ["disabled"])
|
|
5245
|
+
]),
|
|
5246
|
+
_: 1
|
|
5247
|
+
/* STABLE */
|
|
5248
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
|
|
5249
|
+
importable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
5250
|
+
key: 3,
|
|
5251
|
+
size: "small",
|
|
5252
|
+
type: "warning",
|
|
5253
|
+
disabled: _ctx.disabled,
|
|
5254
|
+
plain: "",
|
|
5255
|
+
onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
|
|
5256
|
+
}, {
|
|
5257
|
+
default: vue.withCtx(() => _cache[6] || (_cache[6] = [
|
|
5258
|
+
vue.createTextVNode("清空")
|
|
5259
|
+
])),
|
|
5260
|
+
_: 1,
|
|
5261
|
+
__: [6]
|
|
5262
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
|
|
5263
|
+
])
|
|
5264
|
+
]),
|
|
5265
|
+
_ctx.config.pagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
5266
|
+
vue.createVNode(vue.unref(design.TMagicPagination), {
|
|
5267
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
5268
|
+
"hide-on-single-page": _ctx.model[modelName.value].length < pagesize.value,
|
|
5269
|
+
"current-page": pagecontext.value + 1,
|
|
5270
|
+
"page-sizes": [pagesize.value, 60, 120, 300],
|
|
5271
|
+
"page-size": pagesize.value,
|
|
5272
|
+
total: _ctx.model[modelName.value].length,
|
|
5273
|
+
onSizeChange: handleSizeChange,
|
|
5274
|
+
onCurrentChange: handleCurrentChange
|
|
5275
|
+
}, null, 8, ["hide-on-single-page", "current-page", "page-sizes", "page-size", "total"])
|
|
5276
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
5277
|
+
],
|
|
5278
|
+
2
|
|
5279
|
+
/* CLASS */
|
|
5280
|
+
)
|
|
5075
5281
|
], 8, ["disabled"]))
|
|
5076
5282
|
]);
|
|
5077
5283
|
};
|
|
@@ -5216,47 +5422,71 @@
|
|
|
5216
5422
|
}
|
|
5217
5423
|
), {
|
|
5218
5424
|
default: vue.withCtx(() => [
|
|
5219
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
vue.
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5425
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
5426
|
+
vue.Fragment,
|
|
5427
|
+
null,
|
|
5428
|
+
vue.renderList(tabs.value, (tab, tabIndex) => {
|
|
5429
|
+
return vue.openBlock(), vue.createBlock(
|
|
5430
|
+
vue.resolveDynamicComponent(vue.unref(tabPaneComponent)?.component || "el-tab-pane"),
|
|
5431
|
+
vue.mergeProps(
|
|
5432
|
+
{
|
|
5433
|
+
key: tab[vue.unref(mForm)?.keyProp || "__key"] ?? tabIndex
|
|
5434
|
+
},
|
|
5435
|
+
{ ref_for: true },
|
|
5436
|
+
vue.unref(tabPaneComponent)?.props({ name: filter(tab.status) || tabIndex.toString(), lazy: tab.lazy || false }) || {}
|
|
5437
|
+
),
|
|
5438
|
+
{
|
|
5439
|
+
label: vue.withCtx(() => [
|
|
5440
|
+
vue.createElementVNode("span", null, [
|
|
5441
|
+
vue.createTextVNode(
|
|
5442
|
+
vue.toDisplayString(filter(tab.title)),
|
|
5443
|
+
1
|
|
5444
|
+
/* TEXT */
|
|
5445
|
+
),
|
|
5446
|
+
vue.createVNode(vue.unref(design.TMagicBadge), {
|
|
5447
|
+
hidden: !diffCount.value[tabIndex],
|
|
5448
|
+
value: diffCount.value[tabIndex],
|
|
5449
|
+
class: "diff-count-badge"
|
|
5450
|
+
}, null, 8, ["hidden", "value"])
|
|
5451
|
+
])
|
|
5452
|
+
]),
|
|
5453
|
+
default: vue.withCtx(() => [
|
|
5454
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
5455
|
+
vue.Fragment,
|
|
5456
|
+
null,
|
|
5457
|
+
vue.renderList(tabItems(tab), (item) => {
|
|
5458
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
5459
|
+
key: item[vue.unref(mForm)?.keyProp || "__key"],
|
|
5460
|
+
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,
|
|
5469
|
+
onChange: changeHandler,
|
|
5470
|
+
onAddDiffCount: ($event) => onAddDiffCount(tabIndex)
|
|
5471
|
+
}, null, 8, ["config", "disabled", "model", "last-values", "is-compare", "prop", "size", "label-width", "expand-more", "onAddDiffCount"]);
|
|
5472
|
+
}),
|
|
5473
|
+
128
|
|
5474
|
+
/* KEYED_FRAGMENT */
|
|
5475
|
+
))
|
|
5476
|
+
]),
|
|
5477
|
+
_: 2
|
|
5478
|
+
/* DYNAMIC */
|
|
5479
|
+
},
|
|
5480
|
+
1040
|
|
5481
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
5482
|
+
);
|
|
5483
|
+
}),
|
|
5484
|
+
128
|
|
5485
|
+
/* KEYED_FRAGMENT */
|
|
5486
|
+
))
|
|
5258
5487
|
]),
|
|
5259
5488
|
_: 1
|
|
5489
|
+
/* STABLE */
|
|
5260
5490
|
}, 16, ["modelValue", "class"]);
|
|
5261
5491
|
};
|
|
5262
5492
|
}
|
|
@@ -5463,9 +5693,14 @@
|
|
|
5463
5693
|
onChange: changeHandler
|
|
5464
5694
|
}, {
|
|
5465
5695
|
default: vue.withCtx(() => [
|
|
5466
|
-
vue.createTextVNode(
|
|
5696
|
+
vue.createTextVNode(
|
|
5697
|
+
vue.toDisplayString(_ctx.config.text),
|
|
5698
|
+
1
|
|
5699
|
+
/* TEXT */
|
|
5700
|
+
)
|
|
5467
5701
|
]),
|
|
5468
5702
|
_: 1
|
|
5703
|
+
/* STABLE */
|
|
5469
5704
|
}, 8, ["modelValue", "size", "trueValue", "falseValue", "disabled"]);
|
|
5470
5705
|
};
|
|
5471
5706
|
}
|
|
@@ -5514,20 +5749,32 @@
|
|
|
5514
5749
|
onChange: changeHandler
|
|
5515
5750
|
}, {
|
|
5516
5751
|
default: vue.withCtx(() => [
|
|
5517
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5752
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
5753
|
+
vue.Fragment,
|
|
5754
|
+
null,
|
|
5755
|
+
vue.renderList(options.value, (option) => {
|
|
5756
|
+
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCheckbox), {
|
|
5757
|
+
value: option.value,
|
|
5758
|
+
key: option.value,
|
|
5759
|
+
disabled: option.disabled
|
|
5760
|
+
}, {
|
|
5761
|
+
default: vue.withCtx(() => [
|
|
5762
|
+
vue.createTextVNode(
|
|
5763
|
+
vue.toDisplayString(option.text),
|
|
5764
|
+
1
|
|
5765
|
+
/* TEXT */
|
|
5766
|
+
)
|
|
5767
|
+
]),
|
|
5768
|
+
_: 2
|
|
5769
|
+
/* DYNAMIC */
|
|
5770
|
+
}, 1032, ["value", "disabled"]);
|
|
5771
|
+
}),
|
|
5772
|
+
128
|
|
5773
|
+
/* KEYED_FRAGMENT */
|
|
5774
|
+
))
|
|
5529
5775
|
]),
|
|
5530
5776
|
_: 1
|
|
5777
|
+
/* STABLE */
|
|
5531
5778
|
}, 8, ["modelValue", "size", "disabled"]);
|
|
5532
5779
|
};
|
|
5533
5780
|
}
|
|
@@ -5787,7 +6034,13 @@
|
|
|
5787
6034
|
}
|
|
5788
6035
|
useAddField(props.prop);
|
|
5789
6036
|
return (_ctx, _cache) => {
|
|
5790
|
-
return _ctx.model ? (vue.openBlock(), vue.createElementBlock(
|
|
6037
|
+
return _ctx.model ? (vue.openBlock(), vue.createElementBlock(
|
|
6038
|
+
"span",
|
|
6039
|
+
_hoisted_1$8,
|
|
6040
|
+
vue.toDisplayString(_ctx.model[_ctx.name]),
|
|
6041
|
+
1
|
|
6042
|
+
/* TEXT */
|
|
6043
|
+
)) : vue.createCommentVNode("v-if", true);
|
|
5791
6044
|
};
|
|
5792
6045
|
}
|
|
5793
6046
|
});
|
|
@@ -5862,24 +6115,32 @@
|
|
|
5862
6115
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
5863
6116
|
vue.createVNode(vue.unref(design.TMagicForm), { size: "small" }, {
|
|
5864
6117
|
default: vue.withCtx(() => [
|
|
5865
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
6118
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
6119
|
+
vue.Fragment,
|
|
6120
|
+
null,
|
|
6121
|
+
vue.renderList(Object.keys(fieldMap.value), (key) => {
|
|
6122
|
+
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicFormItem), {
|
|
6123
|
+
key,
|
|
6124
|
+
label: fieldLabelMap.value[key]
|
|
6125
|
+
}, {
|
|
6126
|
+
default: vue.withCtx(() => [
|
|
6127
|
+
vue.createVNode(vue.unref(design.TMagicInput), {
|
|
6128
|
+
modelValue: fieldMap.value[key],
|
|
6129
|
+
"onUpdate:modelValue": ($event) => fieldMap.value[key] = $event,
|
|
6130
|
+
placeholder: fieldLabelMap.value[key],
|
|
6131
|
+
onChange: ($event) => inputChangeHandler(key)
|
|
6132
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])
|
|
6133
|
+
]),
|
|
6134
|
+
_: 2
|
|
6135
|
+
/* DYNAMIC */
|
|
6136
|
+
}, 1032, ["label"]);
|
|
6137
|
+
}),
|
|
6138
|
+
128
|
|
6139
|
+
/* KEYED_FRAGMENT */
|
|
6140
|
+
))
|
|
5881
6141
|
]),
|
|
5882
6142
|
_: 1
|
|
6143
|
+
/* STABLE */
|
|
5883
6144
|
})
|
|
5884
6145
|
]);
|
|
5885
6146
|
};
|
|
@@ -5906,13 +6167,19 @@
|
|
|
5906
6167
|
const props = __props;
|
|
5907
6168
|
useAddField(props.prop);
|
|
5908
6169
|
return (_ctx, _cache) => {
|
|
5909
|
-
return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
6170
|
+
return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
6171
|
+
"input",
|
|
6172
|
+
{
|
|
6173
|
+
key: 0,
|
|
6174
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
6175
|
+
type: "hidden"
|
|
6176
|
+
},
|
|
6177
|
+
null,
|
|
6178
|
+
512
|
|
6179
|
+
/* NEED_PATCH */
|
|
6180
|
+
)), [
|
|
5914
6181
|
[vue.vModelText, _ctx.model[_ctx.name]]
|
|
5915
|
-
]) : vue.createCommentVNode("", true);
|
|
6182
|
+
]) : vue.createCommentVNode("v-if", true);
|
|
5916
6183
|
};
|
|
5917
6184
|
}
|
|
5918
6185
|
});
|
|
@@ -6072,22 +6339,29 @@
|
|
|
6072
6339
|
onSubmit: submitHandler
|
|
6073
6340
|
}, {
|
|
6074
6341
|
default: vue.withCtx(() => [
|
|
6075
|
-
initialized.value && Array.isArray(_ctx.config) ? (vue.openBlock(true), vue.createElementBlock(
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6342
|
+
initialized.value && Array.isArray(_ctx.config) ? (vue.openBlock(true), vue.createElementBlock(
|
|
6343
|
+
vue.Fragment,
|
|
6344
|
+
{ key: 0 },
|
|
6345
|
+
vue.renderList(_ctx.config, (item, index) => {
|
|
6346
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
6347
|
+
disabled: _ctx.disabled,
|
|
6348
|
+
key: item[_ctx.keyProp] ?? index,
|
|
6349
|
+
config: item,
|
|
6350
|
+
model: values.value,
|
|
6351
|
+
"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,
|
|
6356
|
+
onChange: changeHandler
|
|
6357
|
+
}, null, 8, ["disabled", "config", "model", "last-values", "is-compare", "label-width", "step-active", "size"]);
|
|
6358
|
+
}),
|
|
6359
|
+
128
|
|
6360
|
+
/* KEYED_FRAGMENT */
|
|
6361
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
6089
6362
|
]),
|
|
6090
6363
|
_: 1
|
|
6364
|
+
/* STABLE */
|
|
6091
6365
|
}, 8, ["model", "label-width", "style", "inline", "label-position"]);
|
|
6092
6366
|
};
|
|
6093
6367
|
}
|
|
@@ -6208,6 +6482,7 @@
|
|
|
6208
6482
|
])
|
|
6209
6483
|
]),
|
|
6210
6484
|
_: 3
|
|
6485
|
+
/* FORWARDED */
|
|
6211
6486
|
}),
|
|
6212
6487
|
vue.createVNode(vue.unref(design.TMagicCol), { span: 12 }, {
|
|
6213
6488
|
default: vue.withCtx(() => [
|
|
@@ -6219,7 +6494,8 @@
|
|
|
6219
6494
|
default: vue.withCtx(() => _cache[2] || (_cache[2] = [
|
|
6220
6495
|
vue.createTextVNode("取 消")
|
|
6221
6496
|
])),
|
|
6222
|
-
_: 1
|
|
6497
|
+
_: 1,
|
|
6498
|
+
__: [2]
|
|
6223
6499
|
}),
|
|
6224
6500
|
hasStep.value && stepActive.value > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
6225
6501
|
key: 0,
|
|
@@ -6230,8 +6506,9 @@
|
|
|
6230
6506
|
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
6231
6507
|
vue.createTextVNode("上一步")
|
|
6232
6508
|
])),
|
|
6233
|
-
_: 1
|
|
6234
|
-
|
|
6509
|
+
_: 1,
|
|
6510
|
+
__: [3]
|
|
6511
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
6235
6512
|
hasStep.value && stepCount.value > stepActive.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
6236
6513
|
key: 1,
|
|
6237
6514
|
type: "info",
|
|
@@ -6241,7 +6518,8 @@
|
|
|
6241
6518
|
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
6242
6519
|
vue.createTextVNode("下一步")
|
|
6243
6520
|
])),
|
|
6244
|
-
_: 1
|
|
6521
|
+
_: 1,
|
|
6522
|
+
__: [4]
|
|
6245
6523
|
})) : (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
6246
6524
|
key: 2,
|
|
6247
6525
|
type: "primary",
|
|
@@ -6251,44 +6529,58 @@
|
|
|
6251
6529
|
onClick: save
|
|
6252
6530
|
}, {
|
|
6253
6531
|
default: vue.withCtx(() => [
|
|
6254
|
-
vue.createTextVNode(
|
|
6532
|
+
vue.createTextVNode(
|
|
6533
|
+
vue.toDisplayString(_ctx.confirmText),
|
|
6534
|
+
1
|
|
6535
|
+
/* TEXT */
|
|
6536
|
+
)
|
|
6255
6537
|
]),
|
|
6256
6538
|
_: 1
|
|
6539
|
+
/* STABLE */
|
|
6257
6540
|
}, 8, ["disabled", "loading"]))
|
|
6258
6541
|
])
|
|
6259
6542
|
]),
|
|
6260
6543
|
_: 3
|
|
6544
|
+
/* FORWARDED */
|
|
6261
6545
|
})
|
|
6262
6546
|
]),
|
|
6263
6547
|
_: 3
|
|
6548
|
+
/* FORWARDED */
|
|
6264
6549
|
})
|
|
6265
6550
|
]),
|
|
6266
6551
|
default: vue.withCtx(() => [
|
|
6267
|
-
dialogVisible.value ? (vue.openBlock(), vue.createElementBlock(
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6552
|
+
dialogVisible.value ? (vue.openBlock(), vue.createElementBlock(
|
|
6553
|
+
"div",
|
|
6554
|
+
{
|
|
6555
|
+
key: 0,
|
|
6556
|
+
class: "m-dialog-body",
|
|
6557
|
+
style: vue.normalizeStyle(`max-height: ${bodyHeight.value}; overflow-y: auto; overflow-x: hidden;`)
|
|
6558
|
+
},
|
|
6559
|
+
[
|
|
6560
|
+
vue.createVNode(_sfc_main$d, {
|
|
6561
|
+
modelValue: stepActive.value,
|
|
6562
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => stepActive.value = $event),
|
|
6563
|
+
ref_key: "form",
|
|
6564
|
+
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,
|
|
6574
|
+
onChange: changeHandler
|
|
6575
|
+
}, null, 8, ["modelValue", "size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
|
|
6576
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
6577
|
+
],
|
|
6578
|
+
4
|
|
6579
|
+
/* STYLE */
|
|
6580
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
6290
6581
|
]),
|
|
6291
6582
|
_: 3
|
|
6583
|
+
/* FORWARDED */
|
|
6292
6584
|
}, 8, ["modelValue", "title", "width", "zIndex", "fullscreen"]);
|
|
6293
6585
|
};
|
|
6294
6586
|
}
|
|
@@ -6368,10 +6660,16 @@
|
|
|
6368
6660
|
target: "_blank",
|
|
6369
6661
|
href: href.value,
|
|
6370
6662
|
style: vue.normalizeStyle(_ctx.config.css || {})
|
|
6371
|
-
}, vue.toDisplayString(displayText.value), 13, _hoisted_1$5)) : _ctx.config.href && _ctx.disabled ? (vue.openBlock(), vue.createElementBlock(
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6663
|
+
}, vue.toDisplayString(displayText.value), 13, _hoisted_1$5)) : _ctx.config.href && _ctx.disabled ? (vue.openBlock(), vue.createElementBlock(
|
|
6664
|
+
"span",
|
|
6665
|
+
{
|
|
6666
|
+
key: 1,
|
|
6667
|
+
style: vue.normalizeStyle(_ctx.config.disabledCss || {})
|
|
6668
|
+
},
|
|
6669
|
+
vue.toDisplayString(displayText.value),
|
|
6670
|
+
5
|
|
6671
|
+
/* TEXT, STYLE */
|
|
6672
|
+
)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
6375
6673
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
6376
6674
|
link: "",
|
|
6377
6675
|
type: "primary",
|
|
@@ -6380,7 +6678,8 @@
|
|
|
6380
6678
|
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
6381
6679
|
vue.createTextVNode("点击编辑")
|
|
6382
6680
|
])),
|
|
6383
|
-
_: 1
|
|
6681
|
+
_: 1,
|
|
6682
|
+
__: [0]
|
|
6384
6683
|
}),
|
|
6385
6684
|
vue.createVNode(_sfc_main$c, {
|
|
6386
6685
|
ref_key: "editor",
|
|
@@ -6442,7 +6741,7 @@
|
|
|
6442
6741
|
disabled: _ctx.disabled,
|
|
6443
6742
|
onChange: changeHandler,
|
|
6444
6743
|
onInput: inputHandler
|
|
6445
|
-
}, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled"])) : vue.createCommentVNode("", true);
|
|
6744
|
+
}, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled"])) : vue.createCommentVNode("v-if", true);
|
|
6446
6745
|
};
|
|
6447
6746
|
}
|
|
6448
6747
|
});
|
|
@@ -6488,7 +6787,13 @@
|
|
|
6488
6787
|
disabled: _ctx.disabled,
|
|
6489
6788
|
onChange: minChangeHandler
|
|
6490
6789
|
}, null, 8, ["modelValue", "size", "disabled"]),
|
|
6491
|
-
_cache[2] || (_cache[2] = vue.createElementVNode(
|
|
6790
|
+
_cache[2] || (_cache[2] = vue.createElementVNode(
|
|
6791
|
+
"span",
|
|
6792
|
+
{ class: "split-tag" },
|
|
6793
|
+
"-",
|
|
6794
|
+
-1
|
|
6795
|
+
/* CACHED */
|
|
6796
|
+
)),
|
|
6492
6797
|
vue.createVNode(vue.unref(design.TMagicInput), {
|
|
6493
6798
|
modelValue: _ctx.model[_ctx.name][1],
|
|
6494
6799
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.model[_ctx.name][1] = $event),
|
|
@@ -6541,52 +6846,87 @@
|
|
|
6541
6846
|
disabled: _ctx.disabled
|
|
6542
6847
|
}, {
|
|
6543
6848
|
default: vue.withCtx(() => [
|
|
6544
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6849
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
6850
|
+
vue.Fragment,
|
|
6851
|
+
null,
|
|
6852
|
+
vue.renderList(_ctx.config.options, (option) => {
|
|
6853
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(itemComponent.value), {
|
|
6854
|
+
value: option.value,
|
|
6855
|
+
key: `${option.value}`,
|
|
6856
|
+
onClick: vue.withModifiers(($event) => clickHandler(option.value), ["prevent"])
|
|
6857
|
+
}, {
|
|
6858
|
+
default: vue.withCtx(() => [
|
|
6859
|
+
option.tooltip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
6860
|
+
key: 0,
|
|
6861
|
+
placement: "top-start",
|
|
6862
|
+
content: option.tooltip
|
|
6863
|
+
}, {
|
|
6864
|
+
default: vue.withCtx(() => [
|
|
6865
|
+
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),
|
|
6882
|
+
vue.createElementVNode(
|
|
6883
|
+
"span",
|
|
6884
|
+
null,
|
|
6885
|
+
vue.toDisplayString(option.text),
|
|
6886
|
+
1
|
|
6887
|
+
/* TEXT */
|
|
6888
|
+
)
|
|
6889
|
+
])
|
|
6890
|
+
]),
|
|
6891
|
+
_: 2
|
|
6892
|
+
/* DYNAMIC */
|
|
6893
|
+
}, 1032, ["content"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
|
|
6894
|
+
option.icon ? (vue.openBlock(), vue.createBlock(
|
|
6895
|
+
vue.unref(design.TMagicIcon),
|
|
6896
|
+
{
|
|
6559
6897
|
key: 0,
|
|
6560
6898
|
size: "16"
|
|
6561
|
-
},
|
|
6899
|
+
},
|
|
6900
|
+
{
|
|
6562
6901
|
default: vue.withCtx(() => [
|
|
6563
6902
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(option.icon)))
|
|
6564
6903
|
]),
|
|
6565
6904
|
_: 2
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6905
|
+
/* DYNAMIC */
|
|
6906
|
+
},
|
|
6907
|
+
1024
|
|
6908
|
+
/* DYNAMIC_SLOTS */
|
|
6909
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
6910
|
+
vue.createElementVNode(
|
|
6911
|
+
"span",
|
|
6912
|
+
null,
|
|
6913
|
+
vue.toDisplayString(option.text),
|
|
6914
|
+
1
|
|
6915
|
+
/* TEXT */
|
|
6916
|
+
)
|
|
6917
|
+
]))
|
|
6918
|
+
]),
|
|
6919
|
+
_: 2
|
|
6920
|
+
/* DYNAMIC */
|
|
6921
|
+
}, 1032, ["value", "onClick"]);
|
|
6922
|
+
}),
|
|
6923
|
+
128
|
|
6924
|
+
/* KEYED_FRAGMENT */
|
|
6925
|
+
))
|
|
6587
6926
|
]),
|
|
6588
6927
|
_: 1
|
|
6589
|
-
|
|
6928
|
+
/* STABLE */
|
|
6929
|
+
}, 8, ["modelValue", "size", "disabled"])) : vue.createCommentVNode("v-if", true);
|
|
6590
6930
|
};
|
|
6591
6931
|
}
|
|
6592
6932
|
});
|
|
@@ -6939,67 +7279,107 @@
|
|
|
6939
7279
|
onVisibleChange: visibleHandler
|
|
6940
7280
|
}, {
|
|
6941
7281
|
default: vue.withCtx(() => [
|
|
6942
|
-
_ctx.config.group ? (vue.openBlock(true), vue.createElementBlock(
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
7282
|
+
_ctx.config.group ? (vue.openBlock(true), vue.createElementBlock(
|
|
7283
|
+
vue.Fragment,
|
|
7284
|
+
{ key: 0 },
|
|
7285
|
+
vue.renderList(options.value, (group, index) => {
|
|
7286
|
+
return vue.openBlock(), vue.createBlock(
|
|
7287
|
+
vue.resolveDynamicComponent(vue.unref(optionGroupComponent)?.component || "el-option-group"),
|
|
7288
|
+
vue.mergeProps(
|
|
7289
|
+
{ key: index },
|
|
7290
|
+
{ ref_for: true },
|
|
7291
|
+
vue.unref(optionGroupComponent)?.props({
|
|
7292
|
+
label: group.label,
|
|
7293
|
+
disabled: group.disabled
|
|
7294
|
+
}) || {
|
|
7295
|
+
label: group.label,
|
|
7296
|
+
disabled: group.disabled
|
|
7297
|
+
}
|
|
7298
|
+
),
|
|
7299
|
+
{
|
|
7300
|
+
default: vue.withCtx(() => [
|
|
7301
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
7302
|
+
vue.Fragment,
|
|
7303
|
+
null,
|
|
7304
|
+
vue.renderList(group.options, (item, index2) => {
|
|
7305
|
+
return vue.openBlock(), vue.createBlock(
|
|
7306
|
+
vue.resolveDynamicComponent(vue.unref(optionComponent)?.component || "el-option"),
|
|
7307
|
+
vue.mergeProps(
|
|
7308
|
+
{ key: index2 },
|
|
7309
|
+
{ ref_for: true },
|
|
7310
|
+
vue.unref(optionComponent)?.props({
|
|
7311
|
+
label: item.label || item.text,
|
|
7312
|
+
value: item.value,
|
|
7313
|
+
disabled: item.disabled
|
|
7314
|
+
}) || {
|
|
7315
|
+
label: item.label || item.text,
|
|
7316
|
+
value: item.value,
|
|
7317
|
+
disabled: item.disabled
|
|
7318
|
+
}
|
|
7319
|
+
),
|
|
7320
|
+
null,
|
|
7321
|
+
16
|
|
7322
|
+
/* FULL_PROPS */
|
|
7323
|
+
);
|
|
7324
|
+
}),
|
|
7325
|
+
128
|
|
7326
|
+
/* KEYED_FRAGMENT */
|
|
7327
|
+
))
|
|
7328
|
+
]),
|
|
7329
|
+
_: 2
|
|
7330
|
+
/* DYNAMIC */
|
|
7331
|
+
},
|
|
7332
|
+
1040
|
|
7333
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
7334
|
+
);
|
|
7335
|
+
}),
|
|
7336
|
+
128
|
|
7337
|
+
/* KEYED_FRAGMENT */
|
|
7338
|
+
)) : (vue.openBlock(true), vue.createElementBlock(
|
|
7339
|
+
vue.Fragment,
|
|
7340
|
+
{ key: 1 },
|
|
7341
|
+
vue.renderList(options.value, (option) => {
|
|
7342
|
+
return vue.openBlock(), vue.createBlock(
|
|
7343
|
+
vue.resolveDynamicComponent(vue.unref(optionComponent)?.component || "el-option"),
|
|
7344
|
+
vue.mergeProps(
|
|
7345
|
+
{
|
|
7346
|
+
class: "tmagic-design-option",
|
|
7347
|
+
key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value
|
|
7348
|
+
},
|
|
7349
|
+
{ ref_for: true },
|
|
7350
|
+
vue.unref(optionComponent)?.props({
|
|
7351
|
+
label: option.text,
|
|
7352
|
+
value: option.value,
|
|
7353
|
+
disabled: option.disabled
|
|
7354
|
+
}) || {
|
|
7355
|
+
label: option.text,
|
|
7356
|
+
value: option.value,
|
|
7357
|
+
disabled: option.disabled
|
|
7358
|
+
}
|
|
7359
|
+
),
|
|
7360
|
+
null,
|
|
7361
|
+
16
|
|
7362
|
+
/* FULL_PROPS */
|
|
7363
|
+
);
|
|
7364
|
+
}),
|
|
7365
|
+
128
|
|
7366
|
+
/* KEYED_FRAGMENT */
|
|
7367
|
+
)),
|
|
7368
|
+
moreLoadingVisible.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
7369
|
+
"div",
|
|
7370
|
+
_hoisted_1$2,
|
|
7371
|
+
null,
|
|
7372
|
+
512
|
|
7373
|
+
/* NEED_PATCH */
|
|
7374
|
+
)), [
|
|
6996
7375
|
[_directive_loading, true]
|
|
6997
|
-
]) : vue.createCommentVNode("", true)
|
|
7376
|
+
]) : vue.createCommentVNode("v-if", true)
|
|
6998
7377
|
]),
|
|
6999
7378
|
_: 1
|
|
7379
|
+
/* STABLE */
|
|
7000
7380
|
}, 8, ["modelValue", "clearable", "filterable", "popper-class", "size", "remote", "placeholder", "multiple", "value-key", "allow-create", "disabled", "remote-method"])), [
|
|
7001
7381
|
[_directive_loading, loading.value]
|
|
7002
|
-
]) : vue.createCommentVNode("", true);
|
|
7382
|
+
]) : vue.createCommentVNode("v-if", true);
|
|
7003
7383
|
};
|
|
7004
7384
|
}
|
|
7005
7385
|
});
|
|
@@ -7216,7 +7596,10 @@
|
|
|
7216
7596
|
onChange: changeHandler,
|
|
7217
7597
|
onInput: inputHandler,
|
|
7218
7598
|
onKeyup: _cache[1] || (_cache[1] = ($event) => keyUpHandler($event))
|
|
7219
|
-
}, vue.createSlots({
|
|
7599
|
+
}, vue.createSlots({
|
|
7600
|
+
_: 2
|
|
7601
|
+
/* DYNAMIC */
|
|
7602
|
+
}, [
|
|
7220
7603
|
appendConfig.value ? {
|
|
7221
7604
|
name: "append",
|
|
7222
7605
|
fn: vue.withCtx(() => [
|
|
@@ -7227,49 +7610,74 @@
|
|
|
7227
7610
|
onClick: vue.withModifiers(buttonClickHandler, ["prevent"])
|
|
7228
7611
|
}, {
|
|
7229
7612
|
default: vue.withCtx(() => [
|
|
7230
|
-
vue.createTextVNode(
|
|
7613
|
+
vue.createTextVNode(
|
|
7614
|
+
vue.toDisplayString(appendConfig.value.text),
|
|
7615
|
+
1
|
|
7616
|
+
/* TEXT */
|
|
7617
|
+
)
|
|
7231
7618
|
]),
|
|
7232
7619
|
_: 1
|
|
7233
|
-
|
|
7620
|
+
/* STABLE */
|
|
7621
|
+
}, 8, ["size"])) : vue.createCommentVNode("v-if", true)
|
|
7234
7622
|
]),
|
|
7235
7623
|
key: "0"
|
|
7236
7624
|
} : void 0
|
|
7237
7625
|
]), 1032, ["modelValue", "size", "placeholder", "disabled"]),
|
|
7238
7626
|
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
|
|
7239
|
-
popoverVisible.value ? (vue.openBlock(), vue.createElementBlock(
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7627
|
+
popoverVisible.value ? (vue.openBlock(), vue.createElementBlock(
|
|
7628
|
+
"div",
|
|
7629
|
+
{
|
|
7630
|
+
key: 0,
|
|
7631
|
+
class: "tmagic-form-text-popper m-form-item__content",
|
|
7632
|
+
ref_key: "popoverEl",
|
|
7633
|
+
ref: popoverEl
|
|
7634
|
+
},
|
|
7635
|
+
[
|
|
7636
|
+
_cache[5] || (_cache[5] = vue.createElementVNode(
|
|
7637
|
+
"div",
|
|
7638
|
+
{ class: "m-form-validate__warning" },
|
|
7639
|
+
"输入内容前后有空格,是否移除空格?",
|
|
7640
|
+
-1
|
|
7641
|
+
/* CACHED */
|
|
7642
|
+
)),
|
|
7643
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
7644
|
+
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
7645
|
+
link: "",
|
|
7646
|
+
size: "small",
|
|
7647
|
+
onClick: _cache[2] || (_cache[2] = ($event) => popoverVisible.value = false)
|
|
7648
|
+
}, {
|
|
7649
|
+
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
7650
|
+
vue.createTextVNode("保持原样")
|
|
7651
|
+
])),
|
|
7652
|
+
_: 1,
|
|
7653
|
+
__: [3]
|
|
7654
|
+
}),
|
|
7655
|
+
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
7656
|
+
type: "primary",
|
|
7657
|
+
size: "small",
|
|
7658
|
+
onClick: confirmTrimHandler
|
|
7659
|
+
}, {
|
|
7660
|
+
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
7661
|
+
vue.createTextVNode("移除空格")
|
|
7662
|
+
])),
|
|
7663
|
+
_: 1,
|
|
7664
|
+
__: [4]
|
|
7665
|
+
})
|
|
7666
|
+
]),
|
|
7667
|
+
_cache[6] || (_cache[6] = vue.createElementVNode(
|
|
7668
|
+
"span",
|
|
7669
|
+
{
|
|
7670
|
+
class: "tmagic-form-text-popper-arrow",
|
|
7671
|
+
"data-popper-arrow": ""
|
|
7672
|
+
},
|
|
7673
|
+
null,
|
|
7674
|
+
-1
|
|
7675
|
+
/* CACHED */
|
|
7676
|
+
))
|
|
7677
|
+
],
|
|
7678
|
+
512
|
|
7679
|
+
/* NEED_PATCH */
|
|
7680
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
7273
7681
|
]))
|
|
7274
7682
|
]);
|
|
7275
7683
|
};
|
|
@@ -7546,6 +7954,7 @@
|
|
|
7546
7954
|
])
|
|
7547
7955
|
]),
|
|
7548
7956
|
_: 3
|
|
7957
|
+
/* FORWARDED */
|
|
7549
7958
|
}),
|
|
7550
7959
|
vue.createVNode(vue.unref(design.TMagicCol), { span: 12 }, {
|
|
7551
7960
|
default: vue.withCtx(() => [
|
|
@@ -7554,7 +7963,8 @@
|
|
|
7554
7963
|
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
7555
7964
|
vue.createTextVNode("关闭")
|
|
7556
7965
|
])),
|
|
7557
|
-
_: 1
|
|
7966
|
+
_: 1,
|
|
7967
|
+
__: [1]
|
|
7558
7968
|
}),
|
|
7559
7969
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
7560
7970
|
type: "primary",
|
|
@@ -7563,43 +7973,57 @@
|
|
|
7563
7973
|
onClick: submitHandler
|
|
7564
7974
|
}, {
|
|
7565
7975
|
default: vue.withCtx(() => [
|
|
7566
|
-
vue.createTextVNode(
|
|
7976
|
+
vue.createTextVNode(
|
|
7977
|
+
vue.toDisplayString(_ctx.confirmText),
|
|
7978
|
+
1
|
|
7979
|
+
/* TEXT */
|
|
7980
|
+
)
|
|
7567
7981
|
]),
|
|
7568
7982
|
_: 1
|
|
7983
|
+
/* STABLE */
|
|
7569
7984
|
}, 8, ["disabled", "loading"])
|
|
7570
7985
|
])
|
|
7571
7986
|
]),
|
|
7572
7987
|
_: 3
|
|
7988
|
+
/* FORWARDED */
|
|
7573
7989
|
})
|
|
7574
7990
|
]),
|
|
7575
7991
|
_: 3
|
|
7992
|
+
/* FORWARDED */
|
|
7576
7993
|
})
|
|
7577
7994
|
]),
|
|
7578
7995
|
default: vue.withCtx(() => [
|
|
7579
|
-
visible.value ? (vue.openBlock(), vue.createElementBlock(
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7996
|
+
visible.value ? (vue.openBlock(), vue.createElementBlock(
|
|
7997
|
+
"div",
|
|
7998
|
+
{
|
|
7999
|
+
key: 0,
|
|
8000
|
+
ref_key: "drawerBody",
|
|
8001
|
+
ref: drawerBody,
|
|
8002
|
+
class: "m-drawer-body"
|
|
8003
|
+
},
|
|
8004
|
+
[
|
|
8005
|
+
vue.createVNode(_sfc_main$d, {
|
|
8006
|
+
ref_key: "form",
|
|
8007
|
+
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,
|
|
8017
|
+
onChange: changeHandler
|
|
8018
|
+
}, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
|
|
8019
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
8020
|
+
],
|
|
8021
|
+
512
|
|
8022
|
+
/* NEED_PATCH */
|
|
8023
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
7601
8024
|
]),
|
|
7602
8025
|
_: 3
|
|
8026
|
+
/* FORWARDED */
|
|
7603
8027
|
}, 8, ["modelValue", "title", "close-on-press-escape", "size", "zIndex", "before-close"]);
|
|
7604
8028
|
};
|
|
7605
8029
|
}
|
|
@@ -7670,60 +8094,84 @@
|
|
|
7670
8094
|
hide
|
|
7671
8095
|
});
|
|
7672
8096
|
return (_ctx, _cache) => {
|
|
7673
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
config: _ctx.config,
|
|
7689
|
-
"init-values": _ctx.values,
|
|
7690
|
-
"parent-values": _ctx.parentValues,
|
|
7691
|
-
"label-width": _ctx.labelWidth,
|
|
7692
|
-
"label-position": _ctx.labelPosition,
|
|
7693
|
-
inline: _ctx.inline,
|
|
7694
|
-
"prevent-submit-default": _ctx.preventSubmitDefault,
|
|
7695
|
-
onChange: changeHandler
|
|
7696
|
-
}, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
|
|
7697
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
7698
|
-
]),
|
|
7699
|
-
_: 3
|
|
7700
|
-
})
|
|
7701
|
-
], 4),
|
|
7702
|
-
vue.createElementVNode("div", {
|
|
7703
|
-
class: "dialog-footer",
|
|
7704
|
-
style: vue.normalizeStyle(`height: ${footerHeight}px`)
|
|
7705
|
-
}, [
|
|
7706
|
-
vue.createElementVNode("div", null, [
|
|
7707
|
-
vue.renderSlot(_ctx.$slots, "left")
|
|
7708
|
-
]),
|
|
7709
|
-
vue.createElementVNode("div", null, [
|
|
7710
|
-
vue.renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
7711
|
-
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
7712
|
-
type: "primary",
|
|
7713
|
-
size: _ctx.size,
|
|
7714
|
-
disabled: _ctx.disabled,
|
|
7715
|
-
loading: saveFetch.value,
|
|
7716
|
-
onClick: submitHandler
|
|
7717
|
-
}, {
|
|
8097
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
8098
|
+
"div",
|
|
8099
|
+
{
|
|
8100
|
+
class: "m-form-box",
|
|
8101
|
+
style: vue.normalizeStyle(style.value)
|
|
8102
|
+
},
|
|
8103
|
+
[
|
|
8104
|
+
vue.createElementVNode(
|
|
8105
|
+
"div",
|
|
8106
|
+
{
|
|
8107
|
+
class: "m-box-body",
|
|
8108
|
+
style: vue.normalizeStyle(bodyHeight.value ? { height: `${bodyHeight.value}px` } : {})
|
|
8109
|
+
},
|
|
8110
|
+
[
|
|
8111
|
+
vue.createVNode(vue.unref(design.TMagicScrollbar), null, {
|
|
7718
8112
|
default: vue.withCtx(() => [
|
|
7719
|
-
vue.
|
|
8113
|
+
vue.createVNode(_sfc_main$d, {
|
|
8114
|
+
ref_key: "form",
|
|
8115
|
+
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,
|
|
8125
|
+
onChange: changeHandler
|
|
8126
|
+
}, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
|
|
8127
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
7720
8128
|
]),
|
|
7721
|
-
_:
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
8129
|
+
_: 3
|
|
8130
|
+
/* FORWARDED */
|
|
8131
|
+
})
|
|
8132
|
+
],
|
|
8133
|
+
4
|
|
8134
|
+
/* STYLE */
|
|
8135
|
+
),
|
|
8136
|
+
vue.createElementVNode(
|
|
8137
|
+
"div",
|
|
8138
|
+
{
|
|
8139
|
+
class: "dialog-footer",
|
|
8140
|
+
style: vue.normalizeStyle(`height: ${footerHeight}px`)
|
|
8141
|
+
},
|
|
8142
|
+
[
|
|
8143
|
+
vue.createElementVNode("div", null, [
|
|
8144
|
+
vue.renderSlot(_ctx.$slots, "left")
|
|
8145
|
+
]),
|
|
8146
|
+
vue.createElementVNode("div", null, [
|
|
8147
|
+
vue.renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
8148
|
+
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
8149
|
+
type: "primary",
|
|
8150
|
+
size: _ctx.size,
|
|
8151
|
+
disabled: _ctx.disabled,
|
|
8152
|
+
loading: saveFetch.value,
|
|
8153
|
+
onClick: submitHandler
|
|
8154
|
+
}, {
|
|
8155
|
+
default: vue.withCtx(() => [
|
|
8156
|
+
vue.createTextVNode(
|
|
8157
|
+
vue.toDisplayString(_ctx.confirmText),
|
|
8158
|
+
1
|
|
8159
|
+
/* TEXT */
|
|
8160
|
+
)
|
|
8161
|
+
]),
|
|
8162
|
+
_: 1
|
|
8163
|
+
/* STABLE */
|
|
8164
|
+
}, 8, ["size", "disabled", "loading"])
|
|
8165
|
+
])
|
|
8166
|
+
])
|
|
8167
|
+
],
|
|
8168
|
+
4
|
|
8169
|
+
/* STYLE */
|
|
8170
|
+
)
|
|
8171
|
+
],
|
|
8172
|
+
4
|
|
8173
|
+
/* STYLE */
|
|
8174
|
+
);
|
|
7727
8175
|
};
|
|
7728
8176
|
}
|
|
7729
8177
|
});
|