@tmagic/form 1.0.0 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +3 -0
- package/dist/tmagic-form.es.js +226 -228
- package/dist/tmagic-form.es.js.map +1 -1
- package/dist/tmagic-form.umd.js +228 -230
- package/dist/tmagic-form.umd.js.map +1 -1
- package/dist/types/src/containers/Fieldset.vue.d.ts +54 -31
- package/dist/types/src/containers/Table.vue.d.ts +778 -0
- package/dist/types/src/containers/Tabs.vue.d.ts +2 -0
- package/dist/types/src/fields/SelectOptionGroups.vue.d.ts +13 -0
- package/dist/types/src/fields/SelectOptions.vue.d.ts +21 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/schema.d.ts +10 -1
- package/package.json +8 -9
- package/src/containers/Fieldset.vue +45 -73
- package/src/containers/GroupList.vue +4 -0
- package/src/containers/Table.vue +2 -19
- package/src/containers/Tabs.vue +11 -2
- package/src/fields/Cascader.vue +2 -1
- package/src/fields/DateTime.vue +1 -1
- package/src/fields/Daterange.vue +1 -1
- package/src/fields/Select.vue +10 -23
- package/src/fields/SelectOptionGroups.vue +20 -0
- package/src/fields/SelectOptions.vue +18 -0
- package/src/index.ts +1 -1
- package/src/schema.ts +10 -1
- package/src/theme/fieldset.scss +4 -0
- package/src/utils/form.ts +4 -13
package/dist/tmagic-form.umd.js
CHANGED
|
@@ -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$
|
|
172
|
+
const _sfc_main$v = vue.defineComponent({
|
|
182
173
|
name: "m-form-container",
|
|
183
174
|
components: { WarningFilled: icons.WarningFilled },
|
|
184
175
|
props: {
|
|
@@ -331,7 +322,7 @@
|
|
|
331
322
|
key: 4,
|
|
332
323
|
style: { "text-align": "center" }
|
|
333
324
|
};
|
|
334
|
-
function _sfc_render$
|
|
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");
|
|
@@ -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$
|
|
452
|
+
var Container = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$p]]);
|
|
462
453
|
|
|
463
|
-
const
|
|
464
|
-
|
|
454
|
+
const _hoisted_1$d = ["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:
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
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(
|
|
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,90 @@
|
|
|
502
493
|
emit("change", props.model);
|
|
503
494
|
};
|
|
504
495
|
const key = (item, index) => item[mForm?.keyProp || "__key"] ?? index;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
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
|
+
console.log(props.model);
|
|
499
|
+
emit("change", props.model);
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
return (_ctx, _cache) => {
|
|
503
|
+
const _component_el_checkbox = vue.resolveComponent("el-checkbox");
|
|
504
|
+
const _component_m_form_container = vue.resolveComponent("m-form-container");
|
|
505
|
+
return (vue.unref(name) ? __props.model[vue.unref(name)] : __props.model) ? (vue.openBlock(), vue.createElementBlock("fieldset", {
|
|
506
|
+
key: 0,
|
|
507
|
+
class: "m-fieldset",
|
|
508
|
+
style: vue.normalizeStyle(vue.unref(show) ? "padding: 15px 15px 0 5px;" : "border: 0")
|
|
509
|
+
}, [
|
|
510
|
+
vue.unref(name) && __props.config.checkbox ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(!vue.unref(show) ? "div" : "legend"), { key: 0 }, {
|
|
511
|
+
default: vue.withCtx(() => [
|
|
512
|
+
vue.createVNode(_component_el_checkbox, {
|
|
513
|
+
modelValue: __props.model[vue.unref(name)].value,
|
|
514
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[vue.unref(name)].value = $event),
|
|
515
|
+
prop: `${__props.prop}${__props.prop ? "." : ""}${__props.config.name}.value`,
|
|
516
|
+
"true-label": 1,
|
|
517
|
+
"false-label": 0
|
|
518
|
+
}, {
|
|
519
|
+
default: vue.withCtx(() => [
|
|
520
|
+
vue.createElementVNode("span", {
|
|
521
|
+
innerHTML: __props.config.legend
|
|
522
|
+
}, null, 8, _hoisted_1$d),
|
|
523
|
+
__props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
524
|
+
key: 0,
|
|
525
|
+
innerHTML: __props.config.extra,
|
|
526
|
+
class: "m-form-tip"
|
|
527
|
+
}, null, 8, _hoisted_2$6)) : vue.createCommentVNode("", true)
|
|
528
|
+
]),
|
|
529
|
+
_: 1
|
|
530
|
+
}, 8, ["modelValue", "prop"])
|
|
531
|
+
]),
|
|
532
|
+
_: 1
|
|
533
|
+
})) : (vue.openBlock(), vue.createElementBlock("legend", _hoisted_3$6, [
|
|
567
534
|
vue.createElementVNode("span", {
|
|
568
|
-
innerHTML:
|
|
535
|
+
innerHTML: __props.config.legend
|
|
569
536
|
}, null, 8, _hoisted_4$5),
|
|
570
|
-
|
|
537
|
+
__props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
571
538
|
key: 0,
|
|
572
|
-
innerHTML:
|
|
539
|
+
innerHTML: __props.config.extra,
|
|
573
540
|
class: "m-form-tip"
|
|
574
541
|
}, null, 8, _hoisted_5$3)) : vue.createCommentVNode("", true)
|
|
575
|
-
]),
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
542
|
+
])),
|
|
543
|
+
__props.config.schematic && vue.unref(show) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$2, [
|
|
544
|
+
vue.createElementVNode("div", _hoisted_7$2, [
|
|
545
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.config.items, (item, index) => {
|
|
546
|
+
return vue.openBlock(), vue.createBlock(_component_m_form_container, {
|
|
547
|
+
key: key(item, index),
|
|
548
|
+
model: vue.unref(name) ? __props.model[vue.unref(name)] : __props.model,
|
|
549
|
+
rules: vue.unref(name) ? __props.rules[vue.unref(name)] : [],
|
|
550
|
+
config: item,
|
|
551
|
+
prop: __props.prop,
|
|
552
|
+
labelWidth: vue.unref(lWidth),
|
|
553
|
+
size: __props.size,
|
|
554
|
+
onChange: change
|
|
555
|
+
}, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size"]);
|
|
556
|
+
}), 128))
|
|
557
|
+
]),
|
|
558
|
+
vue.createElementVNode("img", {
|
|
559
|
+
class: "m-form-schematic",
|
|
560
|
+
src: __props.config.schematic
|
|
561
|
+
}, null, 8, _hoisted_8$1)
|
|
562
|
+
])) : vue.unref(show) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 3 }, vue.renderList(__props.config.items, (item, index) => {
|
|
591
563
|
return vue.openBlock(), vue.createBlock(_component_m_form_container, {
|
|
592
|
-
key:
|
|
593
|
-
model:
|
|
594
|
-
rules:
|
|
564
|
+
key: key(item, index),
|
|
565
|
+
model: vue.unref(name) ? __props.model[vue.unref(name)] : __props.model,
|
|
566
|
+
rules: vue.unref(name) ? __props.rules[vue.unref(name)] : [],
|
|
595
567
|
config: item,
|
|
596
|
-
prop:
|
|
597
|
-
labelWidth:
|
|
598
|
-
size:
|
|
599
|
-
onChange:
|
|
600
|
-
}, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size"
|
|
601
|
-
}), 128))
|
|
602
|
-
]),
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
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]]);
|
|
568
|
+
prop: __props.prop,
|
|
569
|
+
labelWidth: vue.unref(lWidth),
|
|
570
|
+
size: __props.size,
|
|
571
|
+
onChange: change
|
|
572
|
+
}, null, 8, ["model", "rules", "config", "prop", "labelWidth", "size"]);
|
|
573
|
+
}), 128)) : vue.createCommentVNode("", true)
|
|
574
|
+
], 4)) : vue.createCommentVNode("", true);
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
});
|
|
622
578
|
|
|
623
|
-
const _sfc_main$
|
|
579
|
+
const _sfc_main$t = vue.defineComponent({
|
|
624
580
|
name: "m-form-group-list-item",
|
|
625
581
|
components: { CaretRight: icons.CaretRight, CaretBottom: icons.CaretBottom },
|
|
626
582
|
props: {
|
|
@@ -799,9 +755,9 @@
|
|
|
799
755
|
}, null, 8, ["config", "model", "labelWidth", "prop", "size", "onChange"])) : vue.createCommentVNode("", true)
|
|
800
756
|
]);
|
|
801
757
|
}
|
|
802
|
-
var MFieldsGroupListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
758
|
+
var MFieldsGroupListItem = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$o]]);
|
|
803
759
|
|
|
804
|
-
const _sfc_main$
|
|
760
|
+
const _sfc_main$s = vue.defineComponent({
|
|
805
761
|
name: "m-form-group-list",
|
|
806
762
|
components: { MFieldsGroupListItem },
|
|
807
763
|
props: {
|
|
@@ -833,7 +789,9 @@
|
|
|
833
789
|
if (typeof props.config.addable === "function") {
|
|
834
790
|
return props.config.addable(mForm, {
|
|
835
791
|
model: props.model[props.name],
|
|
836
|
-
formValue: mForm?.values
|
|
792
|
+
formValue: mForm?.values,
|
|
793
|
+
prop: props.prop,
|
|
794
|
+
config: props.config
|
|
837
795
|
});
|
|
838
796
|
}
|
|
839
797
|
return typeof props.config.addable === "undefined" ? true : props.config.addable;
|
|
@@ -850,7 +808,9 @@
|
|
|
850
808
|
if (typeof props.config.defaultAdd === "function") {
|
|
851
809
|
initValues = await props.config.defaultAdd(mForm, {
|
|
852
810
|
model: props.model[props.name],
|
|
853
|
-
formValue: mForm?.values
|
|
811
|
+
formValue: mForm?.values,
|
|
812
|
+
prop: props.prop,
|
|
813
|
+
config: props.config
|
|
854
814
|
});
|
|
855
815
|
} else if (props.config.defaultAdd) {
|
|
856
816
|
initValues = props.config.defaultAdd;
|
|
@@ -952,9 +912,9 @@
|
|
|
952
912
|
}, 8, ["onClick"])) : vue.createCommentVNode("", true)
|
|
953
913
|
]);
|
|
954
914
|
}
|
|
955
|
-
var GroupList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
915
|
+
var GroupList = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$n]]);
|
|
956
916
|
|
|
957
|
-
const _sfc_main$
|
|
917
|
+
const _sfc_main$r = vue.defineComponent({
|
|
958
918
|
name: "m-form-panel",
|
|
959
919
|
components: { CaretBottom: icons.CaretBottom, CaretRight: icons.CaretRight },
|
|
960
920
|
props: {
|
|
@@ -1065,9 +1025,9 @@
|
|
|
1065
1025
|
_: 3
|
|
1066
1026
|
}, 8, ["body-style"])) : vue.createCommentVNode("", true);
|
|
1067
1027
|
}
|
|
1068
|
-
var Panel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1028
|
+
var Panel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$m]]);
|
|
1069
1029
|
|
|
1070
|
-
const _sfc_main$
|
|
1030
|
+
const _sfc_main$q = vue.defineComponent({
|
|
1071
1031
|
props: {
|
|
1072
1032
|
labelWidth: String,
|
|
1073
1033
|
expandMore: Boolean,
|
|
@@ -1114,9 +1074,9 @@
|
|
|
1114
1074
|
[vue.vShow, _ctx.display && _ctx.config.type !== "hidden"]
|
|
1115
1075
|
]);
|
|
1116
1076
|
}
|
|
1117
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1077
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$l]]);
|
|
1118
1078
|
|
|
1119
|
-
const _sfc_main$
|
|
1079
|
+
const _sfc_main$p = vue.defineComponent({
|
|
1120
1080
|
name: "m-form-row",
|
|
1121
1081
|
components: { Col },
|
|
1122
1082
|
props: {
|
|
@@ -1166,9 +1126,9 @@
|
|
|
1166
1126
|
_: 1
|
|
1167
1127
|
});
|
|
1168
1128
|
}
|
|
1169
|
-
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1129
|
+
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$k]]);
|
|
1170
1130
|
|
|
1171
|
-
const _sfc_main$
|
|
1131
|
+
const _sfc_main$o = vue.defineComponent({
|
|
1172
1132
|
name: "m-form-step",
|
|
1173
1133
|
props: {
|
|
1174
1134
|
model: {
|
|
@@ -1246,11 +1206,11 @@
|
|
|
1246
1206
|
}), 256))
|
|
1247
1207
|
]);
|
|
1248
1208
|
}
|
|
1249
|
-
var MStep = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1209
|
+
var MStep = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$j]]);
|
|
1250
1210
|
|
|
1251
1211
|
let loadedAMapJS = false;
|
|
1252
1212
|
let firstLoadingAMapJS = true;
|
|
1253
|
-
const _sfc_main$
|
|
1213
|
+
const _sfc_main$n = vue.defineComponent({
|
|
1254
1214
|
name: "m-form-table",
|
|
1255
1215
|
props: {
|
|
1256
1216
|
name: {
|
|
@@ -1881,7 +1841,7 @@
|
|
|
1881
1841
|
])
|
|
1882
1842
|
], 2);
|
|
1883
1843
|
}
|
|
1884
|
-
var Table = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1844
|
+
var Table = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$i]]);
|
|
1885
1845
|
|
|
1886
1846
|
const getActive = (mForm, props, activeTabName) => {
|
|
1887
1847
|
const { config, model, prop } = props;
|
|
@@ -1919,6 +1879,7 @@
|
|
|
1919
1879
|
default: () => ({})
|
|
1920
1880
|
},
|
|
1921
1881
|
prop: String,
|
|
1882
|
+
name: String,
|
|
1922
1883
|
size: String
|
|
1923
1884
|
},
|
|
1924
1885
|
emits: {
|
|
@@ -1999,7 +1960,7 @@
|
|
|
1999
1960
|
};
|
|
2000
1961
|
}
|
|
2001
1962
|
});
|
|
2002
|
-
const _sfc_main$
|
|
1963
|
+
const _sfc_main$m = Tab;
|
|
2003
1964
|
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2004
1965
|
const _component_m_form_container = vue.resolveComponent("m-form-container");
|
|
2005
1966
|
const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
|
|
@@ -2029,7 +1990,7 @@
|
|
|
2029
1990
|
return vue.openBlock(), vue.createBlock(_component_m_form_container, {
|
|
2030
1991
|
key: item[_ctx.mForm?.keyProp || "__key"],
|
|
2031
1992
|
config: item,
|
|
2032
|
-
model: _ctx.config.dynamic ? _ctx.model[_ctx.
|
|
1993
|
+
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,
|
|
2033
1994
|
prop: _ctx.config.dynamic ? `${_ctx.prop}${_ctx.prop ? "." : ""}${String(tabIndex)}` : _ctx.prop,
|
|
2034
1995
|
size: _ctx.size,
|
|
2035
1996
|
"label-width": tab.labelWidth || _ctx.labelWidth,
|
|
@@ -2046,7 +2007,7 @@
|
|
|
2046
2007
|
_: 1
|
|
2047
2008
|
}, 8, ["modelValue", "class", "type", "editable", "tab-position", "onTabClick", "onTabAdd", "onTabRemove"]);
|
|
2048
2009
|
}
|
|
2049
|
-
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2010
|
+
var Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$h]]);
|
|
2050
2011
|
|
|
2051
2012
|
let $MAGIC_FORM = {};
|
|
2052
2013
|
const setConfig = (option) => {
|
|
@@ -2090,7 +2051,7 @@
|
|
|
2090
2051
|
});
|
|
2091
2052
|
};
|
|
2092
2053
|
|
|
2093
|
-
const _sfc_main$
|
|
2054
|
+
const _sfc_main$l = vue.defineComponent({
|
|
2094
2055
|
name: "m-fields-cascader",
|
|
2095
2056
|
props: {
|
|
2096
2057
|
...fieldProps,
|
|
@@ -2125,8 +2086,9 @@
|
|
|
2125
2086
|
if (typeof body === "function" && props.model && mForm) {
|
|
2126
2087
|
body = body(mForm, {
|
|
2127
2088
|
model: props.model,
|
|
2128
|
-
formValue:
|
|
2129
|
-
formValues: mForm.values
|
|
2089
|
+
formValue: mForm.values,
|
|
2090
|
+
formValues: mForm.values,
|
|
2091
|
+
config: props.config
|
|
2130
2092
|
});
|
|
2131
2093
|
}
|
|
2132
2094
|
postOptions.data = body;
|
|
@@ -2205,9 +2167,9 @@
|
|
|
2205
2167
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "options", "props", "onChange"])
|
|
2206
2168
|
]);
|
|
2207
2169
|
}
|
|
2208
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2170
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$g]]);
|
|
2209
2171
|
|
|
2210
|
-
const _sfc_main$
|
|
2172
|
+
const _sfc_main$k = vue.defineComponent({
|
|
2211
2173
|
name: "m-fields-checkbox",
|
|
2212
2174
|
props: {
|
|
2213
2175
|
...fieldProps,
|
|
@@ -2259,9 +2221,9 @@
|
|
|
2259
2221
|
onChange: _ctx.changeHandler
|
|
2260
2222
|
}, null, 8, ["modelValue", "size", "trueLabel", "falseLabel", "disabled", "label", "onChange"]);
|
|
2261
2223
|
}
|
|
2262
|
-
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2224
|
+
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$f]]);
|
|
2263
2225
|
|
|
2264
|
-
const _sfc_main$
|
|
2226
|
+
const _sfc_main$j = vue.defineComponent({
|
|
2265
2227
|
name: "m-fields-checkbox-group",
|
|
2266
2228
|
props: {
|
|
2267
2229
|
...fieldProps,
|
|
@@ -2309,13 +2271,13 @@
|
|
|
2309
2271
|
_: 1
|
|
2310
2272
|
}, 8, ["modelValue", "size", "disabled", "onChange"]);
|
|
2311
2273
|
}
|
|
2312
|
-
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2274
|
+
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$e]]);
|
|
2313
2275
|
|
|
2314
2276
|
const _hoisted_1$7 = { key: 0 };
|
|
2315
2277
|
const __default__$2 = vue.defineComponent({
|
|
2316
2278
|
name: "m-fields-color-picker"
|
|
2317
2279
|
});
|
|
2318
|
-
const _sfc_main$
|
|
2280
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
2319
2281
|
...__default__$2,
|
|
2320
2282
|
props: {
|
|
2321
2283
|
...fieldProps,
|
|
@@ -2345,7 +2307,7 @@
|
|
|
2345
2307
|
}
|
|
2346
2308
|
});
|
|
2347
2309
|
|
|
2348
|
-
const _sfc_main$
|
|
2310
|
+
const _sfc_main$h = vue.defineComponent({
|
|
2349
2311
|
name: "m-fields-date",
|
|
2350
2312
|
props: {
|
|
2351
2313
|
...fieldProps,
|
|
@@ -2384,9 +2346,9 @@
|
|
|
2384
2346
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "onChange"])
|
|
2385
2347
|
])) : vue.createCommentVNode("", true);
|
|
2386
2348
|
}
|
|
2387
|
-
var Date$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2349
|
+
var Date$1 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$d]]);
|
|
2388
2350
|
|
|
2389
|
-
const _sfc_main$
|
|
2351
|
+
const _sfc_main$g = vue.defineComponent({
|
|
2390
2352
|
name: "m-fields-daterange",
|
|
2391
2353
|
props: {
|
|
2392
2354
|
...fieldProps,
|
|
@@ -2447,13 +2409,13 @@
|
|
|
2447
2409
|
size: _ctx.size,
|
|
2448
2410
|
"unlink-panels": true,
|
|
2449
2411
|
disabled: _ctx.disabled,
|
|
2450
|
-
"default-time": _ctx.config.defaultTime
|
|
2412
|
+
"default-time": _ctx.config.defaultTime,
|
|
2451
2413
|
onChange: _ctx.changeHandler
|
|
2452
2414
|
}, null, 8, ["modelValue", "size", "disabled", "default-time", "onChange"]);
|
|
2453
2415
|
}
|
|
2454
|
-
var Daterange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2416
|
+
var Daterange = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$c]]);
|
|
2455
2417
|
|
|
2456
|
-
const _sfc_main$
|
|
2418
|
+
const _sfc_main$f = vue.defineComponent({
|
|
2457
2419
|
name: "m-fields-datetime",
|
|
2458
2420
|
props: {
|
|
2459
2421
|
...fieldProps,
|
|
@@ -2493,17 +2455,17 @@
|
|
|
2493
2455
|
disabled: _ctx.disabled,
|
|
2494
2456
|
format: _ctx.config.format || "YYYY-MM-DD HH:mm:ss",
|
|
2495
2457
|
"value-format": _ctx.config.valueFormat || "YYYY-MM-DD HH:mm:ss",
|
|
2496
|
-
"default-time": _ctx.config.defaultTime
|
|
2458
|
+
"default-time": _ctx.config.defaultTime,
|
|
2497
2459
|
onChange: _ctx.changeHandler
|
|
2498
2460
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time", "onChange"]);
|
|
2499
2461
|
}
|
|
2500
|
-
var DateTime = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2462
|
+
var DateTime = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$b]]);
|
|
2501
2463
|
|
|
2502
2464
|
const _hoisted_1$5 = { key: 0 };
|
|
2503
2465
|
const __default__$1 = vue.defineComponent({
|
|
2504
2466
|
name: "m-fields-display"
|
|
2505
2467
|
});
|
|
2506
|
-
const _sfc_main$
|
|
2468
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
2507
2469
|
...__default__$1,
|
|
2508
2470
|
props: {
|
|
2509
2471
|
...fieldProps,
|
|
@@ -2525,7 +2487,7 @@
|
|
|
2525
2487
|
}
|
|
2526
2488
|
});
|
|
2527
2489
|
|
|
2528
|
-
const _sfc_main$
|
|
2490
|
+
const _sfc_main$d = vue.defineComponent({
|
|
2529
2491
|
name: "m-fields-dynamic-field",
|
|
2530
2492
|
props: {
|
|
2531
2493
|
...fieldProps,
|
|
@@ -2619,12 +2581,12 @@
|
|
|
2619
2581
|
})
|
|
2620
2582
|
]);
|
|
2621
2583
|
}
|
|
2622
|
-
var DynamicField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2584
|
+
var DynamicField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$a]]);
|
|
2623
2585
|
|
|
2624
2586
|
const __default__ = vue.defineComponent({
|
|
2625
2587
|
name: "m-fields-hidden"
|
|
2626
2588
|
});
|
|
2627
|
-
const _sfc_main$
|
|
2589
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
2628
2590
|
...__default__,
|
|
2629
2591
|
props: {
|
|
2630
2592
|
...fieldProps,
|
|
@@ -2649,7 +2611,7 @@
|
|
|
2649
2611
|
}
|
|
2650
2612
|
});
|
|
2651
2613
|
|
|
2652
|
-
const _sfc_main$
|
|
2614
|
+
const _sfc_main$b = vue.defineComponent({
|
|
2653
2615
|
name: "m-fields-link",
|
|
2654
2616
|
props: {
|
|
2655
2617
|
...fieldProps,
|
|
@@ -2757,9 +2719,9 @@
|
|
|
2757
2719
|
}, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen", "onSubmit"])
|
|
2758
2720
|
]));
|
|
2759
2721
|
}
|
|
2760
|
-
var Link = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2722
|
+
var Link = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$9]]);
|
|
2761
2723
|
|
|
2762
|
-
const _sfc_main$
|
|
2724
|
+
const _sfc_main$a = vue.defineComponent({
|
|
2763
2725
|
name: "m-fields-number",
|
|
2764
2726
|
props: {
|
|
2765
2727
|
...fieldProps,
|
|
@@ -2802,9 +2764,9 @@
|
|
|
2802
2764
|
onInput: _ctx.inputHandler
|
|
2803
2765
|
}, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled", "onChange", "onInput"])) : vue.createCommentVNode("", true);
|
|
2804
2766
|
}
|
|
2805
|
-
var Number$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2767
|
+
var Number$1 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$8]]);
|
|
2806
2768
|
|
|
2807
|
-
const _sfc_main$
|
|
2769
|
+
const _sfc_main$9 = vue.defineComponent({
|
|
2808
2770
|
name: "m-fields-radio-group",
|
|
2809
2771
|
props: {
|
|
2810
2772
|
...fieldProps,
|
|
@@ -2848,10 +2810,64 @@
|
|
|
2848
2810
|
_: 1
|
|
2849
2811
|
}, 8, ["modelValue", "size", "disabled", "onChange"])) : vue.createCommentVNode("", true);
|
|
2850
2812
|
}
|
|
2851
|
-
var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2813
|
+
var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$7]]);
|
|
2814
|
+
|
|
2815
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
2816
|
+
__name: "SelectOptionGroups",
|
|
2817
|
+
props: {
|
|
2818
|
+
options: null
|
|
2819
|
+
},
|
|
2820
|
+
setup(__props) {
|
|
2821
|
+
return (_ctx, _cache) => {
|
|
2822
|
+
const _component_el_option = vue.resolveComponent("el-option");
|
|
2823
|
+
const _component_el_option_group = vue.resolveComponent("el-option-group");
|
|
2824
|
+
return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (group, index) => {
|
|
2825
|
+
return vue.openBlock(), vue.createBlock(_component_el_option_group, {
|
|
2826
|
+
key: index,
|
|
2827
|
+
label: group.label,
|
|
2828
|
+
disabled: group.disabled
|
|
2829
|
+
}, {
|
|
2830
|
+
default: vue.withCtx(() => [
|
|
2831
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group.options, (item, index2) => {
|
|
2832
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
2833
|
+
key: index2,
|
|
2834
|
+
label: item.label,
|
|
2835
|
+
value: item.value,
|
|
2836
|
+
disabled: item.disabled
|
|
2837
|
+
}, null, 8, ["label", "value", "disabled"]);
|
|
2838
|
+
}), 128))
|
|
2839
|
+
]),
|
|
2840
|
+
_: 2
|
|
2841
|
+
}, 1032, ["label", "disabled"]);
|
|
2842
|
+
}), 128);
|
|
2843
|
+
};
|
|
2844
|
+
}
|
|
2845
|
+
});
|
|
2846
|
+
|
|
2847
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
2848
|
+
__name: "SelectOptions",
|
|
2849
|
+
props: {
|
|
2850
|
+
options: null,
|
|
2851
|
+
valueKey: null
|
|
2852
|
+
},
|
|
2853
|
+
setup(__props) {
|
|
2854
|
+
return (_ctx, _cache) => {
|
|
2855
|
+
const _component_el_option = vue.resolveComponent("el-option");
|
|
2856
|
+
return vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (option) => {
|
|
2857
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
2858
|
+
label: option.text,
|
|
2859
|
+
value: option.value,
|
|
2860
|
+
key: __props.valueKey ? option.value[__props.valueKey] : option.value,
|
|
2861
|
+
disabled: option.disabled
|
|
2862
|
+
}, null, 8, ["label", "value", "disabled"]);
|
|
2863
|
+
}), 128);
|
|
2864
|
+
};
|
|
2865
|
+
}
|
|
2866
|
+
});
|
|
2852
2867
|
|
|
2853
2868
|
const _sfc_main$6 = vue.defineComponent({
|
|
2854
2869
|
name: "m-fields-select",
|
|
2870
|
+
components: { SelectOptions: _sfc_main$7, SelectOptionGroups: _sfc_main$8 },
|
|
2855
2871
|
props: {
|
|
2856
2872
|
...fieldProps,
|
|
2857
2873
|
config: {
|
|
@@ -3082,6 +3098,7 @@
|
|
|
3082
3098
|
loading,
|
|
3083
3099
|
remote,
|
|
3084
3100
|
options,
|
|
3101
|
+
groupOptions: options,
|
|
3085
3102
|
moreLoadingVisible,
|
|
3086
3103
|
popperClass: mForm?.popperClass,
|
|
3087
3104
|
getOptions,
|
|
@@ -3120,8 +3137,8 @@
|
|
|
3120
3137
|
});
|
|
3121
3138
|
const _hoisted_1$2 = { key: 2 };
|
|
3122
3139
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3123
|
-
const
|
|
3124
|
-
const
|
|
3140
|
+
const _component_select_option_groups = vue.resolveComponent("select-option-groups");
|
|
3141
|
+
const _component_select_options = vue.resolveComponent("select-options");
|
|
3125
3142
|
const _component_el_select = vue.resolveComponent("el-select");
|
|
3126
3143
|
const _directive_loading = vue.resolveDirective("loading");
|
|
3127
3144
|
return _ctx.model ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
@@ -3145,32 +3162,13 @@
|
|
|
3145
3162
|
onVisibleChange: _ctx.visibleHandler
|
|
3146
3163
|
}, {
|
|
3147
3164
|
default: vue.withCtx(() => [
|
|
3148
|
-
_ctx.config.group ? (vue.openBlock(
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group.options, (item, index2) => {
|
|
3156
|
-
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
3157
|
-
key: index2,
|
|
3158
|
-
label: item.label,
|
|
3159
|
-
value: item.value,
|
|
3160
|
-
disabled: item.disabled
|
|
3161
|
-
}, null, 8, ["label", "value", "disabled"]);
|
|
3162
|
-
}), 128))
|
|
3163
|
-
]),
|
|
3164
|
-
_: 2
|
|
3165
|
-
}, 1032, ["label", "disabled"]);
|
|
3166
|
-
}), 128)) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.options, (option) => {
|
|
3167
|
-
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
3168
|
-
label: option.text,
|
|
3169
|
-
value: option.value,
|
|
3170
|
-
key: _ctx.config.valueKey ? option.value[_ctx.config.valueKey] : option.value,
|
|
3171
|
-
disabled: option.disabled
|
|
3172
|
-
}, null, 8, ["label", "value", "disabled"]);
|
|
3173
|
-
}), 128)),
|
|
3165
|
+
_ctx.config.group ? (vue.openBlock(), vue.createBlock(_component_select_option_groups, {
|
|
3166
|
+
key: 0,
|
|
3167
|
+
options: _ctx.groupOptions
|
|
3168
|
+
}, null, 8, ["options"])) : (vue.openBlock(), vue.createBlock(_component_select_options, {
|
|
3169
|
+
key: 1,
|
|
3170
|
+
options: _ctx.options
|
|
3171
|
+
}, null, 8, ["options"])),
|
|
3174
3172
|
_ctx.moreLoadingVisible ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, null, 512)), [
|
|
3175
3173
|
[_directive_loading, true]
|
|
3176
3174
|
]) : vue.createCommentVNode("", true)
|
|
@@ -3804,7 +3802,7 @@
|
|
|
3804
3802
|
}
|
|
3805
3803
|
var FormDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3806
3804
|
|
|
3807
|
-
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}")();
|
|
3805
|
+
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}")();
|
|
3808
3806
|
|
|
3809
3807
|
const defaultInstallOpt = {};
|
|
3810
3808
|
const install = (app, opt) => {
|
|
@@ -3814,7 +3812,7 @@
|
|
|
3814
3812
|
app.component(Form.name, Form);
|
|
3815
3813
|
app.component(FormDialog.name, FormDialog);
|
|
3816
3814
|
app.component(Container.name, Container);
|
|
3817
|
-
app.component(
|
|
3815
|
+
app.component("m-form-fieldset", _sfc_main$u);
|
|
3818
3816
|
app.component(GroupList.name, GroupList);
|
|
3819
3817
|
app.component(Panel.name, Panel);
|
|
3820
3818
|
app.component(Row.name, Row);
|
|
@@ -3824,17 +3822,17 @@
|
|
|
3824
3822
|
app.component(Text.name, Text);
|
|
3825
3823
|
app.component(Number$1.name, Number$1);
|
|
3826
3824
|
app.component(Textarea.name, Textarea);
|
|
3827
|
-
app.component(_sfc_main$
|
|
3825
|
+
app.component(_sfc_main$c.name, _sfc_main$c);
|
|
3828
3826
|
app.component(Date$1.name, Date$1);
|
|
3829
3827
|
app.component(DateTime.name, DateTime);
|
|
3830
3828
|
app.component(Time.name, Time);
|
|
3831
3829
|
app.component(Checkbox.name, Checkbox);
|
|
3832
3830
|
app.component(Switch.name, Switch);
|
|
3833
3831
|
app.component(Daterange.name, Daterange);
|
|
3834
|
-
app.component(_sfc_main$
|
|
3832
|
+
app.component(_sfc_main$i.name, _sfc_main$i);
|
|
3835
3833
|
app.component(CheckboxGroup.name, CheckboxGroup);
|
|
3836
3834
|
app.component(RadioGroup.name, RadioGroup);
|
|
3837
|
-
app.component(_sfc_main$
|
|
3835
|
+
app.component(_sfc_main$e.name, _sfc_main$e);
|
|
3838
3836
|
app.component(Link.name, Link);
|
|
3839
3837
|
app.component(Select.name, Select);
|
|
3840
3838
|
app.component(Cascader.name, Cascader);
|
|
@@ -3847,18 +3845,18 @@
|
|
|
3847
3845
|
exports.MCascader = Cascader;
|
|
3848
3846
|
exports.MCheckbox = Checkbox;
|
|
3849
3847
|
exports.MCheckboxGroup = CheckboxGroup;
|
|
3850
|
-
exports.MColorPicker = _sfc_main$
|
|
3848
|
+
exports.MColorPicker = _sfc_main$i;
|
|
3851
3849
|
exports.MContainer = Container;
|
|
3852
3850
|
exports.MDate = Date$1;
|
|
3853
3851
|
exports.MDateTime = DateTime;
|
|
3854
3852
|
exports.MDaterange = Daterange;
|
|
3855
|
-
exports.MDisplay = _sfc_main$
|
|
3853
|
+
exports.MDisplay = _sfc_main$e;
|
|
3856
3854
|
exports.MDynamicField = DynamicField;
|
|
3857
|
-
exports.MFieldset =
|
|
3855
|
+
exports.MFieldset = _sfc_main$u;
|
|
3858
3856
|
exports.MForm = Form;
|
|
3859
3857
|
exports.MFormDialog = FormDialog;
|
|
3860
3858
|
exports.MGroupList = GroupList;
|
|
3861
|
-
exports.MHidden = _sfc_main$
|
|
3859
|
+
exports.MHidden = _sfc_main$c;
|
|
3862
3860
|
exports.MLink = Link;
|
|
3863
3861
|
exports.MNumber = Number$1;
|
|
3864
3862
|
exports.MPanel = Panel;
|