@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.
Files changed (71) hide show
  1. package/dist/tmagic-form.js +889 -903
  2. package/dist/tmagic-form.js.map +1 -1
  3. package/dist/tmagic-form.umd.cjs +887 -901
  4. package/dist/tmagic-form.umd.cjs.map +1 -1
  5. package/package.json +10 -11
  6. package/src/Form.vue +5 -1
  7. package/src/FormDialog.vue +5 -1
  8. package/src/containers/Col.vue +5 -1
  9. package/src/containers/Container.vue +5 -1
  10. package/src/containers/Fieldset.vue +5 -1
  11. package/src/containers/GroupList.vue +5 -1
  12. package/src/containers/GroupListItem.vue +5 -1
  13. package/src/containers/Panel.vue +5 -1
  14. package/src/containers/Row.vue +5 -1
  15. package/src/containers/Step.vue +5 -1
  16. package/src/containers/Table.vue +5 -1
  17. package/src/containers/Tabs.vue +14 -8
  18. package/src/fields/Cascader.vue +5 -1
  19. package/src/fields/Checkbox.vue +5 -1
  20. package/src/fields/CheckboxGroup.vue +6 -2
  21. package/src/fields/ColorPicker.vue +5 -1
  22. package/src/fields/Date.vue +5 -1
  23. package/src/fields/DateTime.vue +5 -1
  24. package/src/fields/Daterange.vue +5 -1
  25. package/src/fields/Display.vue +5 -1
  26. package/src/fields/DynamicField.vue +5 -1
  27. package/src/fields/Hidden.vue +5 -1
  28. package/src/fields/Link.vue +5 -1
  29. package/src/fields/Number.vue +5 -1
  30. package/src/fields/RadioGroup.vue +5 -1
  31. package/src/fields/Select.vue +9 -9
  32. package/src/fields/SelectOptionGroups.vue +7 -3
  33. package/src/fields/SelectOptions.vue +5 -1
  34. package/src/fields/Switch.vue +5 -1
  35. package/src/fields/Text.vue +5 -1
  36. package/src/fields/Textarea.vue +5 -1
  37. package/src/fields/Time.vue +5 -1
  38. package/src/index.ts +39 -37
  39. package/types/Form.vue.d.ts +7 -4
  40. package/types/FormDialog.vue.d.ts +76 -121
  41. package/types/containers/Col.vue.d.ts +1 -1
  42. package/types/containers/Container.vue.d.ts +6 -3
  43. package/types/containers/Fieldset.vue.d.ts +6 -3
  44. package/types/containers/GroupList.vue.d.ts +1 -1
  45. package/types/containers/GroupListItem.vue.d.ts +1 -1
  46. package/types/containers/Panel.vue.d.ts +3 -3
  47. package/types/containers/Row.vue.d.ts +1 -1
  48. package/types/containers/Step.vue.d.ts +6 -3
  49. package/types/containers/Table.vue.d.ts +9 -6
  50. package/types/containers/Tabs.vue.d.ts +6 -3
  51. package/types/fields/Cascader.vue.d.ts +1 -1
  52. package/types/fields/Checkbox.vue.d.ts +1 -1
  53. package/types/fields/CheckboxGroup.vue.d.ts +1 -1
  54. package/types/fields/ColorPicker.vue.d.ts +1 -1
  55. package/types/fields/Date.vue.d.ts +1 -1
  56. package/types/fields/DateTime.vue.d.ts +1 -1
  57. package/types/fields/Daterange.vue.d.ts +1 -1
  58. package/types/fields/Display.vue.d.ts +2 -2
  59. package/types/fields/DynamicField.vue.d.ts +1 -10
  60. package/types/fields/Hidden.vue.d.ts +2 -2
  61. package/types/fields/Link.vue.d.ts +1 -1
  62. package/types/fields/Number.vue.d.ts +1 -1
  63. package/types/fields/RadioGroup.vue.d.ts +1 -1
  64. package/types/fields/Select.vue.d.ts +1 -1
  65. package/types/fields/SelectOptionGroups.vue.d.ts +2 -2
  66. package/types/fields/SelectOptions.vue.d.ts +2 -2
  67. package/types/fields/Switch.vue.d.ts +1 -1
  68. package/types/fields/Text.vue.d.ts +1 -1
  69. package/types/fields/Textarea.vue.d.ts +1 -1
  70. package/types/fields/Time.vue.d.ts +1 -1
  71. package/types/index.d.ts +4 -1
@@ -165,35 +165,35 @@
165
165
  };
166
166
 
167
167
  const _hoisted_1$b = ["innerHTML"];
168
- const _hoisted_2$7 = ["innerHTML"];
169
- const _hoisted_3$7 = ["innerHTML"];
170
- const _hoisted_4$6 = ["innerHTML"];
171
- const _hoisted_5$4 = ["innerHTML"];
172
- const _hoisted_6$3 = ["innerHTML"];
173
- const _hoisted_7$3 = ["innerHTML"];
174
- const _hoisted_8$2 = ["innerHTML"];
175
- const _hoisted_9$1 = ["innerHTML"];
176
- const _hoisted_10$1 = ["innerHTML"];
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
- ...__default__$v,
184
+ ...{
185
+ name: "MFormContainer"
186
+ },
187
+ __name: "Container",
188
188
  props: {
189
- model: null,
189
+ model: {},
190
190
  lastValues: { default: () => ({}) },
191
- config: null,
191
+ config: {},
192
192
  prop: { default: "" },
193
193
  disabled: { type: Boolean },
194
- labelWidth: null,
194
+ labelWidth: {},
195
195
  expandMore: { type: Boolean, default: false },
196
- stepActive: null,
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 __props.config ? (vue.openBlock(), vue.createElementBlock("div", {
328
+ return _ctx.config ? (vue.openBlock(), vue.createElementBlock("div", {
329
329
  key: 0,
330
- style: vue.normalizeStyle(__props.config.tip ? "display: flex;align-items: baseline;" : ""),
331
- class: vue.normalizeClass([__props.config.className, "m-form-container"])
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
- vue.unref(type) === "hidden" ? (vue.openBlock(), vue.createBlock(_component_m_fields_hidden, {
333
+ type.value === "hidden" ? (vue.openBlock(), vue.createBlock(_component_m_fields_hidden, {
334
334
  key: 0,
335
- model: __props.model,
336
- config: __props.config,
337
- name: __props.config.name,
338
- disabled: vue.unref(disabled),
339
- prop: vue.unref(itemProp)
340
- }, null, 8, ["model", "config", "name", "disabled", "prop"])) : vue.unref(items) && !__props.config.text && vue.unref(type) && vue.unref(display$1) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tagName)), {
341
- key: key(__props.config),
342
- size: __props.size,
343
- model: __props.model,
344
- "last-values": __props.lastValues,
345
- "is-compare": __props.isCompare,
346
- config: __props.config,
347
- disabled: vue.unref(disabled),
348
- name: vue.unref(name),
349
- prop: vue.unref(itemProp),
350
- "step-active": __props.stepActive,
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": vue.unref(itemLabelWidth),
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"])) : vue.unref(type) && vue.unref(display$1) && !vue.unref(showDiff) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
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(__props.config.tip ? "flex: 1" : ""),
358
- class: vue.normalizeClass({ hidden: `${vue.unref(itemLabelWidth)}` === "0" || !__props.config.text }),
359
- prop: vue.unref(itemProp),
360
- "label-width": vue.unref(itemLabelWidth),
361
- rules: vue.unref(rule)
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: vue.unref(type) === "checkbox" ? "" : __props.config.text
365
+ innerHTML: type.value === "checkbox" ? "" : _ctx.config.text
366
366
  }, null, 8, _hoisted_1$b)
367
367
  ]),
368
368
  default: vue.withCtx(() => [
369
- vue.unref(tooltip) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
369
+ tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
370
370
  content: vue.withCtx(() => [
371
- vue.createElementVNode("div", { innerHTML: vue.unref(tooltip) }, null, 8, _hoisted_2$7)
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(vue.unref(tagName)), {
375
- key: key(__props.config),
376
- size: __props.size,
377
- model: __props.model,
378
- "last-values": __props.lastValues,
379
- config: __props.config,
380
- name: vue.unref(name),
381
- disabled: vue.unref(disabled),
382
- prop: vue.unref(itemProp),
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(vue.unref(tagName)), {
389
- key: key(__props.config),
390
- size: __props.size,
391
- model: __props.model,
392
- "last-values": __props.lastValues,
393
- config: __props.config,
394
- name: vue.unref(name),
395
- disabled: vue.unref(disabled),
396
- prop: vue.unref(itemProp),
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
- vue.unref(extra) && vue.unref(type) !== "table" ? (vue.openBlock(), vue.createElementBlock("div", {
400
+ extra.value && type.value !== "table" ? (vue.openBlock(), vue.createElementBlock("div", {
401
401
  key: 2,
402
- innerHTML: vue.unref(extra),
402
+ innerHTML: extra.value,
403
403
  class: "m-form-tip"
404
- }, null, 8, _hoisted_3$7)) : vue.createCommentVNode("", true)
404
+ }, null, 8, _hoisted_3$4)) : vue.createCommentVNode("", true)
405
405
  ]),
406
406
  _: 1
407
407
  }, 8, ["style", "class", "prop", "label-width", "rules"]),
408
- __props.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
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: __props.config.tip
415
- }, null, 8, _hoisted_4$6)
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)) : vue.unref(type) && vue.unref(display$1) && vue.unref(showDiff) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
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([__props.config.tip ? "flex: 1" : "", { "background": "#f7dadd" }]),
430
- class: vue.normalizeClass({ hidden: `${vue.unref(itemLabelWidth)}` === "0" || !__props.config.text }),
431
- prop: vue.unref(itemProp),
432
- "label-width": vue.unref(itemLabelWidth),
433
- rules: vue.unref(rule)
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: vue.unref(type) === "checkbox" ? "" : __props.config.text
438
- }, null, 8, _hoisted_5$4)
437
+ innerHTML: type.value === "checkbox" ? "" : _ctx.config.text
438
+ }, null, 8, _hoisted_5$3)
439
439
  ]),
440
440
  default: vue.withCtx(() => [
441
- vue.unref(tooltip) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
441
+ tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
442
442
  content: vue.withCtx(() => [
443
- vue.createElementVNode("div", { innerHTML: vue.unref(tooltip) }, null, 8, _hoisted_6$3)
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(vue.unref(tagName)), {
447
- key: key(__props.config),
448
- size: __props.size,
449
- model: __props.lastValues,
450
- config: __props.config,
451
- name: vue.unref(name),
452
- disabled: vue.unref(disabled),
453
- prop: vue.unref(itemProp),
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(vue.unref(tagName)), {
459
- key: key(__props.config),
460
- size: __props.size,
461
- model: __props.lastValues,
462
- config: __props.config,
463
- name: vue.unref(name),
464
- disabled: vue.unref(disabled),
465
- prop: vue.unref(itemProp),
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
- vue.unref(extra) ? (vue.openBlock(), vue.createElementBlock("div", {
468
+ extra.value ? (vue.openBlock(), vue.createElementBlock("div", {
469
469
  key: 2,
470
- innerHTML: vue.unref(extra),
470
+ innerHTML: extra.value,
471
471
  class: "m-form-tip"
472
- }, null, 8, _hoisted_7$3)) : vue.createCommentVNode("", true)
472
+ }, null, 8, _hoisted_7$1)) : vue.createCommentVNode("", true)
473
473
  ]),
474
474
  _: 1
475
475
  }, 8, ["style", "class", "prop", "label-width", "rules"]),
476
- __props.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
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: __props.config.tip
483
- }, null, 8, _hoisted_8$2)
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([__props.config.tip ? "flex: 1" : "", { "background": "#def7da" }]),
497
- class: vue.normalizeClass({ hidden: `${vue.unref(itemLabelWidth)}` === "0" || !__props.config.text }),
498
- prop: vue.unref(itemProp),
499
- "label-width": vue.unref(itemLabelWidth),
500
- rules: vue.unref(rule)
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: vue.unref(type) === "checkbox" ? "" : __props.config.text
505
- }, null, 8, _hoisted_9$1)
504
+ innerHTML: type.value === "checkbox" ? "" : _ctx.config.text
505
+ }, null, 8, _hoisted_9)
506
506
  ]),
507
507
  default: vue.withCtx(() => [
508
- vue.unref(tooltip) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
508
+ tooltip.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), { key: 0 }, {
509
509
  content: vue.withCtx(() => [
510
- vue.createElementVNode("div", { innerHTML: vue.unref(tooltip) }, null, 8, _hoisted_10$1)
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(vue.unref(tagName)), {
514
- key: key(__props.config),
515
- size: __props.size,
516
- model: __props.model,
517
- config: __props.config,
518
- name: vue.unref(name),
519
- disabled: vue.unref(disabled),
520
- prop: vue.unref(itemProp),
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(vue.unref(tagName)), {
526
- key: key(__props.config),
527
- size: __props.size,
528
- model: __props.model,
529
- config: __props.config,
530
- name: vue.unref(name),
531
- disabled: vue.unref(disabled),
532
- prop: vue.unref(itemProp),
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
- vue.unref(extra) ? (vue.openBlock(), vue.createElementBlock("div", {
535
+ extra.value ? (vue.openBlock(), vue.createElementBlock("div", {
536
536
  key: 2,
537
- innerHTML: vue.unref(extra),
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
- __props.config.tip ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
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: __props.config.tip
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)) : vue.unref(items) && vue.unref(display$1) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
563
- (vue.unref(name) || vue.unref(name) === 0 ? __props.model[vue.unref(name)] : __props.model) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(vue.unref(items), (item) => {
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: vue.unref(name) || vue.unref(name) === 0 ? __props.model[vue.unref(name)] : __props.model,
567
- "last-values": vue.unref(name) || vue.unref(name) === 0 ? __props.lastValues[vue.unref(name)] || {} : __props.lastValues,
568
- "is-compare": __props.isCompare,
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: __props.size,
571
- disabled: vue.unref(disabled),
572
- "step-active": __props.stepActive,
570
+ size: _ctx.size,
571
+ disabled: disabled.value,
572
+ "step-active": _ctx.stepActive,
573
573
  "expand-more": expand.value,
574
- "label-width": vue.unref(itemLabelWidth),
575
- prop: vue.unref(itemProp),
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
- __props.config.expand && vue.unref(type) !== "fieldset" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
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$6 = ["innerHTML"];
602
- const _hoisted_3$6 = { key: 1 };
603
- const _hoisted_4$5 = ["innerHTML"];
604
- const _hoisted_5$3 = ["innerHTML"];
605
- const _hoisted_6$2 = {
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$2 = { style: { "flex": "1" } };
610
- const _hoisted_8$1 = ["src"];
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
- ...__default__$u,
612
+ ...{
613
+ name: "MFormFieldset"
614
+ },
615
+ __name: "Fieldset",
616
616
  props: {
617
- labelWidth: null,
617
+ labelWidth: {},
618
618
  prop: { default: "" },
619
- size: null,
620
- model: null,
619
+ size: {},
620
+ model: {},
621
621
  lastValues: { default: () => ({}) },
622
622
  isCompare: { type: Boolean, default: false },
623
- config: null,
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 (vue.unref(name) ? __props.model[vue.unref(name)] : __props.model) ? (vue.openBlock(), vue.createElementBlock("fieldset", {
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(vue.unref(show) ? "padding: 15px 15px 0 5px;" : "border: 0")
653
+ style: vue.normalizeStyle(show.value ? "padding: 15px 15px 0 5px;" : "border: 0")
654
654
  }, [
655
- vue.unref(name) && __props.config.checkbox ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(!vue.unref(show) ? "div" : "legend"), { key: 0 }, {
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: __props.model[vue.unref(name)].value,
658
+ modelValue: _ctx.model[name.value].value,
659
659
  "onUpdate:modelValue": [
660
- _cache[0] || (_cache[0] = ($event) => __props.model[vue.unref(name)].value = $event),
660
+ _cache[0] || (_cache[0] = ($event) => _ctx.model[name.value].value = $event),
661
661
  change
662
662
  ],
663
- prop: `${__props.prop}${__props.prop ? "." : ""}${__props.config.name}.value`,
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: __props.config.legend
669
+ innerHTML: _ctx.config.legend
670
670
  }, null, 8, _hoisted_1$a),
671
- __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
671
+ _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
672
672
  key: 0,
673
- innerHTML: __props.config.extra,
673
+ innerHTML: _ctx.config.extra,
674
674
  class: "m-form-tip"
675
- }, null, 8, _hoisted_2$6)) : vue.createCommentVNode("", true)
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$6, [
681
+ })) : (vue.openBlock(), vue.createElementBlock("legend", _hoisted_3$3, [
682
682
  vue.createElementVNode("span", {
683
- innerHTML: __props.config.legend
684
- }, null, 8, _hoisted_4$5),
685
- __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
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: __props.config.extra,
687
+ innerHTML: _ctx.config.extra,
688
688
  class: "m-form-tip"
689
- }, null, 8, _hoisted_5$3)) : vue.createCommentVNode("", true)
689
+ }, null, 8, _hoisted_5$2)) : vue.createCommentVNode("", true)
690
690
  ])),
691
- __props.config.schematic && vue.unref(show) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$2, [
692
- vue.createElementVNode("div", _hoisted_7$2, [
693
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.config.items, (item, index) => {
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: vue.unref(name) ? __props.model[vue.unref(name)] : __props.model,
697
- lastValues: vue.unref(name) ? __props.lastValues[vue.unref(name)] : __props.lastValues,
698
- "is-compare": __props.isCompare,
699
- rules: vue.unref(name) ? __props.rules[vue.unref(name)] : [],
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: __props.prop,
702
- disabled: __props.disabled,
703
- labelWidth: vue.unref(lWidth),
704
- size: __props.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: __props.config.schematic
713
- }, null, 8, _hoisted_8$1)
714
- ])) : vue.unref(show) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 3 }, vue.renderList(__props.config.items, (item, index) => {
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: vue.unref(name) ? __props.model[vue.unref(name)] : __props.model,
718
- lastValues: vue.unref(name) ? __props.lastValues[vue.unref(name)] : __props.lastValues,
719
- "is-compare": __props.isCompare,
720
- rules: vue.unref(name) ? __props.rules[vue.unref(name)] : [],
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: __props.prop,
723
- labelWidth: vue.unref(lWidth),
724
- size: __props.size,
725
- disabled: __props.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$5 = /* @__PURE__ */ vue.createTextVNode("上移");
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
- ...__default__$t,
738
+ ...{
739
+ name: "MFormGroupListItem"
740
+ },
741
+ __name: "GroupListItem",
744
742
  props: {
745
- model: null,
746
- lastValues: null,
743
+ model: {},
744
+ lastValues: {},
747
745
  isCompare: { type: Boolean },
748
- groupModel: null,
749
- config: null,
750
- labelWidth: null,
751
- prop: null,
752
- size: null,
753
- index: null,
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: __props.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(vue.unref(title)), 1)
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: __props.disabled,
818
+ disabled: _ctx.disabled,
821
819
  onClick: removeHandler
822
820
  }, null, 8, ["icon", "disabled"]), [
823
- [vue.vShow, showDelete(parseInt(String(__props.index)))]
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: __props.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
- _hoisted_2$5,
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, __props.index !== 0]
841
+ [vue.vShow, _ctx.index !== 0]
844
842
  ]),
845
843
  vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
846
- disabled: __props.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
- _hoisted_3$5,
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, __props.index !== vue.unref(length) - 1]
860
+ [vue.vShow, _ctx.index !== length.value - 1]
863
861
  ])
864
862
  ], 64)) : vue.createCommentVNode("", true),
865
- vue.unref(itemExtra) ? (vue.openBlock(), vue.createElementBlock("span", {
863
+ itemExtra.value ? (vue.openBlock(), vue.createElementBlock("span", {
866
864
  key: 1,
867
- innerHTML: vue.unref(itemExtra),
865
+ innerHTML: itemExtra.value,
868
866
  class: "m-form-tip"
869
- }, null, 8, _hoisted_4$4)) : vue.createCommentVNode("", true)
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: vue.unref(rowConfig),
874
- model: __props.model,
875
- lastValues: __props.lastValues,
876
- "is-compare": __props.isCompare,
877
- labelWidth: __props.labelWidth,
878
- prop: `${__props.prop}${__props.prop ? "." : ""}${String(__props.index)}`,
879
- size: __props.size,
880
- disabled: __props.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$4 = ["innerHTML"];
891
- const _hoisted_3$4 = {
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$3 = /* @__PURE__ */ vue.createElementVNode("span", { class: "el-table__empty-text" }, "暂无数据", -1);
896
- const _hoisted_5$2 = [
897
- _hoisted_4$3
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
- ...__default__$s,
898
+ ...{
899
+ name: "MFormGroupList"
900
+ },
901
+ __name: "GroupList",
906
902
  props: {
907
- model: null,
908
- lastValues: null,
903
+ model: {},
904
+ lastValues: {},
909
905
  isCompare: { type: Boolean },
910
- config: null,
911
- name: null,
912
- labelWidth: null,
913
- prop: null,
914
- size: null,
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
- __props.config.extra ? (vue.openBlock(), vue.createElementBlock("div", {
981
+ _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("div", {
986
982
  key: 0,
987
- innerHTML: __props.config.extra,
983
+ innerHTML: _ctx.config.extra,
988
984
  style: { "color": "rgba(0, 0, 0, 0.45)" }
989
- }, null, 8, _hoisted_2$4)) : vue.createCommentVNode("", true),
990
- !__props.model[__props.name] || !__props.model[__props.name].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, _hoisted_5$2)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 2 }, vue.renderList(__props.model[__props.name], (item, index) => {
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(__props.lastValues[__props.name], index),
995
- "is-compare": __props.isCompare,
996
- config: __props.config,
997
- prop: __props.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": __props.labelWidth,
1000
- size: __props.size,
1001
- disabled: __props.disabled,
1002
- "group-model": __props.model[__props.name],
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
- vue.unref(addable) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
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: __props.disabled
1009
+ disabled: _ctx.disabled
1014
1010
  }, {
1015
1011
  default: vue.withCtx(() => [
1016
- _hoisted_6$1
1012
+ vue.createTextVNode("添加组")
1017
1013
  ]),
1018
1014
  _: 1
1019
1015
  }, 8, ["disabled"])) : vue.createCommentVNode("", true),
1020
- __props.config.enableToggleMode ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
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
- _hoisted_7$1
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$3 = ["innerHTML"];
1038
- const _hoisted_3$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$2 = { style: { "flex": "1" } };
1043
- const _hoisted_5$1 = ["src"];
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
- ...__default__$r,
1041
+ ...{
1042
+ name: "MFormPanel"
1043
+ },
1044
+ __name: "Panel",
1049
1045
  props: {
1050
- model: null,
1051
- lastValues: null,
1046
+ model: {},
1047
+ lastValues: {},
1052
1048
  isCompare: { type: Boolean },
1053
- config: null,
1054
- name: null,
1055
- labelWidth: null,
1056
- prop: null,
1057
- size: null,
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 vue.unref(items) && vue.unref(items).length ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicCard), {
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
- __props.config && __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
1079
+ _ctx.config && _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
1084
1080
  key: 0,
1085
- innerHTML: __props.config.extra,
1081
+ innerHTML: _ctx.config.extra,
1086
1082
  class: "m-form-tip"
1087
- }, null, 8, _hoisted_2$3)) : vue.createCommentVNode("", true),
1083
+ }, null, 8, _hoisted_2$2)) : vue.createCommentVNode("", true),
1088
1084
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
1089
- vue.createTextVNode(vue.toDisplayString(filter(__props.config.title)), 1)
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
- __props.config.schematic ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, [
1097
- vue.createElementVNode("div", _hoisted_4$2, [
1098
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(items), (item, index) => {
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: __props.name ? __props.model[__props.name] : __props.model,
1103
- lastValues: __props.name ? __props.lastValues[__props.name] : __props.lastValues,
1104
- "is-compare": __props.isCompare,
1105
- prop: __props.prop,
1106
- size: __props.size,
1107
- disabled: __props.disabled,
1108
- "label-width": __props.config.labelWidth || __props.labelWidth,
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: __props.config.schematic
1117
- }, null, 8, _hoisted_5$1)
1118
- ])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(items), (item, index) => {
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: __props.name ? __props.model[__props.name] : __props.model,
1123
- lastValues: __props.name ? __props.lastValues[__props.name] : __props.lastValues,
1124
- "is-compare": __props.isCompare,
1125
- prop: __props.prop,
1126
- size: __props.size,
1127
- disabled: __props.disabled,
1128
- "label-width": __props.config.labelWidth || __props.labelWidth,
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
- ...__default__$q,
1138
+ ...{
1139
+ name: "MFormCol"
1140
+ },
1141
+ __name: "Col",
1146
1142
  props: {
1147
- model: null,
1148
- lastValues: null,
1143
+ model: {},
1144
+ lastValues: {},
1149
1145
  isCompare: { type: Boolean },
1150
- config: null,
1151
- labelWidth: null,
1146
+ config: {},
1147
+ labelWidth: {},
1152
1148
  expandMore: { type: Boolean },
1153
- span: null,
1154
- size: null,
1155
- prop: null,
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: __props.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: __props.model,
1170
- lastValues: __props.lastValues,
1171
- "is-compare": __props.isCompare,
1172
- config: __props.config,
1173
- prop: __props.prop,
1174
- "label-width": __props.config.labelWidth || __props.labelWidth,
1175
- "expand-more": __props.expandMore,
1176
- size: __props.size,
1177
- disabled: __props.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, vue.unref(display$1) && __props.config.type !== "hidden"]
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
- ...__default__$p,
1187
+ ...{
1188
+ name: "MFormRow"
1189
+ },
1190
+ __name: "Row",
1195
1191
  props: {
1196
- model: null,
1197
- lastValues: null,
1192
+ model: {},
1193
+ lastValues: {},
1198
1194
  isCompare: { type: Boolean },
1199
- config: null,
1200
- name: null,
1201
- labelWidth: null,
1202
- prop: null,
1203
- size: null,
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(__props.config.items, (col, index) => {
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 || __props.config.span || 24 / __props.config.items.length,
1215
+ span: col.span || _ctx.config.span || 24 / _ctx.config.items.length,
1220
1216
  config: col,
1221
- labelWidth: __props.config.labelWidth || __props.labelWidth,
1222
- expandMore: __props.expandMore,
1223
- model: __props.name ? __props.model[__props.name] : __props.model,
1224
- lastValues: __props.name ? __props.lastValues[__props.name] : __props.lastValues,
1225
- "is-compare": __props.isCompare,
1226
- prop: __props.prop,
1227
- size: __props.size,
1228
- disabled: __props.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
- ...__default__$o,
1237
+ ...{
1238
+ name: "MFormStep"
1239
+ },
1240
+ __name: "Step",
1245
1241
  props: {
1246
- model: null,
1247
- lastValues: null,
1242
+ model: {},
1243
+ lastValues: {},
1248
1244
  isCompare: { type: Boolean },
1249
- config: null,
1245
+ config: {},
1250
1246
  stepActive: { default: 1 },
1251
- labelWidth: null,
1252
- size: null,
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: __props.config.space
1272
+ space: _ctx.config.space
1277
1273
  }, {
1278
1274
  default: vue.withCtx(() => [
1279
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.config.items, (item, index) => {
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(__props.config.items, (step, index) => {
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 ? __props.model[step.name] : __props.model,
1298
- lastValues: step.name ? __props.lastValues[step.name] : __props.lastValues,
1299
- "is-compare": __props.isCompare,
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: __props.size,
1302
- disabled: __props.disabled,
1303
- "label-width": __props.config.labelWidth || __props.labelWidth,
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$2 = { class: "el-form-item__content" };
1320
- const _hoisted_3$2 = ["innerHTML"];
1321
- const _hoisted_4$1 = /* @__PURE__ */ vue.createTextVNode("添加");
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
- ...__default__$n,
1323
+ ...{
1324
+ name: "MFormTable"
1325
+ },
1326
+ __name: "Table",
1337
1327
  props: {
1338
- model: null,
1328
+ model: {},
1339
1329
  lastValues: { default: () => ({}) },
1340
1330
  isCompare: { type: Boolean, default: false },
1341
- config: null,
1342
- name: null,
1331
+ config: {},
1332
+ name: {},
1343
1333
  prop: { default: "" },
1344
- labelWidth: null,
1334
+ labelWidth: {},
1345
1335
  sort: { type: Boolean },
1346
1336
  disabled: { type: Boolean },
1347
1337
  sortKey: { default: "" },
1348
- text: null,
1349
- size: null,
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
- expose({
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": __props.config.itemExtra }])
1671
+ class: vue.normalizeClass(["m-fields-table", { "m-fields-table-item-extra": _ctx.config.itemExtra }])
1682
1672
  }, [
1683
- __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
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: __props.config.extra
1676
+ innerHTML: _ctx.config.extra
1687
1677
  }, null, 8, _hoisted_1$6)) : vue.createCommentVNode("", true),
1688
- vue.createElementVNode("div", _hoisted_2$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: __props.config.dropSort !== true
1682
+ disabled: _ctx.config.dropSort !== true
1693
1683
  }, {
1694
1684
  default: vue.withCtx(() => [
1695
- __props.model[vue.unref(modelName)] ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTable), {
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": __props.config.rowKey || "id",
1700
- data: vue.unref(data),
1701
- lastData: vue.unref(lastData),
1702
- border: __props.config.border,
1703
- "max-height": __props.config.maxHeight,
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
- __props.config.itemExtra ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
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(__props.config.itemExtra, scope.$index),
1708
+ innerHTML: itemExtra(_ctx.config.itemExtra, scope.$index),
1719
1709
  class: "m-form-tip"
1720
- }, null, 8, _hoisted_3$2)
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: __props.config.operateColWidth || 55,
1716
+ width: _ctx.config.operateColWidth || 55,
1727
1717
  align: "center",
1728
- fixed: __props.config.fixed === false ? void 0 : "left"
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
- __props.sort && __props.model[vue.unref(modelName)] && __props.model[vue.unref(modelName)].length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
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: __props.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 !== __props.model[vue.unref(modelName)].length - 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
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: __props.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
- vue.unref(selection) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
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
- __props.showIndex && __props.config.showIndex ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTableColumn), {
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(__props.config.items, (column, index) => {
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": __props.config.dropSort === true ? "el-table__column--dropable" : ""
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: __props.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: vue.unref(lastData)[scope.$index],
1831
- "is-compare": __props.isCompare,
1832
- size: __props.size,
1833
- onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", __props.model[vue.unref(modelName)])),
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
- vue.unref(addable) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
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: __props.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
- _hoisted_4$1
1847
+ vue.createTextVNode("添加")
1858
1848
  ]),
1859
1849
  _: 1
1860
1850
  }, 8, ["disabled"])) : vue.createCommentVNode("", true),
1861
- _hoisted_5,
1862
- __props.enableToggleMode && !isFullscreen.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
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
- _hoisted_6
1860
+ vue.createTextVNode("展开配置")
1871
1861
  ]),
1872
1862
  _: 1
1873
1863
  }, 8, ["icon"])) : vue.createCommentVNode("", true),
1874
- __props.config.enableFullscreen !== false ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
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
- vue.unref(importable) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicUpload), {
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: __props.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: __props.disabled,
1890
+ disabled: _ctx.disabled,
1901
1891
  plain: ""
1902
1892
  }, {
1903
1893
  default: vue.withCtx(() => [
1904
- _hoisted_7
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
- _hoisted_8,
1912
- vue.unref(importable) ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
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: __props.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
- _hoisted_9
1911
+ vue.createTextVNode("清空")
1922
1912
  ]),
1923
1913
  _: 1
1924
1914
  }, 8, ["disabled"])) : vue.createCommentVNode("", true)
1925
1915
  ]),
1926
- __props.config.pagination ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
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": __props.model[vue.unref(modelName)].length < pagesize.value,
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: __props.model[vue.unref(modelName)].length,
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
- ...__default__$m,
1934
+ ...{
1935
+ name: "MFormTabs"
1936
+ },
1937
+ __name: "Tabs",
1948
1938
  props: {
1949
- model: null,
1939
+ model: {},
1950
1940
  lastValues: { default: () => ({}) },
1951
1941
  isCompare: { type: Boolean, default: false },
1952
- config: null,
1953
- name: null,
1954
- size: null,
1955
- labelWidth: null,
1956
- prop: null,
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").tabPane;
1964
- const tabsComponent = design.getConfig("components").tabs;
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).component), vue.mergeProps(
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).props({
2066
- type: __props.config.tabType,
2067
- editable: __props.config.editable || false,
2068
- tabPosition: __props.config.tabPosition || "top"
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 ${__props.config.dynamic ? "magic-form-dynamic-tab" : "magic-form-tab"}`,
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(vue.unref(tabs), (tab, tabIndex) => {
2079
- return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tabPaneComponent).component), vue.mergeProps({
2080
- key: tab[vue.unref(mForm)?.keyProp || "__key"] ?? tabIndex
2081
- }, vue.unref(tabPaneComponent).props({ name: filter(tab.status) || tabIndex.toString(), lazy: tab.lazy || false })), {
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: __props.disabled,
2098
- model: __props.config.dynamic ? (__props.name ? __props.model[__props.name] : __props.model)[tabIndex] : tab.name ? (__props.name ? __props.model[__props.name] : __props.model)[tab.name] : __props.name ? __props.model[__props.name] : __props.model,
2099
- "last-values": vue.unref(lodashEs.isEmpty)(__props.lastValues) ? {} : __props.config.dynamic ? (__props.name ? __props.lastValues[__props.name] : __props.lastValues)[tabIndex] : tab.name ? (__props.name ? __props.lastValues[__props.name] : __props.lastValues)[tab.name] : __props.name ? __props.lastValues[__props.name] : __props.lastValues,
2100
- "is-compare": __props.isCompare,
2101
- prop: __props.config.dynamic ? `${__props.prop}${__props.prop ? "." : ""}${String(tabIndex)}` : __props.prop,
2102
- size: __props.size,
2103
- "label-width": tab.labelWidth || __props.labelWidth,
2104
- "expand-more": __props.expandMore,
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
- ...__default__$l,
2140
+ ...{
2141
+ name: "MFormCascader"
2142
+ },
2143
+ __name: "Cascader",
2151
2144
  props: {
2152
- config: null,
2153
- model: null,
2154
- initValues: null,
2155
- values: null,
2156
- name: null,
2157
- prop: null,
2145
+ config: {},
2146
+ model: {},
2147
+ initValues: {},
2148
+ values: {},
2149
+ name: {},
2150
+ prop: {},
2158
2151
  disabled: { type: Boolean },
2159
- size: null,
2160
- lastValues: null
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: __props.model[__props.name],
2217
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $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: __props.size,
2224
- placeholder: __props.config.placeholder,
2225
- disabled: __props.disabled,
2216
+ size: _ctx.size,
2217
+ placeholder: _ctx.config.placeholder,
2218
+ disabled: _ctx.disabled,
2226
2219
  options: vue.unref(options),
2227
- props: { multiple: __props.config.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
- ...__default__$k,
2228
+ ...{
2229
+ name: "MFormCheckbox"
2230
+ },
2231
+ __name: "Checkbox",
2239
2232
  props: {
2240
- config: null,
2241
- model: null,
2242
- initValues: null,
2243
- values: null,
2244
- name: null,
2245
- prop: null,
2233
+ config: {},
2234
+ model: {},
2235
+ initValues: {},
2236
+ values: {},
2237
+ name: {},
2238
+ prop: {},
2246
2239
  disabled: { type: Boolean },
2247
- size: null,
2248
- lastValues: null
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: __props.model[__props.name],
2280
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
2281
- size: __props.size,
2282
- trueLabel: vue.unref(activeValue),
2283
- falseLabel: vue.unref(inactiveValue),
2284
- disabled: __props.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(__props.config.text), 1)
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
- ...__default__$j,
2290
+ ...{
2291
+ name: "MFormCheckGroup"
2292
+ },
2293
+ __name: "CheckboxGroup",
2301
2294
  props: {
2302
- config: null,
2303
- model: null,
2304
- initValues: null,
2305
- values: null,
2306
- name: null,
2307
- prop: null,
2295
+ config: {},
2296
+ model: {},
2297
+ initValues: {},
2298
+ values: {},
2299
+ name: {},
2300
+ prop: {},
2308
2301
  disabled: { type: Boolean },
2309
- size: null,
2310
- lastValues: null
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: __props.model[__props.name],
2333
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
2334
- size: __props.size,
2335
- disabled: __props.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(vue.unref(options), (option) => {
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
- ...__default__$i,
2353
+ ...{
2354
+ name: "MFormColorPicker"
2355
+ },
2356
+ __name: "ColorPicker",
2364
2357
  props: {
2365
- config: null,
2366
- model: null,
2367
- initValues: null,
2368
- values: null,
2369
- name: null,
2370
- prop: null,
2358
+ config: {},
2359
+ model: {},
2360
+ initValues: {},
2361
+ values: {},
2362
+ name: {},
2363
+ prop: {},
2371
2364
  disabled: { type: Boolean },
2372
- size: null,
2373
- lastValues: null
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: __props.model[__props.name],
2383
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
2384
- size: __props.size,
2385
- disabled: __props.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
- ...__default__$h,
2387
+ ...{
2388
+ name: "MFormDate"
2389
+ },
2390
+ __name: "Date",
2398
2391
  props: {
2399
- config: null,
2400
- model: null,
2401
- initValues: null,
2402
- values: null,
2403
- name: null,
2404
- prop: null,
2392
+ config: {},
2393
+ model: {},
2394
+ initValues: {},
2395
+ values: {},
2396
+ name: {},
2397
+ prop: {},
2405
2398
  disabled: { type: Boolean },
2406
- size: null,
2407
- lastValues: null
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: __props.model[__props.name],
2420
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $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: __props.size,
2423
- placeholder: __props.config.placeholder,
2424
- disabled: __props.disabled,
2425
- format: __props.config.format,
2426
- "value-format": __props.config.valueFormat || "YYYY-MM-DD HH:mm:ss",
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
- ...__default__$g,
2427
+ ...{
2428
+ name: "MFormDateRange"
2429
+ },
2430
+ __name: "Daterange",
2438
2431
  props: {
2439
- config: null,
2440
- model: null,
2441
- initValues: null,
2442
- values: null,
2443
- name: null,
2444
- prop: null,
2432
+ config: {},
2433
+ model: {},
2434
+ initValues: {},
2435
+ values: {},
2436
+ name: {},
2437
+ prop: {},
2445
2438
  disabled: { type: Boolean },
2446
- size: null,
2447
- lastValues: null
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: __props.size,
2518
+ size: _ctx.size,
2526
2519
  "unlink-panels": true,
2527
- disabled: __props.disabled,
2528
- "default-time": __props.config.defaultTime,
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
- ...__default__$f,
2529
+ ...{
2530
+ name: "MFormDateTime"
2531
+ },
2532
+ __name: "DateTime",
2540
2533
  props: {
2541
- config: null,
2542
- model: null,
2543
- initValues: null,
2544
- values: null,
2545
- name: null,
2546
- prop: null,
2534
+ config: {},
2535
+ model: {},
2536
+ initValues: {},
2537
+ values: {},
2538
+ name: {},
2539
+ prop: {},
2547
2540
  disabled: { type: Boolean },
2548
- size: null,
2549
- lastValues: null
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: __props.model[__props.name],
2569
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $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: __props.size,
2573
- placeholder: __props.config.placeholder,
2574
- disabled: __props.disabled,
2575
- format: __props.config.format || "YYYY-MM-DD HH:mm:ss",
2576
- "value-format": __props.config.valueFormat || "YYYY-MM-DD HH:mm:ss",
2577
- "default-time": __props.config.defaultTime,
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
- ...__default__$e,
2579
+ ...{
2580
+ name: "MFormDisplay"
2581
+ },
2582
+ __name: "Display",
2590
2583
  props: {
2591
- config: null,
2592
- model: null,
2593
- initValues: null,
2594
- values: null,
2595
- name: null,
2596
- prop: null,
2597
- lastValues: null
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 __props.model ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$5, vue.toDisplayString(__props.model[__props.name]), 1)) : vue.createCommentVNode("", true);
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
- ...__default__$d,
2606
+ ...{
2607
+ name: "MFormDynamicField"
2608
+ },
2609
+ __name: "DynamicField",
2617
2610
  props: {
2618
- config: null,
2619
- model: null,
2620
- initValues: null,
2621
- values: null,
2622
- name: null,
2623
- prop: null,
2611
+ config: {},
2612
+ model: {},
2613
+ initValues: {},
2614
+ values: {},
2615
+ name: {},
2616
+ prop: {},
2624
2617
  disabled: { type: Boolean },
2625
- size: null,
2626
- lastValues: null
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
- ...__default__$c,
2698
+ ...{
2699
+ name: "MFormHidden"
2700
+ },
2701
+ __name: "Hidden",
2709
2702
  props: {
2710
- config: null,
2711
- model: null,
2712
- initValues: null,
2713
- values: null,
2714
- name: null,
2715
- prop: null,
2716
- lastValues: null
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 __props.model ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
2715
+ return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
2723
2716
  key: 0,
2724
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $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, __props.model[__props.name]]
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
- ...__default__$b,
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: null,
2741
+ size: {},
2749
2742
  inline: { type: Boolean, default: false },
2750
2743
  labelPosition: { default: "right" },
2751
2744
  keyProp: { default: "__key" },
2752
- popperClass: null
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
- expose({
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": __props.labelWidth,
2859
- style: vue.normalizeStyle(`height: ${__props.height}`),
2860
- inline: __props.inline,
2861
- "label-position": __props.labelPosition
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(__props.config) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(__props.config, (item, index) => {
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: __props.disabled,
2867
- key: item[__props.keyProp] ?? index,
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": __props.isCompare,
2872
- "label-width": item.labelWidth || __props.labelWidth,
2873
- "step-active": __props.stepActive,
2874
- size: __props.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
- ...__default__$a,
2880
+ ...{
2881
+ name: "MFormDialog"
2882
+ },
2883
+ __name: "FormDialog",
2894
2884
  props: {
2895
2885
  config: { default: () => [] },
2896
2886
  values: { default: () => ({}) },
2897
- parentValues: null,
2898
- width: null,
2899
- labelWidth: null,
2887
+ parentValues: {},
2888
+ width: {},
2889
+ labelWidth: {},
2900
2890
  fullscreen: { type: Boolean },
2901
2891
  disabled: { type: Boolean },
2902
- title: null,
2903
- zIndex: null,
2904
- size: null,
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
- expose({
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: __props.title,
2972
- width: __props.width,
2973
- zIndex: __props.zIndex,
2974
- fullscreen: __props.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
- _hoisted_2$1
2990
+ vue.createTextVNode("取 消")
3001
2991
  ]),
3002
2992
  _: 1
3003
2993
  }),
3004
- vue.unref(hasStep) && stepActive.value > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
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
- _hoisted_3$1
3001
+ vue.createTextVNode("上一步")
3012
3002
  ]),
3013
3003
  _: 1
3014
3004
  })) : vue.createCommentVNode("", true),
3015
- vue.unref(hasStep) && vue.unref(stepCount) > stepActive.value ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
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
- _hoisted_4
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(__props.confirmText), 1)
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: __props.size,
3057
- disabled: __props.disabled,
3058
- config: __props.config,
3059
- "init-values": __props.values,
3060
- "parent-values": __props.parentValues,
3061
- "label-width": __props.labelWidth,
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
- ...__default__$9,
3069
+ ...{
3070
+ name: "MFormLink"
3071
+ },
3072
+ __name: "Link",
3084
3073
  props: {
3085
- config: null,
3086
- model: null,
3087
- initValues: null,
3088
- values: null,
3089
- name: null,
3090
- prop: null,
3074
+ config: {},
3075
+ model: {},
3076
+ initValues: {},
3077
+ values: {},
3078
+ name: {},
3079
+ prop: {},
3091
3080
  disabled: { type: Boolean },
3092
- size: null,
3093
- lastValues: null
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 __props.config.href && !__props.disabled ? (vue.openBlock(), vue.createElementBlock("a", {
3131
+ return _ctx.config.href && !_ctx.disabled ? (vue.openBlock(), vue.createElementBlock("a", {
3143
3132
  key: 0,
3144
3133
  target: "_blank",
3145
- href: vue.unref(href),
3146
- style: vue.normalizeStyle(__props.config.css || {})
3147
- }, vue.toDisplayString(vue.unref(displayText)), 13, _hoisted_1$2)) : __props.config.href && __props.disabled ? (vue.openBlock(), vue.createElementBlock("span", {
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(__props.config.disabledCss || {})
3150
- }, vue.toDisplayString(vue.unref(displayText)), 5)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
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
- _hoisted_3
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: __props.config.formTitle || "编辑扩展配置",
3165
- width: __props.config.formWidth,
3153
+ title: _ctx.config.formTitle || "编辑扩展配置",
3154
+ width: _ctx.config.formWidth,
3166
3155
  values: formValue.value,
3167
- config: vue.unref(formConfig),
3168
- parentValues: __props.values,
3169
- fullscreen: __props.config.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
- ...__default__$8,
3167
+ ...{
3168
+ name: "MFormNumber"
3169
+ },
3170
+ __name: "Number",
3182
3171
  props: {
3183
- config: null,
3184
- model: null,
3185
- initValues: null,
3186
- values: null,
3187
- name: null,
3188
- prop: null,
3172
+ config: {},
3173
+ model: {},
3174
+ initValues: {},
3175
+ values: {},
3176
+ name: {},
3177
+ prop: {},
3189
3178
  disabled: { type: Boolean },
3190
- size: null,
3191
- lastValues: null
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 __props.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInputNumber), {
3195
+ return _ctx.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicInputNumber), {
3207
3196
  key: 0,
3208
- modelValue: __props.model[__props.name],
3209
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $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: __props.size,
3213
- max: __props.config.max,
3214
- min: __props.config.min,
3215
- step: __props.config.step,
3216
- placeholder: __props.config.placeholder,
3217
- disabled: __props.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
- ...__default__$7,
3215
+ ...{
3216
+ name: "MFormRadioGroup"
3217
+ },
3218
+ __name: "RadioGroup",
3230
3219
  props: {
3231
- config: null,
3232
- model: null,
3233
- initValues: null,
3234
- values: null,
3235
- name: null,
3236
- prop: null,
3220
+ config: {},
3221
+ model: {},
3222
+ initValues: {},
3223
+ values: {},
3224
+ name: {},
3225
+ prop: {},
3237
3226
  disabled: { type: Boolean },
3238
- size: null,
3239
- lastValues: null
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 __props.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicRadioGroup), {
3238
+ return _ctx.model ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicRadioGroup), {
3250
3239
  key: 0,
3251
- modelValue: __props.model[__props.name],
3252
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
3253
- size: __props.size,
3254
- disabled: __props.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(__props.config.options, (option) => {
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
- ...__default__$6,
3267
+ ...{
3268
+ name: "MFormSelectOptionGroups"
3269
+ },
3270
+ __name: "SelectOptionGroups",
3282
3271
  props: {
3283
- options: null
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(__props.options, (group, index) => {
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).component), {
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
- ...__default__$5,
3301
+ ...{
3302
+ name: "MFormSelectOptions"
3303
+ },
3304
+ __name: "SelectOptions",
3316
3305
  props: {
3317
- options: null,
3318
- valueKey: null
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(__props.options, (option) => {
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: __props.valueKey ? option.value[__props.valueKey] : option.value,
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
- ...__default__$4,
3325
+ ...{
3326
+ name: "MFormSelect"
3327
+ },
3328
+ __name: "Select",
3340
3329
  props: {
3341
- config: null,
3342
- model: null,
3343
- initValues: null,
3344
- values: null,
3345
- name: null,
3346
- prop: null,
3330
+ config: {},
3331
+ model: {},
3332
+ initValues: {},
3333
+ values: {},
3334
+ name: {},
3335
+ prop: {},
3347
3336
  disabled: { type: Boolean },
3348
- size: null,
3349
- lastValues: null
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 = root.split(".").reduce((accumulator, currentValue) => accumulator[currentValue], res);
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).split(".").reduce((accumulator, currentValue) => accumulator[currentValue], res);
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 __props.model ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicSelect), {
3636
+ return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(design.TMagicSelect), {
3651
3637
  key: 0,
3652
- modelValue: __props.model[__props.name],
3653
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $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 __props.config.clearable !== "undefined" ? __props.config.clearable : true,
3658
- filterable: typeof __props.config.filterable !== "undefined" ? __props.config.filterable : true,
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: __props.size,
3646
+ size: _ctx.size,
3661
3647
  remote: remote.value,
3662
- placeholder: __props.config.placeholder,
3663
- multiple: __props.config.multiple,
3664
- "value-key": __props.config.valueKey || "value",
3665
- "allow-create": __props.config.allowCreate,
3666
- disabled: __props.disabled,
3667
- "remote-method": __props.config.remote && remoteMethod,
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
- __props.config.group ? (vue.openBlock(), vue.createBlock(_sfc_main$6, {
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
- ...__default__$3,
3678
+ ...{
3679
+ name: "MFormSwitch"
3680
+ },
3681
+ __name: "Switch",
3696
3682
  props: {
3697
- config: null,
3698
- model: null,
3699
- initValues: null,
3700
- values: null,
3701
- name: null,
3702
- prop: null,
3683
+ config: {},
3684
+ model: {},
3685
+ initValues: {},
3686
+ values: {},
3687
+ name: {},
3688
+ prop: {},
3703
3689
  disabled: { type: Boolean },
3704
- size: null,
3705
- lastValues: null
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: __props.model[__props.name],
3737
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
3738
- size: __props.size,
3739
- activeValue: vue.unref(activeValue),
3740
- inactiveValue: vue.unref(inactiveValue),
3741
- disabled: __props.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
- ...__default__$2,
3736
+ ...{
3737
+ name: "MFormText"
3738
+ },
3739
+ __name: "Text",
3754
3740
  props: {
3755
- config: null,
3756
- model: null,
3757
- initValues: null,
3758
- values: null,
3759
- name: null,
3760
- prop: null,
3741
+ config: {},
3742
+ model: {},
3743
+ initValues: {},
3744
+ values: {},
3745
+ name: {},
3746
+ prop: {},
3761
3747
  disabled: { type: Boolean },
3762
- size: null,
3763
- lastValues: null
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: __props.model[__props.name],
3841
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $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: __props.size,
3844
- placeholder: __props.config.placeholder,
3845
- disabled: __props.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
- __props.config.append ? {
3836
+ _ctx.config.append ? {
3851
3837
  name: "append",
3852
3838
  fn: vue.withCtx(() => [
3853
- typeof __props.config.append === "string" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(__props.config.append), 1)) : vue.createCommentVNode("", true),
3854
- typeof __props.config.append === "object" && __props.config.append.type === "button" ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicButton), {
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: __props.size,
3843
+ size: _ctx.size,
3858
3844
  onClick: vue.withModifiers(buttonClickHandler, ["prevent"])
3859
3845
  }, {
3860
3846
  default: vue.withCtx(() => [
3861
- vue.createTextVNode(vue.toDisplayString(__props.config.append.text), 1)
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
- ...__default__$1,
3860
+ ...{
3861
+ name: "MFormTextarea"
3862
+ },
3863
+ __name: "Textarea",
3877
3864
  props: {
3878
- config: null,
3879
- model: null,
3880
- initValues: null,
3881
- values: null,
3882
- name: null,
3883
- prop: null,
3865
+ config: {},
3866
+ model: {},
3867
+ initValues: {},
3868
+ values: {},
3869
+ name: {},
3870
+ prop: {},
3884
3871
  disabled: { type: Boolean },
3885
- size: null,
3886
- lastValues: null
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: __props.model[__props.name],
3903
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $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: __props.size,
3892
+ size: _ctx.size,
3906
3893
  clearable: "",
3907
- placeholder: __props.config.placeholder,
3908
- disabled: __props.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
- ...__default__,
3904
+ ...{
3905
+ name: "MFormTime"
3906
+ },
3907
+ __name: "Time",
3921
3908
  props: {
3922
- config: null,
3923
- model: null,
3924
- initValues: null,
3925
- values: null,
3926
- name: null,
3927
- prop: null,
3909
+ config: {},
3910
+ model: {},
3911
+ initValues: {},
3912
+ values: {},
3913
+ name: {},
3914
+ prop: {},
3928
3915
  disabled: { type: Boolean },
3929
- size: null,
3930
- lastValues: null
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: __props.model[__props.name],
3942
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
3943
- "value-format": __props.config.valueFormat || "HH:mm:ss",
3944
- format: __props.config.format || "HH:mm:ss",
3945
- size: __props.size,
3946
- placeholder: __props.config.placeholder,
3947
- disabled: __props.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;