@tmagic/form 1.1.0-beta.4 → 1.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{tmagic-form.es.js → tmagic-form.mjs} +213 -177
- package/dist/tmagic-form.mjs.map +1 -0
- package/dist/tmagic-form.umd.js +217 -181
- package/dist/tmagic-form.umd.js.map +1 -1
- package/package.json +16 -15
- package/src/Form.vue +3 -7
- package/src/fields/Cascader.vue +3 -5
- package/src/fields/ColorPicker.vue +19 -26
- package/src/fields/Daterange.vue +73 -52
- package/src/fields/Display.vue +13 -23
- package/src/fields/Hidden.vue +10 -20
- package/src/fields/Select.vue +1 -2
- package/src/index.ts +4 -4
- package/tsconfig.build.json +13 -0
- package/types/Form.vue.d.ts +125 -0
- package/types/FormDialog.vue.d.ts +300 -0
- package/{dist/types/src → types}/containers/Col.vue.d.ts +4 -4
- package/types/containers/Container.vue.d.ts +70 -0
- package/types/containers/Fieldset.vue.d.ts +118 -0
- package/{dist/types/src → types}/containers/GroupList.vue.d.ts +6 -6
- package/{dist/types/src → types}/containers/GroupListItem.vue.d.ts +15 -15
- package/{dist/types/src → types}/containers/Panel.vue.d.ts +6 -6
- package/{dist/types/src → types}/containers/Row.vue.d.ts +3 -3
- package/{dist/types/src → types}/containers/Step.vue.d.ts +4 -4
- package/types/containers/Table.vue.d.ts +128 -0
- package/{dist/types/src → types}/containers/Tabs.vue.d.ts +11 -7
- package/types/fields/Cascader.vue.d.ts +74 -0
- package/{dist/types/src → types}/fields/Checkbox.vue.d.ts +5 -5
- package/{dist/types/src → types}/fields/CheckboxGroup.vue.d.ts +3 -3
- package/types/fields/ColorPicker.vue.d.ts +100 -0
- package/{dist/types/src → types}/fields/Date.vue.d.ts +3 -3
- package/{dist/types/src → types}/fields/DateTime.vue.d.ts +3 -3
- package/types/fields/Daterange.vue.d.ts +100 -0
- package/types/fields/Display.vue.d.ts +84 -0
- package/{dist/types/src → types}/fields/DynamicField.vue.d.ts +4 -4
- package/types/fields/Hidden.vue.d.ts +84 -0
- package/types/fields/Link.vue.d.ts +686 -0
- package/{dist/types/src → types}/fields/Number.vue.d.ts +3 -3
- package/{dist/types/src → types}/fields/RadioGroup.vue.d.ts +4 -5
- package/types/fields/Select.vue.d.ts +67 -0
- package/types/fields/SelectOptionGroups.vue.d.ts +64 -0
- package/types/fields/SelectOptions.vue.d.ts +68 -0
- package/{dist/types/src → types}/fields/Switch.vue.d.ts +6 -6
- package/{dist/types/src → types}/fields/Text.vue.d.ts +4 -4
- package/{dist/types/src → types}/fields/Textarea.vue.d.ts +10 -4
- package/{dist/types/src → types}/fields/Time.vue.d.ts +8 -4
- package/{dist/types/src → types}/index.d.ts +1 -0
- package/{dist/types/src → types}/schema.d.ts +0 -0
- package/{dist/types/src → types}/utils/config.d.ts +0 -0
- package/types/utils/containerProps.d.ts +26 -0
- package/types/utils/createForm.d.ts +3 -0
- package/{dist/types/src → types}/utils/fieldProps.d.ts +0 -0
- package/{dist/types/src → types}/utils/form.d.ts +0 -0
- package/types/utils/useAddField.d.ts +1 -0
- package/dist/tmagic-form.es.js.map +0 -1
- package/dist/types/src/containers/Container.vue.d.ts +0 -70
- package/dist/types/src/containers/Fieldset.vue.d.ts +0 -79
- package/dist/types/src/containers/Table.vue.d.ts +0 -128
- package/dist/types/src/fields/Daterange.vue.d.ts +0 -57
- package/dist/types/src/fields/Display.vue.d.ts +0 -3
- package/dist/types/src/fields/Hidden.vue.d.ts +0 -3
- package/dist/types/src/fields/SelectOptionGroups.vue.d.ts +0 -13
- package/dist/types/src/fields/SelectOptions.vue.d.ts +0 -21
- package/dist/types/src/shims-vue.d.ts +0 -6
- package/dist/types/src/utils/useAddField.d.ts +0 -1
- package/dist/types/src/vite-env.d.ts +0 -1
- package/src/vite-env.d.ts +0 -1
|
@@ -158,15 +158,7 @@ const initValue = async (mForm, { initValues, config }) => {
|
|
|
158
158
|
return valuesTmp || {};
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
-
|
|
162
|
-
const target = sfc.__vccOpts || sfc;
|
|
163
|
-
for (const [key, val] of props) {
|
|
164
|
-
target[key] = val;
|
|
165
|
-
}
|
|
166
|
-
return target;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
const _sfc_main$v = defineComponent({
|
|
161
|
+
const _sfc_main$u = defineComponent({
|
|
170
162
|
name: "m-form-container",
|
|
171
163
|
components: { WarningFilled },
|
|
172
164
|
props: {
|
|
@@ -311,7 +303,16 @@ const _sfc_main$v = defineComponent({
|
|
|
311
303
|
};
|
|
312
304
|
}
|
|
313
305
|
});
|
|
314
|
-
|
|
306
|
+
|
|
307
|
+
const _export_sfc = (sfc, props) => {
|
|
308
|
+
const target = sfc.__vccOpts || sfc;
|
|
309
|
+
for (const [key, val] of props) {
|
|
310
|
+
target[key] = val;
|
|
311
|
+
}
|
|
312
|
+
return target;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
const _hoisted_1$c = ["innerHTML"];
|
|
315
316
|
const _hoisted_2$7 = ["innerHTML"];
|
|
316
317
|
const _hoisted_3$7 = ["innerHTML"];
|
|
317
318
|
const _hoisted_4$6 = ["innerHTML"];
|
|
@@ -319,7 +320,7 @@ const _hoisted_5$4 = {
|
|
|
319
320
|
key: 4,
|
|
320
321
|
style: { "text-align": "center" }
|
|
321
322
|
};
|
|
322
|
-
function _sfc_render$
|
|
323
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
323
324
|
const _component_m_fields_hidden = resolveComponent("m-fields-hidden");
|
|
324
325
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
325
326
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -361,7 +362,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
361
362
|
label: withCtx(() => [
|
|
362
363
|
createElementVNode("span", {
|
|
363
364
|
innerHTML: _ctx.type === "checkbox" ? "" : _ctx.config.text
|
|
364
|
-
}, null, 8, _hoisted_1$
|
|
365
|
+
}, null, 8, _hoisted_1$c)
|
|
365
366
|
]),
|
|
366
367
|
default: withCtx(() => [
|
|
367
368
|
_ctx.tooltip ? (openBlock(), createBlock(_component_el_tooltip, { key: 0 }, {
|
|
@@ -446,9 +447,9 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
446
447
|
])) : createCommentVNode("", true)
|
|
447
448
|
], 6)) : createCommentVNode("", true);
|
|
448
449
|
}
|
|
449
|
-
|
|
450
|
+
const Container = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$o]]);
|
|
450
451
|
|
|
451
|
-
const _hoisted_1$
|
|
452
|
+
const _hoisted_1$b = ["innerHTML"];
|
|
452
453
|
const _hoisted_2$6 = ["innerHTML"];
|
|
453
454
|
const _hoisted_3$6 = { key: 1 };
|
|
454
455
|
const _hoisted_4$5 = ["innerHTML"];
|
|
@@ -459,7 +460,7 @@ const _hoisted_6$2 = {
|
|
|
459
460
|
};
|
|
460
461
|
const _hoisted_7$2 = { style: { "flex": "1" } };
|
|
461
462
|
const _hoisted_8$1 = ["src"];
|
|
462
|
-
const _sfc_main$
|
|
463
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
463
464
|
__name: "Fieldset",
|
|
464
465
|
props: {
|
|
465
466
|
labelWidth: null,
|
|
@@ -515,7 +516,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
515
516
|
default: withCtx(() => [
|
|
516
517
|
createElementVNode("span", {
|
|
517
518
|
innerHTML: __props.config.legend
|
|
518
|
-
}, null, 8, _hoisted_1$
|
|
519
|
+
}, null, 8, _hoisted_1$b),
|
|
519
520
|
__props.config.extra ? (openBlock(), createElementBlock("span", {
|
|
520
521
|
key: 0,
|
|
521
522
|
innerHTML: __props.config.extra,
|
|
@@ -572,7 +573,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
572
573
|
}
|
|
573
574
|
});
|
|
574
575
|
|
|
575
|
-
const _sfc_main$
|
|
576
|
+
const _sfc_main$s = defineComponent({
|
|
576
577
|
name: "m-form-group-list-item",
|
|
577
578
|
components: { CaretBottom, CaretRight, CaretTop },
|
|
578
579
|
props: {
|
|
@@ -656,18 +657,19 @@ const _sfc_main$t = defineComponent({
|
|
|
656
657
|
};
|
|
657
658
|
}
|
|
658
659
|
});
|
|
659
|
-
|
|
660
|
+
|
|
661
|
+
const _hoisted_1$a = { class: "m-fields-group-list-item" };
|
|
660
662
|
const _hoisted_2$5 = /* @__PURE__ */ createTextVNode("\u4E0A\u79FB");
|
|
661
663
|
const _hoisted_3$5 = /* @__PURE__ */ createTextVNode("\u4E0B\u79FB");
|
|
662
664
|
const _hoisted_4$4 = ["innerHTML"];
|
|
663
|
-
function _sfc_render$
|
|
665
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
664
666
|
const _component_CaretBottom = resolveComponent("CaretBottom");
|
|
665
667
|
const _component_CaretRight = resolveComponent("CaretRight");
|
|
666
668
|
const _component_el_icon = resolveComponent("el-icon");
|
|
667
669
|
const _component_el_button = resolveComponent("el-button");
|
|
668
670
|
const _component_CaretTop = resolveComponent("CaretTop");
|
|
669
671
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
670
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
672
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
671
673
|
createElementVNode("div", null, [
|
|
672
674
|
createVNode(_component_el_icon, {
|
|
673
675
|
style: { "margin-right": "7px" },
|
|
@@ -750,9 +752,9 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
750
752
|
}, null, 8, ["config", "model", "labelWidth", "prop", "size", "onChange"])) : createCommentVNode("", true)
|
|
751
753
|
]);
|
|
752
754
|
}
|
|
753
|
-
|
|
755
|
+
const MFieldsGroupListItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$n]]);
|
|
754
756
|
|
|
755
|
-
const _sfc_main$
|
|
757
|
+
const _sfc_main$r = defineComponent({
|
|
756
758
|
name: "m-form-group-list",
|
|
757
759
|
components: { MFieldsGroupListItem },
|
|
758
760
|
props: {
|
|
@@ -848,7 +850,8 @@ const _sfc_main$s = defineComponent({
|
|
|
848
850
|
};
|
|
849
851
|
}
|
|
850
852
|
});
|
|
851
|
-
|
|
853
|
+
|
|
854
|
+
const _hoisted_1$9 = { class: "m-fields-group-list" };
|
|
852
855
|
const _hoisted_2$4 = ["innerHTML"];
|
|
853
856
|
const _hoisted_3$4 = {
|
|
854
857
|
key: 1,
|
|
@@ -860,10 +863,10 @@ const _hoisted_5$2 = [
|
|
|
860
863
|
];
|
|
861
864
|
const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("\u6DFB\u52A0\u7EC4");
|
|
862
865
|
const _hoisted_7$1 = /* @__PURE__ */ createTextVNode("\u5207\u6362\u4E3A\u8868\u683C");
|
|
863
|
-
function _sfc_render$
|
|
866
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
864
867
|
const _component_m_fields_group_list_item = resolveComponent("m-fields-group-list-item");
|
|
865
868
|
const _component_el_button = resolveComponent("el-button");
|
|
866
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
869
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
867
870
|
_ctx.config.extra ? (openBlock(), createElementBlock("div", {
|
|
868
871
|
key: 0,
|
|
869
872
|
innerHTML: _ctx.config.extra,
|
|
@@ -907,9 +910,9 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
907
910
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
908
911
|
]);
|
|
909
912
|
}
|
|
910
|
-
|
|
913
|
+
const GroupList = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$m]]);
|
|
911
914
|
|
|
912
|
-
const _sfc_main$
|
|
915
|
+
const _sfc_main$q = defineComponent({
|
|
913
916
|
name: "m-form-panel",
|
|
914
917
|
components: { CaretBottom, CaretRight },
|
|
915
918
|
props: {
|
|
@@ -942,7 +945,8 @@ const _sfc_main$r = defineComponent({
|
|
|
942
945
|
};
|
|
943
946
|
}
|
|
944
947
|
});
|
|
945
|
-
|
|
948
|
+
|
|
949
|
+
const _hoisted_1$8 = { class: "clearfix" };
|
|
946
950
|
const _hoisted_2$3 = ["innerHTML"];
|
|
947
951
|
const _hoisted_3$3 = {
|
|
948
952
|
key: 0,
|
|
@@ -950,7 +954,7 @@ const _hoisted_3$3 = {
|
|
|
950
954
|
};
|
|
951
955
|
const _hoisted_4$2 = { style: { "flex": "1" } };
|
|
952
956
|
const _hoisted_5$1 = ["src"];
|
|
953
|
-
function _sfc_render$
|
|
957
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
954
958
|
const _component_caret_bottom = resolveComponent("caret-bottom");
|
|
955
959
|
const _component_caret_right = resolveComponent("caret-right");
|
|
956
960
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -962,7 +966,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
962
966
|
"body-style": { display: _ctx.expand ? "block" : "none" }
|
|
963
967
|
}, {
|
|
964
968
|
header: withCtx(() => [
|
|
965
|
-
createElementVNode("div", _hoisted_1$
|
|
969
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
966
970
|
createElementVNode("a", {
|
|
967
971
|
href: "javascript:",
|
|
968
972
|
style: { "width": "100%", "display": "block" },
|
|
@@ -1020,9 +1024,9 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1020
1024
|
_: 3
|
|
1021
1025
|
}, 8, ["body-style"])) : createCommentVNode("", true);
|
|
1022
1026
|
}
|
|
1023
|
-
|
|
1027
|
+
const Panel = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$l]]);
|
|
1024
1028
|
|
|
1025
|
-
const _sfc_main$
|
|
1029
|
+
const _sfc_main$p = defineComponent({
|
|
1026
1030
|
props: {
|
|
1027
1031
|
labelWidth: String,
|
|
1028
1032
|
expandMore: Boolean,
|
|
@@ -1049,7 +1053,8 @@ const _sfc_main$q = defineComponent({
|
|
|
1049
1053
|
};
|
|
1050
1054
|
}
|
|
1051
1055
|
});
|
|
1052
|
-
|
|
1056
|
+
|
|
1057
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1053
1058
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
1054
1059
|
const _component_el_col = resolveComponent("el-col");
|
|
1055
1060
|
return withDirectives((openBlock(), createBlock(_component_el_col, { span: _ctx.span }, {
|
|
@@ -1069,9 +1074,9 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1069
1074
|
[vShow, _ctx.display && _ctx.config.type !== "hidden"]
|
|
1070
1075
|
]);
|
|
1071
1076
|
}
|
|
1072
|
-
|
|
1077
|
+
const Col = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$k]]);
|
|
1073
1078
|
|
|
1074
|
-
const _sfc_main$
|
|
1079
|
+
const _sfc_main$o = defineComponent({
|
|
1075
1080
|
name: "m-form-row",
|
|
1076
1081
|
components: { Col },
|
|
1077
1082
|
props: {
|
|
@@ -1099,7 +1104,8 @@ const _sfc_main$p = defineComponent({
|
|
|
1099
1104
|
};
|
|
1100
1105
|
}
|
|
1101
1106
|
});
|
|
1102
|
-
|
|
1107
|
+
|
|
1108
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1103
1109
|
const _component_Col = resolveComponent("Col");
|
|
1104
1110
|
const _component_el_row = resolveComponent("el-row");
|
|
1105
1111
|
return openBlock(), createBlock(_component_el_row, { gutter: 10 }, {
|
|
@@ -1121,9 +1127,9 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1121
1127
|
_: 1
|
|
1122
1128
|
});
|
|
1123
1129
|
}
|
|
1124
|
-
|
|
1130
|
+
const Row = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$j]]);
|
|
1125
1131
|
|
|
1126
|
-
const _sfc_main$
|
|
1132
|
+
const _sfc_main$n = defineComponent({
|
|
1127
1133
|
name: "m-form-step",
|
|
1128
1134
|
props: {
|
|
1129
1135
|
model: {
|
|
@@ -1158,7 +1164,8 @@ const _sfc_main$o = defineComponent({
|
|
|
1158
1164
|
return { mForm, active, stepClick, changeHandler };
|
|
1159
1165
|
}
|
|
1160
1166
|
});
|
|
1161
|
-
|
|
1167
|
+
|
|
1168
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1162
1169
|
const _component_el_step = resolveComponent("el-step");
|
|
1163
1170
|
const _component_el_steps = resolveComponent("el-steps");
|
|
1164
1171
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
@@ -1201,11 +1208,11 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1201
1208
|
}), 256))
|
|
1202
1209
|
]);
|
|
1203
1210
|
}
|
|
1204
|
-
|
|
1211
|
+
const MStep = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$i]]);
|
|
1205
1212
|
|
|
1206
1213
|
let loadedAMapJS = false;
|
|
1207
1214
|
let firstLoadingAMapJS = true;
|
|
1208
|
-
const _sfc_main$
|
|
1215
|
+
const _sfc_main$m = defineComponent({
|
|
1209
1216
|
name: "m-form-table",
|
|
1210
1217
|
props: {
|
|
1211
1218
|
name: {
|
|
@@ -1574,7 +1581,8 @@ const _sfc_main$n = defineComponent({
|
|
|
1574
1581
|
};
|
|
1575
1582
|
}
|
|
1576
1583
|
});
|
|
1577
|
-
|
|
1584
|
+
|
|
1585
|
+
const _hoisted_1$7 = ["innerHTML"];
|
|
1578
1586
|
const _hoisted_2$2 = { class: "el-form-item__content" };
|
|
1579
1587
|
const _hoisted_3$2 = ["innerHTML"];
|
|
1580
1588
|
const _hoisted_4$1 = /* @__PURE__ */ createTextVNode("\u6DFB\u52A0");
|
|
@@ -1587,7 +1595,7 @@ const _hoisted_10 = {
|
|
|
1587
1595
|
class: "bottom",
|
|
1588
1596
|
style: { "text-align": "right" }
|
|
1589
1597
|
};
|
|
1590
|
-
function _sfc_render$
|
|
1598
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1591
1599
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
1592
1600
|
const _component_el_button = resolveComponent("el-button");
|
|
1593
1601
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
@@ -1603,7 +1611,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1603
1611
|
key: 0,
|
|
1604
1612
|
style: { "color": "rgba(0, 0, 0, 0.45)" },
|
|
1605
1613
|
innerHTML: _ctx.config.extra
|
|
1606
|
-
}, null, 8, _hoisted_1$
|
|
1614
|
+
}, null, 8, _hoisted_1$7)) : createCommentVNode("", true),
|
|
1607
1615
|
createElementVNode("div", _hoisted_2$2, [
|
|
1608
1616
|
createVNode(_component_el_tooltip, {
|
|
1609
1617
|
content: "\u62D6\u62FD\u53EF\u6392\u5E8F",
|
|
@@ -1836,7 +1844,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1836
1844
|
])
|
|
1837
1845
|
], 2);
|
|
1838
1846
|
}
|
|
1839
|
-
|
|
1847
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$h]]);
|
|
1840
1848
|
|
|
1841
1849
|
const getActive = (mForm, props, activeTabName) => {
|
|
1842
1850
|
const { config, model, prop } = props;
|
|
@@ -1955,8 +1963,8 @@ const Tab = defineComponent({
|
|
|
1955
1963
|
};
|
|
1956
1964
|
}
|
|
1957
1965
|
});
|
|
1958
|
-
|
|
1959
|
-
function _sfc_render$
|
|
1966
|
+
|
|
1967
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1960
1968
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
1961
1969
|
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
1962
1970
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
@@ -2002,7 +2010,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2002
2010
|
_: 1
|
|
2003
2011
|
}, 8, ["modelValue", "class", "type", "editable", "tab-position", "onTabClick", "onTabAdd", "onTabRemove"]);
|
|
2004
2012
|
}
|
|
2005
|
-
|
|
2013
|
+
const Tabs = /* @__PURE__ */ _export_sfc(Tab, [["render", _sfc_render$g]]);
|
|
2006
2014
|
|
|
2007
2015
|
let $MAGIC_FORM = {};
|
|
2008
2016
|
const setConfig = (option) => {
|
|
@@ -2010,7 +2018,7 @@ const setConfig = (option) => {
|
|
|
2010
2018
|
};
|
|
2011
2019
|
const getConfig = (key) => $MAGIC_FORM[key];
|
|
2012
2020
|
|
|
2013
|
-
|
|
2021
|
+
const fieldProps = {
|
|
2014
2022
|
model: {
|
|
2015
2023
|
type: Object,
|
|
2016
2024
|
required: true,
|
|
@@ -2061,8 +2069,8 @@ const _sfc_main$l = defineComponent({
|
|
|
2061
2069
|
const vm = getCurrentInstance();
|
|
2062
2070
|
useAddField(props.prop);
|
|
2063
2071
|
const requestFunc = getConfig("request");
|
|
2064
|
-
const cascader = ref(
|
|
2065
|
-
const dialog = ref(
|
|
2072
|
+
const cascader = ref();
|
|
2073
|
+
const dialog = ref();
|
|
2066
2074
|
const options = Array.isArray(props.config.options) ? ref(props.config.options) : ref([]);
|
|
2067
2075
|
const remoteData = ref(null);
|
|
2068
2076
|
const setRemoteOptions = async function() {
|
|
@@ -2139,13 +2147,14 @@ const _sfc_main$l = defineComponent({
|
|
|
2139
2147
|
};
|
|
2140
2148
|
}
|
|
2141
2149
|
});
|
|
2142
|
-
|
|
2150
|
+
|
|
2151
|
+
const _hoisted_1$6 = {
|
|
2143
2152
|
class: "m-cascader",
|
|
2144
2153
|
style: { "width": "100%" }
|
|
2145
2154
|
};
|
|
2146
|
-
function _sfc_render$
|
|
2155
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2147
2156
|
const _component_el_cascader = resolveComponent("el-cascader");
|
|
2148
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2157
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
2149
2158
|
createVNode(_component_el_cascader, {
|
|
2150
2159
|
modelValue: _ctx.model[_ctx.name],
|
|
2151
2160
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
@@ -2162,7 +2171,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2162
2171
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "options", "props", "onChange"])
|
|
2163
2172
|
]);
|
|
2164
2173
|
}
|
|
2165
|
-
|
|
2174
|
+
const Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$f]]);
|
|
2166
2175
|
|
|
2167
2176
|
const _sfc_main$k = defineComponent({
|
|
2168
2177
|
name: "m-fields-checkbox",
|
|
@@ -2203,7 +2212,8 @@ const _sfc_main$k = defineComponent({
|
|
|
2203
2212
|
};
|
|
2204
2213
|
}
|
|
2205
2214
|
});
|
|
2206
|
-
|
|
2215
|
+
|
|
2216
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2207
2217
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
2208
2218
|
return openBlock(), createBlock(_component_el_checkbox, {
|
|
2209
2219
|
modelValue: _ctx.model[_ctx.name],
|
|
@@ -2216,7 +2226,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2216
2226
|
onChange: _ctx.changeHandler
|
|
2217
2227
|
}, null, 8, ["modelValue", "size", "trueLabel", "falseLabel", "disabled", "label", "onChange"]);
|
|
2218
2228
|
}
|
|
2219
|
-
|
|
2229
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$e]]);
|
|
2220
2230
|
|
|
2221
2231
|
const _sfc_main$j = defineComponent({
|
|
2222
2232
|
name: "m-fields-checkbox-group",
|
|
@@ -2240,7 +2250,8 @@ const _sfc_main$j = defineComponent({
|
|
|
2240
2250
|
};
|
|
2241
2251
|
}
|
|
2242
2252
|
});
|
|
2243
|
-
|
|
2253
|
+
|
|
2254
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2244
2255
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
2245
2256
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
2246
2257
|
return openBlock(), createBlock(_component_el_checkbox_group, {
|
|
@@ -2266,20 +2277,19 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2266
2277
|
_: 1
|
|
2267
2278
|
}, 8, ["modelValue", "size", "disabled", "onChange"]);
|
|
2268
2279
|
}
|
|
2269
|
-
|
|
2280
|
+
const CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$d]]);
|
|
2270
2281
|
|
|
2271
|
-
const _hoisted_1$6 = { key: 0 };
|
|
2272
|
-
const __default__$2 = defineComponent({
|
|
2273
|
-
name: "m-fields-color-picker"
|
|
2274
|
-
});
|
|
2275
2282
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2276
|
-
|
|
2283
|
+
__name: "ColorPicker",
|
|
2277
2284
|
props: {
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2285
|
+
config: null,
|
|
2286
|
+
model: null,
|
|
2287
|
+
initValues: null,
|
|
2288
|
+
values: null,
|
|
2289
|
+
name: null,
|
|
2290
|
+
prop: null,
|
|
2291
|
+
disabled: { type: Boolean },
|
|
2292
|
+
size: null
|
|
2283
2293
|
},
|
|
2284
2294
|
emits: ["change"],
|
|
2285
2295
|
setup(__props, { emit }) {
|
|
@@ -2288,16 +2298,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2288
2298
|
const changeHandler = (value) => emit("change", value);
|
|
2289
2299
|
return (_ctx, _cache) => {
|
|
2290
2300
|
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
2291
|
-
return
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
}, null, 8, ["modelValue", "size", "disabled"])
|
|
2300
|
-
])) : createCommentVNode("", true);
|
|
2301
|
+
return openBlock(), createBlock(_component_el_color_picker, {
|
|
2302
|
+
modelValue: __props.model[__props.name],
|
|
2303
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
2304
|
+
size: __props.size,
|
|
2305
|
+
disabled: __props.disabled,
|
|
2306
|
+
showAlpha: true,
|
|
2307
|
+
onChange: changeHandler
|
|
2308
|
+
}, null, 8, ["modelValue", "size", "disabled"]);
|
|
2301
2309
|
};
|
|
2302
2310
|
}
|
|
2303
2311
|
});
|
|
@@ -2322,7 +2330,8 @@ const _sfc_main$h = defineComponent({
|
|
|
2322
2330
|
};
|
|
2323
2331
|
}
|
|
2324
2332
|
});
|
|
2325
|
-
|
|
2333
|
+
|
|
2334
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2326
2335
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
2327
2336
|
return openBlock(), createBlock(_component_el_date_picker, {
|
|
2328
2337
|
modelValue: _ctx.model[_ctx.name],
|
|
@@ -2336,74 +2345,95 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2336
2345
|
onChange: _ctx.changeHandler
|
|
2337
2346
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "onChange"]);
|
|
2338
2347
|
}
|
|
2339
|
-
|
|
2348
|
+
const Date$1 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$c]]);
|
|
2340
2349
|
|
|
2341
|
-
const _sfc_main$g = defineComponent({
|
|
2342
|
-
|
|
2350
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2351
|
+
__name: "Daterange",
|
|
2343
2352
|
props: {
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2353
|
+
config: null,
|
|
2354
|
+
model: null,
|
|
2355
|
+
initValues: null,
|
|
2356
|
+
values: null,
|
|
2357
|
+
name: null,
|
|
2358
|
+
prop: null,
|
|
2359
|
+
disabled: { type: Boolean },
|
|
2360
|
+
size: null
|
|
2349
2361
|
},
|
|
2350
2362
|
emits: ["change"],
|
|
2351
|
-
setup(
|
|
2363
|
+
setup(__props, { emit }) {
|
|
2364
|
+
const props = __props;
|
|
2352
2365
|
useAddField(props.prop);
|
|
2353
2366
|
const { names } = props.config;
|
|
2354
2367
|
const value = ref([]);
|
|
2355
2368
|
if (props.model !== void 0) {
|
|
2356
2369
|
if (names?.length) {
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
}
|
|
2361
|
-
}
|
|
2362
|
-
const setValue = (v) => {
|
|
2363
|
-
if (names?.length && v instanceof Array) {
|
|
2364
|
-
names.forEach((item, index) => {
|
|
2365
|
-
if (props.model) {
|
|
2366
|
-
props.model[item] = datetimeFormatter(v[index].toString(), "");
|
|
2370
|
+
watch([() => props.model[names[0]], () => props.model[names[1]]], ([start, end], [preStart, preEnd]) => {
|
|
2371
|
+
if (!value.value) {
|
|
2372
|
+
value.value = [];
|
|
2367
2373
|
}
|
|
2374
|
+
if (!start || !end)
|
|
2375
|
+
value.value = [];
|
|
2376
|
+
if (start !== preStart)
|
|
2377
|
+
value.value[0] = new Date(start);
|
|
2378
|
+
if (end !== preEnd)
|
|
2379
|
+
value.value[1] = new Date(end);
|
|
2380
|
+
}, {
|
|
2381
|
+
immediate: true
|
|
2368
2382
|
});
|
|
2369
|
-
} else if (props.
|
|
2370
|
-
props.model[props.name]
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
}
|
|
2383
|
+
} else if (props.name && props.model[props.name]) {
|
|
2384
|
+
watch(() => props.model[props.name], (start, preStart) => {
|
|
2385
|
+
if (start !== preStart)
|
|
2386
|
+
value.value = start.map((item) => item ? new Date(item) : void 0);
|
|
2387
|
+
}, {
|
|
2388
|
+
immediate: true
|
|
2376
2389
|
});
|
|
2377
|
-
} else if (props.name) {
|
|
2378
|
-
props.model[props.name] = void 0;
|
|
2379
2390
|
}
|
|
2391
|
+
}
|
|
2392
|
+
const setValue = (v) => {
|
|
2393
|
+
names?.forEach((item, index) => {
|
|
2394
|
+
if (!props.model) {
|
|
2395
|
+
return;
|
|
2396
|
+
}
|
|
2397
|
+
if (Array.isArray(v)) {
|
|
2398
|
+
props.model[item] = datetimeFormatter(v[index]?.toString(), "");
|
|
2399
|
+
} else {
|
|
2400
|
+
props.model[item] = void 0;
|
|
2401
|
+
}
|
|
2402
|
+
});
|
|
2380
2403
|
};
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2404
|
+
const changeHandler = (v) => {
|
|
2405
|
+
const value2 = v || [];
|
|
2406
|
+
if (props.name) {
|
|
2407
|
+
emit("change", value2.map((item) => {
|
|
2408
|
+
if (item)
|
|
2409
|
+
return datetimeFormatter(item, "");
|
|
2410
|
+
return void 0;
|
|
2411
|
+
}));
|
|
2412
|
+
} else {
|
|
2413
|
+
if (names?.length) {
|
|
2414
|
+
setValue(value2);
|
|
2415
|
+
}
|
|
2416
|
+
emit("change", value2);
|
|
2386
2417
|
}
|
|
2387
2418
|
};
|
|
2419
|
+
return (_ctx, _cache) => {
|
|
2420
|
+
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
2421
|
+
return openBlock(), createBlock(_component_el_date_picker, {
|
|
2422
|
+
modelValue: value.value,
|
|
2423
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
2424
|
+
type: "datetimerange",
|
|
2425
|
+
"range-separator": "-",
|
|
2426
|
+
"start-placeholder": "\u5F00\u59CB\u65E5\u671F",
|
|
2427
|
+
"end-placeholder": "\u7ED3\u675F\u65E5\u671F",
|
|
2428
|
+
size: __props.size,
|
|
2429
|
+
"unlink-panels": true,
|
|
2430
|
+
disabled: __props.disabled,
|
|
2431
|
+
"default-time": __props.config.defaultTime,
|
|
2432
|
+
onChange: changeHandler
|
|
2433
|
+
}, null, 8, ["modelValue", "size", "disabled", "default-time"]);
|
|
2434
|
+
};
|
|
2388
2435
|
}
|
|
2389
2436
|
});
|
|
2390
|
-
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2391
|
-
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
2392
|
-
return openBlock(), createBlock(_component_el_date_picker, {
|
|
2393
|
-
modelValue: _ctx.value,
|
|
2394
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.value = $event),
|
|
2395
|
-
type: "datetimerange",
|
|
2396
|
-
"range-separator": "-",
|
|
2397
|
-
"start-placeholder": "\u5F00\u59CB\u65E5\u671F",
|
|
2398
|
-
"end-placeholder": "\u7ED3\u675F\u65E5\u671F",
|
|
2399
|
-
size: _ctx.size,
|
|
2400
|
-
"unlink-panels": true,
|
|
2401
|
-
disabled: _ctx.disabled,
|
|
2402
|
-
"default-time": _ctx.config.defaultTime,
|
|
2403
|
-
onChange: _ctx.changeHandler
|
|
2404
|
-
}, null, 8, ["modelValue", "size", "disabled", "default-time", "onChange"]);
|
|
2405
|
-
}
|
|
2406
|
-
var Daterange = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$c]]);
|
|
2407
2437
|
|
|
2408
2438
|
const _sfc_main$f = defineComponent({
|
|
2409
2439
|
name: "m-fields-datetime",
|
|
@@ -2433,6 +2463,7 @@ const _sfc_main$f = defineComponent({
|
|
|
2433
2463
|
};
|
|
2434
2464
|
}
|
|
2435
2465
|
});
|
|
2466
|
+
|
|
2436
2467
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2437
2468
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
2438
2469
|
return openBlock(), createBlock(_component_el_date_picker, {
|
|
@@ -2449,30 +2480,27 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2449
2480
|
onChange: _ctx.changeHandler
|
|
2450
2481
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time", "onChange"]);
|
|
2451
2482
|
}
|
|
2452
|
-
|
|
2483
|
+
const DateTime = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$b]]);
|
|
2453
2484
|
|
|
2454
2485
|
const _hoisted_1$5 = { key: 0 };
|
|
2455
|
-
const __default__$1 = defineComponent({
|
|
2456
|
-
name: "m-fields-display"
|
|
2457
|
-
});
|
|
2458
2486
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2459
|
-
|
|
2487
|
+
__name: "Display",
|
|
2460
2488
|
props: {
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2489
|
+
config: null,
|
|
2490
|
+
model: null,
|
|
2491
|
+
initValues: null,
|
|
2492
|
+
values: null,
|
|
2493
|
+
name: null,
|
|
2494
|
+
prop: null
|
|
2466
2495
|
},
|
|
2467
2496
|
setup(__props) {
|
|
2468
2497
|
const props = __props;
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
props.model[n.value] = props.config.initValue;
|
|
2498
|
+
if (props.config.initValue && props.model) {
|
|
2499
|
+
props.model[props.name] = props.config.initValue;
|
|
2472
2500
|
}
|
|
2473
2501
|
useAddField(props.prop);
|
|
2474
2502
|
return (_ctx, _cache) => {
|
|
2475
|
-
return
|
|
2503
|
+
return __props.model ? (openBlock(), createElementBlock("span", _hoisted_1$5, toDisplayString(__props.model[__props.name]), 1)) : createCommentVNode("", true);
|
|
2476
2504
|
};
|
|
2477
2505
|
}
|
|
2478
2506
|
});
|
|
@@ -2542,6 +2570,7 @@ const _sfc_main$d = defineComponent({
|
|
|
2542
2570
|
}
|
|
2543
2571
|
}
|
|
2544
2572
|
});
|
|
2573
|
+
|
|
2545
2574
|
const _hoisted_1$4 = { class: "m-fields-dynamic-field" };
|
|
2546
2575
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2547
2576
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -2571,31 +2600,28 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2571
2600
|
})
|
|
2572
2601
|
]);
|
|
2573
2602
|
}
|
|
2574
|
-
|
|
2603
|
+
const DynamicField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$a]]);
|
|
2575
2604
|
|
|
2576
|
-
const __default__ = defineComponent({
|
|
2577
|
-
name: "m-fields-hidden"
|
|
2578
|
-
});
|
|
2579
2605
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2580
|
-
|
|
2606
|
+
__name: "Hidden",
|
|
2581
2607
|
props: {
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2608
|
+
config: null,
|
|
2609
|
+
model: null,
|
|
2610
|
+
initValues: null,
|
|
2611
|
+
values: null,
|
|
2612
|
+
name: null,
|
|
2613
|
+
prop: null
|
|
2587
2614
|
},
|
|
2588
2615
|
setup(__props) {
|
|
2589
2616
|
const props = __props;
|
|
2590
|
-
const n = computed(() => props.name || props.config.name || "");
|
|
2591
2617
|
useAddField(props.prop);
|
|
2592
2618
|
return (_ctx, _cache) => {
|
|
2593
|
-
return
|
|
2619
|
+
return __props.model ? withDirectives((openBlock(), createElementBlock("input", {
|
|
2594
2620
|
key: 0,
|
|
2595
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2621
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
2596
2622
|
type: "hidden"
|
|
2597
2623
|
}, null, 512)), [
|
|
2598
|
-
[vModelText,
|
|
2624
|
+
[vModelText, __props.model[__props.name]]
|
|
2599
2625
|
]) : createCommentVNode("", true);
|
|
2600
2626
|
};
|
|
2601
2627
|
}
|
|
@@ -2669,6 +2695,7 @@ const _sfc_main$b = defineComponent({
|
|
|
2669
2695
|
};
|
|
2670
2696
|
}
|
|
2671
2697
|
});
|
|
2698
|
+
|
|
2672
2699
|
const _hoisted_1$3 = ["href"];
|
|
2673
2700
|
const _hoisted_2$1 = {
|
|
2674
2701
|
key: 2,
|
|
@@ -2709,7 +2736,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2709
2736
|
}, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen", "onSubmit"])
|
|
2710
2737
|
]));
|
|
2711
2738
|
}
|
|
2712
|
-
|
|
2739
|
+
const Link = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$9]]);
|
|
2713
2740
|
|
|
2714
2741
|
const _sfc_main$a = defineComponent({
|
|
2715
2742
|
name: "m-fields-number",
|
|
@@ -2736,6 +2763,7 @@ const _sfc_main$a = defineComponent({
|
|
|
2736
2763
|
};
|
|
2737
2764
|
}
|
|
2738
2765
|
});
|
|
2766
|
+
|
|
2739
2767
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2740
2768
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
2741
2769
|
return _ctx.model ? (openBlock(), createBlock(_component_el_input_number, {
|
|
@@ -2754,7 +2782,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2754
2782
|
onInput: _ctx.inputHandler
|
|
2755
2783
|
}, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled", "onChange", "onInput"])) : createCommentVNode("", true);
|
|
2756
2784
|
}
|
|
2757
|
-
|
|
2785
|
+
const Number$1 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$8]]);
|
|
2758
2786
|
|
|
2759
2787
|
const _sfc_main$9 = defineComponent({
|
|
2760
2788
|
name: "m-fields-radio-group",
|
|
@@ -2773,6 +2801,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
2773
2801
|
};
|
|
2774
2802
|
}
|
|
2775
2803
|
});
|
|
2804
|
+
|
|
2776
2805
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2777
2806
|
const _component_el_radio = resolveComponent("el-radio");
|
|
2778
2807
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
@@ -2800,7 +2829,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2800
2829
|
_: 1
|
|
2801
2830
|
}, 8, ["modelValue", "size", "disabled", "onChange"])) : createCommentVNode("", true);
|
|
2802
2831
|
}
|
|
2803
|
-
|
|
2832
|
+
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$7]]);
|
|
2804
2833
|
|
|
2805
2834
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2806
2835
|
__name: "SelectOptionGroups",
|
|
@@ -3125,6 +3154,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
3125
3154
|
};
|
|
3126
3155
|
}
|
|
3127
3156
|
});
|
|
3157
|
+
|
|
3128
3158
|
const _hoisted_1$2 = { key: 2 };
|
|
3129
3159
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3130
3160
|
const _component_select_option_groups = resolveComponent("select-option-groups");
|
|
@@ -3168,7 +3198,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3168
3198
|
[_directive_loading, _ctx.loading]
|
|
3169
3199
|
]) : createCommentVNode("", true);
|
|
3170
3200
|
}
|
|
3171
|
-
|
|
3201
|
+
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
|
|
3172
3202
|
|
|
3173
3203
|
const _sfc_main$5 = defineComponent({
|
|
3174
3204
|
name: "m-fields-switch",
|
|
@@ -3210,6 +3240,7 @@ const _sfc_main$5 = defineComponent({
|
|
|
3210
3240
|
};
|
|
3211
3241
|
}
|
|
3212
3242
|
});
|
|
3243
|
+
|
|
3213
3244
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3214
3245
|
const _component_el_switch = resolveComponent("el-switch");
|
|
3215
3246
|
return _ctx.model ? (openBlock(), createBlock(_component_el_switch, {
|
|
@@ -3223,7 +3254,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3223
3254
|
onChange: _ctx.changeHandler
|
|
3224
3255
|
}, null, 8, ["modelValue", "size", "activeValue", "inactiveValue", "disabled", "onChange"])) : createCommentVNode("", true);
|
|
3225
3256
|
}
|
|
3226
|
-
|
|
3257
|
+
const Switch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
|
|
3227
3258
|
|
|
3228
3259
|
const _sfc_main$4 = defineComponent({
|
|
3229
3260
|
name: "m-fields-text",
|
|
@@ -3312,6 +3343,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
3312
3343
|
};
|
|
3313
3344
|
}
|
|
3314
3345
|
});
|
|
3346
|
+
|
|
3315
3347
|
const _hoisted_1$1 = { key: 0 };
|
|
3316
3348
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3317
3349
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -3346,7 +3378,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3346
3378
|
} : void 0
|
|
3347
3379
|
]), 1032, ["modelValue", "size", "placeholder", "disabled", "onChange", "onInput"]);
|
|
3348
3380
|
}
|
|
3349
|
-
|
|
3381
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
3350
3382
|
|
|
3351
3383
|
const _sfc_main$3 = defineComponent({
|
|
3352
3384
|
name: "m-fields-textarea",
|
|
@@ -3380,6 +3412,7 @@ const _sfc_main$3 = defineComponent({
|
|
|
3380
3412
|
};
|
|
3381
3413
|
}
|
|
3382
3414
|
});
|
|
3415
|
+
|
|
3383
3416
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3384
3417
|
const _component_el_input = resolveComponent("el-input");
|
|
3385
3418
|
return openBlock(), createBlock(_component_el_input, {
|
|
@@ -3394,7 +3427,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3394
3427
|
onInput: _ctx.inputHandler
|
|
3395
3428
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange", "onInput"]);
|
|
3396
3429
|
}
|
|
3397
|
-
|
|
3430
|
+
const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
3398
3431
|
|
|
3399
3432
|
const _sfc_main$2 = defineComponent({
|
|
3400
3433
|
name: "m-fields-time",
|
|
@@ -3419,6 +3452,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
3419
3452
|
};
|
|
3420
3453
|
}
|
|
3421
3454
|
});
|
|
3455
|
+
|
|
3422
3456
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3423
3457
|
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
3424
3458
|
return openBlock(), createBlock(_component_el_time_picker, {
|
|
@@ -3431,7 +3465,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3431
3465
|
onChange: _ctx.changeHandler
|
|
3432
3466
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange"]);
|
|
3433
3467
|
}
|
|
3434
|
-
|
|
3468
|
+
const Time = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
3435
3469
|
|
|
3436
3470
|
const _sfc_main$1 = defineComponent({
|
|
3437
3471
|
name: "m-form",
|
|
@@ -3557,6 +3591,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
3557
3591
|
};
|
|
3558
3592
|
}
|
|
3559
3593
|
});
|
|
3594
|
+
|
|
3560
3595
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3561
3596
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
3562
3597
|
const _component_el_form = resolveComponent("el-form");
|
|
@@ -3586,7 +3621,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3586
3621
|
_: 1
|
|
3587
3622
|
}, 8, ["model", "label-width", "disabled", "style", "inline", "label-position"]);
|
|
3588
3623
|
}
|
|
3589
|
-
|
|
3624
|
+
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
3590
3625
|
|
|
3591
3626
|
const _sfc_main = defineComponent({
|
|
3592
3627
|
name: "m-form-dialog",
|
|
@@ -3676,6 +3711,7 @@ const _sfc_main = defineComponent({
|
|
|
3676
3711
|
};
|
|
3677
3712
|
}
|
|
3678
3713
|
});
|
|
3714
|
+
|
|
3679
3715
|
const _hoisted_1 = { style: { "min-height": "1px" } };
|
|
3680
3716
|
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u53D6 \u6D88");
|
|
3681
3717
|
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u4E0A\u4E00\u6B65");
|
|
@@ -3788,9 +3824,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3788
3824
|
}, 8, ["modelValue", "title", "width", "fullscreen", "onClose"])
|
|
3789
3825
|
]);
|
|
3790
3826
|
}
|
|
3791
|
-
|
|
3827
|
+
const FormDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3792
3828
|
|
|
3793
|
-
|
|
3829
|
+
const index$1 = '';
|
|
3794
3830
|
|
|
3795
3831
|
const defaultInstallOpt = {};
|
|
3796
3832
|
const install = (app, opt) => {
|
|
@@ -3800,7 +3836,7 @@ const install = (app, opt) => {
|
|
|
3800
3836
|
app.component(Form.name, Form);
|
|
3801
3837
|
app.component(FormDialog.name, FormDialog);
|
|
3802
3838
|
app.component(Container.name, Container);
|
|
3803
|
-
app.component("m-form-fieldset", _sfc_main$
|
|
3839
|
+
app.component("m-form-fieldset", _sfc_main$t);
|
|
3804
3840
|
app.component(GroupList.name, GroupList);
|
|
3805
3841
|
app.component(Panel.name, Panel);
|
|
3806
3842
|
app.component(Row.name, Row);
|
|
@@ -3810,25 +3846,25 @@ const install = (app, opt) => {
|
|
|
3810
3846
|
app.component(Text.name, Text);
|
|
3811
3847
|
app.component(Number$1.name, Number$1);
|
|
3812
3848
|
app.component(Textarea.name, Textarea);
|
|
3813
|
-
app.component(
|
|
3849
|
+
app.component("m-fields-hidden", _sfc_main$c);
|
|
3814
3850
|
app.component(Date$1.name, Date$1);
|
|
3815
3851
|
app.component(DateTime.name, DateTime);
|
|
3816
3852
|
app.component(Time.name, Time);
|
|
3817
3853
|
app.component(Checkbox.name, Checkbox);
|
|
3818
3854
|
app.component(Switch.name, Switch);
|
|
3819
|
-
app.component(
|
|
3820
|
-
app.component(
|
|
3855
|
+
app.component("m-fields-daterange", _sfc_main$g);
|
|
3856
|
+
app.component("m-fields-color-picker", _sfc_main$i);
|
|
3821
3857
|
app.component(CheckboxGroup.name, CheckboxGroup);
|
|
3822
3858
|
app.component(RadioGroup.name, RadioGroup);
|
|
3823
|
-
app.component(
|
|
3859
|
+
app.component("m-fields-display", _sfc_main$e);
|
|
3824
3860
|
app.component(Link.name, Link);
|
|
3825
3861
|
app.component(Select.name, Select);
|
|
3826
3862
|
app.component(Cascader.name, Cascader);
|
|
3827
3863
|
app.component(DynamicField.name, DynamicField);
|
|
3828
3864
|
};
|
|
3829
|
-
|
|
3865
|
+
const index = {
|
|
3830
3866
|
install
|
|
3831
3867
|
};
|
|
3832
3868
|
|
|
3833
|
-
export { Cascader as MCascader, Checkbox as MCheckbox, CheckboxGroup as MCheckboxGroup, _sfc_main$i as MColorPicker, Container as MContainer, Date$1 as MDate, DateTime as MDateTime,
|
|
3834
|
-
//# sourceMappingURL=tmagic-form.
|
|
3869
|
+
export { Cascader as MCascader, Checkbox as MCheckbox, CheckboxGroup as MCheckboxGroup, _sfc_main$i as MColorPicker, Container as MContainer, Date$1 as MDate, DateTime as MDateTime, _sfc_main$g as MDaterange, _sfc_main$e as MDisplay, DynamicField as MDynamicField, _sfc_main$t as MFieldset, Form as MForm, FormDialog as MFormDialog, GroupList as MGroupList, _sfc_main$c as MHidden, Link as MLink, Number$1 as MNumber, Panel as MPanel, RadioGroup as MRadioGroup, Row as MRow, Select as MSelect, Switch as MSwitch, Table as MTable, Tabs as MTabs, Text as MText, Textarea as MTextarea, Time as MTime, index as default, display, fieldProps, filterFunction, getRules, initValue, useAddField };
|
|
3870
|
+
//# sourceMappingURL=tmagic-form.mjs.map
|