@tmagic/form 1.1.0-beta.3 → 1.1.0-beta.6
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} +131 -115
- package/dist/tmagic-form.mjs.map +1 -0
- package/dist/tmagic-form.umd.js +134 -118
- package/dist/tmagic-form.umd.js.map +1 -1
- package/package.json +16 -14
- package/src/Form.vue +3 -7
- package/src/fields/Cascader.vue +3 -5
- package/src/fields/ColorPicker.vue +19 -26
- 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 +3 -3
- 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/{dist/types/src → types}/fields/Daterange.vue.d.ts +4 -4
- 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/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"];
|
|
@@ -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$p]]);
|
|
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,7 +657,8 @@ 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"];
|
|
@@ -667,7 +669,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
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$o]]);
|
|
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,
|
|
@@ -863,7 +866,7 @@ const _hoisted_7$1 = /* @__PURE__ */ createTextVNode("\u5207\u6362\u4E3A\u8868\u
|
|
|
863
866
|
function _sfc_render$n(_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$n]]);
|
|
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,
|
|
@@ -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$m]]);
|
|
1024
1028
|
|
|
1025
|
-
const _sfc_main$
|
|
1029
|
+
const _sfc_main$p = defineComponent({
|
|
1026
1030
|
props: {
|
|
1027
1031
|
labelWidth: String,
|
|
1028
1032
|
expandMore: Boolean,
|
|
@@ -1049,6 +1053,7 @@ const _sfc_main$q = defineComponent({
|
|
|
1049
1053
|
};
|
|
1050
1054
|
}
|
|
1051
1055
|
});
|
|
1056
|
+
|
|
1052
1057
|
function _sfc_render$l(_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");
|
|
@@ -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$l]]);
|
|
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,6 +1104,7 @@ const _sfc_main$p = defineComponent({
|
|
|
1099
1104
|
};
|
|
1100
1105
|
}
|
|
1101
1106
|
});
|
|
1107
|
+
|
|
1102
1108
|
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1103
1109
|
const _component_Col = resolveComponent("Col");
|
|
1104
1110
|
const _component_el_row = resolveComponent("el-row");
|
|
@@ -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$k]]);
|
|
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,6 +1164,7 @@ const _sfc_main$o = defineComponent({
|
|
|
1158
1164
|
return { mForm, active, stepClick, changeHandler };
|
|
1159
1165
|
}
|
|
1160
1166
|
});
|
|
1167
|
+
|
|
1161
1168
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1162
1169
|
const _component_el_step = resolveComponent("el-step");
|
|
1163
1170
|
const _component_el_steps = resolveComponent("el-steps");
|
|
@@ -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$j]]);
|
|
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");
|
|
@@ -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$i]]);
|
|
1840
1848
|
|
|
1841
1849
|
const getActive = (mForm, props, activeTabName) => {
|
|
1842
1850
|
const { config, model, prop } = props;
|
|
@@ -1955,7 +1963,7 @@ const Tab = defineComponent({
|
|
|
1955
1963
|
};
|
|
1956
1964
|
}
|
|
1957
1965
|
});
|
|
1958
|
-
|
|
1966
|
+
|
|
1959
1967
|
function _sfc_render$h(_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");
|
|
@@ -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$h]]);
|
|
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
2155
|
function _sfc_render$g(_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$g]]);
|
|
2166
2175
|
|
|
2167
2176
|
const _sfc_main$k = defineComponent({
|
|
2168
2177
|
name: "m-fields-checkbox",
|
|
@@ -2203,6 +2212,7 @@ const _sfc_main$k = defineComponent({
|
|
|
2203
2212
|
};
|
|
2204
2213
|
}
|
|
2205
2214
|
});
|
|
2215
|
+
|
|
2206
2216
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2207
2217
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
2208
2218
|
return openBlock(), createBlock(_component_el_checkbox, {
|
|
@@ -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$f]]);
|
|
2220
2230
|
|
|
2221
2231
|
const _sfc_main$j = defineComponent({
|
|
2222
2232
|
name: "m-fields-checkbox-group",
|
|
@@ -2240,6 +2250,7 @@ const _sfc_main$j = defineComponent({
|
|
|
2240
2250
|
};
|
|
2241
2251
|
}
|
|
2242
2252
|
});
|
|
2253
|
+
|
|
2243
2254
|
function _sfc_render$e(_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");
|
|
@@ -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$e]]);
|
|
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,6 +2330,7 @@ const _sfc_main$h = defineComponent({
|
|
|
2322
2330
|
};
|
|
2323
2331
|
}
|
|
2324
2332
|
});
|
|
2333
|
+
|
|
2325
2334
|
function _sfc_render$d(_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, {
|
|
@@ -2336,7 +2345,7 @@ 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$d]]);
|
|
2340
2349
|
|
|
2341
2350
|
const _sfc_main$g = defineComponent({
|
|
2342
2351
|
name: "m-fields-daterange",
|
|
@@ -2387,6 +2396,7 @@ const _sfc_main$g = defineComponent({
|
|
|
2387
2396
|
};
|
|
2388
2397
|
}
|
|
2389
2398
|
});
|
|
2399
|
+
|
|
2390
2400
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2391
2401
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
2392
2402
|
return openBlock(), createBlock(_component_el_date_picker, {
|
|
@@ -2403,7 +2413,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2403
2413
|
onChange: _ctx.changeHandler
|
|
2404
2414
|
}, null, 8, ["modelValue", "size", "disabled", "default-time", "onChange"]);
|
|
2405
2415
|
}
|
|
2406
|
-
|
|
2416
|
+
const Daterange = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$c]]);
|
|
2407
2417
|
|
|
2408
2418
|
const _sfc_main$f = defineComponent({
|
|
2409
2419
|
name: "m-fields-datetime",
|
|
@@ -2433,6 +2443,7 @@ const _sfc_main$f = defineComponent({
|
|
|
2433
2443
|
};
|
|
2434
2444
|
}
|
|
2435
2445
|
});
|
|
2446
|
+
|
|
2436
2447
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2437
2448
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
2438
2449
|
return openBlock(), createBlock(_component_el_date_picker, {
|
|
@@ -2449,30 +2460,27 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2449
2460
|
onChange: _ctx.changeHandler
|
|
2450
2461
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "format", "value-format", "default-time", "onChange"]);
|
|
2451
2462
|
}
|
|
2452
|
-
|
|
2463
|
+
const DateTime = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$b]]);
|
|
2453
2464
|
|
|
2454
2465
|
const _hoisted_1$5 = { key: 0 };
|
|
2455
|
-
const __default__$1 = defineComponent({
|
|
2456
|
-
name: "m-fields-display"
|
|
2457
|
-
});
|
|
2458
2466
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2459
|
-
|
|
2467
|
+
__name: "Display",
|
|
2460
2468
|
props: {
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2469
|
+
config: null,
|
|
2470
|
+
model: null,
|
|
2471
|
+
initValues: null,
|
|
2472
|
+
values: null,
|
|
2473
|
+
name: null,
|
|
2474
|
+
prop: null
|
|
2466
2475
|
},
|
|
2467
2476
|
setup(__props) {
|
|
2468
2477
|
const props = __props;
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
props.model[n.value] = props.config.initValue;
|
|
2478
|
+
if (props.config.initValue && props.model) {
|
|
2479
|
+
props.model[props.name] = props.config.initValue;
|
|
2472
2480
|
}
|
|
2473
2481
|
useAddField(props.prop);
|
|
2474
2482
|
return (_ctx, _cache) => {
|
|
2475
|
-
return
|
|
2483
|
+
return __props.model ? (openBlock(), createElementBlock("span", _hoisted_1$5, toDisplayString(__props.model[__props.name]), 1)) : createCommentVNode("", true);
|
|
2476
2484
|
};
|
|
2477
2485
|
}
|
|
2478
2486
|
});
|
|
@@ -2542,6 +2550,7 @@ const _sfc_main$d = defineComponent({
|
|
|
2542
2550
|
}
|
|
2543
2551
|
}
|
|
2544
2552
|
});
|
|
2553
|
+
|
|
2545
2554
|
const _hoisted_1$4 = { class: "m-fields-dynamic-field" };
|
|
2546
2555
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2547
2556
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -2571,31 +2580,28 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2571
2580
|
})
|
|
2572
2581
|
]);
|
|
2573
2582
|
}
|
|
2574
|
-
|
|
2583
|
+
const DynamicField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$a]]);
|
|
2575
2584
|
|
|
2576
|
-
const __default__ = defineComponent({
|
|
2577
|
-
name: "m-fields-hidden"
|
|
2578
|
-
});
|
|
2579
2585
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2580
|
-
|
|
2586
|
+
__name: "Hidden",
|
|
2581
2587
|
props: {
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2588
|
+
config: null,
|
|
2589
|
+
model: null,
|
|
2590
|
+
initValues: null,
|
|
2591
|
+
values: null,
|
|
2592
|
+
name: null,
|
|
2593
|
+
prop: null
|
|
2587
2594
|
},
|
|
2588
2595
|
setup(__props) {
|
|
2589
2596
|
const props = __props;
|
|
2590
|
-
const n = computed(() => props.name || props.config.name || "");
|
|
2591
2597
|
useAddField(props.prop);
|
|
2592
2598
|
return (_ctx, _cache) => {
|
|
2593
|
-
return
|
|
2599
|
+
return __props.model ? withDirectives((openBlock(), createElementBlock("input", {
|
|
2594
2600
|
key: 0,
|
|
2595
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
2601
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.model[__props.name] = $event),
|
|
2596
2602
|
type: "hidden"
|
|
2597
2603
|
}, null, 512)), [
|
|
2598
|
-
[vModelText,
|
|
2604
|
+
[vModelText, __props.model[__props.name]]
|
|
2599
2605
|
]) : createCommentVNode("", true);
|
|
2600
2606
|
};
|
|
2601
2607
|
}
|
|
@@ -2669,6 +2675,7 @@ const _sfc_main$b = defineComponent({
|
|
|
2669
2675
|
};
|
|
2670
2676
|
}
|
|
2671
2677
|
});
|
|
2678
|
+
|
|
2672
2679
|
const _hoisted_1$3 = ["href"];
|
|
2673
2680
|
const _hoisted_2$1 = {
|
|
2674
2681
|
key: 2,
|
|
@@ -2709,7 +2716,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2709
2716
|
}, null, 8, ["title", "width", "values", "config", "parentValues", "fullscreen", "onSubmit"])
|
|
2710
2717
|
]));
|
|
2711
2718
|
}
|
|
2712
|
-
|
|
2719
|
+
const Link = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$9]]);
|
|
2713
2720
|
|
|
2714
2721
|
const _sfc_main$a = defineComponent({
|
|
2715
2722
|
name: "m-fields-number",
|
|
@@ -2736,6 +2743,7 @@ const _sfc_main$a = defineComponent({
|
|
|
2736
2743
|
};
|
|
2737
2744
|
}
|
|
2738
2745
|
});
|
|
2746
|
+
|
|
2739
2747
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2740
2748
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
2741
2749
|
return _ctx.model ? (openBlock(), createBlock(_component_el_input_number, {
|
|
@@ -2754,7 +2762,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2754
2762
|
onInput: _ctx.inputHandler
|
|
2755
2763
|
}, null, 8, ["modelValue", "size", "max", "min", "step", "placeholder", "disabled", "onChange", "onInput"])) : createCommentVNode("", true);
|
|
2756
2764
|
}
|
|
2757
|
-
|
|
2765
|
+
const Number$1 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$8]]);
|
|
2758
2766
|
|
|
2759
2767
|
const _sfc_main$9 = defineComponent({
|
|
2760
2768
|
name: "m-fields-radio-group",
|
|
@@ -2773,6 +2781,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
2773
2781
|
};
|
|
2774
2782
|
}
|
|
2775
2783
|
});
|
|
2784
|
+
|
|
2776
2785
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2777
2786
|
const _component_el_radio = resolveComponent("el-radio");
|
|
2778
2787
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
@@ -2800,7 +2809,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2800
2809
|
_: 1
|
|
2801
2810
|
}, 8, ["modelValue", "size", "disabled", "onChange"])) : createCommentVNode("", true);
|
|
2802
2811
|
}
|
|
2803
|
-
|
|
2812
|
+
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$7]]);
|
|
2804
2813
|
|
|
2805
2814
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2806
2815
|
__name: "SelectOptionGroups",
|
|
@@ -3125,6 +3134,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
3125
3134
|
};
|
|
3126
3135
|
}
|
|
3127
3136
|
});
|
|
3137
|
+
|
|
3128
3138
|
const _hoisted_1$2 = { key: 2 };
|
|
3129
3139
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3130
3140
|
const _component_select_option_groups = resolveComponent("select-option-groups");
|
|
@@ -3168,7 +3178,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3168
3178
|
[_directive_loading, _ctx.loading]
|
|
3169
3179
|
]) : createCommentVNode("", true);
|
|
3170
3180
|
}
|
|
3171
|
-
|
|
3181
|
+
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
|
|
3172
3182
|
|
|
3173
3183
|
const _sfc_main$5 = defineComponent({
|
|
3174
3184
|
name: "m-fields-switch",
|
|
@@ -3210,6 +3220,7 @@ const _sfc_main$5 = defineComponent({
|
|
|
3210
3220
|
};
|
|
3211
3221
|
}
|
|
3212
3222
|
});
|
|
3223
|
+
|
|
3213
3224
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3214
3225
|
const _component_el_switch = resolveComponent("el-switch");
|
|
3215
3226
|
return _ctx.model ? (openBlock(), createBlock(_component_el_switch, {
|
|
@@ -3223,7 +3234,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3223
3234
|
onChange: _ctx.changeHandler
|
|
3224
3235
|
}, null, 8, ["modelValue", "size", "activeValue", "inactiveValue", "disabled", "onChange"])) : createCommentVNode("", true);
|
|
3225
3236
|
}
|
|
3226
|
-
|
|
3237
|
+
const Switch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
|
|
3227
3238
|
|
|
3228
3239
|
const _sfc_main$4 = defineComponent({
|
|
3229
3240
|
name: "m-fields-text",
|
|
@@ -3312,6 +3323,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
3312
3323
|
};
|
|
3313
3324
|
}
|
|
3314
3325
|
});
|
|
3326
|
+
|
|
3315
3327
|
const _hoisted_1$1 = { key: 0 };
|
|
3316
3328
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3317
3329
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -3346,7 +3358,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3346
3358
|
} : void 0
|
|
3347
3359
|
]), 1032, ["modelValue", "size", "placeholder", "disabled", "onChange", "onInput"]);
|
|
3348
3360
|
}
|
|
3349
|
-
|
|
3361
|
+
const Text = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
3350
3362
|
|
|
3351
3363
|
const _sfc_main$3 = defineComponent({
|
|
3352
3364
|
name: "m-fields-textarea",
|
|
@@ -3380,6 +3392,7 @@ const _sfc_main$3 = defineComponent({
|
|
|
3380
3392
|
};
|
|
3381
3393
|
}
|
|
3382
3394
|
});
|
|
3395
|
+
|
|
3383
3396
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3384
3397
|
const _component_el_input = resolveComponent("el-input");
|
|
3385
3398
|
return openBlock(), createBlock(_component_el_input, {
|
|
@@ -3394,7 +3407,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3394
3407
|
onInput: _ctx.inputHandler
|
|
3395
3408
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange", "onInput"]);
|
|
3396
3409
|
}
|
|
3397
|
-
|
|
3410
|
+
const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
3398
3411
|
|
|
3399
3412
|
const _sfc_main$2 = defineComponent({
|
|
3400
3413
|
name: "m-fields-time",
|
|
@@ -3419,6 +3432,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
3419
3432
|
};
|
|
3420
3433
|
}
|
|
3421
3434
|
});
|
|
3435
|
+
|
|
3422
3436
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3423
3437
|
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
3424
3438
|
return openBlock(), createBlock(_component_el_time_picker, {
|
|
@@ -3431,7 +3445,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3431
3445
|
onChange: _ctx.changeHandler
|
|
3432
3446
|
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange"]);
|
|
3433
3447
|
}
|
|
3434
|
-
|
|
3448
|
+
const Time = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
3435
3449
|
|
|
3436
3450
|
const _sfc_main$1 = defineComponent({
|
|
3437
3451
|
name: "m-form",
|
|
@@ -3557,6 +3571,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
3557
3571
|
};
|
|
3558
3572
|
}
|
|
3559
3573
|
});
|
|
3574
|
+
|
|
3560
3575
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3561
3576
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
3562
3577
|
const _component_el_form = resolveComponent("el-form");
|
|
@@ -3586,7 +3601,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3586
3601
|
_: 1
|
|
3587
3602
|
}, 8, ["model", "label-width", "disabled", "style", "inline", "label-position"]);
|
|
3588
3603
|
}
|
|
3589
|
-
|
|
3604
|
+
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
3590
3605
|
|
|
3591
3606
|
const _sfc_main = defineComponent({
|
|
3592
3607
|
name: "m-form-dialog",
|
|
@@ -3676,6 +3691,7 @@ const _sfc_main = defineComponent({
|
|
|
3676
3691
|
};
|
|
3677
3692
|
}
|
|
3678
3693
|
});
|
|
3694
|
+
|
|
3679
3695
|
const _hoisted_1 = { style: { "min-height": "1px" } };
|
|
3680
3696
|
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u53D6 \u6D88");
|
|
3681
3697
|
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u4E0A\u4E00\u6B65");
|
|
@@ -3788,9 +3804,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3788
3804
|
}, 8, ["modelValue", "title", "width", "fullscreen", "onClose"])
|
|
3789
3805
|
]);
|
|
3790
3806
|
}
|
|
3791
|
-
|
|
3807
|
+
const FormDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
3792
3808
|
|
|
3793
|
-
|
|
3809
|
+
const index$1 = '';
|
|
3794
3810
|
|
|
3795
3811
|
const defaultInstallOpt = {};
|
|
3796
3812
|
const install = (app, opt) => {
|
|
@@ -3800,7 +3816,7 @@ const install = (app, opt) => {
|
|
|
3800
3816
|
app.component(Form.name, Form);
|
|
3801
3817
|
app.component(FormDialog.name, FormDialog);
|
|
3802
3818
|
app.component(Container.name, Container);
|
|
3803
|
-
app.component("m-form-fieldset", _sfc_main$
|
|
3819
|
+
app.component("m-form-fieldset", _sfc_main$t);
|
|
3804
3820
|
app.component(GroupList.name, GroupList);
|
|
3805
3821
|
app.component(Panel.name, Panel);
|
|
3806
3822
|
app.component(Row.name, Row);
|
|
@@ -3810,25 +3826,25 @@ const install = (app, opt) => {
|
|
|
3810
3826
|
app.component(Text.name, Text);
|
|
3811
3827
|
app.component(Number$1.name, Number$1);
|
|
3812
3828
|
app.component(Textarea.name, Textarea);
|
|
3813
|
-
app.component(
|
|
3829
|
+
app.component("m-fields-hidden", _sfc_main$c);
|
|
3814
3830
|
app.component(Date$1.name, Date$1);
|
|
3815
3831
|
app.component(DateTime.name, DateTime);
|
|
3816
3832
|
app.component(Time.name, Time);
|
|
3817
3833
|
app.component(Checkbox.name, Checkbox);
|
|
3818
3834
|
app.component(Switch.name, Switch);
|
|
3819
3835
|
app.component(Daterange.name, Daterange);
|
|
3820
|
-
app.component(
|
|
3836
|
+
app.component("m-fields-color-picker", _sfc_main$i);
|
|
3821
3837
|
app.component(CheckboxGroup.name, CheckboxGroup);
|
|
3822
3838
|
app.component(RadioGroup.name, RadioGroup);
|
|
3823
|
-
app.component(
|
|
3839
|
+
app.component("m-fields-display", _sfc_main$e);
|
|
3824
3840
|
app.component(Link.name, Link);
|
|
3825
3841
|
app.component(Select.name, Select);
|
|
3826
3842
|
app.component(Cascader.name, Cascader);
|
|
3827
3843
|
app.component(DynamicField.name, DynamicField);
|
|
3828
3844
|
};
|
|
3829
|
-
|
|
3845
|
+
const index = {
|
|
3830
3846
|
install
|
|
3831
3847
|
};
|
|
3832
3848
|
|
|
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, Daterange as MDaterange, _sfc_main$e as MDisplay, DynamicField as MDynamicField, _sfc_main$
|
|
3834
|
-
//# sourceMappingURL=tmagic-form.
|
|
3849
|
+
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, Daterange 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 };
|
|
3850
|
+
//# sourceMappingURL=tmagic-form.mjs.map
|