@tmagic/form 1.0.1 → 1.0.4

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.
@@ -15,19 +15,10 @@
15
15
  value.asyncLoad = typeof initValue2.asyncLoad === "object" ? initValue2.asyncLoad : asyncLoad;
16
16
  }
17
17
  };
18
- const isMultipleValue = (type) => typeof type === "string" && [
19
- "checkbox-group",
20
- "checkboxGroup",
21
- "table",
22
- "cascader",
23
- "group-list",
24
- "groupList",
25
- "dynamic-tab",
26
- "dynamicTab"
27
- ].includes(type);
18
+ const isMultipleValue = (type) => typeof type === "string" && ["checkbox-group", "checkboxGroup", "table", "cascader", "group-list", "groupList"].includes(type);
28
19
  const initItemsValue = (mForm, value, initValue2, { items, name, extensible }) => {
29
20
  if (Array.isArray(initValue2[name])) {
30
- value[name] = initValue2[name].map((v) => init(mForm, items, v));
21
+ value[name] = initValue2[name].map((v, index) => init(mForm, items, v, value[name]?.[index]));
31
22
  } else {
32
23
  value[name] = init(mForm, items, initValue2[name], value[name]);
33
24
  if (extensible) {
@@ -37,7 +28,7 @@
37
28
  };
38
29
  const setValue = (mForm, value, initValue2, item) => {
39
30
  const { items, name, type, checkbox } = item;
40
- if (isMultipleValue(type)) {
31
+ if (isMultipleValue(type) || type === "tab" && item.dynamic) {
41
32
  value[name] = initValue2[name] || [];
42
33
  }
43
34
  if (items) {
@@ -140,7 +131,7 @@
140
131
  const fnc = item.validator;
141
132
  item.validator = (rule, value, callback, source, options) => fnc({
142
133
  rule,
143
- value,
134
+ value: props.config.names ? props.model : value,
144
135
  callback,
145
136
  source,
146
137
  options
@@ -178,7 +169,7 @@
178
169
  return target;
179
170
  };
180
171
 
181
- const _sfc_main$t = vue.defineComponent({
172
+ const _sfc_main$v = vue.defineComponent({
182
173
  name: "m-form-container",
183
174
  components: { WarningFilled: icons.WarningFilled },
184
175
  props: {
@@ -323,7 +314,7 @@
323
314
  };
324
315
  }
325
316
  });
326
- const _hoisted_1$e = ["innerHTML"];
317
+ const _hoisted_1$d = ["innerHTML"];
327
318
  const _hoisted_2$7 = ["innerHTML"];
328
319
  const _hoisted_3$7 = ["innerHTML"];
329
320
  const _hoisted_4$6 = ["innerHTML"];
@@ -331,7 +322,7 @@
331
322
  key: 4,
332
323
  style: { "text-align": "center" }
333
324
  };
334
- function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
325
+ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
335
326
  const _component_m_fields_hidden = vue.resolveComponent("m-fields-hidden");
336
327
  const _component_el_tooltip = vue.resolveComponent("el-tooltip");
337
328
  const _component_el_form_item = vue.resolveComponent("el-form-item");
@@ -373,7 +364,7 @@
373
364
  label: vue.withCtx(() => [
374
365
  vue.createElementVNode("span", {
375
366
  innerHTML: _ctx.type === "checkbox" ? "" : _ctx.config.text
376
- }, null, 8, _hoisted_1$e)
367
+ }, null, 8, _hoisted_1$d)
377
368
  ]),
378
369
  default: vue.withCtx(() => [
379
370
  _ctx.tooltip ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, { key: 0 }, {
@@ -458,32 +449,32 @@
458
449
  ])) : vue.createCommentVNode("", true)
459
450
  ], 6)) : vue.createCommentVNode("", true);
460
451
  }
461
- var Container = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
452
+ var Container = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$p]]);
462
453
 
463
- const _sfc_main$s = vue.defineComponent({
464
- name: "m-form-fieldset",
454
+ const _hoisted_1$c = ["innerHTML"];
455
+ const _hoisted_2$6 = ["innerHTML"];
456
+ const _hoisted_3$6 = { key: 1 };
457
+ const _hoisted_4$5 = ["innerHTML"];
458
+ const _hoisted_5$3 = ["innerHTML"];
459
+ const _hoisted_6$2 = {
460
+ key: 2,
461
+ style: { "display": "flex" }
462
+ };
463
+ const _hoisted_7$2 = { style: { "flex": "1" } };
464
+ const _hoisted_8$1 = ["src"];
465
+ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
466
+ __name: "Fieldset",
465
467
  props: {
466
- labelWidth: String,
467
- model: {
468
- type: Object,
469
- default: () => ({})
470
- },
471
- config: {
472
- type: Object,
473
- default: () => ({})
474
- },
475
- rules: {
476
- type: Object,
477
- default: () => ({})
478
- },
479
- prop: {
480
- type: String,
481
- default: () => ""
482
- },
483
- size: String
468
+ labelWidth: null,
469
+ prop: { default: "" },
470
+ size: null,
471
+ model: null,
472
+ config: null,
473
+ rules: { default: {} }
484
474
  },
485
475
  emits: ["change"],
486
- setup(props, { emit }) {
476
+ setup(__props, { emit }) {
477
+ const props = __props;
487
478
  const mForm = vue.inject("mForm");
488
479
  const name = vue.computed(() => props.config.name || "");
489
480
  const show = vue.computed(() => {
@@ -502,125 +493,89 @@
502
493
  emit("change", props.model);
503
494
  };
504
495
  const key = (item, index) => item[mForm?.keyProp || "__key"] ?? index;
505
- return {
506
- show,
507
- name,
508
- mForm,
509
- lWidth,
510
- key,
511
- change
512
- };
513
- }
514
- });
515
- const _hoisted_1$d = ["innerHTML"];
516
- const _hoisted_2$6 = ["innerHTML"];
517
- const _hoisted_3$6 = { key: 1 };
518
- const _hoisted_4$5 = ["innerHTML"];
519
- const _hoisted_5$3 = ["innerHTML"];
520
- const _hoisted_6$2 = { key: 2 };
521
- const _hoisted_7$2 = ["innerHTML"];
522
- const _hoisted_8$1 = ["innerHTML"];
523
- const _hoisted_9$1 = {
524
- key: 3,
525
- style: { "display": "flex" }
526
- };
527
- const _hoisted_10$1 = { style: { "flex": "1" } };
528
- const _hoisted_11 = ["src"];
529
- function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
530
- const _component_el_checkbox = vue.resolveComponent("el-checkbox");
531
- const _component_m_form_container = vue.resolveComponent("m-form-container");
532
- return (_ctx.name ? _ctx.model[_ctx.name] : _ctx.model) ? (vue.openBlock(), vue.createElementBlock("fieldset", {
533
- key: 0,
534
- class: "m-fieldset",
535
- style: vue.normalizeStyle(_ctx.show ? "padding: 15px 15px 0 5px;" : "border: 0")
536
- }, [
537
- !_ctx.show && _ctx.name ? (vue.openBlock(), vue.createBlock(_component_el_checkbox, {
538
- key: 0,
539
- modelValue: _ctx.model[_ctx.name].value,
540
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name].value = $event),
541
- prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${_ctx.config.name}.value`,
542
- "true-label": 1,
543
- "false-label": 0,
544
- onChange: _ctx.change
545
- }, {
546
- default: vue.withCtx(() => [
547
- vue.createElementVNode("span", {
548
- innerHTML: _ctx.config.legend
549
- }, null, 8, _hoisted_1$d),
550
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
551
- key: 0,
552
- innerHTML: _ctx.config.extra,
553
- class: "m-form-tip"
554
- }, null, 8, _hoisted_2$6)) : vue.createCommentVNode("", true)
555
- ]),
556
- _: 1
557
- }, 8, ["modelValue", "prop", "onChange"])) : _ctx.config.checkbox && _ctx.name ? (vue.openBlock(), vue.createElementBlock("legend", _hoisted_3$6, [
558
- vue.createVNode(_component_el_checkbox, {
559
- modelValue: _ctx.model[_ctx.name].value,
560
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.model[_ctx.name].value = $event),
561
- prop: `${_ctx.prop}${_ctx.prop ? "." : ""}${_ctx.config.name}.value`,
562
- "true-label": 1,
563
- "false-label": 0,
564
- onChange: _ctx.change
565
- }, {
566
- default: vue.withCtx(() => [
496
+ if (props.config.checkbox && name.value) {
497
+ vue.watch(() => props.model[name.value]?.value, () => {
498
+ emit("change", props.model);
499
+ });
500
+ }
501
+ return (_ctx, _cache) => {
502
+ const _component_el_checkbox = vue.resolveComponent("el-checkbox");
503
+ const _component_m_form_container = vue.resolveComponent("m-form-container");
504
+ return (vue.unref(name) ? __props.model[vue.unref(name)] : __props.model) ? (vue.openBlock(), vue.createElementBlock("fieldset", {
505
+ key: 0,
506
+ class: "m-fieldset",
507
+ style: vue.normalizeStyle(vue.unref(show) ? "padding: 15px 15px 0 5px;" : "border: 0")
508
+ }, [
509
+ vue.unref(name) && __props.config.checkbox ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(!vue.unref(show) ? "div" : "legend"), { key: 0 }, {
510
+ default: vue.withCtx(() => [
511
+ vue.createVNode(_component_el_checkbox, {
512
+ modelValue: __props.model[vue.unref(name)].value,
513
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[vue.unref(name)].value = $event),
514
+ prop: `${__props.prop}${__props.prop ? "." : ""}${__props.config.name}.value`,
515
+ "true-label": 1,
516
+ "false-label": 0
517
+ }, {
518
+ default: vue.withCtx(() => [
519
+ vue.createElementVNode("span", {
520
+ innerHTML: __props.config.legend
521
+ }, null, 8, _hoisted_1$c),
522
+ __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
523
+ key: 0,
524
+ innerHTML: __props.config.extra,
525
+ class: "m-form-tip"
526
+ }, null, 8, _hoisted_2$6)) : vue.createCommentVNode("", true)
527
+ ]),
528
+ _: 1
529
+ }, 8, ["modelValue", "prop"])
530
+ ]),
531
+ _: 1
532
+ })) : (vue.openBlock(), vue.createElementBlock("legend", _hoisted_3$6, [
567
533
  vue.createElementVNode("span", {
568
- innerHTML: _ctx.config.legend
534
+ innerHTML: __props.config.legend
569
535
  }, null, 8, _hoisted_4$5),
570
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
536
+ __props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
571
537
  key: 0,
572
- innerHTML: _ctx.config.extra,
538
+ innerHTML: __props.config.extra,
573
539
  class: "m-form-tip"
574
540
  }, null, 8, _hoisted_5$3)) : vue.createCommentVNode("", true)
575
- ]),
576
- _: 1
577
- }, 8, ["modelValue", "prop", "onChange"])
578
- ])) : (vue.openBlock(), vue.createElementBlock("legend", _hoisted_6$2, [
579
- vue.createElementVNode("span", {
580
- innerHTML: _ctx.config.legend
581
- }, null, 8, _hoisted_7$2),
582
- _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
583
- key: 0,
584
- innerHTML: _ctx.config.extra,
585
- class: "m-form-tip"
586
- }, null, 8, _hoisted_8$1)) : vue.createCommentVNode("", true)
587
- ])),
588
- _ctx.config.schematic && _ctx.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$1, [
589
- vue.createElementVNode("div", _hoisted_10$1, [
590
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.items, (item, index) => {
541
+ ])),
542
+ __props.config.schematic && vue.unref(show) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$2, [
543
+ vue.createElementVNode("div", _hoisted_7$2, [
544
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.config.items, (item, index) => {
545
+ return vue.openBlock(), vue.createBlock(_component_m_form_container, {
546
+ key: key(item, index),
547
+ model: vue.unref(name) ? __props.model[vue.unref(name)] : __props.model,
548
+ rules: vue.unref(name) ? __props.rules[vue.unref(name)] : [],
549
+ config: item,
550
+ prop: __props.prop,
551
+ labelWidth: vue.unref(lWidth),
552
+ size: __props.size,
553
+ onChange: change
554
+ }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size"]);
555
+ }), 128))
556
+ ]),
557
+ vue.createElementVNode("img", {
558
+ class: "m-form-schematic",
559
+ src: __props.config.schematic
560
+ }, null, 8, _hoisted_8$1)
561
+ ])) : vue.unref(show) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 3 }, vue.renderList(__props.config.items, (item, index) => {
591
562
  return vue.openBlock(), vue.createBlock(_component_m_form_container, {
592
- key: _ctx.key(item, index),
593
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
594
- rules: _ctx.name ? _ctx.rules[_ctx.name] : [],
563
+ key: key(item, index),
564
+ model: vue.unref(name) ? __props.model[vue.unref(name)] : __props.model,
565
+ rules: vue.unref(name) ? __props.rules[vue.unref(name)] : [],
595
566
  config: item,
596
- prop: _ctx.prop,
597
- labelWidth: _ctx.lWidth,
598
- size: _ctx.size,
599
- onChange: _ctx.change
600
- }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size", "onChange"]);
601
- }), 128))
602
- ]),
603
- vue.createElementVNode("img", {
604
- class: "m-form-schematic",
605
- src: _ctx.config.schematic
606
- }, null, 8, _hoisted_11)
607
- ])) : _ctx.show ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 4 }, vue.renderList(_ctx.config.items, (item, index) => {
608
- return vue.openBlock(), vue.createBlock(_component_m_form_container, {
609
- key: _ctx.key(item, index),
610
- model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
611
- rules: _ctx.name ? _ctx.rules[_ctx.name] : [],
612
- config: item,
613
- prop: _ctx.prop,
614
- labelWidth: _ctx.lWidth,
615
- size: _ctx.size,
616
- onChange: _ctx.change
617
- }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size", "onChange"]);
618
- }), 128)) : vue.createCommentVNode("", true)
619
- ], 4)) : vue.createCommentVNode("", true);
620
- }
621
- var Fieldset = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$p]]);
567
+ prop: __props.prop,
568
+ labelWidth: vue.unref(lWidth),
569
+ size: __props.size,
570
+ onChange: change
571
+ }, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size"]);
572
+ }), 128)) : vue.createCommentVNode("", true)
573
+ ], 4)) : vue.createCommentVNode("", true);
574
+ };
575
+ }
576
+ });
622
577
 
623
- const _sfc_main$r = vue.defineComponent({
578
+ const _sfc_main$t = vue.defineComponent({
624
579
  name: "m-form-group-list-item",
625
580
  components: { CaretRight: icons.CaretRight, CaretBottom: icons.CaretBottom },
626
581
  props: {
@@ -704,7 +659,7 @@
704
659
  };
705
660
  }
706
661
  });
707
- const _hoisted_1$c = { class: "m-fields-group-list-item" };
662
+ const _hoisted_1$b = { class: "m-fields-group-list-item" };
708
663
  const _hoisted_2$5 = /* @__PURE__ */ vue.createTextVNode("\u4E0A\u79FB");
709
664
  const _hoisted_3$5 = /* @__PURE__ */ vue.createTextVNode("\u4E0B\u79FB");
710
665
  const _hoisted_4$4 = ["innerHTML"];
@@ -716,7 +671,7 @@
716
671
  const _component_CaretRight = vue.resolveComponent("CaretRight");
717
672
  const _component_CaretBottom = vue.resolveComponent("CaretBottom");
718
673
  const _component_m_form_container = vue.resolveComponent("m-form-container");
719
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
674
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
720
675
  vue.createElementVNode("div", null, [
721
676
  vue.createVNode(_component_el_icon, {
722
677
  style: { "margin-right": "7px" },
@@ -799,9 +754,9 @@
799
754
  }, null, 8, ["config", "model", "labelWidth", "prop", "size", "onChange"])) : vue.createCommentVNode("", true)
800
755
  ]);
801
756
  }
802
- var MFieldsGroupListItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$o]]);
757
+ var MFieldsGroupListItem = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$o]]);
803
758
 
804
- const _sfc_main$q = vue.defineComponent({
759
+ const _sfc_main$s = vue.defineComponent({
805
760
  name: "m-form-group-list",
806
761
  components: { MFieldsGroupListItem },
807
762
  props: {
@@ -897,7 +852,7 @@
897
852
  };
898
853
  }
899
854
  });
900
- const _hoisted_1$b = { class: "m-fields-group-list" };
855
+ const _hoisted_1$a = { class: "m-fields-group-list" };
901
856
  const _hoisted_2$4 = ["innerHTML"];
902
857
  const _hoisted_3$4 = {
903
858
  key: 1,
@@ -912,7 +867,7 @@
912
867
  function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
913
868
  const _component_m_fields_group_list_item = vue.resolveComponent("m-fields-group-list-item");
914
869
  const _component_el_button = vue.resolveComponent("el-button");
915
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [
870
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
916
871
  _ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("div", {
917
872
  key: 0,
918
873
  innerHTML: _ctx.config.extra,
@@ -956,9 +911,9 @@
956
911
  }, 8, ["onClick"])) : vue.createCommentVNode("", true)
957
912
  ]);
958
913
  }
959
- var GroupList = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
914
+ var GroupList = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$n]]);
960
915
 
961
- const _sfc_main$p = vue.defineComponent({
916
+ const _sfc_main$r = vue.defineComponent({
962
917
  name: "m-form-panel",
963
918
  components: { CaretBottom: icons.CaretBottom, CaretRight: icons.CaretRight },
964
919
  props: {
@@ -991,7 +946,7 @@
991
946
  };
992
947
  }
993
948
  });
994
- const _hoisted_1$a = { class: "clearfix" };
949
+ const _hoisted_1$9 = { class: "clearfix" };
995
950
  const _hoisted_2$3 = ["innerHTML"];
996
951
  const _hoisted_3$3 = {
997
952
  key: 0,
@@ -1011,7 +966,7 @@
1011
966
  "body-style": { display: _ctx.expand ? "block" : "none" }
1012
967
  }, {
1013
968
  header: vue.withCtx(() => [
1014
- vue.createElementVNode("div", _hoisted_1$a, [
969
+ vue.createElementVNode("div", _hoisted_1$9, [
1015
970
  vue.createElementVNode("a", {
1016
971
  href: "javascript:",
1017
972
  style: { "width": "100%", "display": "block" },
@@ -1069,9 +1024,9 @@
1069
1024
  _: 3
1070
1025
  }, 8, ["body-style"])) : vue.createCommentVNode("", true);
1071
1026
  }
1072
- var Panel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$m]]);
1027
+ var Panel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$m]]);
1073
1028
 
1074
- const _sfc_main$o = vue.defineComponent({
1029
+ const _sfc_main$q = vue.defineComponent({
1075
1030
  props: {
1076
1031
  labelWidth: String,
1077
1032
  expandMore: Boolean,
@@ -1118,9 +1073,9 @@
1118
1073
  [vue.vShow, _ctx.display && _ctx.config.type !== "hidden"]
1119
1074
  ]);
1120
1075
  }
1121
- var Col = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$l]]);
1076
+ var Col = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$l]]);
1122
1077
 
1123
- const _sfc_main$n = vue.defineComponent({
1078
+ const _sfc_main$p = vue.defineComponent({
1124
1079
  name: "m-form-row",
1125
1080
  components: { Col },
1126
1081
  props: {
@@ -1170,9 +1125,9 @@
1170
1125
  _: 1
1171
1126
  });
1172
1127
  }
1173
- var Row = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$k]]);
1128
+ var Row = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$k]]);
1174
1129
 
1175
- const _sfc_main$m = vue.defineComponent({
1130
+ const _sfc_main$o = vue.defineComponent({
1176
1131
  name: "m-form-step",
1177
1132
  props: {
1178
1133
  model: {
@@ -1250,11 +1205,11 @@
1250
1205
  }), 256))
1251
1206
  ]);
1252
1207
  }
1253
- var MStep = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$j]]);
1208
+ var MStep = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$j]]);
1254
1209
 
1255
1210
  let loadedAMapJS = false;
1256
1211
  let firstLoadingAMapJS = true;
1257
- const _sfc_main$l = vue.defineComponent({
1212
+ const _sfc_main$n = vue.defineComponent({
1258
1213
  name: "m-form-table",
1259
1214
  props: {
1260
1215
  name: {
@@ -1623,7 +1578,7 @@
1623
1578
  };
1624
1579
  }
1625
1580
  });
1626
- const _hoisted_1$9 = ["innerHTML"];
1581
+ const _hoisted_1$8 = ["innerHTML"];
1627
1582
  const _hoisted_2$2 = { class: "el-form-item__content" };
1628
1583
  const _hoisted_3$2 = ["innerHTML"];
1629
1584
  const _hoisted_4$1 = /* @__PURE__ */ vue.createTextVNode("\u6DFB\u52A0");
@@ -1652,7 +1607,7 @@
1652
1607
  key: 0,
1653
1608
  style: { "color": "rgba(0, 0, 0, 0.45)" },
1654
1609
  innerHTML: _ctx.config.extra
1655
- }, null, 8, _hoisted_1$9)) : vue.createCommentVNode("", true),
1610
+ }, null, 8, _hoisted_1$8)) : vue.createCommentVNode("", true),
1656
1611
  vue.createElementVNode("div", _hoisted_2$2, [
1657
1612
  vue.createVNode(_component_el_tooltip, {
1658
1613
  content: "\u62D6\u62FD\u53EF\u6392\u5E8F",
@@ -1885,7 +1840,7 @@
1885
1840
  ])
1886
1841
  ], 2);
1887
1842
  }
1888
- var Table = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$i]]);
1843
+ var Table = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$i]]);
1889
1844
 
1890
1845
  const getActive = (mForm, props, activeTabName) => {
1891
1846
  const { config, model, prop } = props;
@@ -1923,6 +1878,7 @@
1923
1878
  default: () => ({})
1924
1879
  },
1925
1880
  prop: String,
1881
+ name: String,
1926
1882
  size: String
1927
1883
  },
1928
1884
  emits: {
@@ -2003,7 +1959,7 @@
2003
1959
  };
2004
1960
  }
2005
1961
  });
2006
- const _sfc_main$k = Tab;
1962
+ const _sfc_main$m = Tab;
2007
1963
  function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
2008
1964
  const _component_m_form_container = vue.resolveComponent("m-form-container");
2009
1965
  const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
@@ -2033,7 +1989,7 @@
2033
1989
  return vue.openBlock(), vue.createBlock(_component_m_form_container, {
2034
1990
  key: item[_ctx.mForm?.keyProp || "__key"],
2035
1991
  config: item,
2036
- model: _ctx.config.dynamic ? _ctx.model[_ctx.config.name || ""][tabIndex] : tab.name ? _ctx.model[tab.name] : _ctx.model,
1992
+ 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,
2037
1993
  prop: _ctx.config.dynamic ? `${_ctx.prop}${_ctx.prop ? "." : ""}${String(tabIndex)}` : _ctx.prop,
2038
1994
  size: _ctx.size,
2039
1995
  "label-width": tab.labelWidth || _ctx.labelWidth,
@@ -2050,7 +2006,7 @@
2050
2006
  _: 1
2051
2007
  }, 8, ["modelValue", "class", "type", "editable", "tab-position", "onTabClick", "onTabAdd", "onTabRemove"]);
2052
2008
  }
2053
- var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$h]]);
2009
+ var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$h]]);
2054
2010
 
2055
2011
  let $MAGIC_FORM = {};
2056
2012
  const setConfig = (option) => {
@@ -2094,7 +2050,7 @@
2094
2050
  });
2095
2051
  };
2096
2052
 
2097
- const _sfc_main$j = vue.defineComponent({
2053
+ const _sfc_main$l = vue.defineComponent({
2098
2054
  name: "m-fields-cascader",
2099
2055
  props: {
2100
2056
  ...fieldProps,
@@ -2129,8 +2085,9 @@
2129
2085
  if (typeof body === "function" && props.model && mForm) {
2130
2086
  body = body(mForm, {
2131
2087
  model: props.model,
2132
- formValue: null,
2133
- formValues: mForm.values
2088
+ formValue: mForm.values,
2089
+ formValues: mForm.values,
2090
+ config: props.config
2134
2091
  });
2135
2092
  }
2136
2093
  postOptions.data = body;
@@ -2186,13 +2143,13 @@
2186
2143
  };
2187
2144
  }
2188
2145
  });
2189
- const _hoisted_1$8 = {
2146
+ const _hoisted_1$7 = {
2190
2147
  class: "m-cascader",
2191
2148
  style: { "width": "100%" }
2192
2149
  };
2193
2150
  function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
2194
2151
  const _component_el_cascader = vue.resolveComponent("el-cascader");
2195
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
2152
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
2196
2153
  vue.createVNode(_component_el_cascader, {
2197
2154
  modelValue: _ctx.model[_ctx.name],
2198
2155
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
@@ -2209,9 +2166,9 @@
2209
2166
  }, null, 8, ["modelValue", "size", "placeholder", "disabled", "options", "props", "onChange"])
2210
2167
  ]);
2211
2168
  }
2212
- var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$g]]);
2169
+ var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$g]]);
2213
2170
 
2214
- const _sfc_main$i = vue.defineComponent({
2171
+ const _sfc_main$k = vue.defineComponent({
2215
2172
  name: "m-fields-checkbox",
2216
2173
  props: {
2217
2174
  ...fieldProps,
@@ -2263,9 +2220,9 @@
2263
2220
  onChange: _ctx.changeHandler
2264
2221
  }, null, 8, ["modelValue", "size", "trueLabel", "falseLabel", "disabled", "label", "onChange"]);
2265
2222
  }
2266
- var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$f]]);
2223
+ var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$f]]);
2267
2224
 
2268
- const _sfc_main$h = vue.defineComponent({
2225
+ const _sfc_main$j = vue.defineComponent({
2269
2226
  name: "m-fields-checkbox-group",
2270
2227
  props: {
2271
2228
  ...fieldProps,
@@ -2313,13 +2270,13 @@
2313
2270
  _: 1
2314
2271
  }, 8, ["modelValue", "size", "disabled", "onChange"]);
2315
2272
  }
2316
- var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$e]]);
2273
+ var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$e]]);
2317
2274
 
2318
- const _hoisted_1$7 = { key: 0 };
2275
+ const _hoisted_1$6 = { key: 0 };
2319
2276
  const __default__$2 = vue.defineComponent({
2320
2277
  name: "m-fields-color-picker"
2321
2278
  });
2322
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
2279
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
2323
2280
  ...__default__$2,
2324
2281
  props: {
2325
2282
  ...fieldProps,
@@ -2335,7 +2292,7 @@
2335
2292
  const changeHandler = (value) => emit("change", value);
2336
2293
  return (_ctx, _cache) => {
2337
2294
  const _component_el_color_picker = vue.resolveComponent("el-color-picker");
2338
- return _ctx.model ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
2295
+ return _ctx.model ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
2339
2296
  vue.createVNode(_component_el_color_picker, {
2340
2297
  modelValue: _ctx.model[_ctx.name],
2341
2298
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
@@ -2349,7 +2306,7 @@
2349
2306
  }
2350
2307
  });
2351
2308
 
2352
- const _sfc_main$f = vue.defineComponent({
2309
+ const _sfc_main$h = vue.defineComponent({
2353
2310
  name: "m-fields-date",
2354
2311
  props: {
2355
2312
  ...fieldProps,
@@ -2361,36 +2318,31 @@
2361
2318
  emits: ["change", "input"],
2362
2319
  setup(props, { emit }) {
2363
2320
  useAddField(props.prop);
2364
- const modelName = vue.computed(() => props.prop || props.config.name || "");
2365
- props.model[modelName.value] = utils.datetimeFormatter(props.model[modelName.value], "");
2321
+ props.model[props.name] = utils.datetimeFormatter(props.model[props.name], "");
2366
2322
  return {
2367
- modelName,
2368
2323
  changeHandler(v) {
2369
2324
  emit("change", v);
2370
2325
  }
2371
2326
  };
2372
2327
  }
2373
2328
  });
2374
- const _hoisted_1$6 = { key: 0 };
2375
2329
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
2376
2330
  const _component_el_date_picker = vue.resolveComponent("el-date-picker");
2377
- return _ctx.model ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
2378
- vue.createVNode(_component_el_date_picker, {
2379
- modelValue: _ctx.model[_ctx.modelName],
2380
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.modelName] = $event),
2381
- type: "date",
2382
- size: _ctx.size,
2383
- placeholder: _ctx.config.placeholder,
2384
- disabled: _ctx.disabled,
2385
- format: _ctx.config.format,
2386
- "value-format": _ctx.config.format || "YYYY-MM-DD HH:mm:ss",
2387
- onChange: _ctx.changeHandler
2388
- }, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "onChange"])
2389
- ])) : vue.createCommentVNode("", true);
2331
+ return vue.openBlock(), vue.createBlock(_component_el_date_picker, {
2332
+ modelValue: _ctx.model[_ctx.name],
2333
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
2334
+ type: "date",
2335
+ size: _ctx.size,
2336
+ placeholder: _ctx.config.placeholder,
2337
+ disabled: _ctx.disabled,
2338
+ format: _ctx.config.format,
2339
+ "value-format": _ctx.config.format || "YYYY-MM-DD HH:mm:ss",
2340
+ onChange: _ctx.changeHandler
2341
+ }, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "onChange"]);
2390
2342
  }
2391
- var Date$1 = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$d]]);
2343
+ var Date$1 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$d]]);
2392
2344
 
2393
- const _sfc_main$e = vue.defineComponent({
2345
+ const _sfc_main$g = vue.defineComponent({
2394
2346
  name: "m-fields-daterange",
2395
2347
  props: {
2396
2348
  ...fieldProps,
@@ -2451,13 +2403,13 @@
2451
2403
  size: _ctx.size,
2452
2404
  "unlink-panels": true,
2453
2405
  disabled: _ctx.disabled,
2454
- "default-time": _ctx.config.defaultTime || [new Date(2e3, 1, 1, 23, 59, 59)],
2406
+ "default-time": _ctx.config.defaultTime,
2455
2407
  onChange: _ctx.changeHandler
2456
2408
  }, null, 8, ["modelValue", "size", "disabled", "default-time", "onChange"]);
2457
2409
  }
2458
- var Daterange = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$c]]);
2410
+ var Daterange = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$c]]);
2459
2411
 
2460
- const _sfc_main$d = vue.defineComponent({
2412
+ const _sfc_main$f = vue.defineComponent({
2461
2413
  name: "m-fields-datetime",
2462
2414
  props: {
2463
2415
  ...fieldProps,
@@ -2497,17 +2449,17 @@
2497
2449
  disabled: _ctx.disabled,
2498
2450
  format: _ctx.config.format || "YYYY-MM-DD HH:mm:ss",
2499
2451
  "value-format": _ctx.config.valueFormat || "YYYY-MM-DD HH:mm:ss",
2500
- "default-time": _ctx.config.defaultTime || [new Date(2e3, 1, 1, 23, 59, 59)],
2452
+ "default-time": _ctx.config.defaultTime,
2501
2453
  onChange: _ctx.changeHandler
2502
2454
  }, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time", "onChange"]);
2503
2455
  }
2504
- var DateTime = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$b]]);
2456
+ var DateTime = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$b]]);
2505
2457
 
2506
2458
  const _hoisted_1$5 = { key: 0 };
2507
2459
  const __default__$1 = vue.defineComponent({
2508
2460
  name: "m-fields-display"
2509
2461
  });
2510
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
2462
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
2511
2463
  ...__default__$1,
2512
2464
  props: {
2513
2465
  ...fieldProps,
@@ -2529,7 +2481,7 @@
2529
2481
  }
2530
2482
  });
2531
2483
 
2532
- const _sfc_main$b = vue.defineComponent({
2484
+ const _sfc_main$d = vue.defineComponent({
2533
2485
  name: "m-fields-dynamic-field",
2534
2486
  props: {
2535
2487
  ...fieldProps,
@@ -2623,12 +2575,12 @@
2623
2575
  })
2624
2576
  ]);
2625
2577
  }
2626
- var DynamicField = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a]]);
2578
+ var DynamicField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$a]]);
2627
2579
 
2628
2580
  const __default__ = vue.defineComponent({
2629
2581
  name: "m-fields-hidden"
2630
2582
  });
2631
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
2583
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
2632
2584
  ...__default__,
2633
2585
  props: {
2634
2586
  ...fieldProps,
@@ -2653,7 +2605,7 @@
2653
2605
  }
2654
2606
  });
2655
2607
 
2656
- const _sfc_main$9 = vue.defineComponent({
2608
+ const _sfc_main$b = vue.defineComponent({
2657
2609
  name: "m-fields-link",
2658
2610
  props: {
2659
2611
  ...fieldProps,
@@ -2761,9 +2713,9 @@
2761
2713
  }, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen", "onSubmit"])
2762
2714
  ]));
2763
2715
  }
2764
- var Link = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]);
2716
+ var Link = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$9]]);
2765
2717
 
2766
- const _sfc_main$8 = vue.defineComponent({
2718
+ const _sfc_main$a = vue.defineComponent({
2767
2719
  name: "m-fields-number",
2768
2720
  props: {
2769
2721
  ...fieldProps,
@@ -2806,9 +2758,9 @@
2806
2758
  onInput: _ctx.inputHandler
2807
2759
  }, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled", "onChange", "onInput"])) : vue.createCommentVNode("", true);
2808
2760
  }
2809
- var Number$1 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
2761
+ var Number$1 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$8]]);
2810
2762
 
2811
- const _sfc_main$7 = vue.defineComponent({
2763
+ const _sfc_main$9 = vue.defineComponent({
2812
2764
  name: "m-fields-radio-group",
2813
2765
  props: {
2814
2766
  ...fieldProps,
@@ -2852,10 +2804,64 @@
2852
2804
  _: 1
2853
2805
  }, 8, ["modelValue", "size", "disabled", "onChange"])) : vue.createCommentVNode("", true);
2854
2806
  }
2855
- var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
2807
+ var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$7]]);
2808
+
2809
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
2810
+ __name: "SelectOptionGroups",
2811
+ props: {
2812
+ options: null
2813
+ },
2814
+ setup(__props) {
2815
+ return (_ctx, _cache) => {
2816
+ const _component_el_option = vue.resolveComponent("el-option");
2817
+ const _component_el_option_group = vue.resolveComponent("el-option-group");
2818
+ return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (group, index) => {
2819
+ return vue.openBlock(), vue.createBlock(_component_el_option_group, {
2820
+ key: index,
2821
+ label: group.label,
2822
+ disabled: group.disabled
2823
+ }, {
2824
+ default: vue.withCtx(() => [
2825
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group.options, (item, index2) => {
2826
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
2827
+ key: index2,
2828
+ label: item.label,
2829
+ value: item.value,
2830
+ disabled: item.disabled
2831
+ }, null, 8, ["label", "value", "disabled"]);
2832
+ }), 128))
2833
+ ]),
2834
+ _: 2
2835
+ }, 1032, ["label", "disabled"]);
2836
+ }), 128);
2837
+ };
2838
+ }
2839
+ });
2840
+
2841
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
2842
+ __name: "SelectOptions",
2843
+ props: {
2844
+ options: null,
2845
+ valueKey: null
2846
+ },
2847
+ setup(__props) {
2848
+ return (_ctx, _cache) => {
2849
+ const _component_el_option = vue.resolveComponent("el-option");
2850
+ return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (option) => {
2851
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
2852
+ label: option.text,
2853
+ value: option.value,
2854
+ key: __props.valueKey ? option.value[__props.valueKey] : option.value,
2855
+ disabled: option.disabled
2856
+ }, null, 8, ["label", "value", "disabled"]);
2857
+ }), 128);
2858
+ };
2859
+ }
2860
+ });
2856
2861
 
2857
2862
  const _sfc_main$6 = vue.defineComponent({
2858
2863
  name: "m-fields-select",
2864
+ components: { SelectOptions: _sfc_main$7, SelectOptionGroups: _sfc_main$8 },
2859
2865
  props: {
2860
2866
  ...fieldProps,
2861
2867
  config: {
@@ -3086,6 +3092,7 @@
3086
3092
  loading,
3087
3093
  remote,
3088
3094
  options,
3095
+ groupOptions: options,
3089
3096
  moreLoadingVisible,
3090
3097
  popperClass: mForm?.popperClass,
3091
3098
  getOptions,
@@ -3124,8 +3131,8 @@
3124
3131
  });
3125
3132
  const _hoisted_1$2 = { key: 2 };
3126
3133
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
3127
- const _component_el_option = vue.resolveComponent("el-option");
3128
- const _component_el_option_group = vue.resolveComponent("el-option-group");
3134
+ const _component_select_option_groups = vue.resolveComponent("select-option-groups");
3135
+ const _component_select_options = vue.resolveComponent("select-options");
3129
3136
  const _component_el_select = vue.resolveComponent("el-select");
3130
3137
  const _directive_loading = vue.resolveDirective("loading");
3131
3138
  return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_select, {
@@ -3149,32 +3156,13 @@
3149
3156
  onVisibleChange: _ctx.visibleHandler
3150
3157
  }, {
3151
3158
  default: vue.withCtx(() => [
3152
- _ctx.config.group ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(_ctx.options, (group, index) => {
3153
- return vue.openBlock(), vue.createBlock(_component_el_option_group, {
3154
- key: index,
3155
- label: group.label,
3156
- disabled: group.disabled
3157
- }, {
3158
- default: vue.withCtx(() => [
3159
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group.options, (item, index2) => {
3160
- return vue.openBlock(), vue.createBlock(_component_el_option, {
3161
- key: index2,
3162
- label: item.label,
3163
- value: item.value,
3164
- disabled: item.disabled
3165
- }, null, 8, ["label", "value", "disabled"]);
3166
- }), 128))
3167
- ]),
3168
- _: 2
3169
- }, 1032, ["label", "disabled"]);
3170
- }), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.options, (option) => {
3171
- return vue.openBlock(), vue.createBlock(_component_el_option, {
3172
- label: option.text,
3173
- value: option.value,
3174
- key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value,
3175
- disabled: option.disabled
3176
- }, null, 8, ["label", "value", "disabled"]);
3177
- }), 128)),
3159
+ _ctx.config.group ? (vue.openBlock(), vue.createBlock(_component_select_option_groups, {
3160
+ key: 0,
3161
+ options: _ctx.groupOptions
3162
+ }, null, 8, ["options"])) : (vue.openBlock(), vue.createBlock(_component_select_options, {
3163
+ key: 1,
3164
+ options: _ctx.options
3165
+ }, null, 8, ["options"])),
3178
3166
  _ctx.moreLoadingVisible ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, null, 512)), [
3179
3167
  [_directive_loading, true]
3180
3168
  ]) : vue.createCommentVNode("", true)
@@ -3437,17 +3425,15 @@
3437
3425
  });
3438
3426
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
3439
3427
  const _component_el_time_picker = vue.resolveComponent("el-time-picker");
3440
- return vue.openBlock(), vue.createElementBlock("div", null, [
3441
- vue.createVNode(_component_el_time_picker, {
3442
- modelValue: _ctx.model[_ctx.name],
3443
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
3444
- size: _ctx.size,
3445
- "value-format": "HH:mm:ss",
3446
- placeholder: _ctx.config.placeholder,
3447
- disabled: _ctx.disabled,
3448
- onChange: _ctx.changeHandler
3449
- }, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange"])
3450
- ]);
3428
+ return vue.openBlock(), vue.createBlock(_component_el_time_picker, {
3429
+ modelValue: _ctx.model[_ctx.name],
3430
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
3431
+ size: _ctx.size,
3432
+ "value-format": "HH:mm:ss",
3433
+ placeholder: _ctx.config.placeholder,
3434
+ disabled: _ctx.disabled,
3435
+ onChange: _ctx.changeHandler
3436
+ }, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange"]);
3451
3437
  }
3452
3438
  var Time = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
3453
3439
 
@@ -3808,7 +3794,7 @@
3808
3794
  }
3809
3795
  var FormDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
3810
3796
 
3811
- var index$1 = /* #__PURE__ */ (() => ".m-form-dialog .el-dialog__body {\n padding: 0 !important;\n}\n.m-form-dialog .m-dialog-body {\n padding: 0 20px;\n}\n.m-form-dialog .el-table .m-form-item .el-form-item {\n margin-bottom: 0;\n}\n\n.fade-enter-active,\n.fade-leave-active {\n transition: opacity 0.5s;\n}\n\n.fade-enter, .fade-leave-to {\n opacity: 0;\n}\n\n.m-form .m-form-tip {\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);\n}\n.m-form .m-form-schematic {\n max-width: 50%;\n height: 100%;\n}\n.m-form .el-table .cell > div.m-form-container {\n display: block;\n}\n.m-form .el-tabs {\n margin-bottom: 10px;\n}\n.m-form .el-form-item.hidden .el-form-item__label {\n display: none;\n}\n\n.magic-datetime-picker-popper .el-picker-panel__footer button:first-child {\n display: none;\n}\n\ndiv.m-fields-link {\n width: fit-content;\n}\n\nfieldset.m-fieldset {\n position: relative;\n border: 1px solid rgb(229, 229, 229);\n margin-top: 10px;\n margin-bottom: 10px;\n min-inline-size: auto;\n}\nfieldset.m-fieldset legend {\n font-size: 14px;\n position: absolute;\n border: 0;\n top: -10px;\n left: 20px;\n background: rgb(255, 255, 255);\n width: auto;\n padding: 0px 3px;\n font-weight: bold;\n line-height: 20px;\n}\nfieldset.m-fieldset .m-form-tip {\n margin-left: 5px;\n}\n\n.m-fields-group-list .el-button--text {\n padding: 0;\n margin-bottom: 7px;\n}\n.m-fields-group-list .el-tree-node__expand-icon {\n padding: 0;\n margin-bottom: 7px;\n}\n.m-fields-group-list .el-tree-node__expand-icon.expand {\n transform: rotate(90deg);\n}\n.m-fields-group-list .m-fields-group-list-item {\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 7px;\n}\n.m-fields-group-list .m-fields-group-list-item:last-of-type {\n border-bottom: 0;\n}\n\n.m-form-panel .el-card__header:hover {\n background: #f2f6fc;\n}\n.m-form-panel .el-card__header a {\n color: #409eff;\n}\n.m-form-panel .el-card__body {\n padding: 10px;\n}\n.m-form-panel .m-form-tip {\n margin-left: 5px;\n}\n\n.m-fields-table {\n width: 100%;\n}\n.m-fields-table.fixed {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n z-index: 100;\n}\n.m-fields-table.fixed::before {\n content: \" \";\n display: block;\n background: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n z-index: 100;\n}\n.m-fields-table.fixed > .el-form-item__content {\n z-index: 101;\n position: relative;\n margin: 10vh auto;\n max-width: fit-content;\n}\n.m-fields-table.fixed table {\n width: 95vw !important;\n}\n.m-fields-table th {\n background-color: #f2f2f2 !important;\n color: #333 !important;\n}\n.m-fields-table .el-table th {\n padding: 0 !important;\n}\n.m-fields-table .el-table__column--dropable {\n cursor: move;\n}\n.m-fields-table .el-form-item__content .el-input-group {\n vertical-align: middle;\n}\n.m-fields-table.m-fields-table-item-extra tr.expanded td {\n border-bottom: 0;\n}\n.m-fields-table .el-table__expanded-cell .m-form-tip {\n margin-left: 80px;\n}\n.m-fields-table .el-form-item {\n margin-bottom: 0;\n}\n\n.m-select {\n width: 100%;\n}")();
3797
+ var index$1 = /* #__PURE__ */ (() => ".m-form-dialog .el-dialog__body {\n padding: 0 !important;\n}\n.m-form-dialog .m-dialog-body {\n padding: 0 20px;\n}\n.m-form-dialog .el-table .m-form-item .el-form-item {\n margin-bottom: 0;\n}\n\n.fade-enter-active,\n.fade-leave-active {\n transition: opacity 0.5s;\n}\n\n.fade-enter, .fade-leave-to {\n opacity: 0;\n}\n\n.m-form .m-form-tip {\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);\n}\n.m-form .m-form-schematic {\n max-width: 50%;\n height: 100%;\n}\n.m-form .el-table .cell > div.m-form-container {\n display: block;\n}\n.m-form .el-tabs {\n margin-bottom: 10px;\n}\n.m-form .el-form-item.hidden .el-form-item__label {\n display: none;\n}\n\n.magic-datetime-picker-popper .el-picker-panel__footer button:first-child {\n display: none;\n}\n\ndiv.m-fields-link {\n width: fit-content;\n}\n\nfieldset.m-fieldset {\n position: relative;\n border: 1px solid rgb(229, 229, 229);\n margin-top: 10px;\n margin-bottom: 10px;\n min-inline-size: auto;\n}\nfieldset.m-fieldset .el-checkbox {\n height: 22px;\n}\nfieldset.m-fieldset legend {\n font-size: 14px;\n position: absolute;\n border: 0;\n top: -10px;\n left: 20px;\n background: rgb(255, 255, 255);\n width: auto;\n padding: 0px 3px;\n font-weight: bold;\n line-height: 20px;\n}\nfieldset.m-fieldset .m-form-tip {\n margin-left: 5px;\n}\n\n.m-fields-group-list .el-button--text {\n padding: 0;\n margin-bottom: 7px;\n}\n.m-fields-group-list .el-tree-node__expand-icon {\n padding: 0;\n margin-bottom: 7px;\n}\n.m-fields-group-list .el-tree-node__expand-icon.expand {\n transform: rotate(90deg);\n}\n.m-fields-group-list .m-fields-group-list-item {\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 7px;\n}\n.m-fields-group-list .m-fields-group-list-item:last-of-type {\n border-bottom: 0;\n}\n\n.m-form-panel .el-card__header:hover {\n background: #f2f6fc;\n}\n.m-form-panel .el-card__header a {\n color: #409eff;\n}\n.m-form-panel .el-card__body {\n padding: 10px;\n}\n.m-form-panel .m-form-tip {\n margin-left: 5px;\n}\n\n.m-fields-table {\n width: 100%;\n}\n.m-fields-table.fixed {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n z-index: 100;\n}\n.m-fields-table.fixed::before {\n content: \" \";\n display: block;\n background: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n z-index: 100;\n}\n.m-fields-table.fixed > .el-form-item__content {\n z-index: 101;\n position: relative;\n margin: 10vh auto;\n max-width: fit-content;\n}\n.m-fields-table.fixed table {\n width: 95vw !important;\n}\n.m-fields-table th {\n background-color: #f2f2f2 !important;\n color: #333 !important;\n}\n.m-fields-table .el-table th {\n padding: 0 !important;\n}\n.m-fields-table .el-table__column--dropable {\n cursor: move;\n}\n.m-fields-table .el-form-item__content .el-input-group {\n vertical-align: middle;\n}\n.m-fields-table.m-fields-table-item-extra tr.expanded td {\n border-bottom: 0;\n}\n.m-fields-table .el-table__expanded-cell .m-form-tip {\n margin-left: 80px;\n}\n.m-fields-table .el-form-item {\n margin-bottom: 0;\n}\n\n.m-select {\n width: 100%;\n}")();
3812
3798
 
3813
3799
  const defaultInstallOpt = {};
3814
3800
  const install = (app, opt) => {
@@ -3818,7 +3804,7 @@
3818
3804
  app.component(Form.name, Form);
3819
3805
  app.component(FormDialog.name, FormDialog);
3820
3806
  app.component(Container.name, Container);
3821
- app.component(Fieldset.name, Fieldset);
3807
+ app.component("m-form-fieldset", _sfc_main$u);
3822
3808
  app.component(GroupList.name, GroupList);
3823
3809
  app.component(Panel.name, Panel);
3824
3810
  app.component(Row.name, Row);
@@ -3828,17 +3814,17 @@
3828
3814
  app.component(Text.name, Text);
3829
3815
  app.component(Number$1.name, Number$1);
3830
3816
  app.component(Textarea.name, Textarea);
3831
- app.component(_sfc_main$a.name, _sfc_main$a);
3817
+ app.component(_sfc_main$c.name, _sfc_main$c);
3832
3818
  app.component(Date$1.name, Date$1);
3833
3819
  app.component(DateTime.name, DateTime);
3834
3820
  app.component(Time.name, Time);
3835
3821
  app.component(Checkbox.name, Checkbox);
3836
3822
  app.component(Switch.name, Switch);
3837
3823
  app.component(Daterange.name, Daterange);
3838
- app.component(_sfc_main$g.name, _sfc_main$g);
3824
+ app.component(_sfc_main$i.name, _sfc_main$i);
3839
3825
  app.component(CheckboxGroup.name, CheckboxGroup);
3840
3826
  app.component(RadioGroup.name, RadioGroup);
3841
- app.component(_sfc_main$c.name, _sfc_main$c);
3827
+ app.component(_sfc_main$e.name, _sfc_main$e);
3842
3828
  app.component(Link.name, Link);
3843
3829
  app.component(Select.name, Select);
3844
3830
  app.component(Cascader.name, Cascader);
@@ -3851,18 +3837,18 @@
3851
3837
  exports.MCascader = Cascader;
3852
3838
  exports.MCheckbox = Checkbox;
3853
3839
  exports.MCheckboxGroup = CheckboxGroup;
3854
- exports.MColorPicker = _sfc_main$g;
3840
+ exports.MColorPicker = _sfc_main$i;
3855
3841
  exports.MContainer = Container;
3856
3842
  exports.MDate = Date$1;
3857
3843
  exports.MDateTime = DateTime;
3858
3844
  exports.MDaterange = Daterange;
3859
- exports.MDisplay = _sfc_main$c;
3845
+ exports.MDisplay = _sfc_main$e;
3860
3846
  exports.MDynamicField = DynamicField;
3861
- exports.MFieldset = Fieldset;
3847
+ exports.MFieldset = _sfc_main$u;
3862
3848
  exports.MForm = Form;
3863
3849
  exports.MFormDialog = FormDialog;
3864
3850
  exports.MGroupList = GroupList;
3865
- exports.MHidden = _sfc_main$a;
3851
+ exports.MHidden = _sfc_main$c;
3866
3852
  exports.MLink = Link;
3867
3853
  exports.MNumber = Number$1;
3868
3854
  exports.MPanel = Panel;