@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
package/dist/tmagic-form.umd.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TMagicForm = {}, global.Vue, global.iconsVue, global.lodashEs, global.ElementPlus, global.Sortable, global.utils));
|
|
5
5
|
})(this, (function (exports, vue, iconsVue, lodashEs, elementPlus, Sortable, utils) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { default: e };
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const Sortable__default = /*#__PURE__*/_interopDefaultLegacy(Sortable);
|
|
10
10
|
|
|
11
11
|
const isTableSelect = (type) => typeof type === "string" && ["table-select", "tableSelect"].includes(type);
|
|
12
12
|
const asyncLoadConfig = (value, initValue2, { asyncLoad, name, type }) => {
|
|
@@ -161,15 +161,7 @@
|
|
|
161
161
|
return valuesTmp || {};
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
|
|
165
|
-
const target = sfc.__vccOpts || sfc;
|
|
166
|
-
for (const [key, val] of props) {
|
|
167
|
-
target[key] = val;
|
|
168
|
-
}
|
|
169
|
-
return target;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
const _sfc_main$v = vue.defineComponent({
|
|
164
|
+
const _sfc_main$u = vue.defineComponent({
|
|
173
165
|
name: "m-form-container",
|
|
174
166
|
components: { WarningFilled: iconsVue.WarningFilled },
|
|
175
167
|
props: {
|
|
@@ -314,7 +306,16 @@
|
|
|
314
306
|
};
|
|
315
307
|
}
|
|
316
308
|
});
|
|
317
|
-
|
|
309
|
+
|
|
310
|
+
const _export_sfc = (sfc, props) => {
|
|
311
|
+
const target = sfc.__vccOpts || sfc;
|
|
312
|
+
for (const [key, val] of props) {
|
|
313
|
+
target[key] = val;
|
|
314
|
+
}
|
|
315
|
+
return target;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
const _hoisted_1$c = ["innerHTML"];
|
|
318
319
|
const _hoisted_2$7 = ["innerHTML"];
|
|
319
320
|
const _hoisted_3$7 = ["innerHTML"];
|
|
320
321
|
const _hoisted_4$6 = ["innerHTML"];
|
|
@@ -322,7 +323,7 @@
|
|
|
322
323
|
key: 4,
|
|
323
324
|
style: { "text-align": "center" }
|
|
324
325
|
};
|
|
325
|
-
function _sfc_render$
|
|
326
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
326
327
|
const _component_m_fields_hidden = vue.resolveComponent("m-fields-hidden");
|
|
327
328
|
const _component_el_tooltip = vue.resolveComponent("el-tooltip");
|
|
328
329
|
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
@@ -364,7 +365,7 @@
|
|
|
364
365
|
label: vue.withCtx(() => [
|
|
365
366
|
vue.createElementVNode("span", {
|
|
366
367
|
innerHTML: _ctx.type === "checkbox" ? "" : _ctx.config.text
|
|
367
|
-
}, null, 8, _hoisted_1$
|
|
368
|
+
}, null, 8, _hoisted_1$c)
|
|
368
369
|
]),
|
|
369
370
|
default: vue.withCtx(() => [
|
|
370
371
|
_ctx.tooltip ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, { key: 0 }, {
|
|
@@ -449,9 +450,9 @@
|
|
|
449
450
|
])) : vue.createCommentVNode("", true)
|
|
450
451
|
], 6)) : vue.createCommentVNode("", true);
|
|
451
452
|
}
|
|
452
|
-
|
|
453
|
+
const Container = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$o]]);
|
|
453
454
|
|
|
454
|
-
const _hoisted_1$
|
|
455
|
+
const _hoisted_1$b = ["innerHTML"];
|
|
455
456
|
const _hoisted_2$6 = ["innerHTML"];
|
|
456
457
|
const _hoisted_3$6 = { key: 1 };
|
|
457
458
|
const _hoisted_4$5 = ["innerHTML"];
|
|
@@ -462,7 +463,7 @@
|
|
|
462
463
|
};
|
|
463
464
|
const _hoisted_7$2 = { style: { "flex": "1" } };
|
|
464
465
|
const _hoisted_8$1 = ["src"];
|
|
465
|
-
const _sfc_main$
|
|
466
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
466
467
|
__name: "Fieldset",
|
|
467
468
|
props: {
|
|
468
469
|
labelWidth: null,
|
|
@@ -518,7 +519,7 @@
|
|
|
518
519
|
default: vue.withCtx(() => [
|
|
519
520
|
vue.createElementVNode("span", {
|
|
520
521
|
innerHTML: __props.config.legend
|
|
521
|
-
}, null, 8, _hoisted_1$
|
|
522
|
+
}, null, 8, _hoisted_1$b),
|
|
522
523
|
__props.config.extra ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
523
524
|
key: 0,
|
|
524
525
|
innerHTML: __props.config.extra,
|
|
@@ -575,7 +576,7 @@
|
|
|
575
576
|
}
|
|
576
577
|
});
|
|
577
578
|
|
|
578
|
-
const _sfc_main$
|
|
579
|
+
const _sfc_main$s = vue.defineComponent({
|
|
579
580
|
name: "m-form-group-list-item",
|
|
580
581
|
components: { CaretBottom: iconsVue.CaretBottom, CaretRight: iconsVue.CaretRight, CaretTop: iconsVue.CaretTop },
|
|
581
582
|
props: {
|
|
@@ -659,18 +660,19 @@
|
|
|
659
660
|
};
|
|
660
661
|
}
|
|
661
662
|
});
|
|
662
|
-
|
|
663
|
+
|
|
664
|
+
const _hoisted_1$a = { class: "m-fields-group-list-item" };
|
|
663
665
|
const _hoisted_2$5 = /* @__PURE__ */ vue.createTextVNode("\u4E0A\u79FB");
|
|
664
666
|
const _hoisted_3$5 = /* @__PURE__ */ vue.createTextVNode("\u4E0B\u79FB");
|
|
665
667
|
const _hoisted_4$4 = ["innerHTML"];
|
|
666
|
-
function _sfc_render$
|
|
668
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
667
669
|
const _component_CaretBottom = vue.resolveComponent("CaretBottom");
|
|
668
670
|
const _component_CaretRight = vue.resolveComponent("CaretRight");
|
|
669
671
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
670
672
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
671
673
|
const _component_CaretTop = vue.resolveComponent("CaretTop");
|
|
672
674
|
const _component_m_form_container = vue.resolveComponent("m-form-container");
|
|
673
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
675
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
|
|
674
676
|
vue.createElementVNode("div", null, [
|
|
675
677
|
vue.createVNode(_component_el_icon, {
|
|
676
678
|
style: { "margin-right": "7px" },
|
|
@@ -753,9 +755,9 @@
|
|
|
753
755
|
}, null, 8, ["config", "model", "labelWidth", "prop", "size", "onChange"])) : vue.createCommentVNode("", true)
|
|
754
756
|
]);
|
|
755
757
|
}
|
|
756
|
-
|
|
758
|
+
const MFieldsGroupListItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$n]]);
|
|
757
759
|
|
|
758
|
-
const _sfc_main$
|
|
760
|
+
const _sfc_main$r = vue.defineComponent({
|
|
759
761
|
name: "m-form-group-list",
|
|
760
762
|
components: { MFieldsGroupListItem },
|
|
761
763
|
props: {
|
|
@@ -851,7 +853,8 @@
|
|
|
851
853
|
};
|
|
852
854
|
}
|
|
853
855
|
});
|
|
854
|
-
|
|
856
|
+
|
|
857
|
+
const _hoisted_1$9 = { class: "m-fields-group-list" };
|
|
855
858
|
const _hoisted_2$4 = ["innerHTML"];
|
|
856
859
|
const _hoisted_3$4 = {
|
|
857
860
|
key: 1,
|
|
@@ -863,10 +866,10 @@
|
|
|
863
866
|
];
|
|
864
867
|
const _hoisted_6$1 = /* @__PURE__ */ vue.createTextVNode("\u6DFB\u52A0\u7EC4");
|
|
865
868
|
const _hoisted_7$1 = /* @__PURE__ */ vue.createTextVNode("\u5207\u6362\u4E3A\u8868\u683C");
|
|
866
|
-
function _sfc_render$
|
|
869
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
867
870
|
const _component_m_fields_group_list_item = vue.resolveComponent("m-fields-group-list-item");
|
|
868
871
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
869
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
872
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
|
|
870
873
|
_ctx.config.extra ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
871
874
|
key: 0,
|
|
872
875
|
innerHTML: _ctx.config.extra,
|
|
@@ -910,9 +913,9 @@
|
|
|
910
913
|
}, 8, ["onClick"])) : vue.createCommentVNode("", true)
|
|
911
914
|
]);
|
|
912
915
|
}
|
|
913
|
-
|
|
916
|
+
const GroupList = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$m]]);
|
|
914
917
|
|
|
915
|
-
const _sfc_main$
|
|
918
|
+
const _sfc_main$q = vue.defineComponent({
|
|
916
919
|
name: "m-form-panel",
|
|
917
920
|
components: { CaretBottom: iconsVue.CaretBottom, CaretRight: iconsVue.CaretRight },
|
|
918
921
|
props: {
|
|
@@ -945,7 +948,8 @@
|
|
|
945
948
|
};
|
|
946
949
|
}
|
|
947
950
|
});
|
|
948
|
-
|
|
951
|
+
|
|
952
|
+
const _hoisted_1$8 = { class: "clearfix" };
|
|
949
953
|
const _hoisted_2$3 = ["innerHTML"];
|
|
950
954
|
const _hoisted_3$3 = {
|
|
951
955
|
key: 0,
|
|
@@ -953,7 +957,7 @@
|
|
|
953
957
|
};
|
|
954
958
|
const _hoisted_4$2 = { style: { "flex": "1" } };
|
|
955
959
|
const _hoisted_5$1 = ["src"];
|
|
956
|
-
function _sfc_render$
|
|
960
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
957
961
|
const _component_caret_bottom = vue.resolveComponent("caret-bottom");
|
|
958
962
|
const _component_caret_right = vue.resolveComponent("caret-right");
|
|
959
963
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
@@ -965,7 +969,7 @@
|
|
|
965
969
|
"body-style": { display: _ctx.expand ? "block" : "none" }
|
|
966
970
|
}, {
|
|
967
971
|
header: vue.withCtx(() => [
|
|
968
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
972
|
+
vue.createElementVNode("div", _hoisted_1$8, [
|
|
969
973
|
vue.createElementVNode("a", {
|
|
970
974
|
href: "javascript:",
|
|
971
975
|
style: { "width": "100%", "display": "block" },
|
|
@@ -1023,9 +1027,9 @@
|
|
|
1023
1027
|
_: 3
|
|
1024
1028
|
}, 8, ["body-style"])) : vue.createCommentVNode("", true);
|
|
1025
1029
|
}
|
|
1026
|
-
|
|
1030
|
+
const Panel = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$l]]);
|
|
1027
1031
|
|
|
1028
|
-
const _sfc_main$
|
|
1032
|
+
const _sfc_main$p = vue.defineComponent({
|
|
1029
1033
|
props: {
|
|
1030
1034
|
labelWidth: String,
|
|
1031
1035
|
expandMore: Boolean,
|
|
@@ -1052,7 +1056,8 @@
|
|
|
1052
1056
|
};
|
|
1053
1057
|
}
|
|
1054
1058
|
});
|
|
1055
|
-
|
|
1059
|
+
|
|
1060
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1056
1061
|
const _component_m_form_container = vue.resolveComponent("m-form-container");
|
|
1057
1062
|
const _component_el_col = vue.resolveComponent("el-col");
|
|
1058
1063
|
return vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_col, { span: _ctx.span }, {
|
|
@@ -1072,9 +1077,9 @@
|
|
|
1072
1077
|
[vue.vShow, _ctx.display && _ctx.config.type !== "hidden"]
|
|
1073
1078
|
]);
|
|
1074
1079
|
}
|
|
1075
|
-
|
|
1080
|
+
const Col = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$k]]);
|
|
1076
1081
|
|
|
1077
|
-
const _sfc_main$
|
|
1082
|
+
const _sfc_main$o = vue.defineComponent({
|
|
1078
1083
|
name: "m-form-row",
|
|
1079
1084
|
components: { Col },
|
|
1080
1085
|
props: {
|
|
@@ -1102,7 +1107,8 @@
|
|
|
1102
1107
|
};
|
|
1103
1108
|
}
|
|
1104
1109
|
});
|
|
1105
|
-
|
|
1110
|
+
|
|
1111
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1106
1112
|
const _component_Col = vue.resolveComponent("Col");
|
|
1107
1113
|
const _component_el_row = vue.resolveComponent("el-row");
|
|
1108
1114
|
return vue.openBlock(), vue.createBlock(_component_el_row, { gutter: 10 }, {
|
|
@@ -1124,9 +1130,9 @@
|
|
|
1124
1130
|
_: 1
|
|
1125
1131
|
});
|
|
1126
1132
|
}
|
|
1127
|
-
|
|
1133
|
+
const Row = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$j]]);
|
|
1128
1134
|
|
|
1129
|
-
const _sfc_main$
|
|
1135
|
+
const _sfc_main$n = vue.defineComponent({
|
|
1130
1136
|
name: "m-form-step",
|
|
1131
1137
|
props: {
|
|
1132
1138
|
model: {
|
|
@@ -1161,7 +1167,8 @@
|
|
|
1161
1167
|
return { mForm, active, stepClick, changeHandler };
|
|
1162
1168
|
}
|
|
1163
1169
|
});
|
|
1164
|
-
|
|
1170
|
+
|
|
1171
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1165
1172
|
const _component_el_step = vue.resolveComponent("el-step");
|
|
1166
1173
|
const _component_el_steps = vue.resolveComponent("el-steps");
|
|
1167
1174
|
const _component_m_form_container = vue.resolveComponent("m-form-container");
|
|
@@ -1204,11 +1211,11 @@
|
|
|
1204
1211
|
}), 256))
|
|
1205
1212
|
]);
|
|
1206
1213
|
}
|
|
1207
|
-
|
|
1214
|
+
const MStep = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$i]]);
|
|
1208
1215
|
|
|
1209
1216
|
let loadedAMapJS = false;
|
|
1210
1217
|
let firstLoadingAMapJS = true;
|
|
1211
|
-
const _sfc_main$
|
|
1218
|
+
const _sfc_main$m = vue.defineComponent({
|
|
1212
1219
|
name: "m-form-table",
|
|
1213
1220
|
props: {
|
|
1214
1221
|
name: {
|
|
@@ -1284,7 +1291,7 @@
|
|
|
1284
1291
|
const tableEl = elTable.value?.$el;
|
|
1285
1292
|
if (tableEl?.querySelectorAll(".el-table__body > tbody")) {
|
|
1286
1293
|
const el = tableEl.querySelectorAll(".el-table__body > tbody")[0];
|
|
1287
|
-
const sortable = Sortable__default
|
|
1294
|
+
const sortable = Sortable__default.default.create(el, {
|
|
1288
1295
|
onEnd: ({ newIndex, oldIndex }) => {
|
|
1289
1296
|
if (typeof newIndex === "undefined")
|
|
1290
1297
|
return;
|
|
@@ -1577,7 +1584,8 @@
|
|
|
1577
1584
|
};
|
|
1578
1585
|
}
|
|
1579
1586
|
});
|
|
1580
|
-
|
|
1587
|
+
|
|
1588
|
+
const _hoisted_1$7 = ["innerHTML"];
|
|
1581
1589
|
const _hoisted_2$2 = { class: "el-form-item__content" };
|
|
1582
1590
|
const _hoisted_3$2 = ["innerHTML"];
|
|
1583
1591
|
const _hoisted_4$1 = /* @__PURE__ */ vue.createTextVNode("\u6DFB\u52A0");
|
|
@@ -1590,7 +1598,7 @@
|
|
|
1590
1598
|
class: "bottom",
|
|
1591
1599
|
style: { "text-align": "right" }
|
|
1592
1600
|
};
|
|
1593
|
-
function _sfc_render$
|
|
1601
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1594
1602
|
const _component_el_table_column = vue.resolveComponent("el-table-column");
|
|
1595
1603
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
1596
1604
|
const _component_el_tooltip = vue.resolveComponent("el-tooltip");
|
|
@@ -1606,7 +1614,7 @@
|
|
|
1606
1614
|
key: 0,
|
|
1607
1615
|
style: { "color": "rgba(0, 0, 0, 0.45)" },
|
|
1608
1616
|
innerHTML: _ctx.config.extra
|
|
1609
|
-
}, null, 8, _hoisted_1$
|
|
1617
|
+
}, null, 8, _hoisted_1$7)) : vue.createCommentVNode("", true),
|
|
1610
1618
|
vue.createElementVNode("div", _hoisted_2$2, [
|
|
1611
1619
|
vue.createVNode(_component_el_tooltip, {
|
|
1612
1620
|
content: "\u62D6\u62FD\u53EF\u6392\u5E8F",
|
|
@@ -1839,7 +1847,7 @@
|
|
|
1839
1847
|
])
|
|
1840
1848
|
], 2);
|
|
1841
1849
|
}
|
|
1842
|
-
|
|
1850
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$h]]);
|
|
1843
1851
|
|
|
1844
1852
|
const getActive = (mForm, props, activeTabName) => {
|
|
1845
1853
|
const { config, model, prop } = props;
|
|
@@ -1958,8 +1966,8 @@
|
|
|
1958
1966
|
};
|
|
1959
1967
|
}
|
|
1960
1968
|
});
|
|
1961
|
-
|
|
1962
|
-
function _sfc_render$
|
|
1969
|
+
|
|
1970
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1963
1971
|
const _component_m_form_container = vue.resolveComponent("m-form-container");
|
|
1964
1972
|
const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
|
|
1965
1973
|
const _component_el_tabs = vue.resolveComponent("el-tabs");
|
|
@@ -2005,7 +2013,7 @@
|
|
|
2005
2013
|
_: 1
|
|
2006
2014
|
}, 8, ["modelValue", "class", "type", "editable", "tab-position", "onTabClick", "onTabAdd", "onTabRemove"]);
|
|
2007
2015
|
}
|
|
2008
|
-
|
|
2016
|
+
const Tabs = /* @__PURE__ */ _export_sfc(Tab, [["render", _sfc_render$g]]);
|
|
2009
2017
|
|
|
2010
2018
|
let $MAGIC_FORM = {};
|
|
2011
2019
|
const setConfig = (option) => {
|
|
@@ -2013,7 +2021,7 @@
|
|
|
2013
2021
|
};
|
|
2014
2022
|
const getConfig = (key) => $MAGIC_FORM[key];
|
|
2015
2023
|
|
|
2016
|
-
|
|
2024
|
+
const fieldProps = {
|
|
2017
2025
|
model: {
|
|
2018
2026
|
type: Object,
|
|
2019
2027
|
required: true,
|
|
@@ -2064,8 +2072,8 @@
|
|
|
2064
2072
|
const vm = vue.getCurrentInstance();
|
|
2065
2073
|
useAddField(props.prop);
|
|
2066
2074
|
const requestFunc = getConfig("request");
|
|
2067
|
-
const cascader = vue.ref(
|
|
2068
|
-
const dialog = vue.ref(
|
|
2075
|
+
const cascader = vue.ref();
|
|
2076
|
+
const dialog = vue.ref();
|
|
2069
2077
|
const options = Array.isArray(props.config.options) ? vue.ref(props.config.options) : vue.ref([]);
|
|
2070
2078
|
const remoteData = vue.ref(null);
|
|
2071
2079
|
const setRemoteOptions = async function() {
|
|
@@ -2142,13 +2150,14 @@
|
|
|
2142
2150
|
};
|
|
2143
2151
|
}
|
|
2144
2152
|
});
|
|
2145
|
-
|
|
2153
|
+
|
|
2154
|
+
const _hoisted_1$6 = {
|
|
2146
2155
|
class: "m-cascader",
|
|
2147
2156
|
style: { "width": "100%" }
|
|
2148
2157
|
};
|
|
2149
|
-
function _sfc_render$
|
|
2158
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2150
2159
|
const _component_el_cascader = vue.resolveComponent("el-cascader");
|
|
2151
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2160
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
2152
2161
|
vue.createVNode(_component_el_cascader, {
|
|
2153
2162
|
modelValue: _ctx.model[_ctx.name],
|
|
2154
2163
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
@@ -2165,7 +2174,7 @@
|
|
|
2165
2174
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "options", "props", "onChange"])
|
|
2166
2175
|
]);
|
|
2167
2176
|
}
|
|
2168
|
-
|
|
2177
|
+
const Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$f]]);
|
|
2169
2178
|
|
|
2170
2179
|
const _sfc_main$k = vue.defineComponent({
|
|
2171
2180
|
name: "m-fields-checkbox",
|
|
@@ -2206,7 +2215,8 @@
|
|
|
2206
2215
|
};
|
|
2207
2216
|
}
|
|
2208
2217
|
});
|
|
2209
|
-
|
|
2218
|
+
|
|
2219
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2210
2220
|
const _component_el_checkbox = vue.resolveComponent("el-checkbox");
|
|
2211
2221
|
return vue.openBlock(), vue.createBlock(_component_el_checkbox, {
|
|
2212
2222
|
modelValue: _ctx.model[_ctx.name],
|
|
@@ -2219,7 +2229,7 @@
|
|
|
2219
2229
|
onChange: _ctx.changeHandler
|
|
2220
2230
|
}, null, 8, ["modelValue", "size", "trueLabel", "falseLabel", "disabled", "label", "onChange"]);
|
|
2221
2231
|
}
|
|
2222
|
-
|
|
2232
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$e]]);
|
|
2223
2233
|
|
|
2224
2234
|
const _sfc_main$j = vue.defineComponent({
|
|
2225
2235
|
name: "m-fields-checkbox-group",
|
|
@@ -2243,7 +2253,8 @@
|
|
|
2243
2253
|
};
|
|
2244
2254
|
}
|
|
2245
2255
|
});
|
|
2246
|
-
|
|
2256
|
+
|
|
2257
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2247
2258
|
const _component_el_checkbox = vue.resolveComponent("el-checkbox");
|
|
2248
2259
|
const _component_el_checkbox_group = vue.resolveComponent("el-checkbox-group");
|
|
2249
2260
|
return vue.openBlock(), vue.createBlock(_component_el_checkbox_group, {
|
|
@@ -2269,20 +2280,19 @@
|
|
|
2269
2280
|
_: 1
|
|
2270
2281
|
}, 8, ["modelValue", "size", "disabled", "onChange"]);
|
|
2271
2282
|
}
|
|
2272
|
-
|
|
2283
|
+
const CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$d]]);
|
|
2273
2284
|
|
|
2274
|
-
const _hoisted_1$6 = { key: 0 };
|
|
2275
|
-
const __default__$2 = vue.defineComponent({
|
|
2276
|
-
name: "m-fields-color-picker"
|
|
2277
|
-
});
|
|
2278
2285
|
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
2279
|
-
|
|
2286
|
+
__name: "ColorPicker",
|
|
2280
2287
|
props: {
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2288
|
+
config: null,
|
|
2289
|
+
model: null,
|
|
2290
|
+
initValues: null,
|
|
2291
|
+
values: null,
|
|
2292
|
+
name: null,
|
|
2293
|
+
prop: null,
|
|
2294
|
+
disabled: { type: Boolean },
|
|
2295
|
+
size: null
|
|
2286
2296
|
},
|
|
2287
2297
|
emits: ["change"],
|
|
2288
2298
|
setup(__props, { emit }) {
|
|
@@ -2291,16 +2301,14 @@
|
|
|
2291
2301
|
const changeHandler = (value) => emit("change", value);
|
|
2292
2302
|
return (_ctx, _cache) => {
|
|
2293
2303
|
const _component_el_color_picker = vue.resolveComponent("el-color-picker");
|
|
2294
|
-
return
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
}, null, 8, ["modelValue", "size", "disabled"])
|
|
2303
|
-
])) : vue.createCommentVNode("", true);
|
|
2304
|
+
return vue.openBlock(), vue.createBlock(_component_el_color_picker, {
|
|
2305
|
+
modelValue: __props.model[__props.name],
|
|
2306
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
2307
|
+
size: __props.size,
|
|
2308
|
+
disabled: __props.disabled,
|
|
2309
|
+
showAlpha: true,
|
|
2310
|
+
onChange: changeHandler
|
|
2311
|
+
}, null, 8, ["modelValue", "size", "disabled"]);
|
|
2304
2312
|
};
|
|
2305
2313
|
}
|
|
2306
2314
|
});
|
|
@@ -2325,7 +2333,8 @@
|
|
|
2325
2333
|
};
|
|
2326
2334
|
}
|
|
2327
2335
|
});
|
|
2328
|
-
|
|
2336
|
+
|
|
2337
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2329
2338
|
const _component_el_date_picker = vue.resolveComponent("el-date-picker");
|
|
2330
2339
|
return vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
2331
2340
|
modelValue: _ctx.model[_ctx.name],
|
|
@@ -2339,74 +2348,95 @@
|
|
|
2339
2348
|
onChange: _ctx.changeHandler
|
|
2340
2349
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "onChange"]);
|
|
2341
2350
|
}
|
|
2342
|
-
|
|
2351
|
+
const Date$1 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$c]]);
|
|
2343
2352
|
|
|
2344
|
-
const _sfc_main$g = vue.defineComponent({
|
|
2345
|
-
|
|
2353
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
2354
|
+
__name: "Daterange",
|
|
2346
2355
|
props: {
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2356
|
+
config: null,
|
|
2357
|
+
model: null,
|
|
2358
|
+
initValues: null,
|
|
2359
|
+
values: null,
|
|
2360
|
+
name: null,
|
|
2361
|
+
prop: null,
|
|
2362
|
+
disabled: { type: Boolean },
|
|
2363
|
+
size: null
|
|
2352
2364
|
},
|
|
2353
2365
|
emits: ["change"],
|
|
2354
|
-
setup(
|
|
2366
|
+
setup(__props, { emit }) {
|
|
2367
|
+
const props = __props;
|
|
2355
2368
|
useAddField(props.prop);
|
|
2356
2369
|
const { names } = props.config;
|
|
2357
2370
|
const value = vue.ref([]);
|
|
2358
2371
|
if (props.model !== void 0) {
|
|
2359
2372
|
if (names?.length) {
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
const setValue = (v) => {
|
|
2366
|
-
if (names?.length && v instanceof Array) {
|
|
2367
|
-
names.forEach((item, index) => {
|
|
2368
|
-
if (props.model) {
|
|
2369
|
-
props.model[item] = utils.datetimeFormatter(v[index].toString(), "");
|
|
2373
|
+
vue.watch([() => props.model[names[0]], () => props.model[names[1]]], ([start, end], [preStart, preEnd]) => {
|
|
2374
|
+
if (!value.value) {
|
|
2375
|
+
value.value = [];
|
|
2370
2376
|
}
|
|
2377
|
+
if (!start || !end)
|
|
2378
|
+
value.value = [];
|
|
2379
|
+
if (start !== preStart)
|
|
2380
|
+
value.value[0] = new Date(start);
|
|
2381
|
+
if (end !== preEnd)
|
|
2382
|
+
value.value[1] = new Date(end);
|
|
2383
|
+
}, {
|
|
2384
|
+
immediate: true
|
|
2371
2385
|
});
|
|
2372
|
-
} else if (props.
|
|
2373
|
-
props.model[props.name]
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
}
|
|
2386
|
+
} else if (props.name && props.model[props.name]) {
|
|
2387
|
+
vue.watch(() => props.model[props.name], (start, preStart) => {
|
|
2388
|
+
if (start !== preStart)
|
|
2389
|
+
value.value = start.map((item) => item ? new Date(item) : void 0);
|
|
2390
|
+
}, {
|
|
2391
|
+
immediate: true
|
|
2379
2392
|
});
|
|
2380
|
-
} else if (props.name) {
|
|
2381
|
-
props.model[props.name] = void 0;
|
|
2382
2393
|
}
|
|
2394
|
+
}
|
|
2395
|
+
const setValue = (v) => {
|
|
2396
|
+
names?.forEach((item, index) => {
|
|
2397
|
+
if (!props.model) {
|
|
2398
|
+
return;
|
|
2399
|
+
}
|
|
2400
|
+
if (Array.isArray(v)) {
|
|
2401
|
+
props.model[item] = utils.datetimeFormatter(v[index]?.toString(), "");
|
|
2402
|
+
} else {
|
|
2403
|
+
props.model[item] = void 0;
|
|
2404
|
+
}
|
|
2405
|
+
});
|
|
2383
2406
|
};
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2407
|
+
const changeHandler = (v) => {
|
|
2408
|
+
const value2 = v || [];
|
|
2409
|
+
if (props.name) {
|
|
2410
|
+
emit("change", value2.map((item) => {
|
|
2411
|
+
if (item)
|
|
2412
|
+
return utils.datetimeFormatter(item, "");
|
|
2413
|
+
return void 0;
|
|
2414
|
+
}));
|
|
2415
|
+
} else {
|
|
2416
|
+
if (names?.length) {
|
|
2417
|
+
setValue(value2);
|
|
2418
|
+
}
|
|
2419
|
+
emit("change", value2);
|
|
2389
2420
|
}
|
|
2390
2421
|
};
|
|
2422
|
+
return (_ctx, _cache) => {
|
|
2423
|
+
const _component_el_date_picker = vue.resolveComponent("el-date-picker");
|
|
2424
|
+
return vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
2425
|
+
modelValue: value.value,
|
|
2426
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
2427
|
+
type: "datetimerange",
|
|
2428
|
+
"range-separator": "-",
|
|
2429
|
+
"start-placeholder": "\u5F00\u59CB\u65E5\u671F",
|
|
2430
|
+
"end-placeholder": "\u7ED3\u675F\u65E5\u671F",
|
|
2431
|
+
size: __props.size,
|
|
2432
|
+
"unlink-panels": true,
|
|
2433
|
+
disabled: __props.disabled,
|
|
2434
|
+
"default-time": __props.config.defaultTime,
|
|
2435
|
+
onChange: changeHandler
|
|
2436
|
+
}, null, 8, ["modelValue", "size", "disabled", "default-time"]);
|
|
2437
|
+
};
|
|
2391
2438
|
}
|
|
2392
2439
|
});
|
|
2393
|
-
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2394
|
-
const _component_el_date_picker = vue.resolveComponent("el-date-picker");
|
|
2395
|
-
return vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
2396
|
-
modelValue: _ctx.value,
|
|
2397
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.value = $event),
|
|
2398
|
-
type: "datetimerange",
|
|
2399
|
-
"range-separator": "-",
|
|
2400
|
-
"start-placeholder": "\u5F00\u59CB\u65E5\u671F",
|
|
2401
|
-
"end-placeholder": "\u7ED3\u675F\u65E5\u671F",
|
|
2402
|
-
size: _ctx.size,
|
|
2403
|
-
"unlink-panels": true,
|
|
2404
|
-
disabled: _ctx.disabled,
|
|
2405
|
-
"default-time": _ctx.config.defaultTime,
|
|
2406
|
-
onChange: _ctx.changeHandler
|
|
2407
|
-
}, null, 8, ["modelValue", "size", "disabled", "default-time", "onChange"]);
|
|
2408
|
-
}
|
|
2409
|
-
var Daterange = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$c]]);
|
|
2410
2440
|
|
|
2411
2441
|
const _sfc_main$f = vue.defineComponent({
|
|
2412
2442
|
name: "m-fields-datetime",
|
|
@@ -2436,6 +2466,7 @@
|
|
|
2436
2466
|
};
|
|
2437
2467
|
}
|
|
2438
2468
|
});
|
|
2469
|
+
|
|
2439
2470
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2440
2471
|
const _component_el_date_picker = vue.resolveComponent("el-date-picker");
|
|
2441
2472
|
return vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
@@ -2452,30 +2483,27 @@
|
|
|
2452
2483
|
onChange: _ctx.changeHandler
|
|
2453
2484
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time", "onChange"]);
|
|
2454
2485
|
}
|
|
2455
|
-
|
|
2486
|
+
const DateTime = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$b]]);
|
|
2456
2487
|
|
|
2457
2488
|
const _hoisted_1$5 = { key: 0 };
|
|
2458
|
-
const __default__$1 = vue.defineComponent({
|
|
2459
|
-
name: "m-fields-display"
|
|
2460
|
-
});
|
|
2461
2489
|
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
2462
|
-
|
|
2490
|
+
__name: "Display",
|
|
2463
2491
|
props: {
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2492
|
+
config: null,
|
|
2493
|
+
model: null,
|
|
2494
|
+
initValues: null,
|
|
2495
|
+
values: null,
|
|
2496
|
+
name: null,
|
|
2497
|
+
prop: null
|
|
2469
2498
|
},
|
|
2470
2499
|
setup(__props) {
|
|
2471
2500
|
const props = __props;
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
props.model[n.value] = props.config.initValue;
|
|
2501
|
+
if (props.config.initValue && props.model) {
|
|
2502
|
+
props.model[props.name] = props.config.initValue;
|
|
2475
2503
|
}
|
|
2476
2504
|
useAddField(props.prop);
|
|
2477
2505
|
return (_ctx, _cache) => {
|
|
2478
|
-
return
|
|
2506
|
+
return __props.model ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$5, vue.toDisplayString(__props.model[__props.name]), 1)) : vue.createCommentVNode("", true);
|
|
2479
2507
|
};
|
|
2480
2508
|
}
|
|
2481
2509
|
});
|
|
@@ -2545,6 +2573,7 @@
|
|
|
2545
2573
|
}
|
|
2546
2574
|
}
|
|
2547
2575
|
});
|
|
2576
|
+
|
|
2548
2577
|
const _hoisted_1$4 = { class: "m-fields-dynamic-field" };
|
|
2549
2578
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2550
2579
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
@@ -2574,31 +2603,28 @@
|
|
|
2574
2603
|
})
|
|
2575
2604
|
]);
|
|
2576
2605
|
}
|
|
2577
|
-
|
|
2606
|
+
const DynamicField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$a]]);
|
|
2578
2607
|
|
|
2579
|
-
const __default__ = vue.defineComponent({
|
|
2580
|
-
name: "m-fields-hidden"
|
|
2581
|
-
});
|
|
2582
2608
|
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
2583
|
-
|
|
2609
|
+
__name: "Hidden",
|
|
2584
2610
|
props: {
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2611
|
+
config: null,
|
|
2612
|
+
model: null,
|
|
2613
|
+
initValues: null,
|
|
2614
|
+
values: null,
|
|
2615
|
+
name: null,
|
|
2616
|
+
prop: null
|
|
2590
2617
|
},
|
|
2591
2618
|
setup(__props) {
|
|
2592
2619
|
const props = __props;
|
|
2593
|
-
const n = vue.computed(() => props.name || props.config.name || "");
|
|
2594
2620
|
useAddField(props.prop);
|
|
2595
2621
|
return (_ctx, _cache) => {
|
|
2596
|
-
return
|
|
2622
|
+
return __props.model ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
2597
2623
|
key: 0,
|
|
2598
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2624
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
2599
2625
|
type: "hidden"
|
|
2600
2626
|
}, null, 512)), [
|
|
2601
|
-
[vue.vModelText,
|
|
2627
|
+
[vue.vModelText, __props.model[__props.name]]
|
|
2602
2628
|
]) : vue.createCommentVNode("", true);
|
|
2603
2629
|
};
|
|
2604
2630
|
}
|
|
@@ -2672,6 +2698,7 @@
|
|
|
2672
2698
|
};
|
|
2673
2699
|
}
|
|
2674
2700
|
});
|
|
2701
|
+
|
|
2675
2702
|
const _hoisted_1$3 = ["href"];
|
|
2676
2703
|
const _hoisted_2$1 = {
|
|
2677
2704
|
key: 2,
|
|
@@ -2712,7 +2739,7 @@
|
|
|
2712
2739
|
}, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen", "onSubmit"])
|
|
2713
2740
|
]));
|
|
2714
2741
|
}
|
|
2715
|
-
|
|
2742
|
+
const Link = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$9]]);
|
|
2716
2743
|
|
|
2717
2744
|
const _sfc_main$a = vue.defineComponent({
|
|
2718
2745
|
name: "m-fields-number",
|
|
@@ -2739,6 +2766,7 @@
|
|
|
2739
2766
|
};
|
|
2740
2767
|
}
|
|
2741
2768
|
});
|
|
2769
|
+
|
|
2742
2770
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2743
2771
|
const _component_el_input_number = vue.resolveComponent("el-input-number");
|
|
2744
2772
|
return _ctx.model ? (vue.openBlock(), vue.createBlock(_component_el_input_number, {
|
|
@@ -2757,7 +2785,7 @@
|
|
|
2757
2785
|
onInput: _ctx.inputHandler
|
|
2758
2786
|
}, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled", "onChange", "onInput"])) : vue.createCommentVNode("", true);
|
|
2759
2787
|
}
|
|
2760
|
-
|
|
2788
|
+
const Number$1 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$8]]);
|
|
2761
2789
|
|
|
2762
2790
|
const _sfc_main$9 = vue.defineComponent({
|
|
2763
2791
|
name: "m-fields-radio-group",
|
|
@@ -2776,6 +2804,7 @@
|
|
|
2776
2804
|
};
|
|
2777
2805
|
}
|
|
2778
2806
|
});
|
|
2807
|
+
|
|
2779
2808
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2780
2809
|
const _component_el_radio = vue.resolveComponent("el-radio");
|
|
2781
2810
|
const _component_el_radio_group = vue.resolveComponent("el-radio-group");
|
|
@@ -2803,7 +2832,7 @@
|
|
|
2803
2832
|
_: 1
|
|
2804
2833
|
}, 8, ["modelValue", "size", "disabled", "onChange"])) : vue.createCommentVNode("", true);
|
|
2805
2834
|
}
|
|
2806
|
-
|
|
2835
|
+
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$7]]);
|
|
2807
2836
|
|
|
2808
2837
|
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
2809
2838
|
__name: "SelectOptionGroups",
|
|
@@ -3128,6 +3157,7 @@
|
|
|
3128
3157
|
};
|
|
3129
3158
|
}
|
|
3130
3159
|
});
|
|
3160
|
+
|
|
3131
3161
|
const _hoisted_1$2 = { key: 2 };
|
|
3132
3162
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3133
3163
|
const _component_select_option_groups = vue.resolveComponent("select-option-groups");
|
|
@@ -3171,7 +3201,7 @@
|
|
|
3171
3201
|
[_directive_loading, _ctx.loading]
|
|
3172
3202
|
]) : vue.createCommentVNode("", true);
|
|
3173
3203
|
}
|
|
3174
|
-
|
|
3204
|
+
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
|
|
3175
3205
|
|
|
3176
3206
|
const _sfc_main$5 = vue.defineComponent({
|
|
3177
3207
|
name: "m-fields-switch",
|
|
@@ -3213,6 +3243,7 @@
|
|
|
3213
3243
|
};
|
|
3214
3244
|
}
|
|
3215
3245
|
});
|
|
3246
|
+
|
|
3216
3247
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3217
3248
|
const _component_el_switch = vue.resolveComponent("el-switch");
|
|
3218
3249
|
return _ctx.model ? (vue.openBlock(), vue.createBlock(_component_el_switch, {
|
|
@@ -3226,7 +3257,7 @@
|
|
|
3226
3257
|
onChange: _ctx.changeHandler
|
|
3227
3258
|
}, null, 8, ["modelValue", "size", "activeValue", "inactiveValue", "disabled", "onChange"])) : vue.createCommentVNode("", true);
|
|
3228
3259
|
}
|
|
3229
|
-
|
|
3260
|
+
const Switch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
|
|
3230
3261
|
|
|
3231
3262
|
const _sfc_main$4 = vue.defineComponent({
|
|
3232
3263
|
name: "m-fields-text",
|
|
@@ -3315,6 +3346,7 @@
|
|
|
3315
3346
|
};
|
|
3316
3347
|
}
|
|
3317
3348
|
});
|
|
3349
|
+
|
|
3318
3350
|
const _hoisted_1$1 = { key: 0 };
|
|
3319
3351
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3320
3352
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
@@ -3349,7 +3381,7 @@
|
|
|
3349
3381
|
} : void 0
|
|
3350
3382
|
]), 1032, ["modelValue", "size", "placeholder", "disabled", "onChange", "onInput"]);
|
|
3351
3383
|
}
|
|
3352
|
-
|
|
3384
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
3353
3385
|
|
|
3354
3386
|
const _sfc_main$3 = vue.defineComponent({
|
|
3355
3387
|
name: "m-fields-textarea",
|
|
@@ -3383,6 +3415,7 @@
|
|
|
3383
3415
|
};
|
|
3384
3416
|
}
|
|
3385
3417
|
});
|
|
3418
|
+
|
|
3386
3419
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3387
3420
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
3388
3421
|
return vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
@@ -3397,7 +3430,7 @@
|
|
|
3397
3430
|
onInput: _ctx.inputHandler
|
|
3398
3431
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange", "onInput"]);
|
|
3399
3432
|
}
|
|
3400
|
-
|
|
3433
|
+
const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
3401
3434
|
|
|
3402
3435
|
const _sfc_main$2 = vue.defineComponent({
|
|
3403
3436
|
name: "m-fields-time",
|
|
@@ -3422,6 +3455,7 @@
|
|
|
3422
3455
|
};
|
|
3423
3456
|
}
|
|
3424
3457
|
});
|
|
3458
|
+
|
|
3425
3459
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3426
3460
|
const _component_el_time_picker = vue.resolveComponent("el-time-picker");
|
|
3427
3461
|
return vue.openBlock(), vue.createBlock(_component_el_time_picker, {
|
|
@@ -3434,7 +3468,7 @@
|
|
|
3434
3468
|
onChange: _ctx.changeHandler
|
|
3435
3469
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange"]);
|
|
3436
3470
|
}
|
|
3437
|
-
|
|
3471
|
+
const Time = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
3438
3472
|
|
|
3439
3473
|
const _sfc_main$1 = vue.defineComponent({
|
|
3440
3474
|
name: "m-form",
|
|
@@ -3560,6 +3594,7 @@
|
|
|
3560
3594
|
};
|
|
3561
3595
|
}
|
|
3562
3596
|
});
|
|
3597
|
+
|
|
3563
3598
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3564
3599
|
const _component_m_form_container = vue.resolveComponent("m-form-container");
|
|
3565
3600
|
const _component_el_form = vue.resolveComponent("el-form");
|
|
@@ -3589,7 +3624,7 @@
|
|
|
3589
3624
|
_: 1
|
|
3590
3625
|
}, 8, ["model", "label-width", "disabled", "style", "inline", "label-position"]);
|
|
3591
3626
|
}
|
|
3592
|
-
|
|
3627
|
+
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
3593
3628
|
|
|
3594
3629
|
const _sfc_main = vue.defineComponent({
|
|
3595
3630
|
name: "m-form-dialog",
|
|
@@ -3679,6 +3714,7 @@
|
|
|
3679
3714
|
};
|
|
3680
3715
|
}
|
|
3681
3716
|
});
|
|
3717
|
+
|
|
3682
3718
|
const _hoisted_1 = { style: { "min-height": "1px" } };
|
|
3683
3719
|
const _hoisted_2 = /* @__PURE__ */ vue.createTextVNode("\u53D6 \u6D88");
|
|
3684
3720
|
const _hoisted_3 = /* @__PURE__ */ vue.createTextVNode("\u4E0A\u4E00\u6B65");
|
|
@@ -3791,9 +3827,9 @@
|
|
|
3791
3827
|
}, 8, ["modelValue", "title", "width", "fullscreen", "onClose"])
|
|
3792
3828
|
]);
|
|
3793
3829
|
}
|
|
3794
|
-
|
|
3830
|
+
const FormDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3795
3831
|
|
|
3796
|
-
|
|
3832
|
+
const index$1 = '';
|
|
3797
3833
|
|
|
3798
3834
|
const defaultInstallOpt = {};
|
|
3799
3835
|
const install = (app, opt) => {
|
|
@@ -3803,7 +3839,7 @@
|
|
|
3803
3839
|
app.component(Form.name, Form);
|
|
3804
3840
|
app.component(FormDialog.name, FormDialog);
|
|
3805
3841
|
app.component(Container.name, Container);
|
|
3806
|
-
app.component("m-form-fieldset", _sfc_main$
|
|
3842
|
+
app.component("m-form-fieldset", _sfc_main$t);
|
|
3807
3843
|
app.component(GroupList.name, GroupList);
|
|
3808
3844
|
app.component(Panel.name, Panel);
|
|
3809
3845
|
app.component(Row.name, Row);
|
|
@@ -3813,23 +3849,23 @@
|
|
|
3813
3849
|
app.component(Text.name, Text);
|
|
3814
3850
|
app.component(Number$1.name, Number$1);
|
|
3815
3851
|
app.component(Textarea.name, Textarea);
|
|
3816
|
-
app.component(
|
|
3852
|
+
app.component("m-fields-hidden", _sfc_main$c);
|
|
3817
3853
|
app.component(Date$1.name, Date$1);
|
|
3818
3854
|
app.component(DateTime.name, DateTime);
|
|
3819
3855
|
app.component(Time.name, Time);
|
|
3820
3856
|
app.component(Checkbox.name, Checkbox);
|
|
3821
3857
|
app.component(Switch.name, Switch);
|
|
3822
|
-
app.component(
|
|
3823
|
-
app.component(
|
|
3858
|
+
app.component("m-fields-daterange", _sfc_main$g);
|
|
3859
|
+
app.component("m-fields-color-picker", _sfc_main$i);
|
|
3824
3860
|
app.component(CheckboxGroup.name, CheckboxGroup);
|
|
3825
3861
|
app.component(RadioGroup.name, RadioGroup);
|
|
3826
|
-
app.component(
|
|
3862
|
+
app.component("m-fields-display", _sfc_main$e);
|
|
3827
3863
|
app.component(Link.name, Link);
|
|
3828
3864
|
app.component(Select.name, Select);
|
|
3829
3865
|
app.component(Cascader.name, Cascader);
|
|
3830
3866
|
app.component(DynamicField.name, DynamicField);
|
|
3831
3867
|
};
|
|
3832
|
-
|
|
3868
|
+
const index = {
|
|
3833
3869
|
install
|
|
3834
3870
|
};
|
|
3835
3871
|
|
|
@@ -3840,10 +3876,10 @@
|
|
|
3840
3876
|
exports.MContainer = Container;
|
|
3841
3877
|
exports.MDate = Date$1;
|
|
3842
3878
|
exports.MDateTime = DateTime;
|
|
3843
|
-
exports.MDaterange =
|
|
3879
|
+
exports.MDaterange = _sfc_main$g;
|
|
3844
3880
|
exports.MDisplay = _sfc_main$e;
|
|
3845
3881
|
exports.MDynamicField = DynamicField;
|
|
3846
|
-
exports.MFieldset = _sfc_main$
|
|
3882
|
+
exports.MFieldset = _sfc_main$t;
|
|
3847
3883
|
exports.MForm = Form;
|
|
3848
3884
|
exports.MFormDialog = FormDialog;
|
|
3849
3885
|
exports.MGroupList = GroupList;
|
|
@@ -3860,7 +3896,7 @@
|
|
|
3860
3896
|
exports.MText = Text;
|
|
3861
3897
|
exports.MTextarea = Textarea;
|
|
3862
3898
|
exports.MTime = Time;
|
|
3863
|
-
exports
|
|
3899
|
+
exports.default = index;
|
|
3864
3900
|
exports.display = display;
|
|
3865
3901
|
exports.fieldProps = fieldProps;
|
|
3866
3902
|
exports.filterFunction = filterFunction;
|