hldesigner 0.0.1
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/FileSaver.min-b57403e6.js +103 -0
- package/_commonjsHelpers-e7ea1525.js +36 -0
- package/_plugin-vue_export-helper-dad06003.js +9 -0
- package/affix-widget-94198099.js +38 -0
- package/anchor-link-widget-919ac0ee.js +5 -0
- package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
- package/anchor-widget-77003871.js +57 -0
- package/auto-complete-widget-8d76ea70.js +74 -0
- package/avatar-widget-3cd63f01.js +38 -0
- package/backtop-widget-6fc3db98.js +38 -0
- package/badge-widget-f36a769c.js +44 -0
- package/baseImp-8c4be88e.js +11050 -0
- package/breadcrumb-widget-422a9d28.js +79 -0
- package/button-widget-918dde3f.js +48 -0
- package/cache-widget-a1637f5f.js +53 -0
- package/card-widget-2db8e9d4.js +112 -0
- package/carousel-widget-838cc8c9.js +75 -0
- package/cascader-widget-42482528.js +97 -0
- package/chart-widget-ac07a466.js +44285 -0
- package/checkbox-widget-ee1fcb0c.js +79 -0
- package/clipboard-fc4d858d.js +497 -0
- package/code-cf4fbc89.js +82 -0
- package/collapse-widget-1a93bdb5.js +89 -0
- package/color-picker-widget-e893711a.js +56 -0
- package/common-editor-76ac2e32.js +24 -0
- package/common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-634a504e.js +25 -0
- package/configItem-6bfa74e0.js +113 -0
- package/cont-cell-widget-42f96421.js +8 -0
- package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js +59 -0
- package/cont-widget-9dda9135.js +42 -0
- package/content-wrapper-20c559ac.js +14 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js +37 -0
- package/customClass-editor-9088a8cf.js +43 -0
- package/date-picker-range-widget-b9287f93.js +72 -0
- package/date-picker-widget-21595fd5.js +78 -0
- package/default-slot-widget-fc87ed0a.js +24 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0fb8e1cc.js +59 -0
- package/descriptions-widget-33a02f1a.js +83 -0
- package/designer.es.js +42 -0
- package/designer.style.css +11 -0
- package/designer.umd.js +161882 -0
- package/dialog-5e196819.js +124 -0
- package/dialog-widget-22714c34.js +33 -0
- package/divider-widget-adf656f2.js +38 -0
- package/drag-wrapper-f9fb1533.js +259 -0
- package/drawer-widget-404cb6db.js +33 -0
- package/dropdown-widget-a4a1e2f7.js +92 -0
- package/editor-wrapper-e6b30023.js +779 -0
- package/emitter-2b9b9409.js +53 -0
- package/empty-widget-c53b07dd.js +64 -0
- package/enum-type-255ade69.js +543 -0
- package/enum-type-287a50b6.js +2054 -0
- package/expression-ea95606e.js +2181 -0
- package/feedback-widget-c041b474.js +26 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-efe168a5.js +82 -0
- package/field-base-5547436d.js +7 -0
- package/field-editor-3e1ce4f3.js +69 -0
- package/file-upload-widget-941b9493.js +98 -0
- package/form-item-wrapper-8039c512.js +113 -0
- package/form-widget-98a02c28.js +184 -0
- package/grid-col-widget-3ea371ea.js +8 -0
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js +41 -0
- package/grid-widget-f0635d43.js +43 -0
- package/html-text-widget-c440e86d.js +50 -0
- package/icon-2bb9fa65.js +129 -0
- package/iframe-widget-37ef665f.js +77 -0
- package/image-widget-871d5987.js +64 -0
- package/import-config-1eb9a66b.js +13156 -0
- package/index-0a2f2997.js +225 -0
- package/index-12505eec.js +42 -0
- package/index-18720c06.js +138 -0
- package/index-188b745d.js +132 -0
- package/index-28f32a55.js +216 -0
- package/index-2936e7cf.js +3265 -0
- package/index-2d29f8d3.js +7233 -0
- package/index-3d5d5fac.js +23 -0
- package/index-50c3e002.js +227 -0
- package/index-6a276ef7.js +131 -0
- package/index-6d56f058.js +45 -0
- package/index-7b38fd82.js +330 -0
- package/index-7c2a8e33.js +17993 -0
- package/index-7fa591e3.js +4817 -0
- package/index-82f2c56a.js +135 -0
- package/index-8713c192.js +344 -0
- package/index-8d537d38.js +2393 -0
- package/index-9fd4a537.js +99 -0
- package/index-ad538d7e.js +832 -0
- package/index-c1b1f59f.js +88 -0
- package/index-d6fa09d6.js +39 -0
- package/index-db2305dc.js +117 -0
- package/index-ddd23411.js +4884 -0
- package/index-e795786b.js +119 -0
- package/index-f146282d.js +1356 -0
- package/index-f849ef29.js +216 -0
- package/index-ffbcbc43.js +65 -0
- package/input-number-widget-64f89b9d.js +66 -0
- package/input-widget-0fe7c3d7.js +71 -0
- package/install-designer-bed2e18a.js +4752 -0
- package/item-4be3cb5b.js +34 -0
- package/item-ddbdee11.js +24 -0
- package/itemDetail-b31192a5.js +43 -0
- package/label-wrapper-91b95fb0.js +12 -0
- package/label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js +80 -0
- package/link-widget-0f2bb61c.js +56 -0
- package/ltable-col-widget-9f26b93d.js +8 -0
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js +256 -0
- package/ltable-widget-b78a72ee.js +69 -0
- package/menu-widget-15fdd710.js +96 -0
- package/model-widget-3f2b1368.js +122 -0
- package/multirow-e1e1205c.js +292 -0
- package/multirow-widget copy-671ebd9c.js +858 -0
- package/multirow-widget-d256cac6.js +694 -0
- package/name-editor-05685151.js +104 -0
- package/optionItem-0ac4a3ae.js +4667 -0
- package/package.json +13 -0
- package/pagination-widget-31a7301d.js +81 -0
- package/picture-upload-widget-46ea42a0.js +102 -0
- package/postcss-2c4d92ea.js +2285 -0
- package/progress-widget-fc1f9557.js +52 -0
- package/property-base-e63e2f28.js +78 -0
- package/propresult-8fdf23e2.js +22 -0
- package/radio-widget-fbc63c11.js +79 -0
- package/range-widget-b0882319.js +74 -0
- package/rate-widget-9719ca7d.js +56 -0
- package/reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js +61 -0
- package/result-widget-925a5426.js +67 -0
- package/rich-editor-widget-426f0b19.js +77 -0
- package/router-widget-209f0eb1.js +54 -0
- package/schemaData-ab87bd49.js +333 -0
- package/select-widget-0b560a2f.js +288 -0
- package/setView-de8aaf40.js +84 -0
- package/sfc-10e3d29c.js +2570 -0
- package/share-editor-27d43940.js +448 -0
- package/share-event-dd8ff2ba.js +26 -0
- package/share-field-451430de.js +690 -0
- package/share-file-124a4d83.js +121 -0
- package/size-editor-ea05760c.js +92 -0
- package/slider-widget-fb4efa96.js +62 -0
- package/slot-04a83a27.js +17 -0
- package/static-text-widget-2efdd909.js +51 -0
- package/steps-widget-6f283f21.js +91 -0
- package/subMenu-widget-77e295cb.js +16 -0
- package/subMenu-widget.vue_vue_type_script_setup_true_lang-b051a10e.js +69 -0
- package/switch-widget-f1120b6c.js +56 -0
- package/tab-pane-widget-99c21615.js +8 -0
- package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js +35 -0
- package/table-col-widget-d6d5d21f.js +23 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2efa4d60.js +80 -0
- package/table-widget-9b8d9798.js +163 -0
- package/tabs-widget-88393072.js +68 -0
- package/tag-widget-33c17c06.js +38 -0
- package/target-code-48e9d055.js +33 -0
- package/target-datasource-35dfcb1d.js +221 -0
- package/target-link-3ffd0149.js +126 -0
- package/target-saveForm-012b7de1.js +136 -0
- package/target-widget-3d7f6104.js +59 -0
- package/target-window-7556d301.js +54 -0
- package/template-c30585f4.js +251740 -0
- package/text-widget-8b5ece83.js +38 -0
- package/textarea-widget-e7c1d9ed.js +56 -0
- package/time-picker-range-widget-b8dfcc3b.js +58 -0
- package/time-picker-widget-73bde0a3.js +57 -0
- package/time-select-widget-08008b76.js +57 -0
- package/tmpl-widget-7d245d41.js +92 -0
- package/tooltip-wrapper-2922e49e.js +31 -0
- package/tree-select-widget-67231123.js +94 -0
- package/tree-widget-ab91165f.js +90 -0
- package/uuid-39f0308a.js +196 -0
- package/value-editor-27783d6c.js +89 -0
- package/vue3-sfc-loader-b70bdce4.js +34688 -0
- package/widget-base-4c2d6265.js +27 -0
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js +277 -0
- package/wrapper-widget-5702502d.js +78 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { _ as o } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-efe168a5.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "./widget-base-4c2d6265.js";
|
|
4
|
+
import "./drag-wrapper-f9fb1533.js";
|
|
5
|
+
import "./baseImp-8c4be88e.js";
|
|
6
|
+
import "./enum-type-287a50b6.js";
|
|
7
|
+
import "./uuid-39f0308a.js";
|
|
8
|
+
import "./enum-type-255ade69.js";
|
|
9
|
+
import "./icon-2bb9fa65.js";
|
|
10
|
+
import "./template-c30585f4.js";
|
|
11
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
|
+
import "./dialog-5e196819.js";
|
|
13
|
+
import "element-plus";
|
|
14
|
+
import "./index-f146282d.js";
|
|
15
|
+
import "./optionItem-0ac4a3ae.js";
|
|
16
|
+
import "./index-7fa591e3.js";
|
|
17
|
+
import "./multirow-e1e1205c.js";
|
|
18
|
+
import "./slot-04a83a27.js";
|
|
19
|
+
import "./emitter-2b9b9409.js";
|
|
20
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
22
|
+
import "./index-ffbcbc43.js";
|
|
23
|
+
import "./share-field-451430de.js";
|
|
24
|
+
export {
|
|
25
|
+
o as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent as O, ref as F, inject as I, openBlock as a, createBlock as n, mergeProps as p, unref as r, withCtx as C, createElementBlock as i, Fragment as m, renderList as V, resolveDynamicComponent as u, createCommentVNode as g, createVNode as f, isRef as P, toHandlers as R, createSlots as E, createTextVNode as H, toDisplayString as K } from "vue";
|
|
2
|
+
import { I as M } from "./widget-base-4c2d6265.js";
|
|
3
|
+
import { D as o } from "./drag-wrapper-f9fb1533.js";
|
|
4
|
+
import { _ as T } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
5
|
+
import { d as U, w as q } from "./template-c30585f4.js";
|
|
6
|
+
import { c as A } from "./share-field-451430de.js";
|
|
7
|
+
import { g as v } from "./slot-04a83a27.js";
|
|
8
|
+
const G = O({ componentName: q.ContainerWidget }), ee = /* @__PURE__ */ O({
|
|
9
|
+
...G,
|
|
10
|
+
__name: "feedback-widget",
|
|
11
|
+
props: { ...M },
|
|
12
|
+
setup($, { expose: b }) {
|
|
13
|
+
var y;
|
|
14
|
+
const t = $, { fieldKey: j, attrs: k, events: z, slots: c, fieldModel: s, exposed: D, fieldObj: L } = A(t), h = F();
|
|
15
|
+
h.value = (t == null ? void 0 : t.designState) === !0 ? "div" : (y = t.propOptions) == null ? void 0 : y.widgetName;
|
|
16
|
+
const B = I(U.refList);
|
|
17
|
+
return b({ ...D, parentRefList: B }), (d, l) => (a(), n(T, p(d.$props, {
|
|
18
|
+
propOptions: { fieldObj: r(L) }
|
|
19
|
+
}), {
|
|
20
|
+
default: C(({ data: W }) => {
|
|
21
|
+
var w;
|
|
22
|
+
return [
|
|
23
|
+
d.designState ? (a(), i("div", { key: r(j) }, [
|
|
24
|
+
d.designState ? (a(!0), i(m, { key: 0 }, V(r(v)(r(c), d.designState), (e) => (a(), i("div", {
|
|
25
|
+
key: e.slotName,
|
|
26
|
+
style: { border: "1px dashed black" }
|
|
27
|
+
}, [
|
|
28
|
+
e != null && e.default ? (a(), n(u(e == null ? void 0 : e.default), { key: 0 })) : g("", !0),
|
|
29
|
+
f(o, p(d.$props, {
|
|
30
|
+
widget: e,
|
|
31
|
+
title: e.slotName,
|
|
32
|
+
dragClass: "dragSize1"
|
|
33
|
+
}), null, 16, ["widget", "title"])
|
|
34
|
+
]))), 128)) : g("", !0)
|
|
35
|
+
])) : (a(), n(u((w = t.propOptions) == null ? void 0 : w.widgetName), p({
|
|
36
|
+
key: 1,
|
|
37
|
+
modelValue: r(s),
|
|
38
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => P(s) ? s.value = e : null)
|
|
39
|
+
}, r(k), R(r(z)), {
|
|
40
|
+
class: W.injectClass
|
|
41
|
+
}), E({ _: 2 }, [
|
|
42
|
+
V(r(v)(r(c), !d.designState), (e) => ({
|
|
43
|
+
name: e.slotName,
|
|
44
|
+
fn: C(() => {
|
|
45
|
+
var S, N;
|
|
46
|
+
return [
|
|
47
|
+
e.slotName === "default" ? (a(), i(m, { key: 0 }, [
|
|
48
|
+
e != null && e.default ? (a(), n(u(e == null ? void 0 : e.default), { key: 0 })) : g("", !0),
|
|
49
|
+
f(o, p(d.$props, {
|
|
50
|
+
widget: e,
|
|
51
|
+
dragClass: "dragSize1"
|
|
52
|
+
}), null, 16, ["widget"])
|
|
53
|
+
], 64)) : e.slotName === "header" ? (a(), i(m, { key: 1 }, [
|
|
54
|
+
e.default || (((S = e.widgetList) == null ? void 0 : S.length) || 0) > 0 ? (a(), i(m, { key: 0 }, [
|
|
55
|
+
e != null && e.default ? (a(), n(u(e == null ? void 0 : e.default), { key: 0 })) : g("", !0),
|
|
56
|
+
f(o, p(d.$props, {
|
|
57
|
+
widget: e,
|
|
58
|
+
dragClass: "dragSize1"
|
|
59
|
+
}), null, 16, ["widget"])
|
|
60
|
+
], 64)) : (a(), i(m, { key: 1 }, [
|
|
61
|
+
H(K((N = r(k)) == null ? void 0 : N.title), 1)
|
|
62
|
+
], 64))
|
|
63
|
+
], 64)) : (a(), i(m, { key: 2 }, [
|
|
64
|
+
e != null && e.default ? (a(), n(u(e == null ? void 0 : e.default), { key: 0 })) : g("", !0),
|
|
65
|
+
f(o, p(d.$props, {
|
|
66
|
+
widget: e,
|
|
67
|
+
dragClass: "dragSize1"
|
|
68
|
+
}), null, 16, ["widget"])
|
|
69
|
+
], 64))
|
|
70
|
+
];
|
|
71
|
+
})
|
|
72
|
+
}))
|
|
73
|
+
]), 1040, ["modelValue", "class"]))
|
|
74
|
+
];
|
|
75
|
+
}),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 16, ["propOptions"]));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
ee as _
|
|
82
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineComponent as P, inject as k, computed as y, resolveComponent as i, openBlock as r, createBlock as p, normalizeProps as E, guardReactiveProps as F, withCtx as s, createVNode as b, mergeProps as C, unref as l, isRef as d, createElementBlock as I, Fragment as B, renderList as L } from "vue";
|
|
2
|
+
import { I as w } from "./property-base-e63e2f28.js";
|
|
3
|
+
import { E as x, O as N } from "./editor-wrapper-e6b30023.js";
|
|
4
|
+
import { d as O } from "./template-c30585f4.js";
|
|
5
|
+
import { u as R } from "./share-editor-27d43940.js";
|
|
6
|
+
import { d as U, k as W } from "./enum-type-287a50b6.js";
|
|
7
|
+
import { ag as $ } from "./enum-type-255ade69.js";
|
|
8
|
+
import "./uuid-39f0308a.js";
|
|
9
|
+
import "./baseImp-8c4be88e.js";
|
|
10
|
+
import "./icon-2bb9fa65.js";
|
|
11
|
+
import "./dialog-5e196819.js";
|
|
12
|
+
import "element-plus";
|
|
13
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
|
+
import "./share-event-dd8ff2ba.js";
|
|
15
|
+
import "./emitter-2b9b9409.js";
|
|
16
|
+
import "./index-f146282d.js";
|
|
17
|
+
import "./optionItem-0ac4a3ae.js";
|
|
18
|
+
import "./index-7fa591e3.js";
|
|
19
|
+
import "./index-ffbcbc43.js";
|
|
20
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
+
const le = /* @__PURE__ */ P({
|
|
22
|
+
__name: "field-editor",
|
|
23
|
+
props: { ...w },
|
|
24
|
+
setup(u) {
|
|
25
|
+
const n = u, a = k(O.serverFieldList), c = U(W(n.propConfig), { type: $.slot }), { propName: j, propValue: o } = R(n), f = y(() => {
|
|
26
|
+
var e;
|
|
27
|
+
return !((e = n.selectedWidget) == null ? void 0 : e.formItemFlag) || !a || a.length <= 0;
|
|
28
|
+
});
|
|
29
|
+
return (m, e) => {
|
|
30
|
+
const g = i("el-input"), _ = i("el-option"), V = i("el-select");
|
|
31
|
+
return r(), p(x, E(F(m.$props)), {
|
|
32
|
+
slotEditor: s(() => [
|
|
33
|
+
b(N, C(m.$props, { "prop-config": l(c) }), {
|
|
34
|
+
specialEditor: s(() => [
|
|
35
|
+
l(f) ? (r(), p(g, {
|
|
36
|
+
key: 0,
|
|
37
|
+
type: "text",
|
|
38
|
+
modelValue: l(o),
|
|
39
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => d(o) ? o.value = t : null),
|
|
40
|
+
clearable: ""
|
|
41
|
+
}, null, 8, ["modelValue"])) : (r(), p(V, {
|
|
42
|
+
key: 1,
|
|
43
|
+
modelValue: l(o),
|
|
44
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => d(o) ? o.value = t : null),
|
|
45
|
+
"allow-create": "",
|
|
46
|
+
filterable: "",
|
|
47
|
+
clearable: ""
|
|
48
|
+
}, {
|
|
49
|
+
default: s(() => [
|
|
50
|
+
(r(!0), I(B, null, L(l(a), (t, v) => (r(), p(_, {
|
|
51
|
+
key: v,
|
|
52
|
+
label: t.label,
|
|
53
|
+
value: t.name
|
|
54
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 8, ["modelValue"]))
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 16, ["prop-config"])
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 16);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
le as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent as h, ref as U, resolveComponent as W, openBlock as r, createBlock as m, mergeProps as c, unref as e, withCtx as l, toHandlers as D, createElementBlock as _, toDisplayString as u, createCommentVNode as f, createVNode as s, createElementVNode as i, pushScopeId as P, popScopeId as $ } from "vue";
|
|
2
|
+
import { a } from "./enum-type-287a50b6.js";
|
|
3
|
+
import { I as j } from "./field-base-5547436d.js";
|
|
4
|
+
import { u as H } from "./share-file-124a4d83.js";
|
|
5
|
+
import { w as M } from "./template-c30585f4.js";
|
|
6
|
+
import { S as p } from "./index-ffbcbc43.js";
|
|
7
|
+
import A from "./form-item-wrapper-8039c512.js";
|
|
8
|
+
import { _ as K } from "./_plugin-vue_export-helper-dad06003.js";
|
|
9
|
+
import "./widget-base-4c2d6265.js";
|
|
10
|
+
import "./icon-2bb9fa65.js";
|
|
11
|
+
import "./share-field-451430de.js";
|
|
12
|
+
import "./emitter-2b9b9409.js";
|
|
13
|
+
import "./baseImp-8c4be88e.js";
|
|
14
|
+
import "./uuid-39f0308a.js";
|
|
15
|
+
import "./enum-type-255ade69.js";
|
|
16
|
+
import "./dialog-5e196819.js";
|
|
17
|
+
import "element-plus";
|
|
18
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
19
|
+
import "./multirow-e1e1205c.js";
|
|
20
|
+
import "./index-f146282d.js";
|
|
21
|
+
import "./optionItem-0ac4a3ae.js";
|
|
22
|
+
import "./index-7fa591e3.js";
|
|
23
|
+
import "./slot-04a83a27.js";
|
|
24
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
25
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js";
|
|
26
|
+
const T = (t) => (P("data-v-8911b66d"), t = t(), $(), t), q = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "el-upload__tip"
|
|
29
|
+
}, z = /* @__PURE__ */ T(() => /* @__PURE__ */ i("i", { class: "el-icon-plus" }, null, -1)), G = { class: "upload-file-list" }, J = ["title"], L = ["href"], Q = ["title"], R = ["title", "onClick"], X = h({ componentName: M.FieldWidget }), Y = /* @__PURE__ */ h({
|
|
30
|
+
...X,
|
|
31
|
+
__name: "file-upload-widget",
|
|
32
|
+
props: { ...j },
|
|
33
|
+
setup(t, { expose: v }) {
|
|
34
|
+
const g = t, { fieldEditor: y, fieldKey: k, uploadData: w, uploadBtnHidden: b, uploadTip: d, exposed: F, rules: I, attrs: n, events: C, isError: E, errorMsg: S, removeUploadFile: x, fieldObj: V } = H(g), B = U({
|
|
35
|
+
"--select-file-action": `'${a.i18nt("render.hint.selectFile")}'`
|
|
36
|
+
});
|
|
37
|
+
return v({ ...F }), (N, Z) => {
|
|
38
|
+
const O = W("el-upload");
|
|
39
|
+
return r(), m(A, c(N.$props, {
|
|
40
|
+
propOptions: { fieldObj: e(V), rules: e(I), isError: e(E), errorMsg: e(S) }
|
|
41
|
+
}), {
|
|
42
|
+
default: l(() => [
|
|
43
|
+
(r(), m(O, c({
|
|
44
|
+
ref_key: "fieldEditor",
|
|
45
|
+
ref: y,
|
|
46
|
+
key: e(k)
|
|
47
|
+
}, e(n), D(e(C)), {
|
|
48
|
+
data: e(w),
|
|
49
|
+
style: B.value,
|
|
50
|
+
class: [{ hideUploadDiv: e(b) }, "dynamicPseudoAfter"]
|
|
51
|
+
}), {
|
|
52
|
+
tip: l(() => [
|
|
53
|
+
e(d) ? (r(), _("div", q, u(e(d)), 1)) : f("", !0)
|
|
54
|
+
]),
|
|
55
|
+
default: l(() => [
|
|
56
|
+
s(p, { name: "@el-plus" }),
|
|
57
|
+
z
|
|
58
|
+
]),
|
|
59
|
+
file: l(({ file: o }) => [
|
|
60
|
+
i("div", G, [
|
|
61
|
+
i("span", {
|
|
62
|
+
class: "upload-file-name",
|
|
63
|
+
title: o.name
|
|
64
|
+
}, u(o.name), 9, J),
|
|
65
|
+
i("a", {
|
|
66
|
+
href: o.url,
|
|
67
|
+
download: "",
|
|
68
|
+
target: "_blank"
|
|
69
|
+
}, [
|
|
70
|
+
i("span", {
|
|
71
|
+
class: "el-icon-download file-action",
|
|
72
|
+
title: e(a).i18nt("render.hint.downloadFile")
|
|
73
|
+
}, [
|
|
74
|
+
s(p, { name: "@el-download" })
|
|
75
|
+
], 8, Q)
|
|
76
|
+
], 8, L),
|
|
77
|
+
e(n).disabled ? f("", !0) : (r(), _("span", {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: "file-action",
|
|
80
|
+
title: e(a).i18nt("render.hint.removeFile"),
|
|
81
|
+
onClick: (ee) => e(x)(o.name, o.url, o.uid)
|
|
82
|
+
}, [
|
|
83
|
+
s(p, { name: "@el-delete" })
|
|
84
|
+
], 8, R))
|
|
85
|
+
])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}, 16, ["data", "style", "class"]))
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 16, ["propOptions"]);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
const Ee = /* @__PURE__ */ K(Y, [["__scopeId", "data-v-8911b66d"]]);
|
|
96
|
+
export {
|
|
97
|
+
Ee as default
|
|
98
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { defineComponent as S, computed as s, resolveComponent as w, openBlock as n, createBlock as g, normalizeProps as C, guardReactiveProps as N, withCtx as f, unref as r, normalizeClass as O, createSlots as q, renderSlot as v, createElementBlock as c, toDisplayString as $, createCommentVNode as h, createVNode as y, mergeProps as A, createElementVNode as k, normalizeStyle as E } from "vue";
|
|
2
|
+
import { I as H } from "./field-base-5547436d.js";
|
|
3
|
+
import { _ as P } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
4
|
+
import { _ as x } from "./label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js";
|
|
5
|
+
import { _ as W } from "./_plugin-vue_export-helper-dad06003.js";
|
|
6
|
+
import "./widget-base-4c2d6265.js";
|
|
7
|
+
import "./uuid-39f0308a.js";
|
|
8
|
+
import "./enum-type-287a50b6.js";
|
|
9
|
+
import "./index-f146282d.js";
|
|
10
|
+
import "./enum-type-255ade69.js";
|
|
11
|
+
import "./optionItem-0ac4a3ae.js";
|
|
12
|
+
import "./baseImp-8c4be88e.js";
|
|
13
|
+
import "./icon-2bb9fa65.js";
|
|
14
|
+
import "./template-c30585f4.js";
|
|
15
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
+
import "./dialog-5e196819.js";
|
|
17
|
+
import "element-plus";
|
|
18
|
+
import "./index-7fa591e3.js";
|
|
19
|
+
import "./index-ffbcbc43.js";
|
|
20
|
+
const B = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "el-form-item__error"
|
|
23
|
+
}, F = { class: "el-form-item__content" }, V = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "el-form-item__error"
|
|
26
|
+
}, M = /* @__PURE__ */ S({
|
|
27
|
+
__name: "form-item-wrapper",
|
|
28
|
+
props: {
|
|
29
|
+
...H
|
|
30
|
+
},
|
|
31
|
+
setup(j) {
|
|
32
|
+
const i = j, z = s(() => {
|
|
33
|
+
var e, o;
|
|
34
|
+
return (o = (e = i.propOptions) == null ? void 0 : e.fieldObj) == null ? void 0 : o.fieldName;
|
|
35
|
+
}), a = s(() => {
|
|
36
|
+
var e, o, l, t, p, u;
|
|
37
|
+
return ((l = (o = (e = i.propOptions) == null ? void 0 : e.fieldObj) == null ? void 0 : o.extendAttrs) == null ? void 0 : l.label) || ((u = (p = (t = i.propOptions) == null ? void 0 : t.fieldObj) == null ? void 0 : p.attrs) == null ? void 0 : u.label);
|
|
38
|
+
}), d = s(() => {
|
|
39
|
+
var e, o, l;
|
|
40
|
+
return (l = (o = (e = i.propOptions) == null ? void 0 : e.fieldObj) == null ? void 0 : o.extendAttrs) == null ? void 0 : l.labelHidden;
|
|
41
|
+
}), I = s(() => {
|
|
42
|
+
var e, o, l;
|
|
43
|
+
return (l = (o = (e = i.propOptions) == null ? void 0 : e.fieldObj) == null ? void 0 : o.extendAttrs) == null ? void 0 : l.labelTooltip;
|
|
44
|
+
}), _ = s(() => {
|
|
45
|
+
var e, o, l;
|
|
46
|
+
return (l = (o = (e = i.propOptions) == null ? void 0 : e.fieldObj) == null ? void 0 : o.extendAttrs) == null ? void 0 : l.required;
|
|
47
|
+
}), m = s(() => {
|
|
48
|
+
var e;
|
|
49
|
+
return (e = i.propOptions) == null ? void 0 : e.isError;
|
|
50
|
+
}), b = s(() => {
|
|
51
|
+
var e;
|
|
52
|
+
return (e = i.propOptions) == null ? void 0 : e.errorMsg;
|
|
53
|
+
});
|
|
54
|
+
return (e, o) => {
|
|
55
|
+
const l = w("el-form-item");
|
|
56
|
+
return n(), g(P, C(N(e.$props)), {
|
|
57
|
+
default: f(({ data: t }) => {
|
|
58
|
+
var p;
|
|
59
|
+
return [
|
|
60
|
+
t.formItemFlag ? (n(), g(l, {
|
|
61
|
+
key: 0,
|
|
62
|
+
label: `${r(a) || ""}${t.labelSuffix || ""}`,
|
|
63
|
+
"label-width": t.labelWidth,
|
|
64
|
+
title: r(I),
|
|
65
|
+
rules: (p = i.propOptions) == null ? void 0 : p.rules,
|
|
66
|
+
prop: r(z),
|
|
67
|
+
size: t.size,
|
|
68
|
+
class: O(["inmessage", [r(_) ? "required" : "", r(m) ? "is-error" : "", r(d) ? "labelHidden" : ""]])
|
|
69
|
+
}, q({
|
|
70
|
+
default: f(() => [
|
|
71
|
+
v(e.$slots, "default", { data: t }, void 0, !0),
|
|
72
|
+
r(m) ? (n(), c("div", B, $(r(b)), 1)) : h("", !0)
|
|
73
|
+
]),
|
|
74
|
+
_: 2
|
|
75
|
+
}, [
|
|
76
|
+
r(a) ? {
|
|
77
|
+
name: "label",
|
|
78
|
+
fn: f(() => [
|
|
79
|
+
y(x, A(e.$props, {
|
|
80
|
+
label: `${r(a) || ""}${t.labelSuffix || ""}`,
|
|
81
|
+
labelAlign: t.labelAlign
|
|
82
|
+
}), null, 16, ["label", "labelAlign"])
|
|
83
|
+
]),
|
|
84
|
+
key: "0"
|
|
85
|
+
} : void 0
|
|
86
|
+
]), 1032, ["label", "label-width", "title", "rules", "prop", "size", "class"])) : (n(), c("div", {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: O(["el-form-item asterisk-left inmessage", [r(_) ? "required" : "", r(m) ? "is-error" : "", r(d) ? "labelHidden" : ""]])
|
|
89
|
+
}, [
|
|
90
|
+
k("label", {
|
|
91
|
+
class: "el-form-item__label",
|
|
92
|
+
style: E({ width: r(d) ? "0px" : t.labelWidth })
|
|
93
|
+
}, [
|
|
94
|
+
y(x, A(e.$props, {
|
|
95
|
+
labelAlign: t.labelAlign
|
|
96
|
+
}), null, 16, ["labelAlign"])
|
|
97
|
+
], 4),
|
|
98
|
+
k("div", F, [
|
|
99
|
+
v(e.$slots, "default", { data: t }, void 0, !0),
|
|
100
|
+
r(m) ? (n(), c("div", V, $(r(b)), 1)) : h("", !0)
|
|
101
|
+
])
|
|
102
|
+
], 2))
|
|
103
|
+
];
|
|
104
|
+
}),
|
|
105
|
+
_: 3
|
|
106
|
+
}, 16);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
const pe = /* @__PURE__ */ W(M, [["__scopeId", "data-v-9afcb804"]]);
|
|
111
|
+
export {
|
|
112
|
+
pe as default
|
|
113
|
+
};
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { ref as K, onMounted as le, nextTick as we, defineComponent as ie, resolveComponent as Ve, resolveDirective as We, openBlock as ee, createBlock as te, mergeProps as T, unref as u, withCtx as oe, withDirectives as Le, toHandlers as Oe, createVNode as Ne } from "vue";
|
|
2
|
+
import { I as je } from "./widget-base-4c2d6265.js";
|
|
3
|
+
import { D as Ee } from "./drag-wrapper-f9fb1533.js";
|
|
4
|
+
import { _ as Me } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
5
|
+
import { e as Pe, w as z, f as q, c as x, g as C } from "./template-c30585f4.js";
|
|
6
|
+
import { u as xe } from "./icon-2bb9fa65.js";
|
|
7
|
+
import { u as Se } from "./emitter-2b9b9409.js";
|
|
8
|
+
import { i as $e } from "./enum-type-287a50b6.js";
|
|
9
|
+
import { b as Ae, $ as Re, P as ae, B as ke } from "./baseImp-8c4be88e.js";
|
|
10
|
+
import { f as ye } from "./index-f146282d.js";
|
|
11
|
+
import { c as Ie, a as Be, u as He } from "./share-field-451430de.js";
|
|
12
|
+
import { W as Te } from "./enum-type-255ade69.js";
|
|
13
|
+
import { u as qe, F as Ke } from "./multirow-e1e1205c.js";
|
|
14
|
+
import { _ as ze } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
+
function Ge(t) {
|
|
16
|
+
const b = t.designer, d = b == null ? void 0 : b.pageConfig, D = t == null ? void 0 : t.widgetList;
|
|
17
|
+
t == null || t.widget;
|
|
18
|
+
const w = K({}), S = {}, { fieldName: O, fieldEditor: c, attrs: N, events: m, fieldModel: G, getFieldOptions: V, exposed: $, fieldObj: A, watchOption: f, refreshKey: R, singleOption: p, propResultOpt: v, extendAttrs: _ } = Ie(t), { off$: W, on$: g, emit$: j, broadcast: J } = Se();
|
|
19
|
+
var { instance: k, proxy: y } = xe();
|
|
20
|
+
const { setAllRefList: ne } = Be(w.value), Q = { instance: k, designState: t == null ? void 0 : t.designState, pageConfig: d, globalConfig: v == null ? void 0 : v.globalConfig }, { formModel: I, setData: de, getData: U, clearData: se } = qe(D, Q), { handleFunc: B } = He({ options: d }, Q), E = K({}), re = () => {
|
|
21
|
+
W(C.fieldChange), g(C.fieldChange, (e) => {
|
|
22
|
+
ue(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), y == null || y.$emit(q.formChange, O, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue, I);
|
|
23
|
+
});
|
|
24
|
+
}, ce = () => {
|
|
25
|
+
W(C.fieldValidation), g(C.fieldValidation, (e) => {
|
|
26
|
+
var o;
|
|
27
|
+
(o = c.value) == null || o.validateField(e == null ? void 0 : e.propName);
|
|
28
|
+
});
|
|
29
|
+
}, fe = () => {
|
|
30
|
+
W(C.fieldRuleChange), g(C.fieldRuleChange, (e) => {
|
|
31
|
+
var o;
|
|
32
|
+
E.value = Object.assign(E.value, { [e == null ? void 0 : e.fieldName]: (o = e == null ? void 0 : e.rules) == null ? void 0 : o.map((a) => ({ required: a.required, message: a.message, trigger: a.trigger, validator: a.validator })) }), N.value.rules = E.value;
|
|
33
|
+
});
|
|
34
|
+
}, ue = (e, o, a) => {
|
|
35
|
+
B(m.value.formDataChange, { fieldName: e, newValue: o, oldValue: a, formModel: I });
|
|
36
|
+
}, me = () => {
|
|
37
|
+
B(m.value.formCreated);
|
|
38
|
+
}, pe = () => {
|
|
39
|
+
B(m.value.formMounted);
|
|
40
|
+
}, ve = () => {
|
|
41
|
+
fe(), re(), ce(), me();
|
|
42
|
+
}, _e = (e) => {
|
|
43
|
+
var o;
|
|
44
|
+
(o = c.value) == null || o.clearValidate(e);
|
|
45
|
+
}, ge = () => {
|
|
46
|
+
ne(Te.resetField), we(() => {
|
|
47
|
+
_e();
|
|
48
|
+
});
|
|
49
|
+
}, he = (e = !0, o = !1) => {
|
|
50
|
+
var P, h, L;
|
|
51
|
+
let a = U();
|
|
52
|
+
if (!e)
|
|
53
|
+
return a;
|
|
54
|
+
let r = function() {
|
|
55
|
+
}, M = new Promise(function(i, s) {
|
|
56
|
+
r = function(l, n) {
|
|
57
|
+
n ? s(n) : i(l);
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
return (P = c.value) != null && P.validate ? (L = (h = c.value) == null ? void 0 : h.validate) == null || L.call(h, (i, s) => {
|
|
61
|
+
if (i)
|
|
62
|
+
r(a);
|
|
63
|
+
else {
|
|
64
|
+
let F = [];
|
|
65
|
+
for (let Fe in s) {
|
|
66
|
+
var l = s[Fe];
|
|
67
|
+
l == null || l.forEach((H) => {
|
|
68
|
+
const Ce = ye(D.value, (De) => ke.getName(De) === H.field), { getFieldOptions: be } = Ae(Ce[0], t), Z = be("label");
|
|
69
|
+
H.message && F.push(Pe(Z ? "【" + Z + "】" : "", H.message, ":"));
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
var n = F.join(";");
|
|
73
|
+
o ? Re.multiple(F, () => {
|
|
74
|
+
r(a);
|
|
75
|
+
}) : r(a, n);
|
|
76
|
+
}
|
|
77
|
+
}) : r(a), M;
|
|
78
|
+
}, X = (e) => {
|
|
79
|
+
de(e), J(z.ContainerWidget, q.setFormData, e, k), J(z.FieldWidget, q.setFormData, e, k);
|
|
80
|
+
}, Y = (e) => new Promise((o, a) => {
|
|
81
|
+
const r = (i) => {
|
|
82
|
+
var l, n, F;
|
|
83
|
+
const s = (l = _.value) != null && l.formDataLoaded ? (F = (n = _.value) == null ? void 0 : n.formDataLoaded) == null ? void 0 : F.call(n, U(), i) : i;
|
|
84
|
+
s ? (X(s), o(s)) : a();
|
|
85
|
+
}, M = () => {
|
|
86
|
+
f(e, x.newDataSource, void 0, (i) => {
|
|
87
|
+
r(i);
|
|
88
|
+
});
|
|
89
|
+
}, P = () => {
|
|
90
|
+
f(e, x.editDataSource, void 0, (i) => {
|
|
91
|
+
var l, n;
|
|
92
|
+
((n = (l = _.value) == null ? void 0 : l.needFormAdd) == null ? void 0 : n.call(l, i)) ? L && M() : r(i);
|
|
93
|
+
});
|
|
94
|
+
}, h = ae.getValue(V(x.editDataSource, !0)) !== null, L = ae.getValue(V(x.newDataSource, !0)) !== null;
|
|
95
|
+
h ? P() : L && M();
|
|
96
|
+
});
|
|
97
|
+
return ve(), le(() => {
|
|
98
|
+
$e(), pe();
|
|
99
|
+
}), {
|
|
100
|
+
widgetRefList: w,
|
|
101
|
+
allWidgetRefList: S,
|
|
102
|
+
fieldEditor: c,
|
|
103
|
+
formModel: I,
|
|
104
|
+
pageConfig: d,
|
|
105
|
+
widgetList: D,
|
|
106
|
+
fieldName: O,
|
|
107
|
+
attrs: N,
|
|
108
|
+
extendAttrs: _,
|
|
109
|
+
events: m,
|
|
110
|
+
rules: E,
|
|
111
|
+
loadData: Y,
|
|
112
|
+
exposed: {
|
|
113
|
+
...$,
|
|
114
|
+
setValue: X,
|
|
115
|
+
getValue: he,
|
|
116
|
+
clearData: se,
|
|
117
|
+
resetField: ge,
|
|
118
|
+
loadData: Y,
|
|
119
|
+
emit$: j
|
|
120
|
+
},
|
|
121
|
+
fieldObj: A
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
const Je = ie({ componentName: z.ContainerWidget }), Qe = /* @__PURE__ */ ie({
|
|
125
|
+
...Je,
|
|
126
|
+
__name: "form-widget",
|
|
127
|
+
props: { ...je },
|
|
128
|
+
setup(t, { expose: b }) {
|
|
129
|
+
var R;
|
|
130
|
+
const d = t, { exposed: D, formModel: w, fieldEditor: S, attrs: O, events: c, widgetRefList: N, extendAttrs: m, fieldName: G, fieldObj: V, loadData: $ } = Ge({ ...d, widgetList: (R = d == null ? void 0 : d.widget) == null ? void 0 : R.widgetList }), A = G.value;
|
|
131
|
+
Ke.globalProvide({
|
|
132
|
+
globalFormName: A
|
|
133
|
+
});
|
|
134
|
+
const f = K(!1);
|
|
135
|
+
return le(() => {
|
|
136
|
+
var p;
|
|
137
|
+
(p = m.value) != null && p.loadDataWhenInit && !d.designState && (f.value = !0, $(!0).then((v) => {
|
|
138
|
+
f.value = !1;
|
|
139
|
+
}).catch((v) => {
|
|
140
|
+
f.value = !1;
|
|
141
|
+
}));
|
|
142
|
+
}), b({ ...D }), (p, v) => {
|
|
143
|
+
const _ = Ve("el-form"), W = We("loading");
|
|
144
|
+
return ee(), te(Me, T(p.$props, {
|
|
145
|
+
"prop-options": { fieldObj: u(V) }
|
|
146
|
+
}), {
|
|
147
|
+
default: oe(({ data: g }) => {
|
|
148
|
+
var j;
|
|
149
|
+
return [
|
|
150
|
+
Le((ee(), te(_, T({
|
|
151
|
+
ref_key: "fieldEditor",
|
|
152
|
+
ref: S,
|
|
153
|
+
model: u(w)
|
|
154
|
+
}, u(O), Oe(u(c)), {
|
|
155
|
+
class: g.injectClass,
|
|
156
|
+
key: (j = u(V)) == null ? void 0 : j.fieldKey
|
|
157
|
+
}), {
|
|
158
|
+
default: oe(() => [
|
|
159
|
+
Ne(Ee, T(p.$props, {
|
|
160
|
+
dragClass: "formDrag",
|
|
161
|
+
model: u(w),
|
|
162
|
+
provideModel: !0,
|
|
163
|
+
"component-class": g.componentWrapperClass,
|
|
164
|
+
refList: u(N)
|
|
165
|
+
}), null, 16, ["model", "component-class", "refList"])
|
|
166
|
+
]),
|
|
167
|
+
_: 2
|
|
168
|
+
}, 1040, ["model", "class"])), [
|
|
169
|
+
[W, f.value]
|
|
170
|
+
])
|
|
171
|
+
];
|
|
172
|
+
}),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 16, ["prop-options"]);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
const Ue = /* @__PURE__ */ ze(Qe, [["__scopeId", "data-v-e17b7f15"]]), ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
179
|
+
__proto__: null,
|
|
180
|
+
default: Ue
|
|
181
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
182
|
+
export {
|
|
183
|
+
ft as _
|
|
184
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { _ as e } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js";
|
|
2
|
+
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
default: e
|
|
5
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
6
|
+
export {
|
|
7
|
+
o as _
|
|
8
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as m, computed as l, reactive as w, openBlock as y, createBlock as C, mergeProps as c, unref as t, withCtx as O, createVNode as W } from "vue";
|
|
2
|
+
import { w as k } from "./template-c30585f4.js";
|
|
3
|
+
import { I as x } from "./widget-base-4c2d6265.js";
|
|
4
|
+
import { D as A } from "./drag-wrapper-f9fb1533.js";
|
|
5
|
+
import { _ as b } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
6
|
+
import { c as j } from "./share-field-451430de.js";
|
|
7
|
+
import { c as H } from "./multirow-e1e1205c.js";
|
|
8
|
+
const $ = m({ componentName: k.ContainerWidget }), S = /* @__PURE__ */ m({
|
|
9
|
+
...$,
|
|
10
|
+
__name: "grid-col-widget",
|
|
11
|
+
props: {
|
|
12
|
+
...x
|
|
13
|
+
},
|
|
14
|
+
setup(d, { expose: g }) {
|
|
15
|
+
const n = d, { attrs: o, fieldObj: u, extendAttrs: i, exposed: f } = j(n), v = l(() => n.propOptions.colHeight ? { height: n.propOptions.colHeight } : {}), { componentWrapperClass: _ } = H({ widget: n.widget }), h = l(() => (Object.keys(o.value).forEach((e) => {
|
|
16
|
+
var r, s;
|
|
17
|
+
var a = ["xs", "sm", "md", "lg", "xl"], p = ["span"];
|
|
18
|
+
!((r = o.value) != null && r.responsive) && a.includes(e) && delete o.value[e], (s = o.value) != null && s.responsive && p.includes(e) && delete o.value[e];
|
|
19
|
+
}), w(o.value)));
|
|
20
|
+
return g({ ...f }), (e, a) => {
|
|
21
|
+
var p, r, s;
|
|
22
|
+
return y(), C(b, c(e.$props, {
|
|
23
|
+
showWrapperComponent: !0,
|
|
24
|
+
"component-name": "el-col",
|
|
25
|
+
key: (p = e.widget) == null ? void 0 : p.id,
|
|
26
|
+
"prop-options": { fieldObj: { ...t(u), attrs: t(h) }, class: ["content-cell", "nopadding", "nomargin", (r = t(i)) == null ? void 0 : r.horizontalAlign, (s = t(i)) == null ? void 0 : s.verticalAlign], style: t(v) }
|
|
27
|
+
}), {
|
|
28
|
+
default: O(() => [
|
|
29
|
+
W(A, c(e.$props, {
|
|
30
|
+
dragClass: "dragSize1",
|
|
31
|
+
"component-class": t(_)
|
|
32
|
+
}), null, 16, ["component-class"])
|
|
33
|
+
]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 16, ["prop-options"]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
S as _
|
|
41
|
+
};
|