@tmagic/form 1.3.0-alpha.2 → 1.3.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tmagic-form.js +889 -903
- package/dist/tmagic-form.js.map +1 -1
- package/dist/tmagic-form.umd.cjs +887 -901
- package/dist/tmagic-form.umd.cjs.map +1 -1
- package/package.json +10 -11
- package/src/Form.vue +5 -1
- package/src/FormDialog.vue +5 -1
- package/src/containers/Col.vue +5 -1
- package/src/containers/Container.vue +5 -1
- package/src/containers/Fieldset.vue +5 -1
- package/src/containers/GroupList.vue +5 -1
- package/src/containers/GroupListItem.vue +5 -1
- package/src/containers/Panel.vue +5 -1
- package/src/containers/Row.vue +5 -1
- package/src/containers/Step.vue +5 -1
- package/src/containers/Table.vue +5 -1
- package/src/containers/Tabs.vue +14 -8
- package/src/fields/Cascader.vue +5 -1
- package/src/fields/Checkbox.vue +5 -1
- package/src/fields/CheckboxGroup.vue +6 -2
- package/src/fields/ColorPicker.vue +5 -1
- package/src/fields/Date.vue +5 -1
- package/src/fields/DateTime.vue +5 -1
- package/src/fields/Daterange.vue +5 -1
- package/src/fields/Display.vue +5 -1
- package/src/fields/DynamicField.vue +5 -1
- package/src/fields/Hidden.vue +5 -1
- package/src/fields/Link.vue +5 -1
- package/src/fields/Number.vue +5 -1
- package/src/fields/RadioGroup.vue +5 -1
- package/src/fields/Select.vue +9 -9
- package/src/fields/SelectOptionGroups.vue +7 -3
- package/src/fields/SelectOptions.vue +5 -1
- package/src/fields/Switch.vue +5 -1
- package/src/fields/Text.vue +5 -1
- package/src/fields/Textarea.vue +5 -1
- package/src/fields/Time.vue +5 -1
- package/src/index.ts +39 -37
- package/types/Form.vue.d.ts +7 -4
- package/types/FormDialog.vue.d.ts +76 -121
- package/types/containers/Col.vue.d.ts +1 -1
- package/types/containers/Container.vue.d.ts +6 -3
- package/types/containers/Fieldset.vue.d.ts +6 -3
- package/types/containers/GroupList.vue.d.ts +1 -1
- package/types/containers/GroupListItem.vue.d.ts +1 -1
- package/types/containers/Panel.vue.d.ts +3 -3
- package/types/containers/Row.vue.d.ts +1 -1
- package/types/containers/Step.vue.d.ts +6 -3
- package/types/containers/Table.vue.d.ts +9 -6
- package/types/containers/Tabs.vue.d.ts +6 -3
- package/types/fields/Cascader.vue.d.ts +1 -1
- package/types/fields/Checkbox.vue.d.ts +1 -1
- package/types/fields/CheckboxGroup.vue.d.ts +1 -1
- package/types/fields/ColorPicker.vue.d.ts +1 -1
- package/types/fields/Date.vue.d.ts +1 -1
- package/types/fields/DateTime.vue.d.ts +1 -1
- package/types/fields/Daterange.vue.d.ts +1 -1
- package/types/fields/Display.vue.d.ts +2 -2
- package/types/fields/DynamicField.vue.d.ts +1 -10
- package/types/fields/Hidden.vue.d.ts +2 -2
- package/types/fields/Link.vue.d.ts +1 -1
- package/types/fields/Number.vue.d.ts +1 -1
- package/types/fields/RadioGroup.vue.d.ts +1 -1
- package/types/fields/Select.vue.d.ts +1 -1
- package/types/fields/SelectOptionGroups.vue.d.ts +2 -2
- package/types/fields/SelectOptions.vue.d.ts +2 -2
- package/types/fields/Switch.vue.d.ts +1 -1
- package/types/fields/Text.vue.d.ts +1 -1
- package/types/fields/Textarea.vue.d.ts +1 -1
- package/types/fields/Time.vue.d.ts +1 -1
- package/types/index.d.ts +4 -1
package/dist/tmagic-form.umd.cjs
CHANGED
|
@@ -165,35 +165,35 @@
|
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
const _hoisted_1$b = ["innerHTML"];
|
|
168
|
-
const _hoisted_2$
|
|
169
|
-
const _hoisted_3$
|
|
170
|
-
const _hoisted_4$
|
|
171
|
-
const _hoisted_5$
|
|
172
|
-
const _hoisted_6$
|
|
173
|
-
const _hoisted_7$
|
|
174
|
-
const _hoisted_8$
|
|
175
|
-
const _hoisted_9
|
|
176
|
-
const _hoisted_10
|
|
168
|
+
const _hoisted_2$6 = ["innerHTML"];
|
|
169
|
+
const _hoisted_3$4 = ["innerHTML"];
|
|
170
|
+
const _hoisted_4$4 = ["innerHTML"];
|
|
171
|
+
const _hoisted_5$3 = ["innerHTML"];
|
|
172
|
+
const _hoisted_6$1 = ["innerHTML"];
|
|
173
|
+
const _hoisted_7$1 = ["innerHTML"];
|
|
174
|
+
const _hoisted_8$1 = ["innerHTML"];
|
|
175
|
+
const _hoisted_9 = ["innerHTML"];
|
|
176
|
+
const _hoisted_10 = ["innerHTML"];
|
|
177
177
|
const _hoisted_11 = ["innerHTML"];
|
|
178
178
|
const _hoisted_12 = ["innerHTML"];
|
|
179
179
|
const _hoisted_13 = {
|
|
180
180
|
key: 5,
|
|
181
181
|
style: { "text-align": "center" }
|
|
182
182
|
};
|
|
183
|
-
const __default__$v = vue.defineComponent({
|
|
184
|
-
name: "MFormContainer"
|
|
185
|
-
});
|
|
186
183
|
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
187
|
-
...
|
|
184
|
+
...{
|
|
185
|
+
name: "MFormContainer"
|
|
186
|
+
},
|
|
187
|
+
__name: "Container",
|
|
188
188
|
props: {
|
|
189
|
-
model:
|
|
189
|
+
model: {},
|
|
190
190
|
lastValues: { default: () => ({}) },
|
|
191
|
-
config:
|
|
191
|
+
config: {},
|
|
192
192
|
prop: { default: "" },
|
|
193
193
|
disabled: { type: Boolean },
|
|
194
|
-
labelWidth:
|
|
194
|
+
labelWidth: {},
|
|
195
195
|
expandMore: { type: Boolean, default: false },
|
|
196
|
-
stepActive:
|
|
196
|
+
stepActive: {},
|
|
197
197
|
size: { default: "small" },
|
|
198
198
|
isCompare: { type: Boolean, default: false }
|
|
199
199
|
},
|
|
@@ -325,94 +325,94 @@
|
|
|
325
325
|
return (_ctx, _cache) => {
|
|
326
326
|
const _component_m_fields_hidden = vue.resolveComponent("m-fields-hidden");
|
|
327
327
|
const _component_Container = vue.resolveComponent("Container", true);
|
|
328
|
-
return
|
|
328
|
+
return _ctx.config ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
329
329
|
key: 0,
|
|
330
|
-
style: vue.normalizeStyle(
|
|
331
|
-
class: vue.normalizeClass([
|
|
330
|
+
style: vue.normalizeStyle(_ctx.config.tip ? "display: flex;align-items: baseline;" : ""),
|
|
331
|
+
class: vue.normalizeClass([_ctx.config.className, "m-form-container"])
|
|
332
332
|
}, [
|
|
333
|
-
|
|
333
|
+
type.value === "hidden" ? (vue.openBlock(), vue.createBlock(_component_m_fields_hidden, {
|
|
334
334
|
key: 0,
|
|
335
|
-
model:
|
|
336
|
-
config:
|
|
337
|
-
name:
|
|
338
|
-
disabled:
|
|
339
|
-
prop:
|
|
340
|
-
}, null, 8, ["model", "config", "name", "disabled", "prop"])) :
|
|
341
|
-
key: key(
|
|
342
|
-
size:
|
|
343
|
-
model:
|
|
344
|
-
"last-values":
|
|
345
|
-
"is-compare":
|
|
346
|
-
config:
|
|
347
|
-
disabled:
|
|
348
|
-
name:
|
|
349
|
-
prop:
|
|
350
|
-
"step-active":
|
|
335
|
+
model: _ctx.model,
|
|
336
|
+
config: _ctx.config,
|
|
337
|
+
name: _ctx.config.name,
|
|
338
|
+
disabled: disabled.value,
|
|
339
|
+
prop: itemProp.value
|
|
340
|
+
}, null, 8, ["model", "config", "name", "disabled", "prop"])) : items.value && !_ctx.config.text && type.value && display$1.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
341
|
+
key: key(_ctx.config),
|
|
342
|
+
size: _ctx.size,
|
|
343
|
+
model: _ctx.model,
|
|
344
|
+
"last-values": _ctx.lastValues,
|
|
345
|
+
"is-compare": _ctx.isCompare,
|
|
346
|
+
config: _ctx.config,
|
|
347
|
+
disabled: disabled.value,
|
|
348
|
+
name: name.value,
|
|
349
|
+
prop: itemProp.value,
|
|
350
|
+
"step-active": _ctx.stepActive,
|
|
351
351
|
"expand-more": expand.value,
|
|
352
|
-
"label-width":
|
|
352
|
+
"label-width": itemLabelWidth.value,
|
|
353
353
|
onChange: onChangeHandler,
|
|
354
354
|
onAddDiffCount
|
|
355
|
-
}, null, 40, ["size", "model", "last-values", "is-compare", "config", "disabled", "name", "prop", "step-active", "expand-more", "label-width"])) :
|
|
355
|
+
}, 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 }, [
|
|
356
356
|
vue.createVNode(vue.unref(design.TMagicFormItem), {
|
|
357
|
-
style: vue.normalizeStyle(
|
|
358
|
-
class: vue.normalizeClass({ hidden: `${
|
|
359
|
-
prop:
|
|
360
|
-
"label-width":
|
|
361
|
-
rules:
|
|
357
|
+
style: vue.normalizeStyle(_ctx.config.tip ? "flex: 1" : ""),
|
|
358
|
+
class: vue.normalizeClass({ hidden: `${itemLabelWidth.value}` === "0" || !_ctx.config.text }),
|
|
359
|
+
prop: itemProp.value,
|
|
360
|
+
"label-width": itemLabelWidth.value,
|
|
361
|
+
rules: rule.value
|
|
362
362
|
}, {
|
|
363
363
|
label: vue.withCtx(() => [
|
|
364
364
|
vue.createElementVNode("span", {
|
|
365
|
-
innerHTML:
|
|
365
|
+
innerHTML: type.value === "checkbox" ? "" : _ctx.config.text
|
|
366
366
|
}, null, 8, _hoisted_1$b)
|
|
367
367
|
]),
|
|
368
368
|
default: vue.withCtx(() => [
|
|
369
|
-
|
|
369
|
+
tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
|
|
370
370
|
content: vue.withCtx(() => [
|
|
371
|
-
vue.createElementVNode("div", { innerHTML:
|
|
371
|
+
vue.createElementVNode("div", { innerHTML: tooltip.value }, null, 8, _hoisted_2$6)
|
|
372
372
|
]),
|
|
373
373
|
default: vue.withCtx(() => [
|
|
374
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
375
|
-
key: key(
|
|
376
|
-
size:
|
|
377
|
-
model:
|
|
378
|
-
"last-values":
|
|
379
|
-
config:
|
|
380
|
-
name:
|
|
381
|
-
disabled:
|
|
382
|
-
prop:
|
|
374
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
375
|
+
key: key(_ctx.config),
|
|
376
|
+
size: _ctx.size,
|
|
377
|
+
model: _ctx.model,
|
|
378
|
+
"last-values": _ctx.lastValues,
|
|
379
|
+
config: _ctx.config,
|
|
380
|
+
name: name.value,
|
|
381
|
+
disabled: disabled.value,
|
|
382
|
+
prop: itemProp.value,
|
|
383
383
|
onChange: onChangeHandler,
|
|
384
384
|
onAddDiffCount
|
|
385
385
|
}, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"]))
|
|
386
386
|
]),
|
|
387
387
|
_: 1
|
|
388
|
-
})) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
389
|
-
key: key(
|
|
390
|
-
size:
|
|
391
|
-
model:
|
|
392
|
-
"last-values":
|
|
393
|
-
config:
|
|
394
|
-
name:
|
|
395
|
-
disabled:
|
|
396
|
-
prop:
|
|
388
|
+
})) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
389
|
+
key: key(_ctx.config),
|
|
390
|
+
size: _ctx.size,
|
|
391
|
+
model: _ctx.model,
|
|
392
|
+
"last-values": _ctx.lastValues,
|
|
393
|
+
config: _ctx.config,
|
|
394
|
+
name: name.value,
|
|
395
|
+
disabled: disabled.value,
|
|
396
|
+
prop: itemProp.value,
|
|
397
397
|
onChange: onChangeHandler,
|
|
398
398
|
onAddDiffCount
|
|
399
399
|
}, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"])),
|
|
400
|
-
|
|
400
|
+
extra.value && type.value !== "table" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
401
401
|
key: 2,
|
|
402
|
-
innerHTML:
|
|
402
|
+
innerHTML: extra.value,
|
|
403
403
|
class: "m-form-tip"
|
|
404
|
-
}, null, 8, _hoisted_3$
|
|
404
|
+
}, null, 8, _hoisted_3$4)) : vue.createCommentVNode("", true)
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
407
|
}, 8, ["style", "class", "prop", "label-width", "rules"]),
|
|
408
|
-
|
|
408
|
+
_ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
409
409
|
key: 0,
|
|
410
410
|
placement: "left"
|
|
411
411
|
}, {
|
|
412
412
|
content: vue.withCtx(() => [
|
|
413
413
|
vue.createElementVNode("div", {
|
|
414
|
-
innerHTML:
|
|
415
|
-
}, null, 8, _hoisted_4$
|
|
414
|
+
innerHTML: _ctx.config.tip
|
|
415
|
+
}, null, 8, _hoisted_4$4)
|
|
416
416
|
]),
|
|
417
417
|
default: vue.withCtx(() => [
|
|
418
418
|
vue.createVNode(vue.unref(design.TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
|
|
@@ -424,63 +424,63 @@
|
|
|
424
424
|
]),
|
|
425
425
|
_: 1
|
|
426
426
|
})) : vue.createCommentVNode("", true)
|
|
427
|
-
], 64)) :
|
|
427
|
+
], 64)) : type.value && display$1.value && showDiff.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
428
428
|
vue.createVNode(vue.unref(design.TMagicFormItem), {
|
|
429
|
-
style: vue.normalizeStyle([
|
|
430
|
-
class: vue.normalizeClass({ hidden: `${
|
|
431
|
-
prop:
|
|
432
|
-
"label-width":
|
|
433
|
-
rules:
|
|
429
|
+
style: vue.normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#f7dadd" }]),
|
|
430
|
+
class: vue.normalizeClass({ hidden: `${itemLabelWidth.value}` === "0" || !_ctx.config.text }),
|
|
431
|
+
prop: itemProp.value,
|
|
432
|
+
"label-width": itemLabelWidth.value,
|
|
433
|
+
rules: rule.value
|
|
434
434
|
}, {
|
|
435
435
|
label: vue.withCtx(() => [
|
|
436
436
|
vue.createElementVNode("span", {
|
|
437
|
-
innerHTML:
|
|
438
|
-
}, null, 8, _hoisted_5$
|
|
437
|
+
innerHTML: type.value === "checkbox" ? "" : _ctx.config.text
|
|
438
|
+
}, null, 8, _hoisted_5$3)
|
|
439
439
|
]),
|
|
440
440
|
default: vue.withCtx(() => [
|
|
441
|
-
|
|
441
|
+
tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
|
|
442
442
|
content: vue.withCtx(() => [
|
|
443
|
-
vue.createElementVNode("div", { innerHTML:
|
|
443
|
+
vue.createElementVNode("div", { innerHTML: tooltip.value }, null, 8, _hoisted_6$1)
|
|
444
444
|
]),
|
|
445
445
|
default: vue.withCtx(() => [
|
|
446
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
447
|
-
key: key(
|
|
448
|
-
size:
|
|
449
|
-
model:
|
|
450
|
-
config:
|
|
451
|
-
name:
|
|
452
|
-
disabled:
|
|
453
|
-
prop:
|
|
446
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
447
|
+
key: key(_ctx.config),
|
|
448
|
+
size: _ctx.size,
|
|
449
|
+
model: _ctx.lastValues,
|
|
450
|
+
config: _ctx.config,
|
|
451
|
+
name: name.value,
|
|
452
|
+
disabled: disabled.value,
|
|
453
|
+
prop: itemProp.value,
|
|
454
454
|
onChange: onChangeHandler
|
|
455
455
|
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"]))
|
|
456
456
|
]),
|
|
457
457
|
_: 1
|
|
458
|
-
})) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
459
|
-
key: key(
|
|
460
|
-
size:
|
|
461
|
-
model:
|
|
462
|
-
config:
|
|
463
|
-
name:
|
|
464
|
-
disabled:
|
|
465
|
-
prop:
|
|
458
|
+
})) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
459
|
+
key: key(_ctx.config),
|
|
460
|
+
size: _ctx.size,
|
|
461
|
+
model: _ctx.lastValues,
|
|
462
|
+
config: _ctx.config,
|
|
463
|
+
name: name.value,
|
|
464
|
+
disabled: disabled.value,
|
|
465
|
+
prop: itemProp.value,
|
|
466
466
|
onChange: onChangeHandler
|
|
467
467
|
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"])),
|
|
468
|
-
|
|
468
|
+
extra.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
469
469
|
key: 2,
|
|
470
|
-
innerHTML:
|
|
470
|
+
innerHTML: extra.value,
|
|
471
471
|
class: "m-form-tip"
|
|
472
|
-
}, null, 8, _hoisted_7$
|
|
472
|
+
}, null, 8, _hoisted_7$1)) : vue.createCommentVNode("", true)
|
|
473
473
|
]),
|
|
474
474
|
_: 1
|
|
475
475
|
}, 8, ["style", "class", "prop", "label-width", "rules"]),
|
|
476
|
-
|
|
476
|
+
_ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
477
477
|
key: 0,
|
|
478
478
|
placement: "left"
|
|
479
479
|
}, {
|
|
480
480
|
content: vue.withCtx(() => [
|
|
481
481
|
vue.createElementVNode("div", {
|
|
482
|
-
innerHTML:
|
|
483
|
-
}, null, 8, _hoisted_8$
|
|
482
|
+
innerHTML: _ctx.config.tip
|
|
483
|
+
}, null, 8, _hoisted_8$1)
|
|
484
484
|
]),
|
|
485
485
|
default: vue.withCtx(() => [
|
|
486
486
|
vue.createVNode(vue.unref(design.TMagicIcon), { style: { "line-height": "40px", "margin-left": "5px" } }, {
|
|
@@ -493,60 +493,60 @@
|
|
|
493
493
|
_: 1
|
|
494
494
|
})) : vue.createCommentVNode("", true),
|
|
495
495
|
vue.createVNode(vue.unref(design.TMagicFormItem), {
|
|
496
|
-
style: vue.normalizeStyle([
|
|
497
|
-
class: vue.normalizeClass({ hidden: `${
|
|
498
|
-
prop:
|
|
499
|
-
"label-width":
|
|
500
|
-
rules:
|
|
496
|
+
style: vue.normalizeStyle([_ctx.config.tip ? "flex: 1" : "", { "background": "#def7da" }]),
|
|
497
|
+
class: vue.normalizeClass({ hidden: `${itemLabelWidth.value}` === "0" || !_ctx.config.text }),
|
|
498
|
+
prop: itemProp.value,
|
|
499
|
+
"label-width": itemLabelWidth.value,
|
|
500
|
+
rules: rule.value
|
|
501
501
|
}, {
|
|
502
502
|
label: vue.withCtx(() => [
|
|
503
503
|
vue.createElementVNode("span", {
|
|
504
|
-
innerHTML:
|
|
505
|
-
}, null, 8, _hoisted_9
|
|
504
|
+
innerHTML: type.value === "checkbox" ? "" : _ctx.config.text
|
|
505
|
+
}, null, 8, _hoisted_9)
|
|
506
506
|
]),
|
|
507
507
|
default: vue.withCtx(() => [
|
|
508
|
-
|
|
508
|
+
tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
|
|
509
509
|
content: vue.withCtx(() => [
|
|
510
|
-
vue.createElementVNode("div", { innerHTML:
|
|
510
|
+
vue.createElementVNode("div", { innerHTML: tooltip.value }, null, 8, _hoisted_10)
|
|
511
511
|
]),
|
|
512
512
|
default: vue.withCtx(() => [
|
|
513
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
514
|
-
key: key(
|
|
515
|
-
size:
|
|
516
|
-
model:
|
|
517
|
-
config:
|
|
518
|
-
name:
|
|
519
|
-
disabled:
|
|
520
|
-
prop:
|
|
513
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
514
|
+
key: key(_ctx.config),
|
|
515
|
+
size: _ctx.size,
|
|
516
|
+
model: _ctx.model,
|
|
517
|
+
config: _ctx.config,
|
|
518
|
+
name: name.value,
|
|
519
|
+
disabled: disabled.value,
|
|
520
|
+
prop: itemProp.value,
|
|
521
521
|
onChange: onChangeHandler
|
|
522
522
|
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"]))
|
|
523
523
|
]),
|
|
524
524
|
_: 1
|
|
525
|
-
})) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
526
|
-
key: key(
|
|
527
|
-
size:
|
|
528
|
-
model:
|
|
529
|
-
config:
|
|
530
|
-
name:
|
|
531
|
-
disabled:
|
|
532
|
-
prop:
|
|
525
|
+
})) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
526
|
+
key: key(_ctx.config),
|
|
527
|
+
size: _ctx.size,
|
|
528
|
+
model: _ctx.model,
|
|
529
|
+
config: _ctx.config,
|
|
530
|
+
name: name.value,
|
|
531
|
+
disabled: disabled.value,
|
|
532
|
+
prop: itemProp.value,
|
|
533
533
|
onChange: onChangeHandler
|
|
534
534
|
}, null, 40, ["size", "model", "config", "name", "disabled", "prop"])),
|
|
535
|
-
|
|
535
|
+
extra.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
536
536
|
key: 2,
|
|
537
|
-
innerHTML:
|
|
537
|
+
innerHTML: extra.value,
|
|
538
538
|
class: "m-form-tip"
|
|
539
539
|
}, null, 8, _hoisted_11)) : vue.createCommentVNode("", true)
|
|
540
540
|
]),
|
|
541
541
|
_: 1
|
|
542
542
|
}, 8, ["style", "class", "prop", "label-width", "rules"]),
|
|
543
|
-
|
|
543
|
+
_ctx.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
544
544
|
key: 1,
|
|
545
545
|
placement: "left"
|
|
546
546
|
}, {
|
|
547
547
|
content: vue.withCtx(() => [
|
|
548
548
|
vue.createElementVNode("div", {
|
|
549
|
-
innerHTML:
|
|
549
|
+
innerHTML: _ctx.config.tip
|
|
550
550
|
}, null, 8, _hoisted_12)
|
|
551
551
|
]),
|
|
552
552
|
default: vue.withCtx(() => [
|
|
@@ -559,26 +559,26 @@
|
|
|
559
559
|
]),
|
|
560
560
|
_: 1
|
|
561
561
|
})) : vue.createCommentVNode("", true)
|
|
562
|
-
], 64)) :
|
|
563
|
-
(
|
|
562
|
+
], 64)) : items.value && display$1.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
|
|
563
|
+
(name.value || name.value === 0 ? _ctx.model[name.value] : _ctx.model) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(items.value, (item) => {
|
|
564
564
|
return vue.openBlock(), vue.createBlock(_component_Container, {
|
|
565
565
|
key: key(item),
|
|
566
|
-
model:
|
|
567
|
-
"last-values":
|
|
568
|
-
"is-compare":
|
|
566
|
+
model: name.value || name.value === 0 ? _ctx.model[name.value] : _ctx.model,
|
|
567
|
+
"last-values": name.value || name.value === 0 ? _ctx.lastValues[name.value] || {} : _ctx.lastValues,
|
|
568
|
+
"is-compare": _ctx.isCompare,
|
|
569
569
|
config: item,
|
|
570
|
-
size:
|
|
571
|
-
disabled:
|
|
572
|
-
"step-active":
|
|
570
|
+
size: _ctx.size,
|
|
571
|
+
disabled: disabled.value,
|
|
572
|
+
"step-active": _ctx.stepActive,
|
|
573
573
|
"expand-more": expand.value,
|
|
574
|
-
"label-width":
|
|
575
|
-
prop:
|
|
574
|
+
"label-width": itemLabelWidth.value,
|
|
575
|
+
prop: itemProp.value,
|
|
576
576
|
onChange: onChangeHandler,
|
|
577
577
|
onAddDiffCount
|
|
578
578
|
}, null, 8, ["model", "last-values", "is-compare", "config", "size", "disabled", "step-active", "expand-more", "label-width", "prop"]);
|
|
579
579
|
}), 128)) : vue.createCommentVNode("", true)
|
|
580
580
|
], 64)) : vue.createCommentVNode("", true),
|
|
581
|
-
|
|
581
|
+
_ctx.config.expand && type.value !== "fieldset" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
|
|
582
582
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
583
583
|
type: "primary",
|
|
584
584
|
size: "small",
|
|
@@ -598,29 +598,29 @@
|
|
|
598
598
|
});
|
|
599
599
|
|
|
600
600
|
const _hoisted_1$a = ["innerHTML"];
|
|
601
|
-
const _hoisted_2$
|
|
602
|
-
const _hoisted_3$
|
|
603
|
-
const _hoisted_4$
|
|
604
|
-
const _hoisted_5$
|
|
605
|
-
const _hoisted_6
|
|
601
|
+
const _hoisted_2$5 = ["innerHTML"];
|
|
602
|
+
const _hoisted_3$3 = { key: 1 };
|
|
603
|
+
const _hoisted_4$3 = ["innerHTML"];
|
|
604
|
+
const _hoisted_5$2 = ["innerHTML"];
|
|
605
|
+
const _hoisted_6 = {
|
|
606
606
|
key: 2,
|
|
607
607
|
style: { "display": "flex" }
|
|
608
608
|
};
|
|
609
|
-
const _hoisted_7
|
|
610
|
-
const _hoisted_8
|
|
611
|
-
const __default__$u = vue.defineComponent({
|
|
612
|
-
name: "MFormFieldset"
|
|
613
|
-
});
|
|
609
|
+
const _hoisted_7 = { style: { "flex": "1" } };
|
|
610
|
+
const _hoisted_8 = ["src"];
|
|
614
611
|
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
615
|
-
...
|
|
612
|
+
...{
|
|
613
|
+
name: "MFormFieldset"
|
|
614
|
+
},
|
|
615
|
+
__name: "Fieldset",
|
|
616
616
|
props: {
|
|
617
|
-
labelWidth:
|
|
617
|
+
labelWidth: {},
|
|
618
618
|
prop: { default: "" },
|
|
619
|
-
size:
|
|
620
|
-
model:
|
|
619
|
+
size: {},
|
|
620
|
+
model: {},
|
|
621
621
|
lastValues: { default: () => ({}) },
|
|
622
622
|
isCompare: { type: Boolean, default: false },
|
|
623
|
-
config:
|
|
623
|
+
config: {},
|
|
624
624
|
rules: { default: {} },
|
|
625
625
|
disabled: { type: Boolean }
|
|
626
626
|
},
|
|
@@ -647,61 +647,61 @@
|
|
|
647
647
|
const key = (item, index) => item[mForm?.keyProp || "__key"] ?? index;
|
|
648
648
|
const onAddDiffCount = () => emit("addDiffCount");
|
|
649
649
|
return (_ctx, _cache) => {
|
|
650
|
-
return (
|
|
650
|
+
return (name.value ? _ctx.model[name.value] : _ctx.model) ? (vue.openBlock(), vue.createElementBlock("fieldset", {
|
|
651
651
|
key: 0,
|
|
652
652
|
class: "m-fieldset",
|
|
653
|
-
style: vue.normalizeStyle(
|
|
653
|
+
style: vue.normalizeStyle(show.value ? "padding: 15px 15px 0 5px;" : "border: 0")
|
|
654
654
|
}, [
|
|
655
|
-
|
|
655
|
+
name.value && _ctx.config.checkbox ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(!show.value ? "div" : "legend"), { key: 0 }, {
|
|
656
656
|
default: vue.withCtx(() => [
|
|
657
657
|
vue.createVNode(vue.unref(design.TMagicCheckbox), {
|
|
658
|
-
modelValue:
|
|
658
|
+
modelValue: _ctx.model[name.value].value,
|
|
659
659
|
"onUpdate:modelValue": [
|
|
660
|
-
_cache[0] || (_cache[0] = ($event) =>
|
|
660
|
+
_cache[0] || (_cache[0] = ($event) => _ctx.model[name.value].value = $event),
|
|
661
661
|
change
|
|
662
662
|
],
|
|
663
|
-
prop: `${
|
|
663
|
+
prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${_ctx.config.name}.value`,
|
|
664
664
|
"true-label": 1,
|
|
665
665
|
"false-label": 0
|
|
666
666
|
}, {
|
|
667
667
|
default: vue.withCtx(() => [
|
|
668
668
|
vue.createElementVNode("span", {
|
|
669
|
-
innerHTML:
|
|
669
|
+
innerHTML: _ctx.config.legend
|
|
670
670
|
}, null, 8, _hoisted_1$a),
|
|
671
|
-
|
|
671
|
+
_ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
672
672
|
key: 0,
|
|
673
|
-
innerHTML:
|
|
673
|
+
innerHTML: _ctx.config.extra,
|
|
674
674
|
class: "m-form-tip"
|
|
675
|
-
}, null, 8, _hoisted_2$
|
|
675
|
+
}, null, 8, _hoisted_2$5)) : vue.createCommentVNode("", true)
|
|
676
676
|
]),
|
|
677
677
|
_: 1
|
|
678
678
|
}, 8, ["modelValue", "prop"])
|
|
679
679
|
]),
|
|
680
680
|
_: 1
|
|
681
|
-
})) : (vue.openBlock(), vue.createElementBlock("legend", _hoisted_3$
|
|
681
|
+
})) : (vue.openBlock(), vue.createElementBlock("legend", _hoisted_3$3, [
|
|
682
682
|
vue.createElementVNode("span", {
|
|
683
|
-
innerHTML:
|
|
684
|
-
}, null, 8, _hoisted_4$
|
|
685
|
-
|
|
683
|
+
innerHTML: _ctx.config.legend
|
|
684
|
+
}, null, 8, _hoisted_4$3),
|
|
685
|
+
_ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
686
686
|
key: 0,
|
|
687
|
-
innerHTML:
|
|
687
|
+
innerHTML: _ctx.config.extra,
|
|
688
688
|
class: "m-form-tip"
|
|
689
|
-
}, null, 8, _hoisted_5$
|
|
689
|
+
}, null, 8, _hoisted_5$2)) : vue.createCommentVNode("", true)
|
|
690
690
|
])),
|
|
691
|
-
|
|
692
|
-
vue.createElementVNode("div", _hoisted_7
|
|
693
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
691
|
+
_ctx.config.schematic && show.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
692
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
693
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.items, (item, index) => {
|
|
694
694
|
return vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
695
695
|
key: key(item, index),
|
|
696
|
-
model:
|
|
697
|
-
lastValues:
|
|
698
|
-
"is-compare":
|
|
699
|
-
rules:
|
|
696
|
+
model: name.value ? _ctx.model[name.value] : _ctx.model,
|
|
697
|
+
lastValues: name.value ? _ctx.lastValues[name.value] : _ctx.lastValues,
|
|
698
|
+
"is-compare": _ctx.isCompare,
|
|
699
|
+
rules: name.value ? _ctx.rules[name.value] : [],
|
|
700
700
|
config: item,
|
|
701
|
-
prop:
|
|
702
|
-
disabled:
|
|
703
|
-
labelWidth:
|
|
704
|
-
size:
|
|
701
|
+
prop: _ctx.prop,
|
|
702
|
+
disabled: _ctx.disabled,
|
|
703
|
+
labelWidth: lWidth.value,
|
|
704
|
+
size: _ctx.size,
|
|
705
705
|
onChange: change,
|
|
706
706
|
onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
|
|
707
707
|
}, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "disabled", "labelWidth", "size"]);
|
|
@@ -709,20 +709,20 @@
|
|
|
709
709
|
]),
|
|
710
710
|
vue.createElementVNode("img", {
|
|
711
711
|
class: "m-form-schematic",
|
|
712
|
-
src:
|
|
713
|
-
}, null, 8, _hoisted_8
|
|
714
|
-
])) :
|
|
712
|
+
src: _ctx.config.schematic
|
|
713
|
+
}, null, 8, _hoisted_8)
|
|
714
|
+
])) : show.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 3 }, vue.renderList(_ctx.config.items, (item, index) => {
|
|
715
715
|
return vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
716
716
|
key: key(item, index),
|
|
717
|
-
model:
|
|
718
|
-
lastValues:
|
|
719
|
-
"is-compare":
|
|
720
|
-
rules:
|
|
717
|
+
model: name.value ? _ctx.model[name.value] : _ctx.model,
|
|
718
|
+
lastValues: name.value ? _ctx.lastValues[name.value] : _ctx.lastValues,
|
|
719
|
+
"is-compare": _ctx.isCompare,
|
|
720
|
+
rules: name.value ? _ctx.rules[name.value] : [],
|
|
721
721
|
config: item,
|
|
722
|
-
prop:
|
|
723
|
-
labelWidth:
|
|
724
|
-
size:
|
|
725
|
-
disabled:
|
|
722
|
+
prop: _ctx.prop,
|
|
723
|
+
labelWidth: lWidth.value,
|
|
724
|
+
size: _ctx.size,
|
|
725
|
+
disabled: _ctx.disabled,
|
|
726
726
|
onChange: change,
|
|
727
727
|
onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
|
|
728
728
|
}, null, 8, ["model", "lastValues", "is-compare", "rules", "config", "prop", "labelWidth", "size", "disabled"]);
|
|
@@ -733,24 +733,22 @@
|
|
|
733
733
|
});
|
|
734
734
|
|
|
735
735
|
const _hoisted_1$9 = { class: "m-fields-group-list-item" };
|
|
736
|
-
const _hoisted_2$
|
|
737
|
-
const _hoisted_3$5 = /* @__PURE__ */ vue.createTextVNode("下移");
|
|
738
|
-
const _hoisted_4$4 = ["innerHTML"];
|
|
739
|
-
const __default__$t = vue.defineComponent({
|
|
740
|
-
name: "MFormGroupListItem"
|
|
741
|
-
});
|
|
736
|
+
const _hoisted_2$4 = ["innerHTML"];
|
|
742
737
|
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
743
|
-
...
|
|
738
|
+
...{
|
|
739
|
+
name: "MFormGroupListItem"
|
|
740
|
+
},
|
|
741
|
+
__name: "GroupListItem",
|
|
744
742
|
props: {
|
|
745
|
-
model:
|
|
746
|
-
lastValues:
|
|
743
|
+
model: {},
|
|
744
|
+
lastValues: {},
|
|
747
745
|
isCompare: { type: Boolean },
|
|
748
|
-
groupModel:
|
|
749
|
-
config:
|
|
750
|
-
labelWidth:
|
|
751
|
-
prop:
|
|
752
|
-
size:
|
|
753
|
-
index:
|
|
746
|
+
groupModel: {},
|
|
747
|
+
config: {},
|
|
748
|
+
labelWidth: {},
|
|
749
|
+
prop: {},
|
|
750
|
+
size: {},
|
|
751
|
+
index: {},
|
|
754
752
|
disabled: { type: Boolean }
|
|
755
753
|
},
|
|
756
754
|
emits: ["swap-item", "remove-item", "change", "addDiffCount"],
|
|
@@ -804,12 +802,12 @@
|
|
|
804
802
|
vue.createElementVNode("div", null, [
|
|
805
803
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
806
804
|
text: "",
|
|
807
|
-
disabled:
|
|
805
|
+
disabled: _ctx.disabled,
|
|
808
806
|
icon: expand.value ? vue.unref(iconsVue.CaretBottom) : vue.unref(iconsVue.CaretRight),
|
|
809
807
|
onClick: expandHandler
|
|
810
808
|
}, {
|
|
811
809
|
default: vue.withCtx(() => [
|
|
812
|
-
vue.createTextVNode(vue.toDisplayString(
|
|
810
|
+
vue.createTextVNode(vue.toDisplayString(title.value), 1)
|
|
813
811
|
]),
|
|
814
812
|
_: 1
|
|
815
813
|
}, 8, ["disabled", "icon"]),
|
|
@@ -817,20 +815,20 @@
|
|
|
817
815
|
style: { "color": "#f56c6c" },
|
|
818
816
|
text: "",
|
|
819
817
|
icon: vue.unref(iconsVue.Delete),
|
|
820
|
-
disabled:
|
|
818
|
+
disabled: _ctx.disabled,
|
|
821
819
|
onClick: removeHandler
|
|
822
820
|
}, null, 8, ["icon", "disabled"]), [
|
|
823
|
-
[vue.vShow, showDelete(parseInt(String(
|
|
821
|
+
[vue.vShow, showDelete(parseInt(String(_ctx.index)))]
|
|
824
822
|
]),
|
|
825
823
|
movable() ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
826
824
|
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
827
825
|
text: "",
|
|
828
|
-
disabled:
|
|
826
|
+
disabled: _ctx.disabled,
|
|
829
827
|
size: "small",
|
|
830
828
|
onClick: _cache[0] || (_cache[0] = ($event) => changeOrder(-1))
|
|
831
829
|
}, {
|
|
832
830
|
default: vue.withCtx(() => [
|
|
833
|
-
|
|
831
|
+
vue.createTextVNode("上移"),
|
|
834
832
|
vue.createVNode(vue.unref(design.TMagicIcon), null, {
|
|
835
833
|
default: vue.withCtx(() => [
|
|
836
834
|
vue.createVNode(vue.unref(iconsVue.CaretTop))
|
|
@@ -840,16 +838,16 @@
|
|
|
840
838
|
]),
|
|
841
839
|
_: 1
|
|
842
840
|
}, 8, ["disabled"]), [
|
|
843
|
-
[vue.vShow,
|
|
841
|
+
[vue.vShow, _ctx.index !== 0]
|
|
844
842
|
]),
|
|
845
843
|
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
846
|
-
disabled:
|
|
844
|
+
disabled: _ctx.disabled,
|
|
847
845
|
text: "",
|
|
848
846
|
size: "small",
|
|
849
847
|
onClick: _cache[1] || (_cache[1] = ($event) => changeOrder(1))
|
|
850
848
|
}, {
|
|
851
849
|
default: vue.withCtx(() => [
|
|
852
|
-
|
|
850
|
+
vue.createTextVNode("下移"),
|
|
853
851
|
vue.createVNode(vue.unref(design.TMagicIcon), null, {
|
|
854
852
|
default: vue.withCtx(() => [
|
|
855
853
|
vue.createVNode(vue.unref(iconsVue.CaretBottom))
|
|
@@ -859,25 +857,25 @@
|
|
|
859
857
|
]),
|
|
860
858
|
_: 1
|
|
861
859
|
}, 8, ["disabled"]), [
|
|
862
|
-
[vue.vShow,
|
|
860
|
+
[vue.vShow, _ctx.index !== length.value - 1]
|
|
863
861
|
])
|
|
864
862
|
], 64)) : vue.createCommentVNode("", true),
|
|
865
|
-
|
|
863
|
+
itemExtra.value ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
866
864
|
key: 1,
|
|
867
|
-
innerHTML:
|
|
865
|
+
innerHTML: itemExtra.value,
|
|
868
866
|
class: "m-form-tip"
|
|
869
|
-
}, null, 8,
|
|
867
|
+
}, null, 8, _hoisted_2$4)) : vue.createCommentVNode("", true)
|
|
870
868
|
]),
|
|
871
869
|
expand.value ? (vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
872
870
|
key: 0,
|
|
873
|
-
config:
|
|
874
|
-
model:
|
|
875
|
-
lastValues:
|
|
876
|
-
"is-compare":
|
|
877
|
-
labelWidth:
|
|
878
|
-
prop: `${
|
|
879
|
-
size:
|
|
880
|
-
disabled:
|
|
871
|
+
config: rowConfig.value,
|
|
872
|
+
model: _ctx.model,
|
|
873
|
+
lastValues: _ctx.lastValues,
|
|
874
|
+
"is-compare": _ctx.isCompare,
|
|
875
|
+
labelWidth: _ctx.labelWidth,
|
|
876
|
+
prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${String(_ctx.index)}`,
|
|
877
|
+
size: _ctx.size,
|
|
878
|
+
disabled: _ctx.disabled,
|
|
881
879
|
onChange: changeHandler,
|
|
882
880
|
onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
|
|
883
881
|
}, null, 8, ["config", "model", "lastValues", "is-compare", "labelWidth", "prop", "size", "disabled"])) : vue.createCommentVNode("", true)
|
|
@@ -887,31 +885,29 @@
|
|
|
887
885
|
});
|
|
888
886
|
|
|
889
887
|
const _hoisted_1$8 = { class: "m-fields-group-list" };
|
|
890
|
-
const _hoisted_2$
|
|
891
|
-
const _hoisted_3$
|
|
888
|
+
const _hoisted_2$3 = ["innerHTML"];
|
|
889
|
+
const _hoisted_3$2 = {
|
|
892
890
|
key: 1,
|
|
893
891
|
class: "el-table__empty-block"
|
|
894
892
|
};
|
|
895
|
-
const _hoisted_4$
|
|
896
|
-
const _hoisted_5$
|
|
897
|
-
_hoisted_4$
|
|
893
|
+
const _hoisted_4$2 = /* @__PURE__ */ vue.createElementVNode("span", { class: "el-table__empty-text" }, "暂无数据", -1);
|
|
894
|
+
const _hoisted_5$1 = [
|
|
895
|
+
_hoisted_4$2
|
|
898
896
|
];
|
|
899
|
-
const _hoisted_6$1 = /* @__PURE__ */ vue.createTextVNode("添加组");
|
|
900
|
-
const _hoisted_7$1 = /* @__PURE__ */ vue.createTextVNode("切换为表格");
|
|
901
|
-
const __default__$s = vue.defineComponent({
|
|
902
|
-
name: "MFormGroupList"
|
|
903
|
-
});
|
|
904
897
|
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
905
|
-
...
|
|
898
|
+
...{
|
|
899
|
+
name: "MFormGroupList"
|
|
900
|
+
},
|
|
901
|
+
__name: "GroupList",
|
|
906
902
|
props: {
|
|
907
|
-
model:
|
|
908
|
-
lastValues:
|
|
903
|
+
model: {},
|
|
904
|
+
lastValues: {},
|
|
909
905
|
isCompare: { type: Boolean },
|
|
910
|
-
config:
|
|
911
|
-
name:
|
|
912
|
-
labelWidth:
|
|
913
|
-
prop:
|
|
914
|
-
size:
|
|
906
|
+
config: {},
|
|
907
|
+
name: {},
|
|
908
|
+
labelWidth: {},
|
|
909
|
+
prop: {},
|
|
910
|
+
size: {},
|
|
915
911
|
disabled: { type: Boolean }
|
|
916
912
|
},
|
|
917
913
|
emits: ["change", "addDiffCount"],
|
|
@@ -982,49 +978,49 @@
|
|
|
982
978
|
const getLastValues = (item, index) => item?.[index] || {};
|
|
983
979
|
return (_ctx, _cache) => {
|
|
984
980
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
985
|
-
|
|
981
|
+
_ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
986
982
|
key: 0,
|
|
987
|
-
innerHTML:
|
|
983
|
+
innerHTML: _ctx.config.extra,
|
|
988
984
|
style: { "color": "rgba(0, 0, 0, 0.45)" }
|
|
989
|
-
}, null, 8, _hoisted_2$
|
|
990
|
-
!
|
|
985
|
+
}, null, 8, _hoisted_2$3)) : vue.createCommentVNode("", true),
|
|
986
|
+
!_ctx.model[_ctx.name] || !_ctx.model[_ctx.name].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, _hoisted_5$1)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 2 }, vue.renderList(_ctx.model[_ctx.name], (item, index) => {
|
|
991
987
|
return vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
992
988
|
key: index,
|
|
993
989
|
model: item,
|
|
994
|
-
lastValues: getLastValues(
|
|
995
|
-
"is-compare":
|
|
996
|
-
config:
|
|
997
|
-
prop:
|
|
990
|
+
lastValues: getLastValues(_ctx.lastValues[_ctx.name], index),
|
|
991
|
+
"is-compare": _ctx.isCompare,
|
|
992
|
+
config: _ctx.config,
|
|
993
|
+
prop: _ctx.prop,
|
|
998
994
|
index,
|
|
999
|
-
"label-width":
|
|
1000
|
-
size:
|
|
1001
|
-
disabled:
|
|
1002
|
-
"group-model":
|
|
995
|
+
"label-width": _ctx.labelWidth,
|
|
996
|
+
size: _ctx.size,
|
|
997
|
+
disabled: _ctx.disabled,
|
|
998
|
+
"group-model": _ctx.model[_ctx.name],
|
|
1003
999
|
onRemoveItem: removeHandler,
|
|
1004
1000
|
onSwapItem: swapHandler,
|
|
1005
1001
|
onChange: changeHandler,
|
|
1006
1002
|
onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
|
|
1007
1003
|
}, null, 8, ["model", "lastValues", "is-compare", "config", "prop", "index", "label-width", "size", "disabled", "group-model"]);
|
|
1008
1004
|
}), 128)),
|
|
1009
|
-
|
|
1005
|
+
addable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
1010
1006
|
key: 3,
|
|
1011
1007
|
onClick: addHandler,
|
|
1012
1008
|
size: "small",
|
|
1013
|
-
disabled:
|
|
1009
|
+
disabled: _ctx.disabled
|
|
1014
1010
|
}, {
|
|
1015
1011
|
default: vue.withCtx(() => [
|
|
1016
|
-
|
|
1012
|
+
vue.createTextVNode("添加组")
|
|
1017
1013
|
]),
|
|
1018
1014
|
_: 1
|
|
1019
1015
|
}, 8, ["disabled"])) : vue.createCommentVNode("", true),
|
|
1020
|
-
|
|
1016
|
+
_ctx.config.enableToggleMode ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
1021
1017
|
key: 4,
|
|
1022
1018
|
icon: vue.unref(iconsVue.Grid),
|
|
1023
1019
|
size: "small",
|
|
1024
1020
|
onClick: toggleMode
|
|
1025
1021
|
}, {
|
|
1026
1022
|
default: vue.withCtx(() => [
|
|
1027
|
-
|
|
1023
|
+
vue.createTextVNode("切换为表格")
|
|
1028
1024
|
]),
|
|
1029
1025
|
_: 1
|
|
1030
1026
|
}, 8, ["icon"])) : vue.createCommentVNode("", true)
|
|
@@ -1034,27 +1030,27 @@
|
|
|
1034
1030
|
});
|
|
1035
1031
|
|
|
1036
1032
|
const _hoisted_1$7 = { style: { "width": "100%", "display": "flex", "align-items": "center" } };
|
|
1037
|
-
const _hoisted_2$
|
|
1038
|
-
const _hoisted_3$
|
|
1033
|
+
const _hoisted_2$2 = ["innerHTML"];
|
|
1034
|
+
const _hoisted_3$1 = {
|
|
1039
1035
|
key: 0,
|
|
1040
1036
|
style: { "display": "flex" }
|
|
1041
1037
|
};
|
|
1042
|
-
const _hoisted_4$
|
|
1043
|
-
const _hoisted_5
|
|
1044
|
-
const __default__$r = vue.defineComponent({
|
|
1045
|
-
name: "MFormPanel"
|
|
1046
|
-
});
|
|
1038
|
+
const _hoisted_4$1 = { style: { "flex": "1" } };
|
|
1039
|
+
const _hoisted_5 = ["src"];
|
|
1047
1040
|
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
1048
|
-
...
|
|
1041
|
+
...{
|
|
1042
|
+
name: "MFormPanel"
|
|
1043
|
+
},
|
|
1044
|
+
__name: "Panel",
|
|
1049
1045
|
props: {
|
|
1050
|
-
model:
|
|
1051
|
-
lastValues:
|
|
1046
|
+
model: {},
|
|
1047
|
+
lastValues: {},
|
|
1052
1048
|
isCompare: { type: Boolean },
|
|
1053
|
-
config:
|
|
1054
|
-
name:
|
|
1055
|
-
labelWidth:
|
|
1056
|
-
prop:
|
|
1057
|
-
size:
|
|
1049
|
+
config: {},
|
|
1050
|
+
name: {},
|
|
1051
|
+
labelWidth: {},
|
|
1052
|
+
prop: {},
|
|
1053
|
+
size: {},
|
|
1058
1054
|
disabled: { type: Boolean }
|
|
1059
1055
|
},
|
|
1060
1056
|
emits: ["change", "addDiffCount"],
|
|
@@ -1067,7 +1063,7 @@
|
|
|
1067
1063
|
const changeHandler = () => emit("change", props.model);
|
|
1068
1064
|
const onAddDiffCount = () => emit("addDiffCount");
|
|
1069
1065
|
return (_ctx, _cache) => {
|
|
1070
|
-
return
|
|
1066
|
+
return items.value && items.value.length ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCard), {
|
|
1071
1067
|
key: 0,
|
|
1072
1068
|
class: "box-card m-form-panel",
|
|
1073
1069
|
"body-style": { display: expand.value ? "block" : "none" }
|
|
@@ -1080,32 +1076,32 @@
|
|
|
1080
1076
|
icon: expand.value ? vue.unref(iconsVue.CaretBottom) : vue.unref(iconsVue.CaretRight),
|
|
1081
1077
|
onClick: _cache[0] || (_cache[0] = ($event) => expand.value = !expand.value)
|
|
1082
1078
|
}, null, 8, ["icon"]),
|
|
1083
|
-
|
|
1079
|
+
_ctx.config && _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
1084
1080
|
key: 0,
|
|
1085
|
-
innerHTML:
|
|
1081
|
+
innerHTML: _ctx.config.extra,
|
|
1086
1082
|
class: "m-form-tip"
|
|
1087
|
-
}, null, 8, _hoisted_2$
|
|
1083
|
+
}, null, 8, _hoisted_2$2)) : vue.createCommentVNode("", true),
|
|
1088
1084
|
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1089
|
-
vue.createTextVNode(vue.toDisplayString(filter(
|
|
1085
|
+
vue.createTextVNode(vue.toDisplayString(filter(_ctx.config.title)), 1)
|
|
1090
1086
|
])
|
|
1091
1087
|
])
|
|
1092
1088
|
]),
|
|
1093
1089
|
default: vue.withCtx(() => [
|
|
1094
1090
|
vue.createElementVNode("div", null, [
|
|
1095
1091
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
1096
|
-
|
|
1097
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
1098
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
1092
|
+
_ctx.config.schematic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$1, [
|
|
1093
|
+
vue.createElementVNode("div", _hoisted_4$1, [
|
|
1094
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
|
|
1099
1095
|
return vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
1100
1096
|
key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
1101
1097
|
config: item,
|
|
1102
|
-
model:
|
|
1103
|
-
lastValues:
|
|
1104
|
-
"is-compare":
|
|
1105
|
-
prop:
|
|
1106
|
-
size:
|
|
1107
|
-
disabled:
|
|
1108
|
-
"label-width":
|
|
1098
|
+
model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
|
|
1099
|
+
lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
|
|
1100
|
+
"is-compare": _ctx.isCompare,
|
|
1101
|
+
prop: _ctx.prop,
|
|
1102
|
+
size: _ctx.size,
|
|
1103
|
+
disabled: _ctx.disabled,
|
|
1104
|
+
"label-width": _ctx.config.labelWidth || _ctx.labelWidth,
|
|
1109
1105
|
onChange: changeHandler,
|
|
1110
1106
|
onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
|
|
1111
1107
|
}, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
|
|
@@ -1113,19 +1109,19 @@
|
|
|
1113
1109
|
]),
|
|
1114
1110
|
vue.createElementVNode("img", {
|
|
1115
1111
|
class: "m-form-schematic",
|
|
1116
|
-
src:
|
|
1117
|
-
}, null, 8, _hoisted_5
|
|
1118
|
-
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(
|
|
1112
|
+
src: _ctx.config.schematic
|
|
1113
|
+
}, null, 8, _hoisted_5)
|
|
1114
|
+
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(items.value, (item, index) => {
|
|
1119
1115
|
return vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
1120
1116
|
key: item[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
1121
1117
|
config: item,
|
|
1122
|
-
model:
|
|
1123
|
-
lastValues:
|
|
1124
|
-
"is-compare":
|
|
1125
|
-
prop:
|
|
1126
|
-
size:
|
|
1127
|
-
disabled:
|
|
1128
|
-
"label-width":
|
|
1118
|
+
model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
|
|
1119
|
+
lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
|
|
1120
|
+
"is-compare": _ctx.isCompare,
|
|
1121
|
+
prop: _ctx.prop,
|
|
1122
|
+
size: _ctx.size,
|
|
1123
|
+
disabled: _ctx.disabled,
|
|
1124
|
+
"label-width": _ctx.config.labelWidth || _ctx.labelWidth,
|
|
1129
1125
|
onChange: changeHandler,
|
|
1130
1126
|
onAddDiffCount: _cache[2] || (_cache[2] = ($event) => onAddDiffCount())
|
|
1131
1127
|
}, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"]);
|
|
@@ -1138,21 +1134,21 @@
|
|
|
1138
1134
|
}
|
|
1139
1135
|
});
|
|
1140
1136
|
|
|
1141
|
-
const __default__$q = vue.defineComponent({
|
|
1142
|
-
name: "MFormCol"
|
|
1143
|
-
});
|
|
1144
1137
|
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
1145
|
-
...
|
|
1138
|
+
...{
|
|
1139
|
+
name: "MFormCol"
|
|
1140
|
+
},
|
|
1141
|
+
__name: "Col",
|
|
1146
1142
|
props: {
|
|
1147
|
-
model:
|
|
1148
|
-
lastValues:
|
|
1143
|
+
model: {},
|
|
1144
|
+
lastValues: {},
|
|
1149
1145
|
isCompare: { type: Boolean },
|
|
1150
|
-
config:
|
|
1151
|
-
labelWidth:
|
|
1146
|
+
config: {},
|
|
1147
|
+
labelWidth: {},
|
|
1152
1148
|
expandMore: { type: Boolean },
|
|
1153
|
-
span:
|
|
1154
|
-
size:
|
|
1155
|
-
prop:
|
|
1149
|
+
span: {},
|
|
1150
|
+
size: {},
|
|
1151
|
+
prop: {},
|
|
1156
1152
|
disabled: { type: Boolean }
|
|
1157
1153
|
},
|
|
1158
1154
|
emits: ["change", "addDiffCount"],
|
|
@@ -1163,44 +1159,44 @@
|
|
|
1163
1159
|
const changeHandler = () => emit("change", props.model);
|
|
1164
1160
|
const onAddDiffCount = () => emit("addDiffCount");
|
|
1165
1161
|
return (_ctx, _cache) => {
|
|
1166
|
-
return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCol), { span:
|
|
1162
|
+
return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCol), { span: _ctx.span }, {
|
|
1167
1163
|
default: vue.withCtx(() => [
|
|
1168
1164
|
vue.createVNode(_sfc_main$v, {
|
|
1169
|
-
model:
|
|
1170
|
-
lastValues:
|
|
1171
|
-
"is-compare":
|
|
1172
|
-
config:
|
|
1173
|
-
prop:
|
|
1174
|
-
"label-width":
|
|
1175
|
-
"expand-more":
|
|
1176
|
-
size:
|
|
1177
|
-
disabled:
|
|
1165
|
+
model: _ctx.model,
|
|
1166
|
+
lastValues: _ctx.lastValues,
|
|
1167
|
+
"is-compare": _ctx.isCompare,
|
|
1168
|
+
config: _ctx.config,
|
|
1169
|
+
prop: _ctx.prop,
|
|
1170
|
+
"label-width": _ctx.config.labelWidth || _ctx.labelWidth,
|
|
1171
|
+
"expand-more": _ctx.expandMore,
|
|
1172
|
+
size: _ctx.size,
|
|
1173
|
+
disabled: _ctx.disabled,
|
|
1178
1174
|
onChange: changeHandler,
|
|
1179
1175
|
onAddDiffCount
|
|
1180
1176
|
}, null, 8, ["model", "lastValues", "is-compare", "config", "prop", "label-width", "expand-more", "size", "disabled"])
|
|
1181
1177
|
]),
|
|
1182
1178
|
_: 1
|
|
1183
1179
|
}, 8, ["span"])), [
|
|
1184
|
-
[vue.vShow,
|
|
1180
|
+
[vue.vShow, display$1.value && _ctx.config.type !== "hidden"]
|
|
1185
1181
|
]);
|
|
1186
1182
|
};
|
|
1187
1183
|
}
|
|
1188
1184
|
});
|
|
1189
1185
|
|
|
1190
|
-
const __default__$p = vue.defineComponent({
|
|
1191
|
-
name: "MFormRow"
|
|
1192
|
-
});
|
|
1193
1186
|
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
1194
|
-
...
|
|
1187
|
+
...{
|
|
1188
|
+
name: "MFormRow"
|
|
1189
|
+
},
|
|
1190
|
+
__name: "Row",
|
|
1195
1191
|
props: {
|
|
1196
|
-
model:
|
|
1197
|
-
lastValues:
|
|
1192
|
+
model: {},
|
|
1193
|
+
lastValues: {},
|
|
1198
1194
|
isCompare: { type: Boolean },
|
|
1199
|
-
config:
|
|
1200
|
-
name:
|
|
1201
|
-
labelWidth:
|
|
1202
|
-
prop:
|
|
1203
|
-
size:
|
|
1195
|
+
config: {},
|
|
1196
|
+
name: {},
|
|
1197
|
+
labelWidth: {},
|
|
1198
|
+
prop: {},
|
|
1199
|
+
size: {},
|
|
1204
1200
|
expandMore: { type: Boolean },
|
|
1205
1201
|
disabled: { type: Boolean }
|
|
1206
1202
|
},
|
|
@@ -1213,19 +1209,19 @@
|
|
|
1213
1209
|
return (_ctx, _cache) => {
|
|
1214
1210
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicRow), { gutter: 10 }, {
|
|
1215
1211
|
default: vue.withCtx(() => [
|
|
1216
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
1212
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.items, (col, index) => {
|
|
1217
1213
|
return vue.openBlock(), vue.createBlock(_sfc_main$q, {
|
|
1218
1214
|
key: col[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
1219
|
-
span: col.span ||
|
|
1215
|
+
span: col.span || _ctx.config.span || 24 / _ctx.config.items.length,
|
|
1220
1216
|
config: col,
|
|
1221
|
-
labelWidth:
|
|
1222
|
-
expandMore:
|
|
1223
|
-
model:
|
|
1224
|
-
lastValues:
|
|
1225
|
-
"is-compare":
|
|
1226
|
-
prop:
|
|
1227
|
-
size:
|
|
1228
|
-
disabled:
|
|
1217
|
+
labelWidth: _ctx.config.labelWidth || _ctx.labelWidth,
|
|
1218
|
+
expandMore: _ctx.expandMore,
|
|
1219
|
+
model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
|
|
1220
|
+
lastValues: _ctx.name ? _ctx.lastValues[_ctx.name] : _ctx.lastValues,
|
|
1221
|
+
"is-compare": _ctx.isCompare,
|
|
1222
|
+
prop: _ctx.prop,
|
|
1223
|
+
size: _ctx.size,
|
|
1224
|
+
disabled: _ctx.disabled,
|
|
1229
1225
|
onChange: changeHandler,
|
|
1230
1226
|
onAddDiffCount
|
|
1231
1227
|
}, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "lastValues", "is-compare", "prop", "size", "disabled"]);
|
|
@@ -1237,19 +1233,19 @@
|
|
|
1237
1233
|
}
|
|
1238
1234
|
});
|
|
1239
1235
|
|
|
1240
|
-
const __default__$o = vue.defineComponent({
|
|
1241
|
-
name: "MFormStep"
|
|
1242
|
-
});
|
|
1243
1236
|
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
1244
|
-
...
|
|
1237
|
+
...{
|
|
1238
|
+
name: "MFormStep"
|
|
1239
|
+
},
|
|
1240
|
+
__name: "Step",
|
|
1245
1241
|
props: {
|
|
1246
|
-
model:
|
|
1247
|
-
lastValues:
|
|
1242
|
+
model: {},
|
|
1243
|
+
lastValues: {},
|
|
1248
1244
|
isCompare: { type: Boolean },
|
|
1249
|
-
config:
|
|
1245
|
+
config: {},
|
|
1250
1246
|
stepActive: { default: 1 },
|
|
1251
|
-
labelWidth:
|
|
1252
|
-
size:
|
|
1247
|
+
labelWidth: {},
|
|
1248
|
+
size: {},
|
|
1253
1249
|
disabled: { type: Boolean }
|
|
1254
1250
|
},
|
|
1255
1251
|
emits: ["change", "addDiffCount"],
|
|
@@ -1273,10 +1269,10 @@
|
|
|
1273
1269
|
vue.createVNode(vue.unref(design.TMagicSteps), {
|
|
1274
1270
|
active: active.value,
|
|
1275
1271
|
"align-center": "",
|
|
1276
|
-
space:
|
|
1272
|
+
space: _ctx.config.space
|
|
1277
1273
|
}, {
|
|
1278
1274
|
default: vue.withCtx(() => [
|
|
1279
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
1275
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.items, (item, index) => {
|
|
1280
1276
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicStep), {
|
|
1281
1277
|
key: item.__key,
|
|
1282
1278
|
title: item.title,
|
|
@@ -1287,20 +1283,20 @@
|
|
|
1287
1283
|
]),
|
|
1288
1284
|
_: 1
|
|
1289
1285
|
}, 8, ["active", "space"]),
|
|
1290
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
1286
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.items, (step, index) => {
|
|
1291
1287
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
1292
1288
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(step.items, (item) => {
|
|
1293
1289
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
1294
1290
|
item ? vue.withDirectives((vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
1295
1291
|
key: item[vue.unref(mForm)?.keyProp || "__key"],
|
|
1296
1292
|
config: item,
|
|
1297
|
-
model: step.name ?
|
|
1298
|
-
lastValues: step.name ?
|
|
1299
|
-
"is-compare":
|
|
1293
|
+
model: step.name ? _ctx.model[step.name] : _ctx.model,
|
|
1294
|
+
lastValues: step.name ? _ctx.lastValues[step.name] : _ctx.lastValues,
|
|
1295
|
+
"is-compare": _ctx.isCompare,
|
|
1300
1296
|
prop: `${step.name}`,
|
|
1301
|
-
size:
|
|
1302
|
-
disabled:
|
|
1303
|
-
"label-width":
|
|
1297
|
+
size: _ctx.size,
|
|
1298
|
+
disabled: _ctx.disabled,
|
|
1299
|
+
"label-width": _ctx.config.labelWidth || _ctx.labelWidth,
|
|
1304
1300
|
onChange: changeHandler,
|
|
1305
1301
|
onAddDiffCount: _cache[0] || (_cache[0] = ($event) => onAddDiffCount())
|
|
1306
1302
|
}, null, 8, ["config", "model", "lastValues", "is-compare", "prop", "size", "disabled", "label-width"])), [
|
|
@@ -1316,42 +1312,36 @@
|
|
|
1316
1312
|
});
|
|
1317
1313
|
|
|
1318
1314
|
const _hoisted_1$6 = ["innerHTML"];
|
|
1319
|
-
const _hoisted_2$
|
|
1320
|
-
const _hoisted_3
|
|
1321
|
-
const _hoisted_4
|
|
1322
|
-
const _hoisted_5 = /* @__PURE__ */ vue.createTextVNode(" ");
|
|
1323
|
-
const _hoisted_6 = /* @__PURE__ */ vue.createTextVNode("展开配置");
|
|
1324
|
-
const _hoisted_7 = /* @__PURE__ */ vue.createTextVNode("导入EXCEL");
|
|
1325
|
-
const _hoisted_8 = /* @__PURE__ */ vue.createTextVNode(" ");
|
|
1326
|
-
const _hoisted_9 = /* @__PURE__ */ vue.createTextVNode("清空");
|
|
1327
|
-
const _hoisted_10 = {
|
|
1315
|
+
const _hoisted_2$1 = { class: "el-form-item__content" };
|
|
1316
|
+
const _hoisted_3 = ["innerHTML"];
|
|
1317
|
+
const _hoisted_4 = {
|
|
1328
1318
|
key: 1,
|
|
1329
1319
|
class: "bottom",
|
|
1330
1320
|
style: { "text-align": "right" }
|
|
1331
1321
|
};
|
|
1332
|
-
const __default__$n = vue.defineComponent({
|
|
1333
|
-
name: "MFormTable"
|
|
1334
|
-
});
|
|
1335
1322
|
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
1336
|
-
...
|
|
1323
|
+
...{
|
|
1324
|
+
name: "MFormTable"
|
|
1325
|
+
},
|
|
1326
|
+
__name: "Table",
|
|
1337
1327
|
props: {
|
|
1338
|
-
model:
|
|
1328
|
+
model: {},
|
|
1339
1329
|
lastValues: { default: () => ({}) },
|
|
1340
1330
|
isCompare: { type: Boolean, default: false },
|
|
1341
|
-
config:
|
|
1342
|
-
name:
|
|
1331
|
+
config: {},
|
|
1332
|
+
name: {},
|
|
1343
1333
|
prop: { default: "" },
|
|
1344
|
-
labelWidth:
|
|
1334
|
+
labelWidth: {},
|
|
1345
1335
|
sort: { type: Boolean },
|
|
1346
1336
|
disabled: { type: Boolean },
|
|
1347
1337
|
sortKey: { default: "" },
|
|
1348
|
-
text:
|
|
1349
|
-
size:
|
|
1338
|
+
text: {},
|
|
1339
|
+
size: {},
|
|
1350
1340
|
enableToggleMode: { type: Boolean, default: true },
|
|
1351
1341
|
showIndex: { type: Boolean, default: true }
|
|
1352
1342
|
},
|
|
1353
1343
|
emits: ["change", "select", "addDiffCount"],
|
|
1354
|
-
setup(__props, { expose, emit }) {
|
|
1344
|
+
setup(__props, { expose: __expose, emit }) {
|
|
1355
1345
|
const props = __props;
|
|
1356
1346
|
let timer = null;
|
|
1357
1347
|
const mForm = vue.inject("mForm");
|
|
@@ -1671,43 +1661,43 @@
|
|
|
1671
1661
|
return `${prop.value}${prop.value ? "." : ""}${index + 1 + pagecontext.value * pagesize.value - 1}`;
|
|
1672
1662
|
};
|
|
1673
1663
|
const onAddDiffCount = () => emit("addDiffCount");
|
|
1674
|
-
|
|
1664
|
+
__expose({
|
|
1675
1665
|
toggleRowSelection
|
|
1676
1666
|
});
|
|
1677
1667
|
return (_ctx, _cache) => {
|
|
1678
1668
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
1679
1669
|
ref_key: "mTable",
|
|
1680
1670
|
ref: mTable,
|
|
1681
|
-
class: vue.normalizeClass(["m-fields-table", { "m-fields-table-item-extra":
|
|
1671
|
+
class: vue.normalizeClass(["m-fields-table", { "m-fields-table-item-extra": _ctx.config.itemExtra }])
|
|
1682
1672
|
}, [
|
|
1683
|
-
|
|
1673
|
+
_ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
1684
1674
|
key: 0,
|
|
1685
1675
|
style: { "color": "rgba(0, 0, 0, 0.45)" },
|
|
1686
|
-
innerHTML:
|
|
1676
|
+
innerHTML: _ctx.config.extra
|
|
1687
1677
|
}, null, 8, _hoisted_1$6)) : vue.createCommentVNode("", true),
|
|
1688
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
1678
|
+
vue.createElementVNode("div", _hoisted_2$1, [
|
|
1689
1679
|
vue.createVNode(vue.unref(design.TMagicTooltip), {
|
|
1690
1680
|
content: "拖拽可排序",
|
|
1691
1681
|
placement: "left-start",
|
|
1692
|
-
disabled:
|
|
1682
|
+
disabled: _ctx.config.dropSort !== true
|
|
1693
1683
|
}, {
|
|
1694
1684
|
default: vue.withCtx(() => [
|
|
1695
|
-
|
|
1685
|
+
_ctx.model[modelName.value] ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTable), {
|
|
1696
1686
|
ref_key: "tMagicTable",
|
|
1697
1687
|
ref: tMagicTable,
|
|
1698
1688
|
style: { "width": "100%" },
|
|
1699
|
-
"row-key":
|
|
1700
|
-
data:
|
|
1701
|
-
lastData:
|
|
1702
|
-
border:
|
|
1703
|
-
"max-height":
|
|
1689
|
+
"row-key": _ctx.config.rowKey || "id",
|
|
1690
|
+
data: data.value,
|
|
1691
|
+
lastData: lastData.value,
|
|
1692
|
+
border: _ctx.config.border,
|
|
1693
|
+
"max-height": _ctx.config.maxHeight,
|
|
1704
1694
|
"default-expand-all": true,
|
|
1705
1695
|
key: updateKey.value,
|
|
1706
1696
|
onSelect: selectHandle,
|
|
1707
1697
|
onSortChange: sortChange
|
|
1708
1698
|
}, {
|
|
1709
1699
|
default: vue.withCtx(() => [
|
|
1710
|
-
|
|
1700
|
+
_ctx.config.itemExtra ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
1711
1701
|
key: 0,
|
|
1712
1702
|
fixed: "left",
|
|
1713
1703
|
width: "30",
|
|
@@ -1715,17 +1705,17 @@
|
|
|
1715
1705
|
}, {
|
|
1716
1706
|
default: vue.withCtx((scope) => [
|
|
1717
1707
|
vue.createElementVNode("span", {
|
|
1718
|
-
innerHTML: itemExtra(
|
|
1708
|
+
innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
|
|
1719
1709
|
class: "m-form-tip"
|
|
1720
|
-
}, null, 8, _hoisted_3
|
|
1710
|
+
}, null, 8, _hoisted_3)
|
|
1721
1711
|
]),
|
|
1722
1712
|
_: 1
|
|
1723
1713
|
})) : vue.createCommentVNode("", true),
|
|
1724
1714
|
vue.createVNode(vue.unref(design.TMagicTableColumn), {
|
|
1725
1715
|
label: "操作",
|
|
1726
|
-
width:
|
|
1716
|
+
width: _ctx.config.operateColWidth || 55,
|
|
1727
1717
|
align: "center",
|
|
1728
|
-
fixed:
|
|
1718
|
+
fixed: _ctx.config.fixed === false ? void 0 : "left"
|
|
1729
1719
|
}, {
|
|
1730
1720
|
default: vue.withCtx((scope) => [
|
|
1731
1721
|
vue.renderSlot(_ctx.$slots, "operateCol", { scope }),
|
|
@@ -1743,7 +1733,7 @@
|
|
|
1743
1733
|
]),
|
|
1744
1734
|
_: 3
|
|
1745
1735
|
}, 8, ["width", "fixed"]),
|
|
1746
|
-
|
|
1736
|
+
_ctx.sort && _ctx.model[modelName.value] && _ctx.model[modelName.value].length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
1747
1737
|
key: 1,
|
|
1748
1738
|
label: "排序",
|
|
1749
1739
|
width: "60"
|
|
@@ -1760,7 +1750,7 @@
|
|
|
1760
1750
|
size: "small",
|
|
1761
1751
|
type: "primary",
|
|
1762
1752
|
icon: vue.unref(iconsVue.ArrowUp),
|
|
1763
|
-
disabled:
|
|
1753
|
+
disabled: _ctx.disabled,
|
|
1764
1754
|
text: "",
|
|
1765
1755
|
onClick: ($event) => upHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
|
|
1766
1756
|
onDblclick: ($event) => topHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
@@ -1768,7 +1758,7 @@
|
|
|
1768
1758
|
]),
|
|
1769
1759
|
_: 2
|
|
1770
1760
|
}, 1024)) : vue.createCommentVNode("", true),
|
|
1771
|
-
scope.$index + 1 + pagecontext.value * pagesize.value - 1 !==
|
|
1761
|
+
scope.$index + 1 + pagecontext.value * pagesize.value - 1 !== _ctx.model[modelName.value].length - 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
1772
1762
|
key: 1,
|
|
1773
1763
|
content: "点击下移,双击置底",
|
|
1774
1764
|
placement: "top"
|
|
@@ -1779,7 +1769,7 @@
|
|
|
1779
1769
|
size: "small",
|
|
1780
1770
|
type: "primary",
|
|
1781
1771
|
icon: vue.unref(iconsVue.ArrowDown),
|
|
1782
|
-
disabled:
|
|
1772
|
+
disabled: _ctx.disabled,
|
|
1783
1773
|
text: "",
|
|
1784
1774
|
onClick: ($event) => downHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1),
|
|
1785
1775
|
onDblclick: ($event) => bottomHandler(scope.$index + 1 + pagecontext.value * pagesize.value - 1)
|
|
@@ -1790,14 +1780,14 @@
|
|
|
1790
1780
|
]),
|
|
1791
1781
|
_: 1
|
|
1792
1782
|
})) : vue.createCommentVNode("", true),
|
|
1793
|
-
|
|
1783
|
+
selection.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
1794
1784
|
key: 2,
|
|
1795
1785
|
align: "center",
|
|
1796
1786
|
"header-align": "center",
|
|
1797
1787
|
type: "selection",
|
|
1798
1788
|
width: "45"
|
|
1799
1789
|
})) : vue.createCommentVNode("", true),
|
|
1800
|
-
|
|
1790
|
+
_ctx.showIndex && _ctx.config.showIndex ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
1801
1791
|
key: 3,
|
|
1802
1792
|
width: "60",
|
|
1803
1793
|
label: "序号"
|
|
@@ -1807,7 +1797,7 @@
|
|
|
1807
1797
|
]),
|
|
1808
1798
|
_: 1
|
|
1809
1799
|
})) : vue.createCommentVNode("", true),
|
|
1810
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
1800
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.items, (column, index) => {
|
|
1811
1801
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
1812
1802
|
column.type !== "hidden" && display$1(column.display) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
|
|
1813
1803
|
prop: column.name,
|
|
@@ -1816,21 +1806,21 @@
|
|
|
1816
1806
|
sortable: column.sortable,
|
|
1817
1807
|
"sort-orders": ["ascending", "descending"],
|
|
1818
1808
|
key: column[vue.unref(mForm)?.keyProp || "__key"] ?? index,
|
|
1819
|
-
"class-name":
|
|
1809
|
+
"class-name": _ctx.config.dropSort === true ? "el-table__column--dropable" : ""
|
|
1820
1810
|
}, {
|
|
1821
1811
|
default: vue.withCtx((scope) => [
|
|
1822
1812
|
scope.$index > -1 ? (vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
1823
1813
|
key: 0,
|
|
1824
1814
|
labelWidth: "0",
|
|
1825
|
-
disabled:
|
|
1815
|
+
disabled: _ctx.disabled,
|
|
1826
1816
|
prop: getProp(scope.$index),
|
|
1827
1817
|
rules: column.rules,
|
|
1828
1818
|
config: makeConfig(column, scope.row),
|
|
1829
1819
|
model: scope.row,
|
|
1830
|
-
lastValues:
|
|
1831
|
-
"is-compare":
|
|
1832
|
-
size:
|
|
1833
|
-
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change",
|
|
1820
|
+
lastValues: lastData.value[scope.$index],
|
|
1821
|
+
"is-compare": _ctx.isCompare,
|
|
1822
|
+
size: _ctx.size,
|
|
1823
|
+
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", _ctx.model[modelName.value])),
|
|
1834
1824
|
onAddDiffCount: _cache[1] || (_cache[1] = ($event) => onAddDiffCount())
|
|
1835
1825
|
}, null, 8, ["disabled", "prop", "rules", "config", "model", "lastValues", "is-compare", "size"])) : vue.createCommentVNode("", true)
|
|
1836
1826
|
]),
|
|
@@ -1845,21 +1835,21 @@
|
|
|
1845
1835
|
_: 3
|
|
1846
1836
|
}, 8, ["disabled"]),
|
|
1847
1837
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
1848
|
-
|
|
1838
|
+
addable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
1849
1839
|
key: 0,
|
|
1850
1840
|
size: "small",
|
|
1851
1841
|
type: "primary",
|
|
1852
|
-
disabled:
|
|
1842
|
+
disabled: _ctx.disabled,
|
|
1853
1843
|
plain: "",
|
|
1854
1844
|
onClick: _cache[2] || (_cache[2] = ($event) => newHandler())
|
|
1855
1845
|
}, {
|
|
1856
1846
|
default: vue.withCtx(() => [
|
|
1857
|
-
|
|
1847
|
+
vue.createTextVNode("添加")
|
|
1858
1848
|
]),
|
|
1859
1849
|
_: 1
|
|
1860
1850
|
}, 8, ["disabled"])) : vue.createCommentVNode("", true),
|
|
1861
|
-
|
|
1862
|
-
|
|
1851
|
+
vue.createTextVNode(" "),
|
|
1852
|
+
_ctx.enableToggleMode && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
1863
1853
|
key: 1,
|
|
1864
1854
|
icon: vue.unref(iconsVue.Grid),
|
|
1865
1855
|
size: "small",
|
|
@@ -1867,11 +1857,11 @@
|
|
|
1867
1857
|
onClick: toggleMode
|
|
1868
1858
|
}, {
|
|
1869
1859
|
default: vue.withCtx(() => [
|
|
1870
|
-
|
|
1860
|
+
vue.createTextVNode("展开配置")
|
|
1871
1861
|
]),
|
|
1872
1862
|
_: 1
|
|
1873
1863
|
}, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
1874
|
-
|
|
1864
|
+
_ctx.config.enableFullscreen !== false ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
1875
1865
|
key: 2,
|
|
1876
1866
|
icon: vue.unref(iconsVue.FullScreen),
|
|
1877
1867
|
size: "small",
|
|
@@ -1883,13 +1873,13 @@
|
|
|
1883
1873
|
]),
|
|
1884
1874
|
_: 1
|
|
1885
1875
|
}, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
1886
|
-
|
|
1876
|
+
importable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicUpload), {
|
|
1887
1877
|
key: 3,
|
|
1888
1878
|
style: { "display": "inline-block" },
|
|
1889
1879
|
ref_key: "excelBtn",
|
|
1890
1880
|
ref: excelBtn,
|
|
1891
1881
|
action: "/noop",
|
|
1892
|
-
disabled:
|
|
1882
|
+
disabled: _ctx.disabled,
|
|
1893
1883
|
"on-change": excelHandler,
|
|
1894
1884
|
"auto-upload": false
|
|
1895
1885
|
}, {
|
|
@@ -1897,40 +1887,40 @@
|
|
|
1897
1887
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
1898
1888
|
size: "small",
|
|
1899
1889
|
type: "success",
|
|
1900
|
-
disabled:
|
|
1890
|
+
disabled: _ctx.disabled,
|
|
1901
1891
|
plain: ""
|
|
1902
1892
|
}, {
|
|
1903
1893
|
default: vue.withCtx(() => [
|
|
1904
|
-
|
|
1894
|
+
vue.createTextVNode("导入EXCEL")
|
|
1905
1895
|
]),
|
|
1906
1896
|
_: 1
|
|
1907
1897
|
}, 8, ["disabled"])
|
|
1908
1898
|
]),
|
|
1909
1899
|
_: 1
|
|
1910
1900
|
}, 8, ["disabled"])) : vue.createCommentVNode("", true),
|
|
1911
|
-
|
|
1912
|
-
|
|
1901
|
+
vue.createTextVNode(" "),
|
|
1902
|
+
importable.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
1913
1903
|
key: 4,
|
|
1914
1904
|
size: "small",
|
|
1915
1905
|
type: "warning",
|
|
1916
|
-
disabled:
|
|
1906
|
+
disabled: _ctx.disabled,
|
|
1917
1907
|
plain: "",
|
|
1918
1908
|
onClick: _cache[3] || (_cache[3] = ($event) => clearHandler())
|
|
1919
1909
|
}, {
|
|
1920
1910
|
default: vue.withCtx(() => [
|
|
1921
|
-
|
|
1911
|
+
vue.createTextVNode("清空")
|
|
1922
1912
|
]),
|
|
1923
1913
|
_: 1
|
|
1924
1914
|
}, 8, ["disabled"])) : vue.createCommentVNode("", true)
|
|
1925
1915
|
]),
|
|
1926
|
-
|
|
1916
|
+
_ctx.config.pagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
1927
1917
|
vue.createVNode(vue.unref(design.TMagicPagination), {
|
|
1928
1918
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
1929
|
-
"hide-on-single-page":
|
|
1919
|
+
"hide-on-single-page": _ctx.model[modelName.value].length < pagesize.value,
|
|
1930
1920
|
"current-page": pagecontext.value + 1,
|
|
1931
1921
|
"page-sizes": [pagesize.value, 60, 120, 300],
|
|
1932
1922
|
"page-size": pagesize.value,
|
|
1933
|
-
total:
|
|
1923
|
+
total: _ctx.model[modelName.value].length,
|
|
1934
1924
|
onSizeChange: handleSizeChange,
|
|
1935
1925
|
onCurrentChange: handleCurrentChange
|
|
1936
1926
|
}, null, 8, ["hide-on-single-page", "current-page", "page-sizes", "page-size", "total"])
|
|
@@ -1940,28 +1930,28 @@
|
|
|
1940
1930
|
}
|
|
1941
1931
|
});
|
|
1942
1932
|
|
|
1943
|
-
const __default__$m = vue.defineComponent({
|
|
1944
|
-
name: "MFormTabs"
|
|
1945
|
-
});
|
|
1946
1933
|
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
1947
|
-
...
|
|
1934
|
+
...{
|
|
1935
|
+
name: "MFormTabs"
|
|
1936
|
+
},
|
|
1937
|
+
__name: "Tabs",
|
|
1948
1938
|
props: {
|
|
1949
|
-
model:
|
|
1939
|
+
model: {},
|
|
1950
1940
|
lastValues: { default: () => ({}) },
|
|
1951
1941
|
isCompare: { type: Boolean, default: false },
|
|
1952
|
-
config:
|
|
1953
|
-
name:
|
|
1954
|
-
size:
|
|
1955
|
-
labelWidth:
|
|
1956
|
-
prop:
|
|
1942
|
+
config: {},
|
|
1943
|
+
name: {},
|
|
1944
|
+
size: {},
|
|
1945
|
+
labelWidth: {},
|
|
1946
|
+
prop: {},
|
|
1957
1947
|
expandMore: { type: Boolean },
|
|
1958
1948
|
disabled: { type: Boolean }
|
|
1959
1949
|
},
|
|
1960
1950
|
emits: ["change", "addDiffCount"],
|
|
1961
1951
|
setup(__props, { emit }) {
|
|
1962
1952
|
const props = __props;
|
|
1963
|
-
const tabPaneComponent = design.getConfig("components")
|
|
1964
|
-
const tabsComponent = design.getConfig("components")
|
|
1953
|
+
const tabPaneComponent = design.getConfig("components")?.tabPane;
|
|
1954
|
+
const tabsComponent = design.getConfig("components")?.tabs;
|
|
1965
1955
|
const getActive = (mForm2, props2, activeTabName2) => {
|
|
1966
1956
|
const { config, model, prop } = props2;
|
|
1967
1957
|
const { active } = config;
|
|
@@ -2057,28 +2047,31 @@
|
|
|
2057
2047
|
emit("addDiffCount");
|
|
2058
2048
|
};
|
|
2059
2049
|
return (_ctx, _cache) => {
|
|
2060
|
-
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tabsComponent)
|
|
2050
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tabsComponent)?.component || "el-tabs"), vue.mergeProps(
|
|
2061
2051
|
{
|
|
2062
2052
|
modelValue: activeTabName.value,
|
|
2063
2053
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeTabName.value = $event)
|
|
2064
2054
|
},
|
|
2065
|
-
vue.unref(tabsComponent)
|
|
2066
|
-
type:
|
|
2067
|
-
editable:
|
|
2068
|
-
tabPosition:
|
|
2069
|
-
}),
|
|
2055
|
+
vue.unref(tabsComponent)?.props({
|
|
2056
|
+
type: _ctx.config.tabType,
|
|
2057
|
+
editable: _ctx.config.editable || false,
|
|
2058
|
+
tabPosition: _ctx.config.tabPosition || "top"
|
|
2059
|
+
}) || {},
|
|
2070
2060
|
{
|
|
2071
|
-
class: `tmagic-design-tabs ${
|
|
2061
|
+
class: `tmagic-design-tabs ${_ctx.config.dynamic ? "magic-form-dynamic-tab" : "magic-form-tab"}`,
|
|
2072
2062
|
onTabClick: tabClickHandler,
|
|
2073
2063
|
onTabAdd,
|
|
2074
2064
|
onTabRemove
|
|
2075
2065
|
}
|
|
2076
2066
|
), {
|
|
2077
2067
|
default: vue.withCtx(() => [
|
|
2078
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
2079
|
-
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tabPaneComponent)
|
|
2080
|
-
|
|
2081
|
-
|
|
2068
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tabs.value, (tab, tabIndex) => {
|
|
2069
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tabPaneComponent)?.component || "el-tab-pane"), vue.mergeProps(
|
|
2070
|
+
{
|
|
2071
|
+
key: tab[vue.unref(mForm)?.keyProp || "__key"] ?? tabIndex
|
|
2072
|
+
},
|
|
2073
|
+
vue.unref(tabPaneComponent)?.props({ name: filter(tab.status) || tabIndex.toString(), lazy: tab.lazy || false }) || {}
|
|
2074
|
+
), {
|
|
2082
2075
|
label: vue.withCtx(() => [
|
|
2083
2076
|
vue.createElementVNode("span", null, [
|
|
2084
2077
|
vue.createTextVNode(vue.toDisplayString(filter(tab.title)), 1),
|
|
@@ -2094,14 +2087,14 @@
|
|
|
2094
2087
|
return vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
2095
2088
|
key: item[vue.unref(mForm)?.keyProp || "__key"],
|
|
2096
2089
|
config: item,
|
|
2097
|
-
disabled:
|
|
2098
|
-
model:
|
|
2099
|
-
"last-values": vue.unref(lodashEs.isEmpty)(
|
|
2100
|
-
"is-compare":
|
|
2101
|
-
prop:
|
|
2102
|
-
size:
|
|
2103
|
-
"label-width": tab.labelWidth ||
|
|
2104
|
-
"expand-more":
|
|
2090
|
+
disabled: _ctx.disabled,
|
|
2091
|
+
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,
|
|
2092
|
+
"last-values": vue.unref(lodashEs.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,
|
|
2093
|
+
"is-compare": _ctx.isCompare,
|
|
2094
|
+
prop: _ctx.config.dynamic ? `${_ctx.prop}${_ctx.prop ? "." : ""}${String(tabIndex)}` : _ctx.prop,
|
|
2095
|
+
size: _ctx.size,
|
|
2096
|
+
"label-width": tab.labelWidth || _ctx.labelWidth,
|
|
2097
|
+
"expand-more": _ctx.expandMore,
|
|
2105
2098
|
onChange: changeHandler,
|
|
2106
2099
|
onAddDiffCount: ($event) => onAddDiffCount(tabIndex)
|
|
2107
2100
|
}, null, 8, ["config", "disabled", "model", "last-values", "is-compare", "prop", "size", "label-width", "expand-more", "onAddDiffCount"]);
|
|
@@ -2143,21 +2136,21 @@
|
|
|
2143
2136
|
);
|
|
2144
2137
|
};
|
|
2145
2138
|
|
|
2146
|
-
const __default__$l = vue.defineComponent({
|
|
2147
|
-
name: "MFormCascader"
|
|
2148
|
-
});
|
|
2149
2139
|
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
2150
|
-
...
|
|
2140
|
+
...{
|
|
2141
|
+
name: "MFormCascader"
|
|
2142
|
+
},
|
|
2143
|
+
__name: "Cascader",
|
|
2151
2144
|
props: {
|
|
2152
|
-
config:
|
|
2153
|
-
model:
|
|
2154
|
-
initValues:
|
|
2155
|
-
values:
|
|
2156
|
-
name:
|
|
2157
|
-
prop:
|
|
2145
|
+
config: {},
|
|
2146
|
+
model: {},
|
|
2147
|
+
initValues: {},
|
|
2148
|
+
values: {},
|
|
2149
|
+
name: {},
|
|
2150
|
+
prop: {},
|
|
2158
2151
|
disabled: { type: Boolean },
|
|
2159
|
-
size:
|
|
2160
|
-
lastValues:
|
|
2152
|
+
size: {},
|
|
2153
|
+
lastValues: {}
|
|
2161
2154
|
},
|
|
2162
2155
|
emits: ["change"],
|
|
2163
2156
|
setup(__props, { emit }) {
|
|
@@ -2213,39 +2206,39 @@
|
|
|
2213
2206
|
};
|
|
2214
2207
|
return (_ctx, _cache) => {
|
|
2215
2208
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCascader), {
|
|
2216
|
-
modelValue:
|
|
2217
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2209
|
+
modelValue: _ctx.model[_ctx.name],
|
|
2210
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
2218
2211
|
ref_key: "tMagicCascader",
|
|
2219
2212
|
ref: tMagicCascader,
|
|
2220
2213
|
style: { "width": "100%" },
|
|
2221
2214
|
clearable: "",
|
|
2222
2215
|
filterable: "",
|
|
2223
|
-
size:
|
|
2224
|
-
placeholder:
|
|
2225
|
-
disabled:
|
|
2216
|
+
size: _ctx.size,
|
|
2217
|
+
placeholder: _ctx.config.placeholder,
|
|
2218
|
+
disabled: _ctx.disabled,
|
|
2226
2219
|
options: vue.unref(options),
|
|
2227
|
-
props: { multiple:
|
|
2220
|
+
props: { multiple: _ctx.config.multiple },
|
|
2228
2221
|
onChange: changeHandler
|
|
2229
2222
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "options", "props"]);
|
|
2230
2223
|
};
|
|
2231
2224
|
}
|
|
2232
2225
|
});
|
|
2233
2226
|
|
|
2234
|
-
const __default__$k = vue.defineComponent({
|
|
2235
|
-
name: "MFormCheckbox"
|
|
2236
|
-
});
|
|
2237
2227
|
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
2238
|
-
...
|
|
2228
|
+
...{
|
|
2229
|
+
name: "MFormCheckbox"
|
|
2230
|
+
},
|
|
2231
|
+
__name: "Checkbox",
|
|
2239
2232
|
props: {
|
|
2240
|
-
config:
|
|
2241
|
-
model:
|
|
2242
|
-
initValues:
|
|
2243
|
-
values:
|
|
2244
|
-
name:
|
|
2245
|
-
prop:
|
|
2233
|
+
config: {},
|
|
2234
|
+
model: {},
|
|
2235
|
+
initValues: {},
|
|
2236
|
+
values: {},
|
|
2237
|
+
name: {},
|
|
2238
|
+
prop: {},
|
|
2246
2239
|
disabled: { type: Boolean },
|
|
2247
|
-
size:
|
|
2248
|
-
lastValues:
|
|
2240
|
+
size: {},
|
|
2241
|
+
lastValues: {}
|
|
2249
2242
|
},
|
|
2250
2243
|
emits: ["change"],
|
|
2251
2244
|
setup(__props, { emit }) {
|
|
@@ -2276,16 +2269,16 @@
|
|
|
2276
2269
|
};
|
|
2277
2270
|
return (_ctx, _cache) => {
|
|
2278
2271
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCheckbox), {
|
|
2279
|
-
modelValue:
|
|
2280
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2281
|
-
size:
|
|
2282
|
-
trueLabel:
|
|
2283
|
-
falseLabel:
|
|
2284
|
-
disabled:
|
|
2272
|
+
modelValue: _ctx.model[_ctx.name],
|
|
2273
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
2274
|
+
size: _ctx.size,
|
|
2275
|
+
trueLabel: activeValue.value,
|
|
2276
|
+
falseLabel: inactiveValue.value,
|
|
2277
|
+
disabled: _ctx.disabled,
|
|
2285
2278
|
onChange: changeHandler
|
|
2286
2279
|
}, {
|
|
2287
2280
|
default: vue.withCtx(() => [
|
|
2288
|
-
vue.createTextVNode(vue.toDisplayString(
|
|
2281
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.config.text), 1)
|
|
2289
2282
|
]),
|
|
2290
2283
|
_: 1
|
|
2291
2284
|
}, 8, ["modelValue", "size", "trueLabel", "falseLabel", "disabled"]);
|
|
@@ -2293,21 +2286,21 @@
|
|
|
2293
2286
|
}
|
|
2294
2287
|
});
|
|
2295
2288
|
|
|
2296
|
-
const __default__$j = vue.defineComponent({
|
|
2297
|
-
name: "MFormCheckGroup"
|
|
2298
|
-
});
|
|
2299
2289
|
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
2300
|
-
...
|
|
2290
|
+
...{
|
|
2291
|
+
name: "MFormCheckGroup"
|
|
2292
|
+
},
|
|
2293
|
+
__name: "CheckboxGroup",
|
|
2301
2294
|
props: {
|
|
2302
|
-
config:
|
|
2303
|
-
model:
|
|
2304
|
-
initValues:
|
|
2305
|
-
values:
|
|
2306
|
-
name:
|
|
2307
|
-
prop:
|
|
2295
|
+
config: {},
|
|
2296
|
+
model: {},
|
|
2297
|
+
initValues: {},
|
|
2298
|
+
values: {},
|
|
2299
|
+
name: {},
|
|
2300
|
+
prop: {},
|
|
2308
2301
|
disabled: { type: Boolean },
|
|
2309
|
-
size:
|
|
2310
|
-
lastValues:
|
|
2302
|
+
size: {},
|
|
2303
|
+
lastValues: {}
|
|
2311
2304
|
},
|
|
2312
2305
|
emits: ["change"],
|
|
2313
2306
|
setup(__props, { emit }) {
|
|
@@ -2329,14 +2322,14 @@
|
|
|
2329
2322
|
});
|
|
2330
2323
|
return (_ctx, _cache) => {
|
|
2331
2324
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCheckboxGroup), {
|
|
2332
|
-
modelValue:
|
|
2333
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2334
|
-
size:
|
|
2335
|
-
disabled:
|
|
2325
|
+
modelValue: _ctx.model[_ctx.name],
|
|
2326
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
2327
|
+
size: _ctx.size,
|
|
2328
|
+
disabled: _ctx.disabled,
|
|
2336
2329
|
onChange: changeHandler
|
|
2337
2330
|
}, {
|
|
2338
2331
|
default: vue.withCtx(() => [
|
|
2339
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
2332
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(options.value, (option) => {
|
|
2340
2333
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCheckbox), {
|
|
2341
2334
|
label: option.value,
|
|
2342
2335
|
value: option.value,
|
|
@@ -2356,21 +2349,21 @@
|
|
|
2356
2349
|
}
|
|
2357
2350
|
});
|
|
2358
2351
|
|
|
2359
|
-
const __default__$i = vue.defineComponent({
|
|
2360
|
-
name: "MFormColorPicker"
|
|
2361
|
-
});
|
|
2362
2352
|
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
2363
|
-
...
|
|
2353
|
+
...{
|
|
2354
|
+
name: "MFormColorPicker"
|
|
2355
|
+
},
|
|
2356
|
+
__name: "ColorPicker",
|
|
2364
2357
|
props: {
|
|
2365
|
-
config:
|
|
2366
|
-
model:
|
|
2367
|
-
initValues:
|
|
2368
|
-
values:
|
|
2369
|
-
name:
|
|
2370
|
-
prop:
|
|
2358
|
+
config: {},
|
|
2359
|
+
model: {},
|
|
2360
|
+
initValues: {},
|
|
2361
|
+
values: {},
|
|
2362
|
+
name: {},
|
|
2363
|
+
prop: {},
|
|
2371
2364
|
disabled: { type: Boolean },
|
|
2372
|
-
size:
|
|
2373
|
-
lastValues:
|
|
2365
|
+
size: {},
|
|
2366
|
+
lastValues: {}
|
|
2374
2367
|
},
|
|
2375
2368
|
emits: ["change"],
|
|
2376
2369
|
setup(__props, { emit }) {
|
|
@@ -2379,10 +2372,10 @@
|
|
|
2379
2372
|
const changeHandler = (value) => emit("change", value);
|
|
2380
2373
|
return (_ctx, _cache) => {
|
|
2381
2374
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicColorPicker), {
|
|
2382
|
-
modelValue:
|
|
2383
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2384
|
-
size:
|
|
2385
|
-
disabled:
|
|
2375
|
+
modelValue: _ctx.model[_ctx.name],
|
|
2376
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
2377
|
+
size: _ctx.size,
|
|
2378
|
+
disabled: _ctx.disabled,
|
|
2386
2379
|
showAlpha: true,
|
|
2387
2380
|
onChange: changeHandler
|
|
2388
2381
|
}, null, 8, ["modelValue", "size", "disabled"]);
|
|
@@ -2390,21 +2383,21 @@
|
|
|
2390
2383
|
}
|
|
2391
2384
|
});
|
|
2392
2385
|
|
|
2393
|
-
const __default__$h = vue.defineComponent({
|
|
2394
|
-
name: "MFormDate"
|
|
2395
|
-
});
|
|
2396
2386
|
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
2397
|
-
...
|
|
2387
|
+
...{
|
|
2388
|
+
name: "MFormDate"
|
|
2389
|
+
},
|
|
2390
|
+
__name: "Date",
|
|
2398
2391
|
props: {
|
|
2399
|
-
config:
|
|
2400
|
-
model:
|
|
2401
|
-
initValues:
|
|
2402
|
-
values:
|
|
2403
|
-
name:
|
|
2404
|
-
prop:
|
|
2392
|
+
config: {},
|
|
2393
|
+
model: {},
|
|
2394
|
+
initValues: {},
|
|
2395
|
+
values: {},
|
|
2396
|
+
name: {},
|
|
2397
|
+
prop: {},
|
|
2405
2398
|
disabled: { type: Boolean },
|
|
2406
|
-
size:
|
|
2407
|
-
lastValues:
|
|
2399
|
+
size: {},
|
|
2400
|
+
lastValues: {}
|
|
2408
2401
|
},
|
|
2409
2402
|
emits: ["change"],
|
|
2410
2403
|
setup(__props, { emit }) {
|
|
@@ -2416,35 +2409,35 @@
|
|
|
2416
2409
|
};
|
|
2417
2410
|
return (_ctx, _cache) => {
|
|
2418
2411
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicDatePicker), {
|
|
2419
|
-
modelValue:
|
|
2420
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2412
|
+
modelValue: _ctx.model[_ctx.name],
|
|
2413
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
2421
2414
|
type: "date",
|
|
2422
|
-
size:
|
|
2423
|
-
placeholder:
|
|
2424
|
-
disabled:
|
|
2425
|
-
format:
|
|
2426
|
-
"value-format":
|
|
2415
|
+
size: _ctx.size,
|
|
2416
|
+
placeholder: _ctx.config.placeholder,
|
|
2417
|
+
disabled: _ctx.disabled,
|
|
2418
|
+
format: _ctx.config.format,
|
|
2419
|
+
"value-format": _ctx.config.valueFormat || "YYYY-MM-DD HH:mm:ss",
|
|
2427
2420
|
onChange: changeHandler
|
|
2428
2421
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format"]);
|
|
2429
2422
|
};
|
|
2430
2423
|
}
|
|
2431
2424
|
});
|
|
2432
2425
|
|
|
2433
|
-
const __default__$g = vue.defineComponent({
|
|
2434
|
-
name: "MFormDateRange"
|
|
2435
|
-
});
|
|
2436
2426
|
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
2437
|
-
...
|
|
2427
|
+
...{
|
|
2428
|
+
name: "MFormDateRange"
|
|
2429
|
+
},
|
|
2430
|
+
__name: "Daterange",
|
|
2438
2431
|
props: {
|
|
2439
|
-
config:
|
|
2440
|
-
model:
|
|
2441
|
-
initValues:
|
|
2442
|
-
values:
|
|
2443
|
-
name:
|
|
2444
|
-
prop:
|
|
2432
|
+
config: {},
|
|
2433
|
+
model: {},
|
|
2434
|
+
initValues: {},
|
|
2435
|
+
values: {},
|
|
2436
|
+
name: {},
|
|
2437
|
+
prop: {},
|
|
2445
2438
|
disabled: { type: Boolean },
|
|
2446
|
-
size:
|
|
2447
|
-
lastValues:
|
|
2439
|
+
size: {},
|
|
2440
|
+
lastValues: {}
|
|
2448
2441
|
},
|
|
2449
2442
|
emits: ["change"],
|
|
2450
2443
|
setup(__props, { emit }) {
|
|
@@ -2522,31 +2515,31 @@
|
|
|
2522
2515
|
"range-separator": "-",
|
|
2523
2516
|
"start-placeholder": "开始日期",
|
|
2524
2517
|
"end-placeholder": "结束日期",
|
|
2525
|
-
size:
|
|
2518
|
+
size: _ctx.size,
|
|
2526
2519
|
"unlink-panels": true,
|
|
2527
|
-
disabled:
|
|
2528
|
-
"default-time":
|
|
2520
|
+
disabled: _ctx.disabled,
|
|
2521
|
+
"default-time": _ctx.config.defaultTime,
|
|
2529
2522
|
onChange: changeHandler
|
|
2530
2523
|
}, null, 8, ["modelValue", "size", "disabled", "default-time"]);
|
|
2531
2524
|
};
|
|
2532
2525
|
}
|
|
2533
2526
|
});
|
|
2534
2527
|
|
|
2535
|
-
const __default__$f = vue.defineComponent({
|
|
2536
|
-
name: "MFormDateTime"
|
|
2537
|
-
});
|
|
2538
2528
|
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
2539
|
-
...
|
|
2529
|
+
...{
|
|
2530
|
+
name: "MFormDateTime"
|
|
2531
|
+
},
|
|
2532
|
+
__name: "DateTime",
|
|
2540
2533
|
props: {
|
|
2541
|
-
config:
|
|
2542
|
-
model:
|
|
2543
|
-
initValues:
|
|
2544
|
-
values:
|
|
2545
|
-
name:
|
|
2546
|
-
prop:
|
|
2534
|
+
config: {},
|
|
2535
|
+
model: {},
|
|
2536
|
+
initValues: {},
|
|
2537
|
+
values: {},
|
|
2538
|
+
name: {},
|
|
2539
|
+
prop: {},
|
|
2547
2540
|
disabled: { type: Boolean },
|
|
2548
|
-
size:
|
|
2549
|
-
lastValues:
|
|
2541
|
+
size: {},
|
|
2542
|
+
lastValues: {}
|
|
2550
2543
|
},
|
|
2551
2544
|
emits: ["change"],
|
|
2552
2545
|
setup(__props, { emit }) {
|
|
@@ -2565,16 +2558,16 @@
|
|
|
2565
2558
|
};
|
|
2566
2559
|
return (_ctx, _cache) => {
|
|
2567
2560
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicDatePicker), {
|
|
2568
|
-
modelValue:
|
|
2569
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2561
|
+
modelValue: _ctx.model[_ctx.name],
|
|
2562
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
2570
2563
|
"popper-class": "magic-datetime-picker-popper",
|
|
2571
2564
|
type: "datetime",
|
|
2572
|
-
size:
|
|
2573
|
-
placeholder:
|
|
2574
|
-
disabled:
|
|
2575
|
-
format:
|
|
2576
|
-
"value-format":
|
|
2577
|
-
"default-time":
|
|
2565
|
+
size: _ctx.size,
|
|
2566
|
+
placeholder: _ctx.config.placeholder,
|
|
2567
|
+
disabled: _ctx.disabled,
|
|
2568
|
+
format: _ctx.config.format || "YYYY-MM-DD HH:mm:ss",
|
|
2569
|
+
"value-format": _ctx.config.valueFormat || "YYYY-MM-DD HH:mm:ss",
|
|
2570
|
+
"default-time": _ctx.config.defaultTime,
|
|
2578
2571
|
onChange: changeHandler
|
|
2579
2572
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time"]);
|
|
2580
2573
|
};
|
|
@@ -2582,19 +2575,19 @@
|
|
|
2582
2575
|
});
|
|
2583
2576
|
|
|
2584
2577
|
const _hoisted_1$5 = { key: 0 };
|
|
2585
|
-
const __default__$e = vue.defineComponent({
|
|
2586
|
-
name: "MFormDisplay"
|
|
2587
|
-
});
|
|
2588
2578
|
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
2589
|
-
...
|
|
2579
|
+
...{
|
|
2580
|
+
name: "MFormDisplay"
|
|
2581
|
+
},
|
|
2582
|
+
__name: "Display",
|
|
2590
2583
|
props: {
|
|
2591
|
-
config:
|
|
2592
|
-
model:
|
|
2593
|
-
initValues:
|
|
2594
|
-
values:
|
|
2595
|
-
name:
|
|
2596
|
-
prop:
|
|
2597
|
-
lastValues:
|
|
2584
|
+
config: {},
|
|
2585
|
+
model: {},
|
|
2586
|
+
initValues: {},
|
|
2587
|
+
values: {},
|
|
2588
|
+
name: {},
|
|
2589
|
+
prop: {},
|
|
2590
|
+
lastValues: {}
|
|
2598
2591
|
},
|
|
2599
2592
|
setup(__props) {
|
|
2600
2593
|
const props = __props;
|
|
@@ -2603,27 +2596,27 @@
|
|
|
2603
2596
|
}
|
|
2604
2597
|
useAddField(props.prop);
|
|
2605
2598
|
return (_ctx, _cache) => {
|
|
2606
|
-
return
|
|
2599
|
+
return _ctx.model ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$5, vue.toDisplayString(_ctx.model[_ctx.name]), 1)) : vue.createCommentVNode("", true);
|
|
2607
2600
|
};
|
|
2608
2601
|
}
|
|
2609
2602
|
});
|
|
2610
2603
|
|
|
2611
2604
|
const _hoisted_1$4 = { class: "m-fields-dynamic-field" };
|
|
2612
|
-
const __default__$d = vue.defineComponent({
|
|
2613
|
-
name: "MFormDynamicField"
|
|
2614
|
-
});
|
|
2615
2605
|
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
2616
|
-
...
|
|
2606
|
+
...{
|
|
2607
|
+
name: "MFormDynamicField"
|
|
2608
|
+
},
|
|
2609
|
+
__name: "DynamicField",
|
|
2617
2610
|
props: {
|
|
2618
|
-
config:
|
|
2619
|
-
model:
|
|
2620
|
-
initValues:
|
|
2621
|
-
values:
|
|
2622
|
-
name:
|
|
2623
|
-
prop:
|
|
2611
|
+
config: {},
|
|
2612
|
+
model: {},
|
|
2613
|
+
initValues: {},
|
|
2614
|
+
values: {},
|
|
2615
|
+
name: {},
|
|
2616
|
+
prop: {},
|
|
2624
2617
|
disabled: { type: Boolean },
|
|
2625
|
-
size:
|
|
2626
|
-
lastValues:
|
|
2618
|
+
size: {},
|
|
2619
|
+
lastValues: {}
|
|
2627
2620
|
},
|
|
2628
2621
|
emits: ["change"],
|
|
2629
2622
|
setup(__props, { emit }) {
|
|
@@ -2701,40 +2694,40 @@
|
|
|
2701
2694
|
}
|
|
2702
2695
|
});
|
|
2703
2696
|
|
|
2704
|
-
const __default__$c = vue.defineComponent({
|
|
2705
|
-
name: "MFormHidden"
|
|
2706
|
-
});
|
|
2707
2697
|
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
2708
|
-
...
|
|
2698
|
+
...{
|
|
2699
|
+
name: "MFormHidden"
|
|
2700
|
+
},
|
|
2701
|
+
__name: "Hidden",
|
|
2709
2702
|
props: {
|
|
2710
|
-
config:
|
|
2711
|
-
model:
|
|
2712
|
-
initValues:
|
|
2713
|
-
values:
|
|
2714
|
-
name:
|
|
2715
|
-
prop:
|
|
2716
|
-
lastValues:
|
|
2703
|
+
config: {},
|
|
2704
|
+
model: {},
|
|
2705
|
+
initValues: {},
|
|
2706
|
+
values: {},
|
|
2707
|
+
name: {},
|
|
2708
|
+
prop: {},
|
|
2709
|
+
lastValues: {}
|
|
2717
2710
|
},
|
|
2718
2711
|
setup(__props) {
|
|
2719
2712
|
const props = __props;
|
|
2720
2713
|
useAddField(props.prop);
|
|
2721
2714
|
return (_ctx, _cache) => {
|
|
2722
|
-
return
|
|
2715
|
+
return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
2723
2716
|
key: 0,
|
|
2724
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2717
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
2725
2718
|
type: "hidden"
|
|
2726
2719
|
}, null, 512)), [
|
|
2727
|
-
[vue.vModelText,
|
|
2720
|
+
[vue.vModelText, _ctx.model[_ctx.name]]
|
|
2728
2721
|
]) : vue.createCommentVNode("", true);
|
|
2729
2722
|
};
|
|
2730
2723
|
}
|
|
2731
2724
|
});
|
|
2732
2725
|
|
|
2733
|
-
const __default__$b = vue.defineComponent({
|
|
2734
|
-
name: "MForm"
|
|
2735
|
-
});
|
|
2736
2726
|
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
2737
|
-
...
|
|
2727
|
+
...{
|
|
2728
|
+
name: "MForm"
|
|
2729
|
+
},
|
|
2730
|
+
__name: "Form",
|
|
2738
2731
|
props: {
|
|
2739
2732
|
config: { default: () => [] },
|
|
2740
2733
|
initValues: { default: () => ({}) },
|
|
@@ -2745,14 +2738,14 @@
|
|
|
2745
2738
|
disabled: { type: Boolean, default: false },
|
|
2746
2739
|
height: { default: "auto" },
|
|
2747
2740
|
stepActive: { default: 1 },
|
|
2748
|
-
size:
|
|
2741
|
+
size: {},
|
|
2749
2742
|
inline: { type: Boolean, default: false },
|
|
2750
2743
|
labelPosition: { default: "right" },
|
|
2751
2744
|
keyProp: { default: "__key" },
|
|
2752
|
-
popperClass:
|
|
2745
|
+
popperClass: {}
|
|
2753
2746
|
},
|
|
2754
2747
|
emits: ["change", "field-input", "field-change"],
|
|
2755
|
-
setup(__props, { expose, emit }) {
|
|
2748
|
+
setup(__props, { expose: __expose, emit }) {
|
|
2756
2749
|
const props = __props;
|
|
2757
2750
|
const tMagicForm = vue.ref();
|
|
2758
2751
|
const initialized = vue.ref(false);
|
|
@@ -2822,7 +2815,7 @@
|
|
|
2822
2815
|
const changeHandler = () => {
|
|
2823
2816
|
emit("change", values.value);
|
|
2824
2817
|
};
|
|
2825
|
-
|
|
2818
|
+
__expose({
|
|
2826
2819
|
values,
|
|
2827
2820
|
lastValuesProcessed,
|
|
2828
2821
|
formState,
|
|
@@ -2855,23 +2848,23 @@
|
|
|
2855
2848
|
ref_key: "tMagicForm",
|
|
2856
2849
|
ref: tMagicForm,
|
|
2857
2850
|
model: values.value,
|
|
2858
|
-
"label-width":
|
|
2859
|
-
style: vue.normalizeStyle(`height: ${
|
|
2860
|
-
inline:
|
|
2861
|
-
"label-position":
|
|
2851
|
+
"label-width": _ctx.labelWidth,
|
|
2852
|
+
style: vue.normalizeStyle(`height: ${_ctx.height}`),
|
|
2853
|
+
inline: _ctx.inline,
|
|
2854
|
+
"label-position": _ctx.labelPosition
|
|
2862
2855
|
}, {
|
|
2863
2856
|
default: vue.withCtx(() => [
|
|
2864
|
-
initialized.value && Array.isArray(
|
|
2857
|
+
initialized.value && Array.isArray(_ctx.config) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.config, (item, index) => {
|
|
2865
2858
|
return vue.openBlock(), vue.createBlock(_sfc_main$v, {
|
|
2866
|
-
disabled:
|
|
2867
|
-
key: item[
|
|
2859
|
+
disabled: _ctx.disabled,
|
|
2860
|
+
key: item[_ctx.keyProp] ?? index,
|
|
2868
2861
|
config: item,
|
|
2869
2862
|
model: values.value,
|
|
2870
2863
|
"last-values": lastValuesProcessed.value,
|
|
2871
|
-
"is-compare":
|
|
2872
|
-
"label-width": item.labelWidth ||
|
|
2873
|
-
"step-active":
|
|
2874
|
-
size:
|
|
2864
|
+
"is-compare": _ctx.isCompare,
|
|
2865
|
+
"label-width": item.labelWidth || _ctx.labelWidth,
|
|
2866
|
+
"step-active": _ctx.stepActive,
|
|
2867
|
+
size: _ctx.size,
|
|
2875
2868
|
onChange: changeHandler
|
|
2876
2869
|
}, null, 8, ["disabled", "config", "model", "last-values", "is-compare", "label-width", "step-active", "size"]);
|
|
2877
2870
|
}), 128)) : vue.createCommentVNode("", true)
|
|
@@ -2883,29 +2876,26 @@
|
|
|
2883
2876
|
});
|
|
2884
2877
|
|
|
2885
2878
|
const _hoisted_1$3 = { style: { "min-height": "1px" } };
|
|
2886
|
-
const _hoisted_2$1 = /* @__PURE__ */ vue.createTextVNode("取 消");
|
|
2887
|
-
const _hoisted_3$1 = /* @__PURE__ */ vue.createTextVNode("上一步");
|
|
2888
|
-
const _hoisted_4 = /* @__PURE__ */ vue.createTextVNode("下一步");
|
|
2889
|
-
const __default__$a = vue.defineComponent({
|
|
2890
|
-
name: "MFormDialog"
|
|
2891
|
-
});
|
|
2892
2879
|
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
2893
|
-
...
|
|
2880
|
+
...{
|
|
2881
|
+
name: "MFormDialog"
|
|
2882
|
+
},
|
|
2883
|
+
__name: "FormDialog",
|
|
2894
2884
|
props: {
|
|
2895
2885
|
config: { default: () => [] },
|
|
2896
2886
|
values: { default: () => ({}) },
|
|
2897
|
-
parentValues:
|
|
2898
|
-
width:
|
|
2899
|
-
labelWidth:
|
|
2887
|
+
parentValues: {},
|
|
2888
|
+
width: {},
|
|
2889
|
+
labelWidth: {},
|
|
2900
2890
|
fullscreen: { type: Boolean },
|
|
2901
2891
|
disabled: { type: Boolean },
|
|
2902
|
-
title:
|
|
2903
|
-
zIndex:
|
|
2904
|
-
size:
|
|
2892
|
+
title: {},
|
|
2893
|
+
zIndex: {},
|
|
2894
|
+
size: {},
|
|
2905
2895
|
confirmText: { default: "确定" }
|
|
2906
2896
|
},
|
|
2907
2897
|
emits: ["close", "submit", "error", "change"],
|
|
2908
|
-
setup(__props, { expose, emit }) {
|
|
2898
|
+
setup(__props, { expose: __expose, emit }) {
|
|
2909
2899
|
const props = __props;
|
|
2910
2900
|
const form = vue.ref();
|
|
2911
2901
|
const dialogVisible = vue.ref(false);
|
|
@@ -2954,7 +2944,7 @@
|
|
|
2954
2944
|
const changeHandler = (value) => {
|
|
2955
2945
|
emit("change", value);
|
|
2956
2946
|
};
|
|
2957
|
-
|
|
2947
|
+
__expose({
|
|
2958
2948
|
form,
|
|
2959
2949
|
saveFetch,
|
|
2960
2950
|
dialogVisible,
|
|
@@ -2968,10 +2958,10 @@
|
|
|
2968
2958
|
class: "m-form-dialog",
|
|
2969
2959
|
top: "20px",
|
|
2970
2960
|
"append-to-body": "",
|
|
2971
|
-
title:
|
|
2972
|
-
width:
|
|
2973
|
-
zIndex:
|
|
2974
|
-
fullscreen:
|
|
2961
|
+
title: _ctx.title,
|
|
2962
|
+
width: _ctx.width,
|
|
2963
|
+
zIndex: _ctx.zIndex,
|
|
2964
|
+
fullscreen: _ctx.fullscreen,
|
|
2975
2965
|
"close-on-click-modal": false,
|
|
2976
2966
|
onClose: closeHandler
|
|
2977
2967
|
}, {
|
|
@@ -2997,29 +2987,29 @@
|
|
|
2997
2987
|
size: "small"
|
|
2998
2988
|
}, {
|
|
2999
2989
|
default: vue.withCtx(() => [
|
|
3000
|
-
|
|
2990
|
+
vue.createTextVNode("取 消")
|
|
3001
2991
|
]),
|
|
3002
2992
|
_: 1
|
|
3003
2993
|
}),
|
|
3004
|
-
|
|
2994
|
+
hasStep.value && stepActive.value > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
3005
2995
|
key: 0,
|
|
3006
2996
|
type: "info",
|
|
3007
2997
|
size: "small",
|
|
3008
2998
|
onClick: preStep
|
|
3009
2999
|
}, {
|
|
3010
3000
|
default: vue.withCtx(() => [
|
|
3011
|
-
|
|
3001
|
+
vue.createTextVNode("上一步")
|
|
3012
3002
|
]),
|
|
3013
3003
|
_: 1
|
|
3014
3004
|
})) : vue.createCommentVNode("", true),
|
|
3015
|
-
|
|
3005
|
+
hasStep.value && stepCount.value > stepActive.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
3016
3006
|
key: 1,
|
|
3017
3007
|
type: "info",
|
|
3018
3008
|
size: "small",
|
|
3019
3009
|
onClick: nextStep
|
|
3020
3010
|
}, {
|
|
3021
3011
|
default: vue.withCtx(() => [
|
|
3022
|
-
|
|
3012
|
+
vue.createTextVNode("下一步")
|
|
3023
3013
|
]),
|
|
3024
3014
|
_: 1
|
|
3025
3015
|
})) : (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
@@ -3030,7 +3020,7 @@
|
|
|
3030
3020
|
onClick: save
|
|
3031
3021
|
}, {
|
|
3032
3022
|
default: vue.withCtx(() => [
|
|
3033
|
-
vue.createTextVNode(vue.toDisplayString(
|
|
3023
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.confirmText), 1)
|
|
3034
3024
|
]),
|
|
3035
3025
|
_: 1
|
|
3036
3026
|
}, 8, ["loading"]))
|
|
@@ -3053,12 +3043,12 @@
|
|
|
3053
3043
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => stepActive.value = $event),
|
|
3054
3044
|
ref_key: "form",
|
|
3055
3045
|
ref: form,
|
|
3056
|
-
size:
|
|
3057
|
-
disabled:
|
|
3058
|
-
config:
|
|
3059
|
-
"init-values":
|
|
3060
|
-
"parent-values":
|
|
3061
|
-
"label-width":
|
|
3046
|
+
size: _ctx.size,
|
|
3047
|
+
disabled: _ctx.disabled,
|
|
3048
|
+
config: _ctx.config,
|
|
3049
|
+
"init-values": _ctx.values,
|
|
3050
|
+
"parent-values": _ctx.parentValues,
|
|
3051
|
+
"label-width": _ctx.labelWidth,
|
|
3062
3052
|
onChange: changeHandler
|
|
3063
3053
|
}, null, 8, ["modelValue", "size", "disabled", "config", "init-values", "parent-values", "label-width"]),
|
|
3064
3054
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -3075,22 +3065,21 @@
|
|
|
3075
3065
|
key: 2,
|
|
3076
3066
|
class: "m-fields-link"
|
|
3077
3067
|
};
|
|
3078
|
-
const _hoisted_3 = /* @__PURE__ */ vue.createTextVNode("点击编辑");
|
|
3079
|
-
const __default__$9 = vue.defineComponent({
|
|
3080
|
-
name: "MFormLink"
|
|
3081
|
-
});
|
|
3082
3068
|
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
3083
|
-
...
|
|
3069
|
+
...{
|
|
3070
|
+
name: "MFormLink"
|
|
3071
|
+
},
|
|
3072
|
+
__name: "Link",
|
|
3084
3073
|
props: {
|
|
3085
|
-
config:
|
|
3086
|
-
model:
|
|
3087
|
-
initValues:
|
|
3088
|
-
values:
|
|
3089
|
-
name:
|
|
3090
|
-
prop:
|
|
3074
|
+
config: {},
|
|
3075
|
+
model: {},
|
|
3076
|
+
initValues: {},
|
|
3077
|
+
values: {},
|
|
3078
|
+
name: {},
|
|
3079
|
+
prop: {},
|
|
3091
3080
|
disabled: { type: Boolean },
|
|
3092
|
-
size:
|
|
3093
|
-
lastValues:
|
|
3081
|
+
size: {},
|
|
3082
|
+
lastValues: {}
|
|
3094
3083
|
},
|
|
3095
3084
|
emits: ["change"],
|
|
3096
3085
|
setup(__props, { emit }) {
|
|
@@ -3139,34 +3128,34 @@
|
|
|
3139
3128
|
editor.value && (editor.value.dialogVisible = false);
|
|
3140
3129
|
};
|
|
3141
3130
|
return (_ctx, _cache) => {
|
|
3142
|
-
return
|
|
3131
|
+
return _ctx.config.href && !_ctx.disabled ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
3143
3132
|
key: 0,
|
|
3144
3133
|
target: "_blank",
|
|
3145
|
-
href:
|
|
3146
|
-
style: vue.normalizeStyle(
|
|
3147
|
-
}, vue.toDisplayString(
|
|
3134
|
+
href: href.value,
|
|
3135
|
+
style: vue.normalizeStyle(_ctx.config.css || {})
|
|
3136
|
+
}, vue.toDisplayString(displayText.value), 13, _hoisted_1$2)) : _ctx.config.href && _ctx.disabled ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
3148
3137
|
key: 1,
|
|
3149
|
-
style: vue.normalizeStyle(
|
|
3150
|
-
}, vue.toDisplayString(
|
|
3138
|
+
style: vue.normalizeStyle(_ctx.config.disabledCss || {})
|
|
3139
|
+
}, vue.toDisplayString(displayText.value), 5)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
3151
3140
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
3152
3141
|
text: true,
|
|
3153
3142
|
type: "primary",
|
|
3154
3143
|
onClick: editHandler
|
|
3155
3144
|
}, {
|
|
3156
3145
|
default: vue.withCtx(() => [
|
|
3157
|
-
|
|
3146
|
+
vue.createTextVNode("点击编辑")
|
|
3158
3147
|
]),
|
|
3159
3148
|
_: 1
|
|
3160
3149
|
}),
|
|
3161
3150
|
vue.createVNode(_sfc_main$a, {
|
|
3162
3151
|
ref_key: "editor",
|
|
3163
3152
|
ref: editor,
|
|
3164
|
-
title:
|
|
3165
|
-
width:
|
|
3153
|
+
title: _ctx.config.formTitle || "编辑扩展配置",
|
|
3154
|
+
width: _ctx.config.formWidth,
|
|
3166
3155
|
values: formValue.value,
|
|
3167
|
-
config:
|
|
3168
|
-
parentValues:
|
|
3169
|
-
fullscreen:
|
|
3156
|
+
config: formConfig.value,
|
|
3157
|
+
parentValues: _ctx.values,
|
|
3158
|
+
fullscreen: _ctx.config.fullscreen,
|
|
3170
3159
|
onSubmit: action
|
|
3171
3160
|
}, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen"])
|
|
3172
3161
|
]));
|
|
@@ -3174,21 +3163,21 @@
|
|
|
3174
3163
|
}
|
|
3175
3164
|
});
|
|
3176
3165
|
|
|
3177
|
-
const __default__$8 = vue.defineComponent({
|
|
3178
|
-
name: "MFormNumber"
|
|
3179
|
-
});
|
|
3180
3166
|
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
3181
|
-
...
|
|
3167
|
+
...{
|
|
3168
|
+
name: "MFormNumber"
|
|
3169
|
+
},
|
|
3170
|
+
__name: "Number",
|
|
3182
3171
|
props: {
|
|
3183
|
-
config:
|
|
3184
|
-
model:
|
|
3185
|
-
initValues:
|
|
3186
|
-
values:
|
|
3187
|
-
name:
|
|
3188
|
-
prop:
|
|
3172
|
+
config: {},
|
|
3173
|
+
model: {},
|
|
3174
|
+
initValues: {},
|
|
3175
|
+
values: {},
|
|
3176
|
+
name: {},
|
|
3177
|
+
prop: {},
|
|
3189
3178
|
disabled: { type: Boolean },
|
|
3190
|
-
size:
|
|
3191
|
-
lastValues:
|
|
3179
|
+
size: {},
|
|
3180
|
+
lastValues: {}
|
|
3192
3181
|
},
|
|
3193
3182
|
emits: ["change", "input"],
|
|
3194
3183
|
setup(__props, { emit }) {
|
|
@@ -3203,18 +3192,18 @@
|
|
|
3203
3192
|
mForm?.$emit("field-input", props.prop, v);
|
|
3204
3193
|
};
|
|
3205
3194
|
return (_ctx, _cache) => {
|
|
3206
|
-
return
|
|
3195
|
+
return _ctx.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInputNumber), {
|
|
3207
3196
|
key: 0,
|
|
3208
|
-
modelValue:
|
|
3209
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
3197
|
+
modelValue: _ctx.model[_ctx.name],
|
|
3198
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3210
3199
|
clearable: "",
|
|
3211
3200
|
"controls-position": "right",
|
|
3212
|
-
size:
|
|
3213
|
-
max:
|
|
3214
|
-
min:
|
|
3215
|
-
step:
|
|
3216
|
-
placeholder:
|
|
3217
|
-
disabled:
|
|
3201
|
+
size: _ctx.size,
|
|
3202
|
+
max: _ctx.config.max,
|
|
3203
|
+
min: _ctx.config.min,
|
|
3204
|
+
step: _ctx.config.step,
|
|
3205
|
+
placeholder: _ctx.config.placeholder,
|
|
3206
|
+
disabled: _ctx.disabled,
|
|
3218
3207
|
onChange: changeHandler,
|
|
3219
3208
|
onInput: inputHandler
|
|
3220
3209
|
}, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled"])) : vue.createCommentVNode("", true);
|
|
@@ -3222,21 +3211,21 @@
|
|
|
3222
3211
|
}
|
|
3223
3212
|
});
|
|
3224
3213
|
|
|
3225
|
-
const __default__$7 = vue.defineComponent({
|
|
3226
|
-
name: "MFormRadioGroup"
|
|
3227
|
-
});
|
|
3228
3214
|
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
3229
|
-
...
|
|
3215
|
+
...{
|
|
3216
|
+
name: "MFormRadioGroup"
|
|
3217
|
+
},
|
|
3218
|
+
__name: "RadioGroup",
|
|
3230
3219
|
props: {
|
|
3231
|
-
config:
|
|
3232
|
-
model:
|
|
3233
|
-
initValues:
|
|
3234
|
-
values:
|
|
3235
|
-
name:
|
|
3236
|
-
prop:
|
|
3220
|
+
config: {},
|
|
3221
|
+
model: {},
|
|
3222
|
+
initValues: {},
|
|
3223
|
+
values: {},
|
|
3224
|
+
name: {},
|
|
3225
|
+
prop: {},
|
|
3237
3226
|
disabled: { type: Boolean },
|
|
3238
|
-
size:
|
|
3239
|
-
lastValues:
|
|
3227
|
+
size: {},
|
|
3228
|
+
lastValues: {}
|
|
3240
3229
|
},
|
|
3241
3230
|
emits: ["change"],
|
|
3242
3231
|
setup(__props, { emit }) {
|
|
@@ -3246,16 +3235,16 @@
|
|
|
3246
3235
|
};
|
|
3247
3236
|
useAddField(props.prop);
|
|
3248
3237
|
return (_ctx, _cache) => {
|
|
3249
|
-
return
|
|
3238
|
+
return _ctx.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicRadioGroup), {
|
|
3250
3239
|
key: 0,
|
|
3251
|
-
modelValue:
|
|
3252
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
3253
|
-
size:
|
|
3254
|
-
disabled:
|
|
3240
|
+
modelValue: _ctx.model[_ctx.name],
|
|
3241
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3242
|
+
size: _ctx.size,
|
|
3243
|
+
disabled: _ctx.disabled,
|
|
3255
3244
|
onChange: changeHandler
|
|
3256
3245
|
}, {
|
|
3257
3246
|
default: vue.withCtx(() => [
|
|
3258
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
3247
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.options, (option) => {
|
|
3259
3248
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicRadio), {
|
|
3260
3249
|
label: option.value,
|
|
3261
3250
|
value: option.value,
|
|
@@ -3274,18 +3263,18 @@
|
|
|
3274
3263
|
}
|
|
3275
3264
|
});
|
|
3276
3265
|
|
|
3277
|
-
const __default__$6 = vue.defineComponent({
|
|
3278
|
-
name: "MFormSelectOptionGroups"
|
|
3279
|
-
});
|
|
3280
3266
|
const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
3281
|
-
...
|
|
3267
|
+
...{
|
|
3268
|
+
name: "MFormSelectOptionGroups"
|
|
3269
|
+
},
|
|
3270
|
+
__name: "SelectOptionGroups",
|
|
3282
3271
|
props: {
|
|
3283
|
-
options:
|
|
3272
|
+
options: {}
|
|
3284
3273
|
},
|
|
3285
3274
|
setup(__props) {
|
|
3286
|
-
const uiComponent = design.getConfig("components").option;
|
|
3275
|
+
const uiComponent = design.getConfig("components")?.option.component || "el-option";
|
|
3287
3276
|
return (_ctx, _cache) => {
|
|
3288
|
-
return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
3277
|
+
return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (group, index) => {
|
|
3289
3278
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicOptionGroup), {
|
|
3290
3279
|
key: index,
|
|
3291
3280
|
label: group.label,
|
|
@@ -3293,7 +3282,7 @@
|
|
|
3293
3282
|
}, {
|
|
3294
3283
|
default: vue.withCtx(() => [
|
|
3295
3284
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group.options, (item, index2) => {
|
|
3296
|
-
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(uiComponent)
|
|
3285
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(uiComponent)), {
|
|
3297
3286
|
key: index2,
|
|
3298
3287
|
label: item.label || item.text,
|
|
3299
3288
|
value: item.value,
|
|
@@ -3308,22 +3297,22 @@
|
|
|
3308
3297
|
}
|
|
3309
3298
|
});
|
|
3310
3299
|
|
|
3311
|
-
const __default__$5 = vue.defineComponent({
|
|
3312
|
-
name: "MFormSelectOptions"
|
|
3313
|
-
});
|
|
3314
3300
|
const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
3315
|
-
...
|
|
3301
|
+
...{
|
|
3302
|
+
name: "MFormSelectOptions"
|
|
3303
|
+
},
|
|
3304
|
+
__name: "SelectOptions",
|
|
3316
3305
|
props: {
|
|
3317
|
-
options:
|
|
3318
|
-
valueKey:
|
|
3306
|
+
options: {},
|
|
3307
|
+
valueKey: {}
|
|
3319
3308
|
},
|
|
3320
3309
|
setup(__props) {
|
|
3321
3310
|
return (_ctx, _cache) => {
|
|
3322
|
-
return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
3311
|
+
return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option) => {
|
|
3323
3312
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicOption), {
|
|
3324
3313
|
label: option.text,
|
|
3325
3314
|
value: option.value,
|
|
3326
|
-
key:
|
|
3315
|
+
key: _ctx.valueKey ? option.value[_ctx.valueKey] : option.value,
|
|
3327
3316
|
disabled: option.disabled
|
|
3328
3317
|
}, null, 8, ["label", "value", "disabled"]);
|
|
3329
3318
|
}), 128);
|
|
@@ -3332,21 +3321,21 @@
|
|
|
3332
3321
|
});
|
|
3333
3322
|
|
|
3334
3323
|
const _hoisted_1$1 = { key: 2 };
|
|
3335
|
-
const __default__$4 = vue.defineComponent({
|
|
3336
|
-
name: "MFormSelect"
|
|
3337
|
-
});
|
|
3338
3324
|
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
3339
|
-
...
|
|
3325
|
+
...{
|
|
3326
|
+
name: "MFormSelect"
|
|
3327
|
+
},
|
|
3328
|
+
__name: "Select",
|
|
3340
3329
|
props: {
|
|
3341
|
-
config:
|
|
3342
|
-
model:
|
|
3343
|
-
initValues:
|
|
3344
|
-
values:
|
|
3345
|
-
name:
|
|
3346
|
-
prop:
|
|
3330
|
+
config: {},
|
|
3331
|
+
model: {},
|
|
3332
|
+
initValues: {},
|
|
3333
|
+
values: {},
|
|
3334
|
+
name: {},
|
|
3335
|
+
prop: {},
|
|
3347
3336
|
disabled: { type: Boolean },
|
|
3348
|
-
size:
|
|
3349
|
-
lastValues:
|
|
3337
|
+
size: {},
|
|
3338
|
+
lastValues: {}
|
|
3350
3339
|
},
|
|
3351
3340
|
emits: ["change"],
|
|
3352
3341
|
setup(__props, { emit }) {
|
|
@@ -3438,11 +3427,8 @@
|
|
|
3438
3427
|
postOptions
|
|
3439
3428
|
});
|
|
3440
3429
|
}
|
|
3441
|
-
const optionsData =
|
|
3442
|
-
const resTotal = globalThis.parseInt(
|
|
3443
|
-
totalKey.split(".").reduce((accumulator, currentValue) => accumulator[currentValue], res),
|
|
3444
|
-
10
|
|
3445
|
-
);
|
|
3430
|
+
const optionsData = utils.getValueByKeyPath(root, res);
|
|
3431
|
+
const resTotal = globalThis.parseInt(utils.getValueByKeyPath(totalKey, res), 10);
|
|
3446
3432
|
if (resTotal > 0) {
|
|
3447
3433
|
total.value = resTotal;
|
|
3448
3434
|
}
|
|
@@ -3542,7 +3528,7 @@
|
|
|
3542
3528
|
postOptions
|
|
3543
3529
|
});
|
|
3544
3530
|
}
|
|
3545
|
-
let initData = (initRoot || root
|
|
3531
|
+
let initData = utils.getValueByKeyPath(initRoot || root, res);
|
|
3546
3532
|
if (initData) {
|
|
3547
3533
|
if (!Array.isArray(initData)) {
|
|
3548
3534
|
initData = [initData];
|
|
@@ -3647,29 +3633,29 @@
|
|
|
3647
3633
|
const groupOptions = options;
|
|
3648
3634
|
return (_ctx, _cache) => {
|
|
3649
3635
|
const _directive_loading = vue.resolveDirective("loading");
|
|
3650
|
-
return
|
|
3636
|
+
return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicSelect), {
|
|
3651
3637
|
key: 0,
|
|
3652
|
-
modelValue:
|
|
3653
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
3638
|
+
modelValue: _ctx.model[_ctx.name],
|
|
3639
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3654
3640
|
class: "m-select",
|
|
3655
3641
|
ref_key: "tMagicSelect",
|
|
3656
3642
|
ref: tMagicSelect,
|
|
3657
|
-
clearable: typeof
|
|
3658
|
-
filterable: typeof
|
|
3643
|
+
clearable: typeof _ctx.config.clearable !== "undefined" ? _ctx.config.clearable : true,
|
|
3644
|
+
filterable: typeof _ctx.config.filterable !== "undefined" ? _ctx.config.filterable : true,
|
|
3659
3645
|
"popper-class": `m-select-popper ${vue.unref(popperClass)}`,
|
|
3660
|
-
size:
|
|
3646
|
+
size: _ctx.size,
|
|
3661
3647
|
remote: remote.value,
|
|
3662
|
-
placeholder:
|
|
3663
|
-
multiple:
|
|
3664
|
-
"value-key":
|
|
3665
|
-
"allow-create":
|
|
3666
|
-
disabled:
|
|
3667
|
-
"remote-method":
|
|
3648
|
+
placeholder: _ctx.config.placeholder,
|
|
3649
|
+
multiple: _ctx.config.multiple,
|
|
3650
|
+
"value-key": _ctx.config.valueKey || "value",
|
|
3651
|
+
"allow-create": _ctx.config.allowCreate,
|
|
3652
|
+
disabled: _ctx.disabled,
|
|
3653
|
+
"remote-method": _ctx.config.remote && remoteMethod,
|
|
3668
3654
|
onChange: changeHandler,
|
|
3669
3655
|
onVisibleChange: visibleHandler
|
|
3670
3656
|
}, {
|
|
3671
3657
|
default: vue.withCtx(() => [
|
|
3672
|
-
|
|
3658
|
+
_ctx.config.group ? (vue.openBlock(), vue.createBlock(_sfc_main$6, {
|
|
3673
3659
|
key: 0,
|
|
3674
3660
|
options: vue.unref(groupOptions)
|
|
3675
3661
|
}, null, 8, ["options"])) : (vue.openBlock(), vue.createBlock(_sfc_main$5, {
|
|
@@ -3688,21 +3674,21 @@
|
|
|
3688
3674
|
}
|
|
3689
3675
|
});
|
|
3690
3676
|
|
|
3691
|
-
const __default__$3 = vue.defineComponent({
|
|
3692
|
-
name: "MFormSwitch"
|
|
3693
|
-
});
|
|
3694
3677
|
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
3695
|
-
...
|
|
3678
|
+
...{
|
|
3679
|
+
name: "MFormSwitch"
|
|
3680
|
+
},
|
|
3681
|
+
__name: "Switch",
|
|
3696
3682
|
props: {
|
|
3697
|
-
config:
|
|
3698
|
-
model:
|
|
3699
|
-
initValues:
|
|
3700
|
-
values:
|
|
3701
|
-
name:
|
|
3702
|
-
prop:
|
|
3683
|
+
config: {},
|
|
3684
|
+
model: {},
|
|
3685
|
+
initValues: {},
|
|
3686
|
+
values: {},
|
|
3687
|
+
name: {},
|
|
3688
|
+
prop: {},
|
|
3703
3689
|
disabled: { type: Boolean },
|
|
3704
|
-
size:
|
|
3705
|
-
lastValues:
|
|
3690
|
+
size: {},
|
|
3691
|
+
lastValues: {}
|
|
3706
3692
|
},
|
|
3707
3693
|
emits: ["change"],
|
|
3708
3694
|
setup(__props, { emit }) {
|
|
@@ -3733,12 +3719,12 @@
|
|
|
3733
3719
|
});
|
|
3734
3720
|
return (_ctx, _cache) => {
|
|
3735
3721
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicSwitch), {
|
|
3736
|
-
modelValue:
|
|
3737
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
3738
|
-
size:
|
|
3739
|
-
activeValue:
|
|
3740
|
-
inactiveValue:
|
|
3741
|
-
disabled:
|
|
3722
|
+
modelValue: _ctx.model[_ctx.name],
|
|
3723
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3724
|
+
size: _ctx.size,
|
|
3725
|
+
activeValue: activeValue.value,
|
|
3726
|
+
inactiveValue: inactiveValue.value,
|
|
3727
|
+
disabled: _ctx.disabled,
|
|
3742
3728
|
onChange: changeHandler
|
|
3743
3729
|
}, null, 8, ["modelValue", "size", "activeValue", "inactiveValue", "disabled"]);
|
|
3744
3730
|
};
|
|
@@ -3746,21 +3732,21 @@
|
|
|
3746
3732
|
});
|
|
3747
3733
|
|
|
3748
3734
|
const _hoisted_1 = { key: 0 };
|
|
3749
|
-
const __default__$2 = vue.defineComponent({
|
|
3750
|
-
name: "MFormText"
|
|
3751
|
-
});
|
|
3752
3735
|
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
3753
|
-
...
|
|
3736
|
+
...{
|
|
3737
|
+
name: "MFormText"
|
|
3738
|
+
},
|
|
3739
|
+
__name: "Text",
|
|
3754
3740
|
props: {
|
|
3755
|
-
config:
|
|
3756
|
-
model:
|
|
3757
|
-
initValues:
|
|
3758
|
-
values:
|
|
3759
|
-
name:
|
|
3760
|
-
prop:
|
|
3741
|
+
config: {},
|
|
3742
|
+
model: {},
|
|
3743
|
+
initValues: {},
|
|
3744
|
+
values: {},
|
|
3745
|
+
name: {},
|
|
3746
|
+
prop: {},
|
|
3761
3747
|
disabled: { type: Boolean },
|
|
3762
|
-
size:
|
|
3763
|
-
lastValues:
|
|
3748
|
+
size: {},
|
|
3749
|
+
lastValues: {}
|
|
3764
3750
|
},
|
|
3765
3751
|
emits: ["change", "input"],
|
|
3766
3752
|
setup(__props, { emit }) {
|
|
@@ -3837,53 +3823,54 @@
|
|
|
3837
3823
|
};
|
|
3838
3824
|
return (_ctx, _cache) => {
|
|
3839
3825
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInput), {
|
|
3840
|
-
modelValue:
|
|
3841
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
3826
|
+
modelValue: _ctx.model[_ctx.name],
|
|
3827
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3842
3828
|
clearable: "",
|
|
3843
|
-
size:
|
|
3844
|
-
placeholder:
|
|
3845
|
-
disabled:
|
|
3829
|
+
size: _ctx.size,
|
|
3830
|
+
placeholder: _ctx.config.placeholder,
|
|
3831
|
+
disabled: _ctx.disabled,
|
|
3846
3832
|
onChange: changeHandler,
|
|
3847
3833
|
onInput: inputHandler,
|
|
3848
3834
|
onKeyup: _cache[1] || (_cache[1] = ($event) => keyUpHandler($event))
|
|
3849
3835
|
}, vue.createSlots({ _: 2 }, [
|
|
3850
|
-
|
|
3836
|
+
_ctx.config.append ? {
|
|
3851
3837
|
name: "append",
|
|
3852
3838
|
fn: vue.withCtx(() => [
|
|
3853
|
-
typeof
|
|
3854
|
-
typeof
|
|
3839
|
+
typeof _ctx.config.append === "string" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(_ctx.config.append), 1)) : vue.createCommentVNode("", true),
|
|
3840
|
+
typeof _ctx.config.append === "object" && _ctx.config.append.type === "button" ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
|
|
3855
3841
|
key: 1,
|
|
3856
3842
|
style: { "color": "#409eff" },
|
|
3857
|
-
size:
|
|
3843
|
+
size: _ctx.size,
|
|
3858
3844
|
onClick: vue.withModifiers(buttonClickHandler, ["prevent"])
|
|
3859
3845
|
}, {
|
|
3860
3846
|
default: vue.withCtx(() => [
|
|
3861
|
-
vue.createTextVNode(vue.toDisplayString(
|
|
3847
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.config.append.text), 1)
|
|
3862
3848
|
]),
|
|
3863
3849
|
_: 1
|
|
3864
3850
|
}, 8, ["size", "onClick"])) : vue.createCommentVNode("", true)
|
|
3865
|
-
])
|
|
3851
|
+
]),
|
|
3852
|
+
key: "0"
|
|
3866
3853
|
} : void 0
|
|
3867
3854
|
]), 1032, ["modelValue", "size", "placeholder", "disabled"]);
|
|
3868
3855
|
};
|
|
3869
3856
|
}
|
|
3870
3857
|
});
|
|
3871
3858
|
|
|
3872
|
-
const __default__$1 = vue.defineComponent({
|
|
3873
|
-
name: "MFormTextarea"
|
|
3874
|
-
});
|
|
3875
3859
|
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
3876
|
-
...
|
|
3860
|
+
...{
|
|
3861
|
+
name: "MFormTextarea"
|
|
3862
|
+
},
|
|
3863
|
+
__name: "Textarea",
|
|
3877
3864
|
props: {
|
|
3878
|
-
config:
|
|
3879
|
-
model:
|
|
3880
|
-
initValues:
|
|
3881
|
-
values:
|
|
3882
|
-
name:
|
|
3883
|
-
prop:
|
|
3865
|
+
config: {},
|
|
3866
|
+
model: {},
|
|
3867
|
+
initValues: {},
|
|
3868
|
+
values: {},
|
|
3869
|
+
name: {},
|
|
3870
|
+
prop: {},
|
|
3884
3871
|
disabled: { type: Boolean },
|
|
3885
|
-
size:
|
|
3886
|
-
lastValues:
|
|
3872
|
+
size: {},
|
|
3873
|
+
lastValues: {}
|
|
3887
3874
|
},
|
|
3888
3875
|
emits: ["change", "input"],
|
|
3889
3876
|
setup(__props, { emit }) {
|
|
@@ -3899,13 +3886,13 @@
|
|
|
3899
3886
|
};
|
|
3900
3887
|
return (_ctx, _cache) => {
|
|
3901
3888
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInput), {
|
|
3902
|
-
modelValue:
|
|
3903
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
3889
|
+
modelValue: _ctx.model[_ctx.name],
|
|
3890
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3904
3891
|
type: "textarea",
|
|
3905
|
-
size:
|
|
3892
|
+
size: _ctx.size,
|
|
3906
3893
|
clearable: "",
|
|
3907
|
-
placeholder:
|
|
3908
|
-
disabled:
|
|
3894
|
+
placeholder: _ctx.config.placeholder,
|
|
3895
|
+
disabled: _ctx.disabled,
|
|
3909
3896
|
onChange: changeHandler,
|
|
3910
3897
|
onInput: inputHandler
|
|
3911
3898
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled"]);
|
|
@@ -3913,21 +3900,21 @@
|
|
|
3913
3900
|
}
|
|
3914
3901
|
});
|
|
3915
3902
|
|
|
3916
|
-
const __default__ = vue.defineComponent({
|
|
3917
|
-
name: "MFormTime"
|
|
3918
|
-
});
|
|
3919
3903
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
3920
|
-
...
|
|
3904
|
+
...{
|
|
3905
|
+
name: "MFormTime"
|
|
3906
|
+
},
|
|
3907
|
+
__name: "Time",
|
|
3921
3908
|
props: {
|
|
3922
|
-
config:
|
|
3923
|
-
model:
|
|
3924
|
-
initValues:
|
|
3925
|
-
values:
|
|
3926
|
-
name:
|
|
3927
|
-
prop:
|
|
3909
|
+
config: {},
|
|
3910
|
+
model: {},
|
|
3911
|
+
initValues: {},
|
|
3912
|
+
values: {},
|
|
3913
|
+
name: {},
|
|
3914
|
+
prop: {},
|
|
3928
3915
|
disabled: { type: Boolean },
|
|
3929
|
-
size:
|
|
3930
|
-
lastValues:
|
|
3916
|
+
size: {},
|
|
3917
|
+
lastValues: {}
|
|
3931
3918
|
},
|
|
3932
3919
|
emits: ["change"],
|
|
3933
3920
|
setup(__props, { emit }) {
|
|
@@ -3938,13 +3925,13 @@
|
|
|
3938
3925
|
};
|
|
3939
3926
|
return (_ctx, _cache) => {
|
|
3940
3927
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTimePicker), {
|
|
3941
|
-
modelValue:
|
|
3942
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
3943
|
-
"value-format":
|
|
3944
|
-
format:
|
|
3945
|
-
size:
|
|
3946
|
-
placeholder:
|
|
3947
|
-
disabled:
|
|
3928
|
+
modelValue: _ctx.model[_ctx.name],
|
|
3929
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3930
|
+
"value-format": _ctx.config.valueFormat || "HH:mm:ss",
|
|
3931
|
+
format: _ctx.config.format || "HH:mm:ss",
|
|
3932
|
+
size: _ctx.size,
|
|
3933
|
+
placeholder: _ctx.config.placeholder,
|
|
3934
|
+
disabled: _ctx.disabled,
|
|
3948
3935
|
onChange: changeHandler
|
|
3949
3936
|
}, null, 8, ["modelValue", "value-format", "format", "size", "placeholder", "disabled"]);
|
|
3950
3937
|
};
|
|
@@ -3954,41 +3941,40 @@
|
|
|
3954
3941
|
const index$1 = '';
|
|
3955
3942
|
|
|
3956
3943
|
const defaultInstallOpt = {};
|
|
3957
|
-
const install = (app, opt) => {
|
|
3958
|
-
const option = Object.assign(defaultInstallOpt, opt);
|
|
3959
|
-
app.config.globalProperties.$MAGIC_FORM = option;
|
|
3960
|
-
setConfig(option);
|
|
3961
|
-
app.component("m-form", _sfc_main$b);
|
|
3962
|
-
app.component("m-form-dialog", _sfc_main$a);
|
|
3963
|
-
app.component("m-form-container", _sfc_main$v);
|
|
3964
|
-
app.component("m-form-fieldset", _sfc_main$u);
|
|
3965
|
-
app.component("m-form-group-list", _sfc_main$s);
|
|
3966
|
-
app.component("m-form-panel", _sfc_main$r);
|
|
3967
|
-
app.component("m-form-row", _sfc_main$p);
|
|
3968
|
-
app.component("m-form-step", _sfc_main$o);
|
|
3969
|
-
app.component("m-form-table", _sfc_main$n);
|
|
3970
|
-
app.component("m-form-tab", _sfc_main$m);
|
|
3971
|
-
app.component("m-fields-text", _sfc_main$2);
|
|
3972
|
-
app.component("m-fields-number", _sfc_main$8);
|
|
3973
|
-
app.component("m-fields-textarea", _sfc_main$1);
|
|
3974
|
-
app.component("m-fields-hidden", _sfc_main$c);
|
|
3975
|
-
app.component("m-fields-date", _sfc_main$h);
|
|
3976
|
-
app.component("m-fields-datetime", _sfc_main$f);
|
|
3977
|
-
app.component("m-fields-daterange", _sfc_main$g);
|
|
3978
|
-
app.component("m-fields-time", _sfc_main);
|
|
3979
|
-
app.component("m-fields-checkbox", _sfc_main$k);
|
|
3980
|
-
app.component("m-fields-switch", _sfc_main$3);
|
|
3981
|
-
app.component("m-fields-color-picker", _sfc_main$i);
|
|
3982
|
-
app.component("m-fields-checkbox-group", _sfc_main$j);
|
|
3983
|
-
app.component("m-fields-radio-group", _sfc_main$7);
|
|
3984
|
-
app.component("m-fields-display", _sfc_main$e);
|
|
3985
|
-
app.component("m-fields-link", _sfc_main$9);
|
|
3986
|
-
app.component("m-fields-select", _sfc_main$4);
|
|
3987
|
-
app.component("m-fields-cascader", _sfc_main$l);
|
|
3988
|
-
app.component("m-fields-dynamic-field", _sfc_main$d);
|
|
3989
|
-
};
|
|
3990
3944
|
const index = {
|
|
3991
|
-
install
|
|
3945
|
+
install(app, opt = {}) {
|
|
3946
|
+
const option = Object.assign(defaultInstallOpt, opt);
|
|
3947
|
+
app.config.globalProperties.$MAGIC_FORM = option;
|
|
3948
|
+
setConfig(option);
|
|
3949
|
+
app.component("m-form", _sfc_main$b);
|
|
3950
|
+
app.component("m-form-dialog", _sfc_main$a);
|
|
3951
|
+
app.component("m-form-container", _sfc_main$v);
|
|
3952
|
+
app.component("m-form-fieldset", _sfc_main$u);
|
|
3953
|
+
app.component("m-form-group-list", _sfc_main$s);
|
|
3954
|
+
app.component("m-form-panel", _sfc_main$r);
|
|
3955
|
+
app.component("m-form-row", _sfc_main$p);
|
|
3956
|
+
app.component("m-form-step", _sfc_main$o);
|
|
3957
|
+
app.component("m-form-table", _sfc_main$n);
|
|
3958
|
+
app.component("m-form-tab", _sfc_main$m);
|
|
3959
|
+
app.component("m-fields-text", _sfc_main$2);
|
|
3960
|
+
app.component("m-fields-number", _sfc_main$8);
|
|
3961
|
+
app.component("m-fields-textarea", _sfc_main$1);
|
|
3962
|
+
app.component("m-fields-hidden", _sfc_main$c);
|
|
3963
|
+
app.component("m-fields-date", _sfc_main$h);
|
|
3964
|
+
app.component("m-fields-datetime", _sfc_main$f);
|
|
3965
|
+
app.component("m-fields-daterange", _sfc_main$g);
|
|
3966
|
+
app.component("m-fields-time", _sfc_main);
|
|
3967
|
+
app.component("m-fields-checkbox", _sfc_main$k);
|
|
3968
|
+
app.component("m-fields-switch", _sfc_main$3);
|
|
3969
|
+
app.component("m-fields-color-picker", _sfc_main$i);
|
|
3970
|
+
app.component("m-fields-checkbox-group", _sfc_main$j);
|
|
3971
|
+
app.component("m-fields-radio-group", _sfc_main$7);
|
|
3972
|
+
app.component("m-fields-display", _sfc_main$e);
|
|
3973
|
+
app.component("m-fields-link", _sfc_main$9);
|
|
3974
|
+
app.component("m-fields-select", _sfc_main$4);
|
|
3975
|
+
app.component("m-fields-cascader", _sfc_main$l);
|
|
3976
|
+
app.component("m-fields-dynamic-field", _sfc_main$d);
|
|
3977
|
+
}
|
|
3992
3978
|
};
|
|
3993
3979
|
|
|
3994
3980
|
exports.MCascader = _sfc_main$l;
|