@tmagic/form 1.5.21 → 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.
@@ -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.Fragment,
3346
- { key: 2 },
3347
- [
3348
- vue.createVNode(vue.unref(design.TMagicFormItem), {
3349
- style: vue.normalizeStyle(_ctx.config.tip ? "flex: 1" : ""),
3350
- class: vue.normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
3351
- prop: itemProp.value,
3352
- "label-width": itemLabelWidth.value,
3353
- "label-position": _ctx.config.labelPosition,
3354
- rules: rule.value
3355
- }, {
3356
- label: vue.withCtx(() => [
3357
- vue.createElementVNode("span", {
3358
- innerHTML: type.value === "checkbox" ? "" : text.value,
3359
- title: _ctx.config.labelTitle
3360
- }, null, 8, _hoisted_2$7)
3361
- ]),
3362
- default: vue.withCtx(() => [
3363
- tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
3364
- content: vue.withCtx(() => [
3365
- vue.createElementVNode("div", { innerHTML: tooltip.value }, null, 8, _hoisted_3$5)
3366
- ]),
3367
- default: vue.withCtx(() => [
3368
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3369
- key: key(_ctx.config),
3370
- size: _ctx.size,
3371
- model: _ctx.model,
3372
- "last-values": _ctx.lastValues,
3373
- config: _ctx.config,
3374
- name: name.value,
3375
- disabled: disabled.value,
3376
- prop: itemProp.value,
3377
- onChange: onChangeHandler,
3378
- onAddDiffCount
3379
- }, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"]))
3380
- ]),
3381
- _: 1
3382
- /* STABLE */
3383
- })) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3384
- key: key(_ctx.config),
3385
- size: _ctx.size,
3386
- model: _ctx.model,
3387
- "last-values": _ctx.lastValues,
3388
- config: _ctx.config,
3389
- name: name.value,
3390
- disabled: disabled.value,
3391
- prop: itemProp.value,
3392
- onChange: onChangeHandler,
3393
- onAddDiffCount
3394
- }, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"])),
3395
- extra.value && type.value !== "table" ? (vue.openBlock(), vue.createElementBlock("div", {
3396
- key: 2,
3397
- innerHTML: extra.value,
3398
- class: "m-form-tip"
3399
- }, null, 8, _hoisted_4$3)) : vue.createCommentVNode("v-if", true)
3400
- ]),
3401
- _: 1
3402
- /* STABLE */
3403
- }, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
3404
- _ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
3405
- key: 0,
3406
- placement: "left"
3407
- }, {
3408
- content: vue.withCtx(() => [
3409
- vue.createElementVNode("div", {
3410
- innerHTML: _ctx.config.tip
3411
- }, null, 8, _hoisted_5$3)
3412
- ]),
3413
- default: vue.withCtx(() => [
3414
- vue.createVNode(vue.unref(design.TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
3415
- default: vue.withCtx(() => [
3416
- vue.createVNode(vue.unref(iconsVue.WarningFilled))
3417
- ]),
3418
- _: 1
3419
- /* STABLE */
3420
- })
3421
- ]),
3422
- _: 1
3423
- /* STABLE */
3424
- })) : vue.createCommentVNode("v-if", true)
3425
- ],
3426
- 64
3427
- /* STABLE_FRAGMENT */
3428
- )) : type.value && display$1.value && showDiff.value ? (vue.openBlock(), vue.createElementBlock(
3429
- vue.Fragment,
3430
- { key: 3 },
3431
- [
3432
- vue.createCommentVNode(" 对比 "),
3433
- vue.createCommentVNode(" 上次内容 "),
3434
- vue.createVNode(vue.unref(design.TMagicFormItem), {
3435
- style: vue.normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#f7dadd" }]),
3436
- class: vue.normalizeClass({ "tmagic-form-hidden": `${itemLabelWidth.value}` === "0" || !text.value }),
3437
- prop: itemProp.value,
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
- "label-width": itemLabelWidth.value,
3513
- "label-position": _ctx.config.labelPosition,
3514
- rules: rule.value
3515
- }, {
3516
- label: vue.withCtx(() => [
3517
- vue.createElementVNode("span", {
3518
- innerHTML: type.value === "checkbox" ? "" : text.value,
3519
- title: _ctx.config.labelTitle
3520
- }, null, 8, _hoisted_10)
3521
- ]),
3522
- default: vue.withCtx(() => [
3523
- tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
3524
- content: vue.withCtx(() => [
3525
- vue.createElementVNode("div", { innerHTML: tooltip.value }, null, 8, _hoisted_11)
3526
- ]),
3527
- default: vue.withCtx(() => [
3528
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3529
- key: key(_ctx.config),
3530
- size: _ctx.size,
3531
- model: _ctx.model,
3532
- config: _ctx.config,
3533
- name: name.value,
3534
- disabled: disabled.value,
3535
- prop: itemProp.value,
3536
- onChange: onChangeHandler
3537
- }, null, 40, ["size", "model", "config", "name", "disabled", "prop"]))
3538
- ]),
3539
- _: 1
3540
- /* STABLE */
3541
- })) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
3542
- key: key(_ctx.config),
3543
- size: _ctx.size,
3544
- model: _ctx.model,
3545
- config: _ctx.config,
3546
- name: name.value,
3547
- disabled: disabled.value,
3548
- prop: itemProp.value,
3549
- onChange: onChangeHandler
3550
- }, null, 40, ["size", "model", "config", "name", "disabled", "prop"])),
3551
- extra.value ? (vue.openBlock(), vue.createElementBlock("div", {
3552
- key: 2,
3553
- innerHTML: extra.value,
3554
- class: "m-form-tip"
3555
- }, null, 8, _hoisted_12)) : vue.createCommentVNode("v-if", true)
3556
- ]),
3557
- _: 1
3558
- /* STABLE */
3559
- }, 8, ["style", "class", "prop", "label-width", "label-position", "rules"]),
3560
- _ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
3561
- key: 1,
3562
- placement: "left"
3563
- }, {
3564
- content: vue.withCtx(() => [
3565
- vue.createElementVNode("div", {
3566
- innerHTML: _ctx.config.tip
3567
- }, null, 8, _hoisted_13)
3568
- ]),
3569
- default: vue.withCtx(() => [
3570
- vue.createVNode(vue.unref(design.TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
3571
- default: vue.withCtx(() => [
3572
- vue.createVNode(vue.unref(iconsVue.WarningFilled))
3573
- ]),
3574
- _: 1
3575
- /* STABLE */
3576
- })
3577
- ]),
3578
- _: 1
3579
- /* STABLE */
3580
- })) : vue.createCommentVNode("v-if", true)
3581
- ],
3582
- 64
3583
- /* STABLE_FRAGMENT */
3584
- )) : items.value && display$1.value ? (vue.openBlock(), vue.createElementBlock(
3585
- vue.Fragment,
3586
- { key: 4 },
3587
- [
3588
- (isValidName() ? _ctx.model[name.value] : _ctx.model) ? (vue.openBlock(true), vue.createElementBlock(
3589
- vue.Fragment,
3590
- { key: 0 },
3591
- vue.renderList(items.value, (item) => {
3592
- return vue.openBlock(), vue.createBlock(_component_Container, {
3593
- key: key(item),
3594
- model: isValidName() ? _ctx.model[name.value] : _ctx.model,
3595
- "last-values": isValidName() ? _ctx.lastValues[name.value] || {} : _ctx.lastValues,
3596
- "is-compare": _ctx.isCompare,
3597
- config: item,
3598
- size: _ctx.size,
3599
- disabled: disabled.value,
3600
- "step-active": _ctx.stepActive,
3601
- "expand-more": expand.value,
3602
- "label-width": itemLabelWidth.value,
3603
- prop: itemProp.value,
3604
- onChange: onChangeHandler,
3605
- onAddDiffCount
3606
- }, null, 8, ["model", "last-values", "is-compare", "config", "size", "disabled", "step-active", "expand-more", "label-width", "prop"]);
3607
- }),
3608
- 128
3609
- /* KEYED_FRAGMENT */
3610
- )) : vue.createCommentVNode("v-if", true)
3611
- ],
3612
- 64
3613
- /* STABLE_FRAGMENT */
3614
- )) : vue.createCommentVNode("v-if", true),
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("v-if", true)
3634
- ], 14, _hoisted_1$e)) : vue.createCommentVNode("v-if", true);
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
- "fieldset",
3693
- {
3694
- key: 0,
3695
- class: "m-fieldset",
3696
- style: vue.normalizeStyle(show.value ? "padding: 15px" : "border: 0")
3697
- },
3698
- [
3699
- name.value && _ctx.config.checkbox ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(!show.value ? "div" : "legend"), { key: 0 }, {
3700
- default: vue.withCtx(() => [
3701
- vue.createVNode(vue.unref(design.TMagicCheckbox), {
3702
- modelValue: _ctx.model[name.value].value,
3703
- "onUpdate:modelValue": [
3704
- _cache[0] || (_cache[0] = ($event) => _ctx.model[name.value].value = $event),
3705
- valueChangeHandler
3706
- ],
3707
- prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${_ctx.config.name}.value`,
3708
- "true-value": 1,
3709
- "false-value": 0
3710
- }, {
3711
- default: vue.withCtx(() => [
3712
- vue.createElementVNode("span", {
3713
- innerHTML: _ctx.config.legend
3714
- }, null, 8, _hoisted_1$d),
3715
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
3716
- key: 0,
3717
- innerHTML: _ctx.config.extra,
3718
- class: "m-form-tip"
3719
- }, null, 8, _hoisted_2$6)) : vue.createCommentVNode("v-if", true)
3720
- ]),
3721
- _: 1
3722
- /* STABLE */
3723
- }, 8, ["modelValue", "prop"])
3724
- ]),
3725
- _: 1
3726
- /* STABLE */
3727
- })) : (vue.openBlock(), vue.createElementBlock("legend", _hoisted_3$4, [
3728
- vue.createElementVNode("span", {
3729
- innerHTML: _ctx.config.legend
3730
- }, null, 8, _hoisted_4$2),
3731
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
3732
- key: 0,
3733
- innerHTML: _ctx.config.extra,
3734
- class: "m-form-tip"
3735
- }, null, 8, _hoisted_5$2)) : vue.createCommentVNode("v-if", true)
3736
- ])),
3737
- _ctx.config.schematic && show.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [
3738
- vue.createElementVNode("div", _hoisted_7, [
3739
- (vue.openBlock(true), vue.createElementBlock(
3740
- vue.Fragment,
3741
- null,
3742
- vue.renderList(_ctx.config.items, (item, index) => {
3743
- return vue.openBlock(), vue.createBlock(_sfc_main$x, {
3744
- key: key(item, index),
3745
- model: name.value ? _ctx.model[name.value] : _ctx.model,
3746
- lastValues: name.value ? _ctx.lastValues[name.value] : _ctx.lastValues,
3747
- "is-compare": _ctx.isCompare,
3748
- rules: name.value ? _ctx.rules[name.value] : [],
3749
- config: item,
3750
- prop: _ctx.prop,
3751
- disabled: _ctx.disabled,
3752
- labelWidth: lWidth.value,
3753
- size: _ctx.size,
3754
- onChange: changeHandler,
3755
- onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
3756
- }, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "disabled", "labelWidth", "size"]);
3757
- }),
3758
- 128
3759
- /* KEYED_FRAGMENT */
3760
- ))
3761
- ]),
3762
- vue.createElementVNode("img", {
3763
- class: "m-form-schematic",
3764
- src: _ctx.config.schematic
3765
- }, null, 8, _hoisted_8)
3766
- ])) : show.value ? (vue.openBlock(true), vue.createElementBlock(
3767
- vue.Fragment,
3768
- { key: 3 },
3769
- vue.renderList(_ctx.config.items, (item, index) => {
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[2] || (_cache[2] = ($event) => onAddDiffCount())
3783
- }, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "labelWidth", "size", "disabled"]);
3784
- }),
3785
- 128
3786
- /* KEYED_FRAGMENT */
3787
- )) : vue.createCommentVNode("v-if", true)
3788
- ],
3789
- 4
3790
- /* STYLE */
3791
- )) : vue.createCommentVNode("v-if", true);
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 expand = vue.ref(props.config.expandAll || !props.index);
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
- /* STABLE */
3924
- }, 8, ["icon", "disabled"])) : vue.createCommentVNode("v-if", true),
3925
- movable.value ? (vue.openBlock(), vue.createElementBlock(
3926
- vue.Fragment,
3927
- { key: 1 },
3928
- [
3929
- vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
3930
- link: "",
3931
- size: "small",
3932
- disabled: _ctx.disabled,
3933
- icon: vue.unref(iconsVue.CaretTop),
3934
- onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
3935
- }, {
3936
- default: vue.withCtx(() => _cache[7] || (_cache[7] = [
3937
- vue.createTextVNode("上移")
3938
- ])),
3939
- _: 1
3940
- /* STABLE */
3941
- }, 8, ["disabled", "icon"]), [
3942
- [vue.vShow, _ctx.index !== 0]
3943
- ]),
3944
- vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
3945
- link: "",
3946
- size: "small",
3947
- disabled: _ctx.disabled,
3948
- icon: vue.unref(iconsVue.CaretBottom),
3949
- onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
3950
- }, {
3951
- default: vue.withCtx(() => _cache[8] || (_cache[8] = [
3952
- vue.createTextVNode("下移")
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
- /* STABLE */
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("v-if", true)
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("v-if", true)
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("v-if", true),
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
- "span",
4158
- { class: "el-table__empty-text" },
4159
- "暂无数据",
4160
- -1
4161
- /* HOISTED */
4162
- )
4163
- ]))) : (vue.openBlock(true), vue.createElementBlock(
4164
- vue.Fragment,
4165
- { key: 2 },
4166
- vue.renderList(_ctx.model[_ctx.name], (item, index) => {
4167
- return vue.openBlock(), vue.createBlock(_sfc_main$v, {
4168
- key: index,
4169
- model: item,
4170
- lastValues: getLastValues(_ctx.lastValues[_ctx.name], index),
4171
- "is-compare": _ctx.isCompare,
4172
- config: _ctx.config,
4173
- prop: _ctx.prop,
4174
- index,
4175
- "label-width": _ctx.labelWidth,
4176
- size: _ctx.size,
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
- /* STABLE */
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
- /* STABLE */
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("v-if", true),
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.Fragment,
4290
- null,
4291
- vue.renderList(items.value, (item, index) => {
4292
- return vue.openBlock(), vue.createBlock(_sfc_main$x, {
4293
- key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
4294
- config: item,
4295
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
4296
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
4297
- "is-compare": _ctx.isCompare,
4298
- prop: _ctx.prop,
4299
- size: _ctx.size,
4300
- disabled: _ctx.disabled,
4301
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
4302
- onChange: changeHandler,
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.Fragment,
4316
- { key: 1 },
4317
- vue.renderList(items.value, (item, index) => {
4318
- return vue.openBlock(), vue.createBlock(_sfc_main$x, {
4319
- key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
4320
- config: item,
4321
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
4322
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
4323
- "is-compare": _ctx.isCompare,
4324
- prop: _ctx.prop,
4325
- size: _ctx.size,
4326
- disabled: _ctx.disabled,
4327
- "label-width": _ctx.config.labelWidth || _ctx.labelWidth,
4328
- onChange: changeHandler,
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
- /* FORWARDED */
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.Fragment,
4426
- null,
4427
- vue.renderList(_ctx.config.items, (col, index) => {
4428
- return vue.openBlock(), vue.createBlock(_sfc_main$s, {
4429
- key: col[vue.unref(mForm)?.keyProp || "__key"] ?? index,
4430
- span: col.span || _ctx.config.span || 24 / _ctx.config.items.length,
4431
- config: col,
4432
- labelWidth: _ctx.config.labelWidth || _ctx.labelWidth,
4433
- expandMore: _ctx.expandMore,
4434
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
4435
- lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
4436
- "is-compare": _ctx.isCompare,
4437
- prop: _ctx.prop,
4438
- size: _ctx.size,
4439
- disabled: _ctx.disabled,
4440
- onChange: changeHandler,
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.Fragment,
4498
- null,
4499
- vue.renderList(_ctx.config.items, (item, index) => {
4500
- return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicStep), {
4501
- key: item.__key,
4502
- title: item.title,
4503
- active: active.value,
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
- null,
4517
- vue.renderList(_ctx.config.items, (step, index) => {
4518
- return vue.openBlock(), vue.createElementBlock(
4519
- vue.Fragment,
4520
- null,
4521
- [
4522
- (vue.openBlock(true), vue.createElementBlock(
4523
- vue.Fragment,
4524
- null,
4525
- vue.renderList(step.items, (item) => {
4526
- return vue.openBlock(), vue.createElementBlock(
4527
- vue.Fragment,
4528
- null,
4529
- [
4530
- item ? vue.withDirectives((vue.openBlock(), vue.createBlock(_sfc_main$x, {
4531
- key: item[vue.unref(mForm)?.keyProp || "__key"],
4532
- config: item,
4533
- model: step.name ? _ctx.model[step.name] : _ctx.model,
4534
- lastValues: step.name ? _ctx.lastValues[step.name] : _ctx.lastValues,
4535
- "is-compare": _ctx.isCompare,
4536
- prop: `${step.name}`,
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
- "div",
4959
- {
4960
- ref_key: "mTable",
4961
- ref: mTable,
4962
- class: vue.normalizeClass(["m-fields-table", { "m-fields-table-item-extra": _ctx.config.itemExtra }])
4963
- },
4964
- [
4965
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
4966
- key: 0,
4967
- style: { "color": "rgba(0, 0, 0, 0.45)" },
4968
- innerHTML: _ctx.config.extra
4969
- }, null, 8, _hoisted_2$2)) : vue.createCommentVNode("v-if", true),
4970
- vue.createVNode(vue.unref(design.TMagicTooltip), {
4971
- content: "拖拽可排序",
4972
- placement: "left-start",
4973
- disabled: _ctx.config.dropSort !== true
4974
- }, {
4975
- default: vue.withCtx(() => [
4976
- _ctx.model[modelName.value] ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTable), {
4977
- ref_key: "tMagicTable",
4978
- ref: tMagicTable,
4979
- style: { "width": "100%" },
4980
- "row-key": _ctx.config.rowKey || "id",
4981
- data: data.value,
4982
- lastData: lastData.value,
4983
- border: _ctx.config.border,
4984
- "max-height": _ctx.config.maxHeight,
4985
- "default-expand-all": true,
4986
- key: updateKey.value,
4987
- onSelect: selectHandle,
4988
- onSortChange: sortChange
4989
- }, {
4990
- default: vue.withCtx(() => [
4991
- _ctx.config.itemExtra && !_ctx.config.dropSort ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
4992
- key: 0,
4993
- fixed: "left",
4994
- width: "30",
4995
- type: "expand"
4996
- }, {
4997
- default: vue.withCtx((scope) => [
4998
- vue.createElementVNode("span", {
4999
- innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
5000
- class: "m-form-tip"
5001
- }, null, 8, _hoisted_3)
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
- _: 1
5004
- /* STABLE */
5005
- })) : vue.createCommentVNode("v-if", true),
5006
- vue.createVNode(vue.unref(design.TMagicTableColumn), {
5007
- label: "操作",
5008
- width: _ctx.config.operateColWidth || 100,
5009
- align: "center",
5010
- fixed: _ctx.config.fixed === false ? void 0 : "left"
5011
- }, {
5012
- default: vue.withCtx((scope) => [
5013
- vue.renderSlot(_ctx.$slots, "operateCol", { scope }),
5014
- vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
5015
- size: "small",
5016
- type: "danger",
5017
- link: "",
5018
- title: "删除",
5019
- icon: vue.unref(iconsVue.Delete),
5020
- onClick: ($event) => removeHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
5021
- }, null, 8, ["icon", "onClick"]), [
5022
- [vue.vShow, showDelete(scope.$index + 1 + pagecontext.value * pagesize.value - 1)]
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
- copyable(scope.$index + 1 + pagecontext.value * pagesize.value - 1) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
5025
- key: 0,
5026
- link: "",
5027
- size: "small",
5028
- type: "primary",
5029
- title: "复制",
5030
- icon: vue.unref(iconsVue.DocumentCopy),
5031
- disabled: _ctx.disabled,
5032
- onClick: ($event) => copyHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
5033
- }, null, 8, ["icon", "disabled", "onClick"])) : vue.createCommentVNode("v-if", true)
5034
- ]),
5035
- _: 3
5036
- /* FORWARDED */
5037
- }, 8, ["width", "fixed"]),
5038
- _ctx.sort && _ctx.model[modelName.value] && _ctx.model[modelName.value].length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
5039
- key: 1,
5040
- label: "排序",
5041
- width: "60"
5042
- }, {
5043
- default: vue.withCtx((scope) => [
5044
- scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== 0 ? (vue.openBlock(), vue.createBlock(
5045
- vue.unref(design.TMagicTooltip),
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
- content: "点击上移,双击置顶",
5049
- placement: "top"
5050
- },
5051
- {
5052
- default: vue.withCtx(() => [
5053
- vue.createVNode(vue.unref(design.TMagicButton), {
5054
- plain: "",
5055
- size: "small",
5056
- type: "primary",
5057
- icon: vue.unref(iconsVue.ArrowUp),
5058
- disabled: _ctx.disabled,
5059
- link: "",
5060
- onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
5061
- onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
5062
- }, null, 8, ["icon", "disabled", "onClick", "onDblclick"])
5063
- ]),
5064
- _: 2
5065
- /* DYNAMIC */
5066
- },
5067
- 1024
5068
- /* DYNAMIC_SLOTS */
5069
- )) : vue.createCommentVNode("v-if", true),
5070
- scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (vue.openBlock(), vue.createBlock(
5071
- vue.unref(design.TMagicTooltip),
5072
- {
5073
- key: 1,
5074
- content: "点击下移,双击置底",
5075
- placement: "top"
5076
- },
5077
- {
5078
- default: vue.withCtx(() => [
5079
- vue.createVNode(vue.unref(design.TMagicButton), {
5080
- plain: "",
5081
- size: "small",
5082
- type: "primary",
5083
- icon: vue.unref(iconsVue.ArrowDown),
5084
- disabled: _ctx.disabled,
5085
- link: "",
5086
- onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
5087
- onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
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: "primary",
5050
+ type: "warning",
5180
5051
  disabled: _ctx.disabled,
5181
5052
  plain: "",
5182
- onClick: _cache[1] || (_cache[1] = ($event) => newHandler())
5053
+ onClick: _cache[2] || (_cache[2] = ($event) => clearHandler())
5183
5054
  }, {
5184
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
5185
- vue.createTextVNode("新增一行")
5055
+ default: vue.withCtx(() => _cache[6] || (_cache[6] = [
5056
+ vue.createTextVNode("清空")
5186
5057
  ])),
5187
5058
  _: 1
5188
- /* STABLE */
5189
- }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true),
5190
- vue.createElementVNode("div", _hoisted_5, [
5191
- _ctx.enableToggleMode && _ctx.config.enableToggleMode !== false && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
5192
- key: 0,
5193
- icon: vue.unref(iconsVue.Grid),
5194
- size: "small",
5195
- type: "primary",
5196
- onClick: toggleMode
5197
- }, {
5198
- default: vue.withCtx(() => _cache[4] || (_cache[4] = [
5199
- vue.createTextVNode("展开配置")
5200
- ])),
5201
- _: 1
5202
- /* STABLE */
5203
- }, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
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.Fragment,
5426
- null,
5427
- vue.renderList(tabs.value, (tab, tabIndex) => {
5428
- return vue.openBlock(), vue.createBlock(
5429
- vue.resolveDynamicComponent(vue.unref(tabPaneComponent)?.component || "el-tab-pane"),
5430
- vue.mergeProps(
5431
- {
5432
- key: tab[vue.unref(mForm)?.keyProp || "__key"] ?? tabIndex,
5433
- ref_for: true
5434
- },
5435
- vue.unref(tabPaneComponent)?.props({ name: filter(tab.status) || tabIndex.toString(), lazy: tab.lazy || false }) || {}
5436
- ),
5437
- {
5438
- label: vue.withCtx(() => [
5439
- vue.createElementVNode("span", null, [
5440
- vue.createTextVNode(
5441
- vue.toDisplayString(filter(tab.title)),
5442
- 1
5443
- /* TEXT */
5444
- ),
5445
- vue.createVNode(vue.unref(design.TMagicBadge), {
5446
- hidden: !diffCount.value[tabIndex],
5447
- value: diffCount.value[tabIndex],
5448
- class: "diff-count-badge"
5449
- }, null, 8, ["hidden", "value"])
5450
- ])
5451
- ]),
5452
- default: vue.withCtx(() => [
5453
- (vue.openBlock(true), vue.createElementBlock(
5454
- vue.Fragment,
5455
- null,
5456
- vue.renderList(tabItems(tab), (item) => {
5457
- return vue.openBlock(), vue.createBlock(_sfc_main$x, {
5458
- key: item[vue.unref(mForm)?.keyProp || "__key"],
5459
- config: item,
5460
- disabled: _ctx.disabled,
5461
- 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,
5462
- "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,
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.Fragment,
5753
- null,
5754
- vue.renderList(options.value, (option) => {
5755
- return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCheckbox), {
5756
- value: option.value,
5757
- key: option.value,
5758
- disabled: option.disabled
5759
- }, {
5760
- default: vue.withCtx(() => [
5761
- vue.createTextVNode(
5762
- vue.toDisplayString(option.text),
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.Fragment,
6119
- null,
6120
- vue.renderList(Object.keys(fieldMap.value), (key) => {
6121
- return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicFormItem), {
6122
- key,
6123
- label: fieldLabelMap.value[key]
6124
- }, {
6125
- default: vue.withCtx(() => [
6126
- vue.createVNode(vue.unref(design.TMagicInput), {
6127
- modelValue: fieldMap.value[key],
6128
- "onUpdate:modelValue": ($event) => fieldMap.value[key] = $event,
6129
- placeholder: fieldLabelMap.value[key],
6130
- onChange: ($event) => inputChangeHandler(key)
6131
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])
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
- "input",
6171
- {
6172
- key: 0,
6173
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
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("v-if", true);
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.Fragment,
6343
- { key: 0 },
6344
- vue.renderList(_ctx.config, (item, index) => {
6345
- return vue.openBlock(), vue.createBlock(_sfc_main$x, {
6346
- disabled: _ctx.disabled,
6347
- key: item[_ctx.keyProp] ?? index,
6348
- config: item,
6349
- model: values.value,
6350
- "last-values": lastValuesProcessed.value,
6351
- "is-compare": _ctx.isCompare,
6352
- "label-width": item.labelWidth || _ctx.labelWidth,
6353
- "step-active": _ctx.stepActive,
6354
- size: _ctx.size,
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
- /* STABLE */
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
- "div",
6553
- {
6554
- key: 0,
6555
- class: "m-dialog-body",
6556
- style: vue.normalizeStyle(`max-height: ${bodyHeight.value}; overflow-y: auto; overflow-x: hidden;`)
6557
- },
6558
- [
6559
- vue.createVNode(_sfc_main$d, {
6560
- modelValue: stepActive.value,
6561
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => stepActive.value = $event),
6562
- ref_key: "form",
6563
- ref: form,
6564
- size: _ctx.size,
6565
- disabled: _ctx.disabled,
6566
- config: _ctx.config,
6567
- "init-values": _ctx.values,
6568
- "parent-values": _ctx.parentValues,
6569
- "label-width": _ctx.labelWidth,
6570
- "label-position": _ctx.labelPosition,
6571
- inline: _ctx.inline,
6572
- "prevent-submit-default": _ctx.preventSubmitDefault,
6573
- onChange: changeHandler
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
- "span",
6664
- {
6665
- key: 1,
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("v-if", true);
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.Fragment,
6850
- null,
6851
- vue.renderList(_ctx.config.options, (option) => {
6852
- return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(itemComponent.value), {
6853
- value: option.value,
6854
- key: `${option.value}`,
6855
- onClick: vue.withModifiers(($event) => clickHandler(option.value), ["prevent"])
6856
- }, {
6857
- default: vue.withCtx(() => [
6858
- option.tooltip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
6859
- key: 0,
6860
- placement: "top-start",
6861
- content: option.tooltip
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
- /* DYNAMIC */
6905
- },
6906
- 1024
6907
- /* DYNAMIC_SLOTS */
6908
- )) : vue.createCommentVNode("v-if", true),
6909
- vue.createElementVNode(
6910
- "span",
6911
- null,
6912
- vue.toDisplayString(option.text),
6913
- 1
6914
- /* TEXT */
6915
- )
6916
- ]))
6917
- ]),
6918
- _: 2
6919
- /* DYNAMIC */
6920
- }, 1032, ["value", "onClick"]);
6921
- }),
6922
- 128
6923
- /* KEYED_FRAGMENT */
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
- /* STABLE */
6928
- }, 8, ["modelValue", "size", "disabled"])) : vue.createCommentVNode("v-if", true);
6589
+ }, 8, ["modelValue", "size", "disabled"])) : vue.createCommentVNode("", true);
6929
6590
  };
6930
6591
  }
6931
6592
  });
@@ -7278,111 +6939,67 @@
7278
6939
  onVisibleChange: visibleHandler
7279
6940
  }, {
7280
6941
  default: vue.withCtx(() => [
7281
- _ctx.config.group ? (vue.openBlock(true), vue.createElementBlock(
7282
- vue.Fragment,
7283
- { key: 0 },
7284
- vue.renderList(options.value, (group, index) => {
7285
- return vue.openBlock(), vue.createBlock(
7286
- vue.resolveDynamicComponent(vue.unref(optionGroupComponent)?.component || "el-option-group"),
7287
- vue.mergeProps(
7288
- {
7289
- key: index,
7290
- ref_for: true
7291
- },
7292
- vue.unref(optionGroupComponent)?.props({
7293
- label: group.label,
7294
- disabled: group.disabled
7295
- }) || {
7296
- label: group.label,
7297
- disabled: group.disabled
7298
- }
7299
- ),
7300
- {
7301
- default: vue.withCtx(() => [
7302
- (vue.openBlock(true), vue.createElementBlock(
7303
- vue.Fragment,
7304
- null,
7305
- vue.renderList(group.options, (item, index2) => {
7306
- return vue.openBlock(), vue.createBlock(
7307
- vue.resolveDynamicComponent(vue.unref(optionComponent)?.component || "el-option"),
7308
- vue.mergeProps(
7309
- {
7310
- key: index2,
7311
- ref_for: true
7312
- },
7313
- vue.unref(optionComponent)?.props({
7314
- label: item.label || item.text,
7315
- value: item.value,
7316
- disabled: item.disabled
7317
- }) || {
7318
- label: item.label || item.text,
7319
- value: item.value,
7320
- disabled: item.disabled
7321
- }
7322
- ),
7323
- null,
7324
- 16
7325
- /* FULL_PROPS */
7326
- );
7327
- }),
7328
- 128
7329
- /* KEYED_FRAGMENT */
7330
- ))
7331
- ]),
7332
- _: 2
7333
- /* DYNAMIC */
7334
- },
7335
- 1040
7336
- /* FULL_PROPS, DYNAMIC_SLOTS */
7337
- );
7338
- }),
7339
- 128
7340
- /* KEYED_FRAGMENT */
7341
- )) : (vue.openBlock(true), vue.createElementBlock(
7342
- vue.Fragment,
7343
- { key: 1 },
7344
- vue.renderList(options.value, (option) => {
7345
- return vue.openBlock(), vue.createBlock(
7346
- vue.resolveDynamicComponent(vue.unref(optionComponent)?.component || "el-option"),
7347
- vue.mergeProps(
7348
- {
7349
- class: "tmagic-design-option",
7350
- key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value,
7351
- ref_for: true
7352
- },
7353
- vue.unref(optionComponent)?.props({
7354
- label: option.text,
7355
- value: option.value,
7356
- disabled: option.disabled
7357
- }) || {
7358
- label: option.text,
7359
- value: option.value,
7360
- disabled: option.disabled
7361
- }
7362
- ),
7363
- null,
7364
- 16
7365
- /* FULL_PROPS */
7366
- );
7367
- }),
7368
- 128
7369
- /* KEYED_FRAGMENT */
7370
- )),
7371
- moreLoadingVisible.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock(
7372
- "div",
7373
- _hoisted_1$2,
7374
- null,
7375
- 512
7376
- /* NEED_PATCH */
7377
- )), [
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)), [
7378
6996
  [_directive_loading, true]
7379
- ]) : vue.createCommentVNode("v-if", true)
6997
+ ]) : vue.createCommentVNode("", true)
7380
6998
  ]),
7381
6999
  _: 1
7382
- /* STABLE */
7383
7000
  }, 8, ["modelValue", "clearable", "filterable", "popper-class", "size", "remote", "placeholder", "multiple", "value-key", "allow-create", "disabled", "remote-method"])), [
7384
7001
  [_directive_loading, loading.value]
7385
- ]) : vue.createCommentVNode("v-if", true);
7002
+ ]) : vue.createCommentVNode("", true);
7386
7003
  };
7387
7004
  }
7388
7005
  });
@@ -7599,10 +7216,7 @@
7599
7216
  onChange: changeHandler,
7600
7217
  onInput: inputHandler,
7601
7218
  onKeyup: _cache[1] || (_cache[1] = ($event) => keyUpHandler($event))
7602
- }, vue.createSlots({
7603
- _: 2
7604
- /* DYNAMIC */
7605
- }, [
7219
+ }, vue.createSlots({ _: 2 }, [
7606
7220
  appendConfig.value ? {
7607
7221
  name: "append",
7608
7222
  fn: vue.withCtx(() => [
@@ -7613,74 +7227,49 @@
7613
7227
  onClick: vue.withModifiers(buttonClickHandler, ["prevent"])
7614
7228
  }, {
7615
7229
  default: vue.withCtx(() => [
7616
- vue.createTextVNode(
7617
- vue.toDisplayString(appendConfig.value.text),
7618
- 1
7619
- /* TEXT */
7620
- )
7230
+ vue.createTextVNode(vue.toDisplayString(appendConfig.value.text), 1)
7621
7231
  ]),
7622
7232
  _: 1
7623
- /* STABLE */
7624
- }, 8, ["size"])) : vue.createCommentVNode("v-if", true)
7233
+ }, 8, ["size"])) : vue.createCommentVNode("", true)
7625
7234
  ]),
7626
7235
  key: "0"
7627
7236
  } : void 0
7628
7237
  ]), 1032, ["modelValue", "size", "placeholder", "disabled"]),
7629
7238
  (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
7630
- popoverVisible.value ? (vue.openBlock(), vue.createElementBlock(
7631
- "div",
7632
- {
7633
- key: 0,
7634
- class: "tmagic-form-text-popper m-form-item__content",
7635
- ref_key: "popoverEl",
7636
- ref: popoverEl
7637
- },
7638
- [
7639
- _cache[5] || (_cache[5] = vue.createElementVNode(
7640
- "div",
7641
- { class: "m-form-validate__warning" },
7642
- "输入内容前后有空格,是否移除空格?",
7643
- -1
7644
- /* HOISTED */
7645
- )),
7646
- vue.createElementVNode("div", _hoisted_2, [
7647
- vue.createVNode(vue.unref(design.TMagicButton), {
7648
- link: "",
7649
- size: "small",
7650
- onClick: _cache[2] || (_cache[2] = ($event) => popoverVisible.value = false)
7651
- }, {
7652
- default: vue.withCtx(() => _cache[3] || (_cache[3] = [
7653
- vue.createTextVNode("保持原样")
7654
- ])),
7655
- _: 1
7656
- /* STABLE */
7657
- }),
7658
- vue.createVNode(vue.unref(design.TMagicButton), {
7659
- type: "primary",
7660
- size: "small",
7661
- onClick: confirmTrimHandler
7662
- }, {
7663
- default: vue.withCtx(() => _cache[4] || (_cache[4] = [
7664
- vue.createTextVNode("移除空格")
7665
- ])),
7666
- _: 1
7667
- /* STABLE */
7668
- })
7669
- ]),
7670
- _cache[6] || (_cache[6] = vue.createElementVNode(
7671
- "span",
7672
- {
7673
- class: "tmagic-form-text-popper-arrow",
7674
- "data-popper-arrow": ""
7675
- },
7676
- null,
7677
- -1
7678
- /* HOISTED */
7679
- ))
7680
- ],
7681
- 512
7682
- /* NEED_PATCH */
7683
- )) : 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)
7684
7273
  ]))
7685
7274
  ]);
7686
7275
  };
@@ -7957,7 +7546,6 @@
7957
7546
  ])
7958
7547
  ]),
7959
7548
  _: 3
7960
- /* FORWARDED */
7961
7549
  }),
7962
7550
  vue.createVNode(vue.unref(design.TMagicCol), { span: 12 }, {
7963
7551
  default: vue.withCtx(() => [
@@ -7967,7 +7555,6 @@
7967
7555
  vue.createTextVNode("关闭")
7968
7556
  ])),
7969
7557
  _: 1
7970
- /* STABLE */
7971
7558
  }),
7972
7559
  vue.createVNode(vue.unref(design.TMagicButton), {
7973
7560
  type: "primary",
@@ -7976,57 +7563,43 @@
7976
7563
  onClick: submitHandler
7977
7564
  }, {
7978
7565
  default: vue.withCtx(() => [
7979
- vue.createTextVNode(
7980
- vue.toDisplayString(_ctx.confirmText),
7981
- 1
7982
- /* TEXT */
7983
- )
7566
+ vue.createTextVNode(vue.toDisplayString(_ctx.confirmText), 1)
7984
7567
  ]),
7985
7568
  _: 1
7986
- /* STABLE */
7987
7569
  }, 8, ["disabled", "loading"])
7988
7570
  ])
7989
7571
  ]),
7990
7572
  _: 3
7991
- /* FORWARDED */
7992
7573
  })
7993
7574
  ]),
7994
7575
  _: 3
7995
- /* FORWARDED */
7996
7576
  })
7997
7577
  ]),
7998
7578
  default: vue.withCtx(() => [
7999
- visible.value ? (vue.openBlock(), vue.createElementBlock(
8000
- "div",
8001
- {
8002
- key: 0,
8003
- ref_key: "drawerBody",
8004
- ref: drawerBody,
8005
- class: "m-drawer-body"
8006
- },
8007
- [
8008
- vue.createVNode(_sfc_main$d, {
8009
- ref_key: "form",
8010
- ref: form,
8011
- size: _ctx.size,
8012
- disabled: _ctx.disabled,
8013
- config: _ctx.config,
8014
- "init-values": _ctx.values,
8015
- "parent-values": _ctx.parentValues,
8016
- "label-width": _ctx.labelWidth,
8017
- "label-position": _ctx.labelPosition,
8018
- inline: _ctx.inline,
8019
- "prevent-submit-default": _ctx.preventSubmitDefault,
8020
- onChange: changeHandler
8021
- }, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
8022
- vue.renderSlot(_ctx.$slots, "default")
8023
- ],
8024
- 512
8025
- /* NEED_PATCH */
8026
- )) : 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)
8027
7601
  ]),
8028
7602
  _: 3
8029
- /* FORWARDED */
8030
7603
  }, 8, ["modelValue", "title", "close-on-press-escape", "size", "zIndex", "before-close"]);
8031
7604
  };
8032
7605
  }
@@ -8097,84 +7670,60 @@
8097
7670
  hide
8098
7671
  });
8099
7672
  return (_ctx, _cache) => {
8100
- return vue.openBlock(), vue.createElementBlock(
8101
- "div",
8102
- {
8103
- class: "m-form-box",
8104
- style: vue.normalizeStyle(style.value)
8105
- },
8106
- [
8107
- vue.createElementVNode(
8108
- "div",
8109
- {
8110
- class: "m-box-body",
8111
- style: vue.normalizeStyle(bodyHeight.value ? { height: `${bodyHeight.value}px` } : {})
8112
- },
8113
- [
8114
- vue.createVNode(vue.unref(design.TMagicScrollbar), null, {
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
+ }, {
8115
7718
  default: vue.withCtx(() => [
8116
- vue.createVNode(_sfc_main$d, {
8117
- ref_key: "form",
8118
- ref: form,
8119
- size: _ctx.size,
8120
- disabled: _ctx.disabled,
8121
- config: _ctx.config,
8122
- "init-values": _ctx.values,
8123
- "parent-values": _ctx.parentValues,
8124
- "label-width": _ctx.labelWidth,
8125
- "label-position": _ctx.labelPosition,
8126
- inline: _ctx.inline,
8127
- "prevent-submit-default": _ctx.preventSubmitDefault,
8128
- onChange: changeHandler
8129
- }, null, 8, ["size", "disabled", "config", "init-values", "parent-values", "label-width", "label-position", "inline", "prevent-submit-default"]),
8130
- vue.renderSlot(_ctx.$slots, "default")
7719
+ vue.createTextVNode(vue.toDisplayString(_ctx.confirmText), 1)
8131
7720
  ]),
8132
- _: 3
8133
- /* FORWARDED */
8134
- })
8135
- ],
8136
- 4
8137
- /* STYLE */
8138
- ),
8139
- vue.createElementVNode(
8140
- "div",
8141
- {
8142
- class: "dialog-footer",
8143
- style: vue.normalizeStyle(`height: ${footerHeight}px`)
8144
- },
8145
- [
8146
- vue.createElementVNode("div", null, [
8147
- vue.renderSlot(_ctx.$slots, "left")
8148
- ]),
8149
- vue.createElementVNode("div", null, [
8150
- vue.renderSlot(_ctx.$slots, "footer", {}, () => [
8151
- vue.createVNode(vue.unref(design.TMagicButton), {
8152
- type: "primary",
8153
- size: _ctx.size,
8154
- disabled: _ctx.disabled,
8155
- loading: saveFetch.value,
8156
- onClick: submitHandler
8157
- }, {
8158
- default: vue.withCtx(() => [
8159
- vue.createTextVNode(
8160
- vue.toDisplayString(_ctx.confirmText),
8161
- 1
8162
- /* TEXT */
8163
- )
8164
- ]),
8165
- _: 1
8166
- /* STABLE */
8167
- }, 8, ["size", "disabled", "loading"])
8168
- ])
8169
- ])
8170
- ],
8171
- 4
8172
- /* STYLE */
8173
- )
8174
- ],
8175
- 4
8176
- /* STYLE */
8177
- );
7721
+ _: 1
7722
+ }, 8, ["size", "disabled", "loading"])
7723
+ ])
7724
+ ])
7725
+ ], 4)
7726
+ ], 4);
8178
7727
  };
8179
7728
  }
8180
7729
  });