@tmagic/form 1.0.0-beta.13 → 1.0.0-beta.16
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/coverage/clover.xml +274 -261
- package/coverage/coverage-final.json +37 -36
- package/coverage/lcov-report/index.html +18 -18
- package/coverage/lcov-report/src/Form.vue.html +2 -2
- package/coverage/lcov-report/src/FormDialog.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Col.vue.html +253 -0
- package/coverage/lcov-report/src/containers/Container.vue.html +28 -16
- package/coverage/lcov-report/src/containers/Fieldset.vue.html +1 -1
- package/coverage/lcov-report/src/containers/GroupList.vue.html +1 -1
- package/coverage/lcov-report/src/containers/GroupListItem.vue.html +5 -5
- package/coverage/lcov-report/src/containers/Panel.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Row.vue.html +22 -34
- package/coverage/lcov-report/src/containers/Step.vue.html +1 -1
- package/coverage/lcov-report/src/containers/Table.vue.html +32 -8
- package/coverage/lcov-report/src/containers/Tabs.vue.html +1 -1
- package/coverage/lcov-report/src/containers/index.html +41 -26
- package/coverage/lcov-report/src/fields/Cascader.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Checkbox.vue.html +3 -3
- package/coverage/lcov-report/src/fields/CheckboxGroup.vue.html +1 -1
- package/coverage/lcov-report/src/fields/ColorPicker.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Date.vue.html +1 -1
- package/coverage/lcov-report/src/fields/DateTime.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Daterange.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Display.vue.html +1 -1
- package/coverage/lcov-report/src/fields/DynamicField.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Hidden.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Link.vue.html +2 -2
- package/coverage/lcov-report/src/fields/Number.vue.html +1 -1
- package/coverage/lcov-report/src/fields/RadioGroup.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Select.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Switch.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Text.vue.html +1 -1
- package/coverage/lcov-report/src/fields/Textarea.vue.html +13 -19
- package/coverage/lcov-report/src/fields/Time.vue.html +1 -1
- package/coverage/lcov-report/src/fields/index.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov-report/src/theme/index.html +1 -1
- package/coverage/lcov-report/src/theme/index.scss.html +1 -1
- package/coverage/lcov-report/src/utils/config.ts.html +1 -1
- package/coverage/lcov-report/src/utils/createForm.ts.html +1 -1
- package/coverage/lcov-report/src/utils/fieldProps.ts.html +1 -1
- package/coverage/lcov-report/src/utils/form.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/coverage/lcov-report/src/utils/useAddField.ts.html +1 -1
- package/coverage/lcov.info +528 -497
- package/dist/style.css +7 -9
- package/dist/tmagic-form.es.js +143 -99
- package/dist/tmagic-form.es.js.map +1 -1
- package/dist/tmagic-form.umd.js +143 -99
- package/dist/tmagic-form.umd.js.map +1 -1
- package/dist/types/src/Form.vue.d.ts +362 -0
- package/dist/types/src/FormDialog.vue.d.ts +757 -0
- package/dist/types/src/containers/Col.vue.d.ts +42 -0
- package/dist/types/src/containers/Container.vue.d.ts +1 -0
- package/dist/types/src/containers/Row.vue.d.ts +0 -1
- package/dist/types/src/containers/Table.vue.d.ts +2601 -0
- package/dist/types/src/fields/Checkbox.vue.d.ts +2 -2
- package/dist/types/src/fields/Link.vue.d.ts +1596 -0
- package/package.json +10 -6
- package/src/Form.vue +1 -1
- package/src/containers/Col.vue +56 -0
- package/src/containers/Container.vue +9 -5
- package/src/containers/GroupListItem.vue +4 -4
- package/src/containers/Row.vue +13 -17
- package/src/containers/Table.vue +14 -6
- package/src/fields/Checkbox.vue +2 -2
- package/src/fields/Link.vue +1 -1
- package/src/fields/Textarea.vue +11 -13
- package/src/theme/form.scss +24 -17
package/dist/tmagic-form.es.js
CHANGED
|
@@ -173,7 +173,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
173
173
|
return target;
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
const _sfc_main$
|
|
176
|
+
const _sfc_main$t = defineComponent({
|
|
177
177
|
name: "m-form-container",
|
|
178
178
|
components: { WarningFilled },
|
|
179
179
|
props: {
|
|
@@ -233,6 +233,7 @@ const _sfc_main$s = defineComponent({
|
|
|
233
233
|
}
|
|
234
234
|
return display(mForm, props.config.display, props);
|
|
235
235
|
});
|
|
236
|
+
const itemLabelWidth = computed(() => props.config.labelWidth || props.labelWidth);
|
|
236
237
|
watchEffect(() => {
|
|
237
238
|
expand.value = props.expandMore;
|
|
238
239
|
});
|
|
@@ -293,6 +294,7 @@ const _sfc_main$s = defineComponent({
|
|
|
293
294
|
itemProp,
|
|
294
295
|
items,
|
|
295
296
|
display: display$1,
|
|
297
|
+
itemLabelWidth,
|
|
296
298
|
tagName,
|
|
297
299
|
rule,
|
|
298
300
|
tooltip,
|
|
@@ -303,7 +305,7 @@ const _sfc_main$s = defineComponent({
|
|
|
303
305
|
};
|
|
304
306
|
}
|
|
305
307
|
});
|
|
306
|
-
const _hoisted_1$
|
|
308
|
+
const _hoisted_1$f = ["innerHTML"];
|
|
307
309
|
const _hoisted_2$7 = ["innerHTML"];
|
|
308
310
|
const _hoisted_3$7 = ["innerHTML"];
|
|
309
311
|
const _hoisted_4$6 = ["innerHTML"];
|
|
@@ -311,7 +313,7 @@ const _hoisted_5$4 = {
|
|
|
311
313
|
key: 4,
|
|
312
314
|
style: { "text-align": "center" }
|
|
313
315
|
};
|
|
314
|
-
function _sfc_render$
|
|
316
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
315
317
|
const _component_m_fields_hidden = resolveComponent("m-fields-hidden");
|
|
316
318
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
317
319
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -340,19 +342,20 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
340
342
|
prop: _ctx.itemProp,
|
|
341
343
|
"step-active": _ctx.stepActive,
|
|
342
344
|
"expand-more": _ctx.expand,
|
|
343
|
-
"label-width": _ctx.
|
|
345
|
+
"label-width": _ctx.itemLabelWidth,
|
|
344
346
|
onChange: _ctx.onChangeHandler
|
|
345
347
|
}, null, 8, ["size", "model", "config", "name", "prop", "step-active", "expand-more", "label-width", "onChange"])) : _ctx.type && _ctx.display ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
346
348
|
createVNode(_component_el_form_item, {
|
|
347
349
|
style: normalizeStyle(_ctx.config.tip ? "flex: 1" : ""),
|
|
350
|
+
class: normalizeClass({ hidden: _ctx.itemLabelWidth === 0 || !_ctx.config.text }),
|
|
348
351
|
prop: _ctx.itemProp,
|
|
349
|
-
"label-width": _ctx.
|
|
352
|
+
"label-width": _ctx.itemLabelWidth,
|
|
350
353
|
rules: _ctx.rule
|
|
351
354
|
}, {
|
|
352
355
|
label: withCtx(() => [
|
|
353
356
|
createElementVNode("span", {
|
|
354
357
|
innerHTML: _ctx.type === "checkbox" ? "" : _ctx.config.text
|
|
355
|
-
}, null, 8, _hoisted_1$
|
|
358
|
+
}, null, 8, _hoisted_1$f)
|
|
356
359
|
]),
|
|
357
360
|
default: withCtx(() => [
|
|
358
361
|
_ctx.tooltip ? (openBlock(), createBlock(_component_el_tooltip, { key: 0 }, {
|
|
@@ -389,10 +392,10 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
389
392
|
}, null, 8, _hoisted_3$7)) : createCommentVNode("", true)
|
|
390
393
|
]),
|
|
391
394
|
_: 1
|
|
392
|
-
}, 8, ["style", "prop", "label-width", "rules"]),
|
|
395
|
+
}, 8, ["style", "class", "prop", "label-width", "rules"]),
|
|
393
396
|
_ctx.config.tip ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
394
397
|
key: 0,
|
|
395
|
-
placement: "
|
|
398
|
+
placement: "left"
|
|
396
399
|
}, {
|
|
397
400
|
content: withCtx(() => [
|
|
398
401
|
createElementVNode("div", {
|
|
@@ -418,7 +421,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
418
421
|
size: _ctx.size,
|
|
419
422
|
"step-active": _ctx.stepActive,
|
|
420
423
|
"expand-more": _ctx.expand,
|
|
421
|
-
"label-width": _ctx.
|
|
424
|
+
"label-width": _ctx.itemLabelWidth,
|
|
422
425
|
prop: _ctx.itemProp,
|
|
423
426
|
onChange: _ctx.onChangeHandler
|
|
424
427
|
}, null, 8, ["model", "config", "size", "step-active", "expand-more", "label-width", "prop", "onChange"]);
|
|
@@ -426,7 +429,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
426
429
|
], 64)) : createCommentVNode("", true),
|
|
427
430
|
_ctx.config.expand && _ctx.type !== "fieldset" ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
428
431
|
createVNode(_component_el_button, {
|
|
429
|
-
|
|
432
|
+
text: "",
|
|
430
433
|
onClick: _ctx.expandHandler
|
|
431
434
|
}, {
|
|
432
435
|
default: withCtx(() => [
|
|
@@ -437,9 +440,9 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
437
440
|
])) : createCommentVNode("", true)
|
|
438
441
|
], 6)) : createCommentVNode("", true);
|
|
439
442
|
}
|
|
440
|
-
var Container = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
443
|
+
var Container = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$q]]);
|
|
441
444
|
|
|
442
|
-
const _sfc_main$
|
|
445
|
+
const _sfc_main$s = defineComponent({
|
|
443
446
|
name: "m-form-fieldset",
|
|
444
447
|
props: {
|
|
445
448
|
labelWidth: String,
|
|
@@ -491,7 +494,7 @@ const _sfc_main$r = defineComponent({
|
|
|
491
494
|
};
|
|
492
495
|
}
|
|
493
496
|
});
|
|
494
|
-
const _hoisted_1$
|
|
497
|
+
const _hoisted_1$e = ["innerHTML"];
|
|
495
498
|
const _hoisted_2$6 = ["innerHTML"];
|
|
496
499
|
const _hoisted_3$6 = { key: 1 };
|
|
497
500
|
const _hoisted_4$5 = ["innerHTML"];
|
|
@@ -505,7 +508,7 @@ const _hoisted_9$1 = {
|
|
|
505
508
|
};
|
|
506
509
|
const _hoisted_10$1 = { style: { "flex": "1" } };
|
|
507
510
|
const _hoisted_11 = ["src"];
|
|
508
|
-
function _sfc_render$
|
|
511
|
+
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
509
512
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
510
513
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
511
514
|
return (_ctx.name ? _ctx.model[_ctx.name] : _ctx.model) ? (openBlock(), createElementBlock("fieldset", {
|
|
@@ -525,7 +528,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
525
528
|
default: withCtx(() => [
|
|
526
529
|
createElementVNode("span", {
|
|
527
530
|
innerHTML: _ctx.config.legend
|
|
528
|
-
}, null, 8, _hoisted_1$
|
|
531
|
+
}, null, 8, _hoisted_1$e),
|
|
529
532
|
_ctx.config.extra ? (openBlock(), createElementBlock("span", {
|
|
530
533
|
key: 0,
|
|
531
534
|
innerHTML: _ctx.config.extra,
|
|
@@ -597,9 +600,9 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
597
600
|
}), 128)) : createCommentVNode("", true)
|
|
598
601
|
], 4)) : createCommentVNode("", true);
|
|
599
602
|
}
|
|
600
|
-
var Fieldset = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
603
|
+
var Fieldset = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$p]]);
|
|
601
604
|
|
|
602
|
-
const _sfc_main$
|
|
605
|
+
const _sfc_main$r = defineComponent({
|
|
603
606
|
name: "m-form-group-list-item",
|
|
604
607
|
components: { CaretRight, CaretBottom },
|
|
605
608
|
props: {
|
|
@@ -683,11 +686,11 @@ const _sfc_main$q = defineComponent({
|
|
|
683
686
|
};
|
|
684
687
|
}
|
|
685
688
|
});
|
|
686
|
-
const _hoisted_1$
|
|
689
|
+
const _hoisted_1$d = { class: "m-fields-group-list-item" };
|
|
687
690
|
const _hoisted_2$5 = /* @__PURE__ */ createTextVNode("\u4E0A\u79FB");
|
|
688
691
|
const _hoisted_3$5 = /* @__PURE__ */ createTextVNode("\u4E0B\u79FB");
|
|
689
692
|
const _hoisted_4$4 = ["innerHTML"];
|
|
690
|
-
function _sfc_render$
|
|
693
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
691
694
|
const _component_caret_bottom = resolveComponent("caret-bottom");
|
|
692
695
|
const _component_caret_right = resolveComponent("caret-right");
|
|
693
696
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -695,7 +698,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
695
698
|
const _component_CaretRight = resolveComponent("CaretRight");
|
|
696
699
|
const _component_CaretBottom = resolveComponent("CaretBottom");
|
|
697
700
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
698
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
701
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
699
702
|
createElementVNode("div", null, [
|
|
700
703
|
createVNode(_component_el_icon, {
|
|
701
704
|
style: { "margin-right": "7px" },
|
|
@@ -707,7 +710,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
707
710
|
_: 1
|
|
708
711
|
}, 8, ["onClick"]),
|
|
709
712
|
createVNode(_component_el_button, {
|
|
710
|
-
|
|
713
|
+
text: "",
|
|
711
714
|
onClick: _ctx.expandHandler
|
|
712
715
|
}, {
|
|
713
716
|
default: withCtx(() => [
|
|
@@ -716,7 +719,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
716
719
|
_: 1
|
|
717
720
|
}, 8, ["onClick"]),
|
|
718
721
|
withDirectives(createVNode(_component_el_button, {
|
|
719
|
-
|
|
722
|
+
text: "",
|
|
720
723
|
icon: _ctx.Delete,
|
|
721
724
|
style: { "color": "#f56c6c" },
|
|
722
725
|
onClick: _ctx.removeHandler
|
|
@@ -725,7 +728,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
725
728
|
]),
|
|
726
729
|
_ctx.movable() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
727
730
|
withDirectives(createVNode(_component_el_button, {
|
|
728
|
-
|
|
731
|
+
text: "",
|
|
729
732
|
size: "small",
|
|
730
733
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.changeOrder(-1))
|
|
731
734
|
}, {
|
|
@@ -743,7 +746,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
743
746
|
[vShow, _ctx.index !== 0]
|
|
744
747
|
]),
|
|
745
748
|
withDirectives(createVNode(_component_el_button, {
|
|
746
|
-
|
|
749
|
+
text: "",
|
|
747
750
|
size: "small",
|
|
748
751
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.changeOrder(1))
|
|
749
752
|
}, {
|
|
@@ -778,9 +781,9 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
778
781
|
}, null, 8, ["config", "model", "labelWidth", "prop", "size", "onChange"])) : createCommentVNode("", true)
|
|
779
782
|
]);
|
|
780
783
|
}
|
|
781
|
-
var MFieldsGroupListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
784
|
+
var MFieldsGroupListItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$o]]);
|
|
782
785
|
|
|
783
|
-
const _sfc_main$
|
|
786
|
+
const _sfc_main$q = defineComponent({
|
|
784
787
|
name: "m-form-group-list",
|
|
785
788
|
components: { MFieldsGroupListItem },
|
|
786
789
|
props: {
|
|
@@ -872,7 +875,7 @@ const _sfc_main$p = defineComponent({
|
|
|
872
875
|
};
|
|
873
876
|
}
|
|
874
877
|
});
|
|
875
|
-
const _hoisted_1$
|
|
878
|
+
const _hoisted_1$c = { class: "m-fields-group-list" };
|
|
876
879
|
const _hoisted_2$4 = ["innerHTML"];
|
|
877
880
|
const _hoisted_3$4 = {
|
|
878
881
|
key: 1,
|
|
@@ -884,10 +887,10 @@ const _hoisted_5$2 = [
|
|
|
884
887
|
];
|
|
885
888
|
const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("\u6DFB\u52A0\u7EC4");
|
|
886
889
|
const _hoisted_7$1 = /* @__PURE__ */ createTextVNode("\u5207\u6362\u4E3A\u8868\u683C");
|
|
887
|
-
function _sfc_render$
|
|
890
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
888
891
|
const _component_m_fields_group_list_item = resolveComponent("m-fields-group-list-item");
|
|
889
892
|
const _component_el_button = resolveComponent("el-button");
|
|
890
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
893
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
891
894
|
_ctx.config.extra ? (openBlock(), createElementBlock("div", {
|
|
892
895
|
key: 0,
|
|
893
896
|
innerHTML: _ctx.config.extra,
|
|
@@ -931,9 +934,9 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
931
934
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
932
935
|
]);
|
|
933
936
|
}
|
|
934
|
-
var GroupList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
937
|
+
var GroupList = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$n]]);
|
|
935
938
|
|
|
936
|
-
const _sfc_main$
|
|
939
|
+
const _sfc_main$p = defineComponent({
|
|
937
940
|
name: "m-form-panel",
|
|
938
941
|
components: { CaretBottom, CaretRight },
|
|
939
942
|
props: {
|
|
@@ -966,7 +969,7 @@ const _sfc_main$o = defineComponent({
|
|
|
966
969
|
};
|
|
967
970
|
}
|
|
968
971
|
});
|
|
969
|
-
const _hoisted_1$
|
|
972
|
+
const _hoisted_1$b = { class: "clearfix" };
|
|
970
973
|
const _hoisted_2$3 = ["innerHTML"];
|
|
971
974
|
const _hoisted_3$3 = {
|
|
972
975
|
key: 0,
|
|
@@ -974,7 +977,7 @@ const _hoisted_3$3 = {
|
|
|
974
977
|
};
|
|
975
978
|
const _hoisted_4$2 = { style: { "flex": "1" } };
|
|
976
979
|
const _hoisted_5$1 = ["src"];
|
|
977
|
-
function _sfc_render$
|
|
980
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
978
981
|
const _component_caret_bottom = resolveComponent("caret-bottom");
|
|
979
982
|
const _component_caret_right = resolveComponent("caret-right");
|
|
980
983
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -986,7 +989,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
986
989
|
"body-style": { display: _ctx.expand ? "block" : "none" }
|
|
987
990
|
}, {
|
|
988
991
|
header: withCtx(() => [
|
|
989
|
-
createElementVNode("div", _hoisted_1$
|
|
992
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
990
993
|
createElementVNode("a", {
|
|
991
994
|
href: "javascript:",
|
|
992
995
|
style: { "width": "100%", "display": "block" },
|
|
@@ -1044,10 +1047,60 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1044
1047
|
_: 3
|
|
1045
1048
|
}, 8, ["body-style"])) : createCommentVNode("", true);
|
|
1046
1049
|
}
|
|
1047
|
-
var Panel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1050
|
+
var Panel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$m]]);
|
|
1051
|
+
|
|
1052
|
+
const _sfc_main$o = defineComponent({
|
|
1053
|
+
props: {
|
|
1054
|
+
labelWidth: String,
|
|
1055
|
+
expandMore: Boolean,
|
|
1056
|
+
span: Number,
|
|
1057
|
+
model: {
|
|
1058
|
+
type: Object,
|
|
1059
|
+
default: () => ({})
|
|
1060
|
+
},
|
|
1061
|
+
config: {
|
|
1062
|
+
type: Object,
|
|
1063
|
+
default: () => ({})
|
|
1064
|
+
},
|
|
1065
|
+
prop: String,
|
|
1066
|
+
size: String
|
|
1067
|
+
},
|
|
1068
|
+
emits: ["change"],
|
|
1069
|
+
setup(props, { emit }) {
|
|
1070
|
+
const mForm = inject("mForm");
|
|
1071
|
+
const changeHandler = () => emit("change", props.model);
|
|
1072
|
+
return {
|
|
1073
|
+
mForm,
|
|
1074
|
+
display: computed(() => display(mForm, props.config.display, props)),
|
|
1075
|
+
changeHandler
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
});
|
|
1079
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1080
|
+
const _component_m_form_container = resolveComponent("m-form-container");
|
|
1081
|
+
const _component_el_col = resolveComponent("el-col");
|
|
1082
|
+
return withDirectives((openBlock(), createBlock(_component_el_col, { span: _ctx.span }, {
|
|
1083
|
+
default: withCtx(() => [
|
|
1084
|
+
createVNode(_component_m_form_container, {
|
|
1085
|
+
model: _ctx.model,
|
|
1086
|
+
config: _ctx.config,
|
|
1087
|
+
prop: _ctx.prop,
|
|
1088
|
+
"label-width": _ctx.config.labelWidth || _ctx.labelWidth,
|
|
1089
|
+
"expand-more": _ctx.expandMore,
|
|
1090
|
+
size: _ctx.size,
|
|
1091
|
+
onChange: _ctx.changeHandler
|
|
1092
|
+
}, null, 8, ["model", "config", "prop", "label-width", "expand-more", "size", "onChange"])
|
|
1093
|
+
]),
|
|
1094
|
+
_: 1
|
|
1095
|
+
}, 8, ["span"])), [
|
|
1096
|
+
[vShow, _ctx.display && _ctx.config.type !== "hidden"]
|
|
1097
|
+
]);
|
|
1098
|
+
}
|
|
1099
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$l]]);
|
|
1048
1100
|
|
|
1049
1101
|
const _sfc_main$n = defineComponent({
|
|
1050
1102
|
name: "m-form-row",
|
|
1103
|
+
components: { Col },
|
|
1051
1104
|
props: {
|
|
1052
1105
|
labelWidth: String,
|
|
1053
1106
|
expandMore: Boolean,
|
|
@@ -1069,38 +1122,27 @@ const _sfc_main$n = defineComponent({
|
|
|
1069
1122
|
const changeHandler = () => emit("change", props.name ? props.model[props.name] : props.model);
|
|
1070
1123
|
return {
|
|
1071
1124
|
mForm,
|
|
1072
|
-
display(config) {
|
|
1073
|
-
return display(mForm, config.display, props);
|
|
1074
|
-
},
|
|
1075
1125
|
changeHandler
|
|
1076
1126
|
};
|
|
1077
1127
|
}
|
|
1078
1128
|
});
|
|
1079
1129
|
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1080
|
-
const
|
|
1081
|
-
const _component_el_col = resolveComponent("el-col");
|
|
1130
|
+
const _component_Col = resolveComponent("Col");
|
|
1082
1131
|
const _component_el_row = resolveComponent("el-row");
|
|
1083
1132
|
return openBlock(), createBlock(_component_el_row, { gutter: 10 }, {
|
|
1084
1133
|
default: withCtx(() => [
|
|
1085
1134
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.items, (col, index) => {
|
|
1086
|
-
return openBlock(), createBlock(
|
|
1087
|
-
style: normalizeStyle(!_ctx.display(col) || col.type === "hidden" ? "display: none" : ""),
|
|
1135
|
+
return openBlock(), createBlock(_component_Col, {
|
|
1088
1136
|
key: col[_ctx.mForm?.keyProp || "__key"] ?? index,
|
|
1089
|
-
span: col.span || _ctx.config.span || 24 / _ctx.config.items.length
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
size: _ctx.size,
|
|
1099
|
-
onChange: _ctx.changeHandler
|
|
1100
|
-
}, null, 8, ["model", "config", "prop", "label-width", "expand-more", "size", "onChange"])
|
|
1101
|
-
]),
|
|
1102
|
-
_: 2
|
|
1103
|
-
}, 1032, ["style", "span"]);
|
|
1137
|
+
span: col.span || _ctx.config.span || 24 / _ctx.config.items.length,
|
|
1138
|
+
config: col,
|
|
1139
|
+
labelWidth: _ctx.config.labelWidth || _ctx.labelWidth,
|
|
1140
|
+
expandMore: _ctx.expandMore,
|
|
1141
|
+
model: _ctx.name ? _ctx.model[_ctx.name] : _ctx.model,
|
|
1142
|
+
prop: _ctx.prop,
|
|
1143
|
+
size: _ctx.size,
|
|
1144
|
+
onChange: _ctx.changeHandler
|
|
1145
|
+
}, null, 8, ["span", "config", "labelWidth", "expandMore", "model", "prop", "size", "onChange"]);
|
|
1104
1146
|
}), 128))
|
|
1105
1147
|
]),
|
|
1106
1148
|
_: 1
|
|
@@ -1559,7 +1601,7 @@ const _sfc_main$l = defineComponent({
|
|
|
1559
1601
|
};
|
|
1560
1602
|
}
|
|
1561
1603
|
});
|
|
1562
|
-
const _hoisted_1$
|
|
1604
|
+
const _hoisted_1$a = ["innerHTML"];
|
|
1563
1605
|
const _hoisted_2$2 = { class: "el-form-item__content" };
|
|
1564
1606
|
const _hoisted_3$2 = ["innerHTML"];
|
|
1565
1607
|
const _hoisted_4$1 = /* @__PURE__ */ createTextVNode("\u6DFB\u52A0");
|
|
@@ -1588,7 +1630,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1588
1630
|
key: 0,
|
|
1589
1631
|
style: { "color": "rgba(0, 0, 0, 0.45)" },
|
|
1590
1632
|
innerHTML: _ctx.config.extra
|
|
1591
|
-
}, null, 8, _hoisted_1$
|
|
1633
|
+
}, null, 8, _hoisted_1$a)) : createCommentVNode("", true),
|
|
1592
1634
|
createElementVNode("div", _hoisted_2$2, [
|
|
1593
1635
|
createVNode(_component_el_tooltip, {
|
|
1594
1636
|
content: "\u62D6\u62FD\u53EF\u6392\u5E8F",
|
|
@@ -1629,8 +1671,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1629
1671
|
}, {
|
|
1630
1672
|
default: withCtx((scope) => [
|
|
1631
1673
|
withDirectives(createVNode(_component_el_button, {
|
|
1632
|
-
|
|
1633
|
-
|
|
1674
|
+
type: "danger",
|
|
1675
|
+
text: "",
|
|
1634
1676
|
icon: _ctx.Delete,
|
|
1635
1677
|
onClick: ($event) => _ctx.removeHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1)
|
|
1636
1678
|
}, null, 8, ["icon", "onClick"]), [
|
|
@@ -1654,8 +1696,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1654
1696
|
createVNode(_component_el_button, {
|
|
1655
1697
|
plain: "",
|
|
1656
1698
|
size: "small",
|
|
1699
|
+
type: "primary",
|
|
1657
1700
|
icon: _ctx.ArrowUp,
|
|
1658
|
-
|
|
1701
|
+
text: "",
|
|
1659
1702
|
onClick: ($event) => _ctx.upHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1),
|
|
1660
1703
|
onDblclick: ($event) => _ctx.topHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1)
|
|
1661
1704
|
}, null, 8, ["icon", "onClick", "onDblclick"])
|
|
@@ -1671,8 +1714,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1671
1714
|
createVNode(_component_el_button, {
|
|
1672
1715
|
plain: "",
|
|
1673
1716
|
size: "small",
|
|
1717
|
+
type: "primary",
|
|
1674
1718
|
icon: _ctx.ArrowDown,
|
|
1675
|
-
|
|
1719
|
+
text: "",
|
|
1676
1720
|
onClick: ($event) => _ctx.downHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1),
|
|
1677
1721
|
onDblclick: ($event) => _ctx.bottomHandler(scope.$index + 1 + _ctx.pagecontext * _ctx.pagesize - 1)
|
|
1678
1722
|
}, null, 8, ["icon", "onClick", "onDblclick"])
|
|
@@ -1749,6 +1793,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1749
1793
|
key: 1,
|
|
1750
1794
|
icon: _ctx.Grid,
|
|
1751
1795
|
size: "small",
|
|
1796
|
+
type: "primary",
|
|
1752
1797
|
onClick: _ctx.toggleMode
|
|
1753
1798
|
}, {
|
|
1754
1799
|
default: withCtx(() => [
|
|
@@ -1760,6 +1805,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1760
1805
|
key: 2,
|
|
1761
1806
|
icon: _ctx.FullScreen,
|
|
1762
1807
|
size: "small",
|
|
1808
|
+
type: "primary",
|
|
1763
1809
|
onClick: _ctx.toggleFullscreen
|
|
1764
1810
|
}, {
|
|
1765
1811
|
default: withCtx(() => [
|
|
@@ -2110,13 +2156,13 @@ const _sfc_main$j = defineComponent({
|
|
|
2110
2156
|
};
|
|
2111
2157
|
}
|
|
2112
2158
|
});
|
|
2113
|
-
const _hoisted_1$
|
|
2159
|
+
const _hoisted_1$9 = {
|
|
2114
2160
|
class: "m-cascader",
|
|
2115
2161
|
style: { "width": "100%" }
|
|
2116
2162
|
};
|
|
2117
2163
|
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2118
2164
|
const _component_el_cascader = resolveComponent("el-cascader");
|
|
2119
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2165
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
2120
2166
|
createVNode(_component_el_cascader, {
|
|
2121
2167
|
modelValue: _ctx.model[_ctx.name],
|
|
2122
2168
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
@@ -2156,7 +2202,7 @@ const _sfc_main$i = defineComponent({
|
|
|
2156
2202
|
} else {
|
|
2157
2203
|
return props.config.activeValue;
|
|
2158
2204
|
}
|
|
2159
|
-
return
|
|
2205
|
+
return void 0;
|
|
2160
2206
|
}),
|
|
2161
2207
|
inactiveValue: computed(() => {
|
|
2162
2208
|
if (typeof props.config.inactiveValue === "undefined") {
|
|
@@ -2166,7 +2212,7 @@ const _sfc_main$i = defineComponent({
|
|
|
2166
2212
|
} else {
|
|
2167
2213
|
return props.config.inactiveValue;
|
|
2168
2214
|
}
|
|
2169
|
-
return
|
|
2215
|
+
return void 0;
|
|
2170
2216
|
}),
|
|
2171
2217
|
changeHandler(value) {
|
|
2172
2218
|
emit("change", value);
|
|
@@ -2239,7 +2285,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2239
2285
|
}
|
|
2240
2286
|
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$e]]);
|
|
2241
2287
|
|
|
2242
|
-
const _hoisted_1$
|
|
2288
|
+
const _hoisted_1$8 = { key: 0 };
|
|
2243
2289
|
const __default__$2 = defineComponent({
|
|
2244
2290
|
name: "m-fields-color-picker"
|
|
2245
2291
|
});
|
|
@@ -2259,7 +2305,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2259
2305
|
const changeHandler = (value) => emit("change", value);
|
|
2260
2306
|
return (_ctx, _cache) => {
|
|
2261
2307
|
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
2262
|
-
return _ctx.model ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2308
|
+
return _ctx.model ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
2263
2309
|
createVNode(_component_el_color_picker, {
|
|
2264
2310
|
modelValue: _ctx.model[_ctx.name],
|
|
2265
2311
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
@@ -2295,10 +2341,10 @@ const _sfc_main$f = defineComponent({
|
|
|
2295
2341
|
};
|
|
2296
2342
|
}
|
|
2297
2343
|
});
|
|
2298
|
-
const _hoisted_1$
|
|
2344
|
+
const _hoisted_1$7 = { key: 0 };
|
|
2299
2345
|
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2300
2346
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
2301
|
-
return _ctx.model ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2347
|
+
return _ctx.model ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
2302
2348
|
createVNode(_component_el_date_picker, {
|
|
2303
2349
|
modelValue: _ctx.model[_ctx.modelName],
|
|
2304
2350
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.modelName] = $event),
|
|
@@ -2402,10 +2448,10 @@ const _sfc_main$d = defineComponent({
|
|
|
2402
2448
|
};
|
|
2403
2449
|
}
|
|
2404
2450
|
});
|
|
2405
|
-
const _hoisted_1$
|
|
2451
|
+
const _hoisted_1$6 = { key: 0 };
|
|
2406
2452
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2407
2453
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
2408
|
-
return _ctx.model ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2454
|
+
return _ctx.model ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
2409
2455
|
createVNode(_component_el_date_picker, {
|
|
2410
2456
|
modelValue: _ctx.model[_ctx.name],
|
|
2411
2457
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
@@ -2422,7 +2468,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2422
2468
|
}
|
|
2423
2469
|
var DateTime = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$b]]);
|
|
2424
2470
|
|
|
2425
|
-
const _hoisted_1$
|
|
2471
|
+
const _hoisted_1$5 = { key: 0 };
|
|
2426
2472
|
const __default__$1 = defineComponent({
|
|
2427
2473
|
name: "m-fields-display"
|
|
2428
2474
|
});
|
|
@@ -2443,7 +2489,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2443
2489
|
}
|
|
2444
2490
|
useAddField(props.prop);
|
|
2445
2491
|
return (_ctx, _cache) => {
|
|
2446
|
-
return _ctx.model ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2492
|
+
return _ctx.model ? (openBlock(), createElementBlock("span", _hoisted_1$5, toDisplayString(_ctx.model[unref(n)]), 1)) : createCommentVNode("", true);
|
|
2447
2493
|
};
|
|
2448
2494
|
}
|
|
2449
2495
|
});
|
|
@@ -2513,12 +2559,12 @@ const _sfc_main$b = defineComponent({
|
|
|
2513
2559
|
}
|
|
2514
2560
|
}
|
|
2515
2561
|
});
|
|
2516
|
-
const _hoisted_1$
|
|
2562
|
+
const _hoisted_1$4 = { class: "m-fields-dynamic-field" };
|
|
2517
2563
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2518
2564
|
const _component_el_input = resolveComponent("el-input");
|
|
2519
2565
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
2520
2566
|
const _component_el_form = resolveComponent("el-form");
|
|
2521
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2567
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
2522
2568
|
createVNode(_component_el_form, { size: "small" }, {
|
|
2523
2569
|
default: withCtx(() => [
|
|
2524
2570
|
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.keys(_ctx.fieldMap.value), (key) => {
|
|
@@ -2640,7 +2686,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
2640
2686
|
};
|
|
2641
2687
|
}
|
|
2642
2688
|
});
|
|
2643
|
-
const _hoisted_1$
|
|
2689
|
+
const _hoisted_1$3 = ["href"];
|
|
2644
2690
|
const _hoisted_2$1 = {
|
|
2645
2691
|
key: 2,
|
|
2646
2692
|
class: "m-fields-link"
|
|
@@ -2654,12 +2700,13 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2654
2700
|
target: "_blank",
|
|
2655
2701
|
href: _ctx.href,
|
|
2656
2702
|
style: normalizeStyle(_ctx.config.css || {})
|
|
2657
|
-
}, toDisplayString(_ctx.displayText), 13, _hoisted_1$
|
|
2703
|
+
}, toDisplayString(_ctx.displayText), 13, _hoisted_1$3)) : _ctx.config.href && _ctx.disabled ? (openBlock(), createElementBlock("span", {
|
|
2658
2704
|
key: 1,
|
|
2659
2705
|
style: normalizeStyle(_ctx.config.disabledCss || {})
|
|
2660
2706
|
}, toDisplayString(_ctx.displayText), 5)) : (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
2661
2707
|
createVNode(_component_el_button, {
|
|
2662
|
-
|
|
2708
|
+
text: "",
|
|
2709
|
+
type: "primary",
|
|
2663
2710
|
onClick: _ctx.editHandler
|
|
2664
2711
|
}, {
|
|
2665
2712
|
default: withCtx(() => [
|
|
@@ -3040,7 +3087,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
3040
3087
|
};
|
|
3041
3088
|
}
|
|
3042
3089
|
});
|
|
3043
|
-
const _hoisted_1$
|
|
3090
|
+
const _hoisted_1$2 = { key: 2 };
|
|
3044
3091
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3045
3092
|
const _component_el_option = resolveComponent("el-option");
|
|
3046
3093
|
const _component_el_option_group = resolveComponent("el-option-group");
|
|
@@ -3093,7 +3140,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3093
3140
|
disabled: option.disabled
|
|
3094
3141
|
}, null, 8, ["label", "value", "disabled"]);
|
|
3095
3142
|
}), 128)),
|
|
3096
|
-
_ctx.moreLoadingVisible ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
3143
|
+
_ctx.moreLoadingVisible ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$2, null, 512)), [
|
|
3097
3144
|
[_directive_loading, true]
|
|
3098
3145
|
]) : createCommentVNode("", true)
|
|
3099
3146
|
]),
|
|
@@ -3246,7 +3293,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
3246
3293
|
};
|
|
3247
3294
|
}
|
|
3248
3295
|
});
|
|
3249
|
-
const _hoisted_1$
|
|
3296
|
+
const _hoisted_1$1 = { key: 0 };
|
|
3250
3297
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3251
3298
|
const _component_el_button = resolveComponent("el-button");
|
|
3252
3299
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -3264,7 +3311,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3264
3311
|
_ctx.config.append ? {
|
|
3265
3312
|
name: "append",
|
|
3266
3313
|
fn: withCtx(() => [
|
|
3267
|
-
typeof _ctx.config.append === "string" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3314
|
+
typeof _ctx.config.append === "string" ? (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(_ctx.config.append), 1)) : createCommentVNode("", true),
|
|
3268
3315
|
typeof _ctx.config.append === "object" && _ctx.config.append.type === "button" ? (openBlock(), createBlock(_component_el_button, {
|
|
3269
3316
|
key: 1,
|
|
3270
3317
|
style: { "color": "#409eff" },
|
|
@@ -3314,22 +3361,19 @@ const _sfc_main$3 = defineComponent({
|
|
|
3314
3361
|
};
|
|
3315
3362
|
}
|
|
3316
3363
|
});
|
|
3317
|
-
const _hoisted_1$1 = { key: 0 };
|
|
3318
3364
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3319
3365
|
const _component_el_input = resolveComponent("el-input");
|
|
3320
|
-
return
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange", "onInput"])
|
|
3332
|
-
])) : createCommentVNode("", true);
|
|
3366
|
+
return openBlock(), createBlock(_component_el_input, {
|
|
3367
|
+
modelValue: _ctx.model[_ctx.name],
|
|
3368
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3369
|
+
type: "textarea",
|
|
3370
|
+
size: _ctx.size,
|
|
3371
|
+
clearable: "",
|
|
3372
|
+
placeholder: _ctx.config.placeholder,
|
|
3373
|
+
disabled: _ctx.disabled,
|
|
3374
|
+
onChange: _ctx.changeHandler,
|
|
3375
|
+
onInput: _ctx.inputHandler
|
|
3376
|
+
}, null, 8, ["modelValue", "size", "placeholder", "disabled", "onChange", "onInput"]);
|
|
3333
3377
|
}
|
|
3334
3378
|
var Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
3335
3379
|
|
|
@@ -3477,7 +3521,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
3477
3521
|
submitForm: async (native) => {
|
|
3478
3522
|
try {
|
|
3479
3523
|
await elForm.value?.validate();
|
|
3480
|
-
return native ? values.value : cloneDeep(values.value);
|
|
3524
|
+
return native ? values.value : cloneDeep(toRaw(values.value));
|
|
3481
3525
|
} catch (invalidFields) {
|
|
3482
3526
|
const error = [];
|
|
3483
3527
|
Object.entries(invalidFields).forEach(([, ValidateError]) => {
|