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