hlrender 0.0.143 → 0.0.144
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/{_pdf-632c7cc5.js → _pdf-b58ee0fe.js} +2 -2
- package/{_txt-ca6362c2.js → _txt-059d6853.js} +2 -2
- package/{affix-widget-7a3592e0.js → affix-widget-bb93dbf0.js} +4 -4
- package/{alert-widget-30f79ab8.js → alert-widget-54a1651c.js} +4 -4
- package/{anchor-widget-57ccc5fd.js → anchor-widget-98654efc.js} +2 -2
- package/{auto-complete-widget-c9745b66.js → auto-complete-widget-21203c12.js} +4 -4
- package/{avatar-widget-77d6bf81.js → avatar-widget-56f6e6a4.js} +4 -4
- package/{backtop-widget-bfd47c9b.js → backtop-widget-fcee9b45.js} +4 -4
- package/{badge-widget-85053877.js → badge-widget-102aa468.js} +4 -4
- package/{barcode-widget-2cc85027.js → barcode-widget-df3038ab.js} +2 -2
- package/{breadcrumb-widget-d6c8a88c.js → breadcrumb-widget-4d844415.js} +2 -2
- package/{button-widget-350df246.js → button-widget-f02a1b1a.js} +17 -17
- package/{cache-widget-bde48db9.js → cache-widget-35a8ab56.js} +3 -3
- package/{card-widget-a1e0be2a.js → card-widget-b4f5584d.js} +3 -3
- package/{carousel-widget-ac414826.js → carousel-widget-27b11a6a.js} +2 -2
- package/{cascader-widget-20ad6217.js → cascader-widget-ac928f84.js} +3 -3
- package/{chart-widget-47566726.js → chart-widget-6dbee1ac.js} +2 -2
- package/{checkbox-widget-2f9df60f.js → checkbox-widget-2a12e0f4.js} +3 -3
- package/{collapse-widget-07eebfaf.js → collapse-widget-8751ac96.js} +2 -2
- package/{color-picker-widget-cd0b39bc.js → color-picker-widget-b617c3d3.js} +3 -3
- package/{cont-cell-widget-b79726e4.js → cont-cell-widget-e2145b1f.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-cb527f67.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-4fc1c6a7.js} +2 -2
- package/{cont-widget-e43eb51e.js → cont-widget-66b4ece4.js} +3 -3
- package/{date-picker-range-widget-b920b125.js → date-picker-range-widget-d97214da.js} +3 -3
- package/{date-picker-widget-0d96874f.js → date-picker-widget-32a63a3b.js} +3 -3
- package/{default-slot-widget-2ab850e5.js → default-slot-widget-0fd9dfcd.js} +3 -3
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-1333d551.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-ce93fdaa.js} +2 -2
- package/{descriptions-widget-6ca1644e.js → descriptions-widget-f78a71f7.js} +3 -3
- package/{dialog-widget-b52fb47f.js → dialog-widget-4bc86ed5.js} +4 -4
- package/{divider-widget-cecc7cf3.js → divider-widget-cb220b5b.js} +4 -4
- package/{drag-wrapper-e6fc52d7.js → drag-wrapper-a322293d.js} +1 -1
- package/{drawer-widget-336a7602.js → drawer-widget-98ec70f7.js} +4 -4
- package/{dropdown-widget-d522b316.js → dropdown-widget-9547884e.js} +3 -3
- package/{empty-widget-e13387e7.js → empty-widget-e153bbe6.js} +4 -4
- package/{feedback-widget-28bdae48.js → feedback-widget-a91ed42e.js} +4 -4
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-a66216a9.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-7bf45492.js} +3 -3
- package/{file-upload-widget-00649cda.js → file-upload-widget-2f0d4204.js} +7 -7
- package/{form-item-wrapper-ea272581.js → form-item-wrapper-5ac6c9e7.js} +1 -1
- package/{form-widget-b31edf95.js → form-widget-cd11ef85.js} +3 -3
- package/{grid-col-widget-3728efbc.js → grid-col-widget-ffa084d5.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-1527702c.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-c4467c54.js} +3 -3
- package/{grid-widget-96f37e8b.js → grid-widget-0c218aea.js} +3 -3
- package/html-text-widget-4cf65f95.js +50 -0
- package/{icon-widget-c61ede9d.js → icon-widget-0dac1067.js} +2 -2
- package/{iframe-widget-180de2c2.js → iframe-widget-8fc793c4.js} +2 -2
- package/{image-widget-bd64c7b5.js → image-widget-0e443141.js} +2 -2
- package/{input-number-widget-26cfbce1.js → input-number-widget-3aae4807.js} +3 -3
- package/{input-widget-44d7c4bf.js → input-widget-4801bba1.js} +4 -4
- package/link-widget-ebe1b45b.js +57 -0
- package/{ltable-col-widget-c09edcc9.js → ltable-col-widget-5fa718bd.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-23307a6e.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-f49f7017.js} +3 -3
- package/{ltable-widget-f0ea3ae8.js → ltable-widget-c94e6302.js} +3 -3
- package/{menu-widget-4ac51eb9.js → menu-widget-79f1ab96.js} +2 -2
- package/{model-widget-4330f4eb.js → model-widget-4f3130e8.js} +2 -2
- package/{multirow-widget-c52dbe5d.js → multirow-widget-7b624281.js} +3 -3
- package/package.json +1 -1
- package/{pagination-widget-5b6931d7.js → pagination-widget-3eea142b.js} +2 -2
- package/{picture-upload-widget-9d1fd88b.js → picture-upload-widget-438d25b9.js} +4 -4
- package/{progress-widget-14c8309c.js → progress-widget-73e6c401.js} +3 -3
- package/{qrcode-widget-08f6d36f.js → qrcode-widget-710b20a3.js} +2 -2
- package/{radio-widget-51fdc48c.js → radio-widget-8f0f8abd.js} +3 -3
- package/{range-widget-09264c7f.js → range-widget-5d4b4f0b.js} +4 -4
- package/{rate-widget-8f8633e3.js → rate-widget-a8187f2f.js} +3 -3
- package/render.es.js +17 -17
- package/render.umd.js +237 -237
- package/{result-widget-b171a3ad.js → result-widget-7bda4844.js} +3 -3
- package/{rich-editor-widget-1eda583a.js → rich-editor-widget-eb258cc0.js} +3 -3
- package/{router-widget-0ac92911.js → router-widget-b4fc1fe7.js} +2 -2
- package/{select-widget-29fa3f00.js → select-widget-a498758b.js} +3 -3
- package/{share-field-102c0951.js → share-field-5dfa7966.js} +157 -156
- package/{share-file-d85c66e8.js → share-file-64cb521e.js} +1 -1
- package/{slider-widget-9903b487.js → slider-widget-3c7e4eec.js} +3 -3
- package/{static-text-widget-8e18c82a.js → static-text-widget-15ee0116.js} +15 -15
- package/{steps-widget-d88067a7.js → steps-widget-8a5b0506.js} +2 -2
- package/{switch-widget-b3236fee.js → switch-widget-82d8a7ed.js} +3 -3
- package/{tab-pane-widget-88711210.js → tab-pane-widget-b978cd2d.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-531f6e67.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-f9fcbd78.js} +3 -3
- package/{table-col-widget-ecdfd8ae.js → table-col-widget-97537a60.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-43c2c991.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-f5ecc994.js} +1 -1
- package/{table-widget-758c64bb.js → table-widget-2177632c.js} +4 -4
- package/{tabs-widget-8919cbea.js → tabs-widget-1db89784.js} +3 -3
- package/{tag-widget-8f82fc22.js → tag-widget-e17962e6.js} +4 -4
- package/{text-widget-3494dca3.js → text-widget-e37a6a81.js} +4 -4
- package/{textarea-widget-d277540e.js → textarea-widget-010d8053.js} +3 -3
- package/{time-picker-range-widget-d84ecf97.js → time-picker-range-widget-0407d00b.js} +3 -3
- package/{time-picker-widget-8923a9c7.js → time-picker-widget-b1a6ebbd.js} +3 -3
- package/{time-select-widget-75deaf26.js → time-select-widget-7ebb8900.js} +3 -3
- package/{tmpl-widget-26b79630.js → tmpl-widget-4ca1f618.js} +3 -3
- package/{tree-select-widget-44244632.js → tree-select-widget-769ad21f.js} +3 -3
- package/{tree-widget-df6cc24a.js → tree-widget-f04abf13.js} +2 -2
- package/{verifycode-widget-551d5c1a.js → verifycode-widget-820ab186.js} +2 -2
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-a051d226.js +277 -0
- package/{wrapper-widget-5ad36e6b.js → wrapper-widget-c1c5ffe8.js} +3 -3
- package/html-text-widget-c6cbd7d3.js +0 -50
- package/link-widget-b246623e.js +0 -57
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-45ed1937.js +0 -279
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { defineComponent as de, resolveComponent as U, openBlock as l, createElementBlock as v, Fragment as j, createVNode as o, createCommentVNode as y, createBlock as W, createSlots as ee, withCtx as a, createElementVNode as V, renderList as te, createTextVNode as C, toDisplayString as k, withModifiers as w, unref as n, renderSlot as T, computed as L, ref as ne, resolveDynamicComponent as ie, mergeProps as z, toHandlers as ae } from "vue";
|
|
2
|
+
import { e as g, c as re, R as se } from "./enum-type-5a9b17ba.js";
|
|
3
|
+
import { I as pe, a as ue } from "./widget-base-4c2d6265.js";
|
|
4
|
+
import { a as oe, i as me, j as ge, k as fe } from "./index-4a277f99.js";
|
|
5
|
+
import { S as m } from "./index-e9b4d9d2.js";
|
|
6
|
+
import { f as we } from "./baseImp-2703fc95.js";
|
|
7
|
+
import { c as Q, S as ve } from "./enum-type-673fa7d4.js";
|
|
8
|
+
import { u as ye } from "./fieldobj-6e5012ec.js";
|
|
9
|
+
const We = { key: 0 }, he = { class: "clWhite" }, ce = { class: "clWhite" }, Ce = ["title"], ke = ["title"], Le = ["title"], be = ["title"], $e = /* @__PURE__ */ de({
|
|
10
|
+
__name: "drag-handler",
|
|
11
|
+
props: { ...pe, parentTree: { type: Object, default: null }, hidden: { type: Boolean, default: !1 }, simple: { type: Boolean } },
|
|
12
|
+
setup(f) {
|
|
13
|
+
const r = f, { setSelected: E, findWidgetById: J, removeWidget: I, moveDownWidget: B, moveUpWidget: D, cloneWidget: F } = oe(r.designer), H = (t) => {
|
|
14
|
+
const d = t == null ? void 0 : t.id;
|
|
15
|
+
if (t.selectable === !1)
|
|
16
|
+
we.info(g.i18nt("designer.hint.currentNodeCannotBeSelected"));
|
|
17
|
+
else {
|
|
18
|
+
const u = J(d);
|
|
19
|
+
E(u);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return (t, d) => {
|
|
23
|
+
var b, $;
|
|
24
|
+
const u = U("el-dropdown-item"), M = U("el-dropdown-menu"), s = U("el-dropdown"), O = U("el-divider");
|
|
25
|
+
return l(), v(j, null, [
|
|
26
|
+
f.hidden === !0 ? (l(), v("i", We, [
|
|
27
|
+
o(m, { name: "@el-hide" })
|
|
28
|
+
])) : y("", !0),
|
|
29
|
+
f.simple ? (l(), W(s, {
|
|
30
|
+
key: 1,
|
|
31
|
+
onCommand: H
|
|
32
|
+
}, ee({
|
|
33
|
+
default: a(() => [
|
|
34
|
+
V("span", he, [
|
|
35
|
+
o(m, { name: "@el-arrow-down" })
|
|
36
|
+
])
|
|
37
|
+
]),
|
|
38
|
+
_: 2
|
|
39
|
+
}, [
|
|
40
|
+
((b = f.parentTree) == null ? void 0 : b.length) > 0 ? {
|
|
41
|
+
name: "dropdown",
|
|
42
|
+
fn: a(() => [
|
|
43
|
+
o(M, null, {
|
|
44
|
+
default: a(() => [
|
|
45
|
+
(l(!0), v(j, null, te(f.parentTree, (i, h) => (l(), W(u, { command: i }, {
|
|
46
|
+
default: a(() => [
|
|
47
|
+
C(k(i == null ? void 0 : i.label), 1)
|
|
48
|
+
]),
|
|
49
|
+
_: 2
|
|
50
|
+
}, 1032, ["command"]))), 256)),
|
|
51
|
+
o(u, {
|
|
52
|
+
divided: "",
|
|
53
|
+
onClick: d[0] || (d[0] = w((i) => n(F)(t.widget, t.parentList), ["stop"]))
|
|
54
|
+
}, {
|
|
55
|
+
default: a(() => [
|
|
56
|
+
o(m, { name: "@el-clone" }),
|
|
57
|
+
C(k(n(g).i18nt("designer.hint.cloneWidget")), 1)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}),
|
|
61
|
+
o(u, {
|
|
62
|
+
onClick: d[1] || (d[1] = w((i) => n(I)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
63
|
+
}, {
|
|
64
|
+
default: a(() => [
|
|
65
|
+
o(m, { name: "@el-delete" }),
|
|
66
|
+
C(k(n(g).i18nt("designer.hint.remove")), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
70
|
+
t.parentList && t.parentList.length > 1 ? (l(), W(u, {
|
|
71
|
+
key: 0,
|
|
72
|
+
onClick: d[2] || (d[2] = w((i) => n(D)(t.parentList, t.widget), ["stop"]))
|
|
73
|
+
}, {
|
|
74
|
+
default: a(() => [
|
|
75
|
+
o(m, { name: "@el-move-up" }),
|
|
76
|
+
C(k(n(g).i18nt("designer.hint.moveUpWidget")), 1)
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
})) : y("", !0),
|
|
80
|
+
t.parentList && t.parentList.length > 1 ? (l(), W(u, {
|
|
81
|
+
key: 1,
|
|
82
|
+
onClick: d[3] || (d[3] = w((i) => n(B)(t.parentList, t.widget), ["stop"]))
|
|
83
|
+
}, {
|
|
84
|
+
default: a(() => [
|
|
85
|
+
o(m, { name: "@el-move-down" }),
|
|
86
|
+
C(k(n(g).i18nt("designer.hint.moveDownWidget")), 1)
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
})) : y("", !0),
|
|
90
|
+
t.$slots.default ? (l(), W(u, {
|
|
91
|
+
key: 2,
|
|
92
|
+
divied: ""
|
|
93
|
+
}, {
|
|
94
|
+
default: a(() => [
|
|
95
|
+
T(t.$slots, "default")
|
|
96
|
+
]),
|
|
97
|
+
_: 3
|
|
98
|
+
})) : y("", !0)
|
|
99
|
+
]),
|
|
100
|
+
_: 3
|
|
101
|
+
})
|
|
102
|
+
]),
|
|
103
|
+
key: "0"
|
|
104
|
+
} : void 0
|
|
105
|
+
]), 1024)) : (l(), v(j, { key: 2 }, [
|
|
106
|
+
o(s, { onCommand: H }, ee({
|
|
107
|
+
default: a(() => {
|
|
108
|
+
var i, h;
|
|
109
|
+
return [
|
|
110
|
+
V("span", ce, [
|
|
111
|
+
C(k(n(g).i18n2t(
|
|
112
|
+
`designer.widgetLabel.${(i = t.widget) == null ? void 0 : i.type}`,
|
|
113
|
+
`extension.widgetLabel.${(h = t.widget) == null ? void 0 : h.type}`
|
|
114
|
+
)) + " ", 1),
|
|
115
|
+
o(m, {
|
|
116
|
+
name: "@el-arrow-down",
|
|
117
|
+
class: "el-icon--right"
|
|
118
|
+
})
|
|
119
|
+
])
|
|
120
|
+
];
|
|
121
|
+
}),
|
|
122
|
+
_: 2
|
|
123
|
+
}, [
|
|
124
|
+
(($ = f.parentTree) == null ? void 0 : $.length) > 0 ? {
|
|
125
|
+
name: "dropdown",
|
|
126
|
+
fn: a(() => [
|
|
127
|
+
o(M, null, {
|
|
128
|
+
default: a(() => [
|
|
129
|
+
(l(!0), v(j, null, te(f.parentTree, (i, h) => (l(), W(u, { command: i }, {
|
|
130
|
+
default: a(() => [
|
|
131
|
+
C(k(i == null ? void 0 : i.label), 1)
|
|
132
|
+
]),
|
|
133
|
+
_: 2
|
|
134
|
+
}, 1032, ["command"]))), 256))
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
})
|
|
138
|
+
]),
|
|
139
|
+
key: "0"
|
|
140
|
+
} : void 0
|
|
141
|
+
]), 1024),
|
|
142
|
+
o(O, {
|
|
143
|
+
direction: "vertical",
|
|
144
|
+
"border-style": "dashed",
|
|
145
|
+
color: "white"
|
|
146
|
+
}),
|
|
147
|
+
T(t.$slots, "default"),
|
|
148
|
+
t.parentList && t.parentList.length > 1 ? (l(), v("i", {
|
|
149
|
+
key: 0,
|
|
150
|
+
title: n(g).i18nt("designer.hint.moveUpWidget"),
|
|
151
|
+
onClick: d[4] || (d[4] = w((i) => n(D)(t.parentList, t.widget), ["stop"]))
|
|
152
|
+
}, [
|
|
153
|
+
o(m, { name: "@el-move-up" })
|
|
154
|
+
], 8, Ce)) : y("", !0),
|
|
155
|
+
t.parentList && t.parentList.length > 1 ? (l(), v("i", {
|
|
156
|
+
key: 1,
|
|
157
|
+
title: n(g).i18nt("designer.hint.moveDownWidget"),
|
|
158
|
+
onClick: d[5] || (d[5] = w((i) => n(B)(t.parentList, t.widget), ["stop"]))
|
|
159
|
+
}, [
|
|
160
|
+
o(m, { name: "@el-move-down" })
|
|
161
|
+
], 8, ke)) : y("", !0),
|
|
162
|
+
V("i", {
|
|
163
|
+
title: n(g).i18nt("designer.hint.cloneWidget"),
|
|
164
|
+
onClick: d[6] || (d[6] = w((i) => n(F)(t.widget, t.parentList), ["stop"]))
|
|
165
|
+
}, [
|
|
166
|
+
o(m, { name: "@el-clone" })
|
|
167
|
+
], 8, Le),
|
|
168
|
+
V("i", {
|
|
169
|
+
title: n(g).i18nt("designer.hint.remove"),
|
|
170
|
+
onClick: d[7] || (d[7] = w((i) => n(I)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
171
|
+
}, [
|
|
172
|
+
o(m, { name: "@el-delete" })
|
|
173
|
+
], 8, be)
|
|
174
|
+
], 64))
|
|
175
|
+
], 64);
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
const Fe = /* @__PURE__ */ de({
|
|
180
|
+
__name: "widget-wrapper",
|
|
181
|
+
props: { ...ue },
|
|
182
|
+
setup(f) {
|
|
183
|
+
var Y;
|
|
184
|
+
const r = f, { selectWidget: E } = oe(r.designer), { widgetTree: J } = me((Y = r.designer) == null ? void 0 : Y.widgetList, !0), { pathNodes: I, parentTree: B } = ge(J.value, r.widget), { size: D, displayLayout: F, labelAlign: H, labelWidth: t, formItemFlag: d, labelSuffix: u, labelHidden: M } = fe(r, re(I.value)), { getAttrProp: s } = ye(r), O = L(() => s == null ? void 0 : s("hidden")), b = L(() => s == null ? void 0 : s("labelWidth")), $ = (e) => e && !["div", "span"].includes(e), i = L(() => {
|
|
185
|
+
var e;
|
|
186
|
+
return (e = r.widget) == null ? void 0 : e.id;
|
|
187
|
+
}), h = L(() => {
|
|
188
|
+
var e, p;
|
|
189
|
+
return (e = r.widget) != null && e.type ? [Q.grid, Q.gridCol, Q.wrapper].includes((p = r.widget) == null ? void 0 : p.type) : !1;
|
|
190
|
+
}), S = L(() => {
|
|
191
|
+
const e = s == null ? void 0 : s("width"), p = s == null ? void 0 : s("ctrlWidth"), c = s == null ? void 0 : s("customClass"), R = s == null ? void 0 : s("componentWrapperClass");
|
|
192
|
+
let N = {};
|
|
193
|
+
return b.value != ve.auto && b.value && (N.labelWidth = b.value), {
|
|
194
|
+
size: D.value,
|
|
195
|
+
labelAlign: H.value,
|
|
196
|
+
labelWidth: t.value,
|
|
197
|
+
// 隐藏的标签宽度仍旧保留,为占位
|
|
198
|
+
formItemFlag: d.value,
|
|
199
|
+
formItemAttr: N,
|
|
200
|
+
ctrlWidth: p,
|
|
201
|
+
displayStyle: F.value,
|
|
202
|
+
labelSuffix: u.value || "",
|
|
203
|
+
injectStyle: {},
|
|
204
|
+
//verticalAlign: verticalAlign.value, width: withLabel.value ? '100%' : ctrlWidth.value
|
|
205
|
+
//注:宽度全屏
|
|
206
|
+
injectClass: [se(c), e ? "" : "full-width", i.value],
|
|
207
|
+
// filterDisplay.value ? displayStyle.value : ''
|
|
208
|
+
componentWrapperClass: se(R)
|
|
209
|
+
};
|
|
210
|
+
}), X = L(() => {
|
|
211
|
+
var e, p, c;
|
|
212
|
+
return !!r.designer && ((e = r.widget) == null ? void 0 : e.id) === ((c = (p = r.designer) == null ? void 0 : p.selectedWidget) == null ? void 0 : c.id);
|
|
213
|
+
}), q = ne(), G = ne(), le = L(() => {
|
|
214
|
+
var e, p;
|
|
215
|
+
if (q.value && G.value && X.value)
|
|
216
|
+
return ((e = q.value) == null ? void 0 : e.offsetWidth) > ((p = G.value) == null ? void 0 : p.offsetWidth);
|
|
217
|
+
});
|
|
218
|
+
return (e, p) => {
|
|
219
|
+
var c, R, N, Z, A, P;
|
|
220
|
+
return e.designState ? (l(), W(ie(e.componentName), z({
|
|
221
|
+
key: 0,
|
|
222
|
+
class: ["field-wrapper", [n(X) ? "selected" : "", " drag-handler", e.propOptions.class, n(i), e.showWrapperComponent ? n(S).injectClass : null]],
|
|
223
|
+
style: e.propOptions.style,
|
|
224
|
+
onClick: p[0] || (p[0] = w((K) => n(E)(e.widget, e.parentWidget, e.parentList), ["stop"])),
|
|
225
|
+
ref_key: "wrapperRef",
|
|
226
|
+
ref: G,
|
|
227
|
+
tabindex: 0
|
|
228
|
+
}, $(e.componentName) ? (R = (c = e.propOptions) == null ? void 0 : c.fieldObj) == null ? void 0 : R.attrs : {}), {
|
|
229
|
+
default: a(() => {
|
|
230
|
+
var K, _, x;
|
|
231
|
+
return [
|
|
232
|
+
T(e.$slots, "default", { data: n(S) }),
|
|
233
|
+
((_ = (K = e.designer) == null ? void 0 : K.selectedWidget) == null ? void 0 : _.id) === ((x = e.widget) == null ? void 0 : x.id) ? (l(), v("div", {
|
|
234
|
+
key: 0,
|
|
235
|
+
class: "action",
|
|
236
|
+
ref_key: "dragHandlerRef",
|
|
237
|
+
ref: q
|
|
238
|
+
}, [
|
|
239
|
+
o($e, {
|
|
240
|
+
simple: n(le),
|
|
241
|
+
"design-state": e.designState,
|
|
242
|
+
designer: e.designer,
|
|
243
|
+
widget: e.widget,
|
|
244
|
+
"parent-widget": e.parentWidget,
|
|
245
|
+
"parent-list": e.parentList,
|
|
246
|
+
parentTree: n(B),
|
|
247
|
+
hidden: n(O)
|
|
248
|
+
}, {
|
|
249
|
+
default: a(() => [
|
|
250
|
+
T(e.$slots, "drag")
|
|
251
|
+
]),
|
|
252
|
+
_: 3
|
|
253
|
+
}, 8, ["simple", "design-state", "designer", "widget", "parent-widget", "parent-list", "parentTree", "hidden"])
|
|
254
|
+
], 512)) : y("", !0)
|
|
255
|
+
];
|
|
256
|
+
}),
|
|
257
|
+
_: 3
|
|
258
|
+
}, 16, ["class", "style"])) : !n(O) || n(h) ? (l(), v(j, { key: 1 }, [
|
|
259
|
+
e.showWrapperComponent ? (l(), W(ie(e.componentName), z({ key: 0 }, $(e.componentName) ? (Z = (N = e.propOptions) == null ? void 0 : N.fieldObj) == null ? void 0 : Z.attrs : {}, ae($(e.componentName) ? (P = (A = e.propOptions) == null ? void 0 : A.fieldObj) == null ? void 0 : P.events : {}), {
|
|
260
|
+
class: ["_id_BycomponentName", [...n(S).injectClass, n(i), e.propOptions.class, n(O) && n(h) ? "hlhidden" : ""]],
|
|
261
|
+
style: { ...n(S).injectStyle, ...e.propOptions.style }
|
|
262
|
+
}), {
|
|
263
|
+
default: a(() => [
|
|
264
|
+
T(e.$slots, "default", z({ data: n(S) }, e.$props))
|
|
265
|
+
]),
|
|
266
|
+
_: 3
|
|
267
|
+
}, 16, ["class", "style"])) : T(e.$slots, "default", z({
|
|
268
|
+
key: 1,
|
|
269
|
+
data: n(S)
|
|
270
|
+
}, e.$props))
|
|
271
|
+
], 64)) : y("", !0);
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
export {
|
|
276
|
+
Fe as _
|
|
277
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as y, watch as L, defineComponent as h, resolveDirective as j, openBlock as b, createBlock as D, mergeProps as W, unref as s, withCtx as O, withDirectives as P, createElementBlock as x, normalizeClass as z, createVNode as R, createCommentVNode as S } from "vue";
|
|
2
2
|
import { I as k } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { D as A } from "./drag-wrapper-
|
|
4
|
-
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
3
|
+
import { D as A } from "./drag-wrapper-a322293d.js";
|
|
4
|
+
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-a051d226.js";
|
|
5
5
|
import { w as F } from "./expression-e4a50cfb.js";
|
|
6
6
|
import { W as v } from "./enum-type-673fa7d4.js";
|
|
7
|
-
import { b as N, a as $ } from "./share-field-
|
|
7
|
+
import { b as N, a as $ } from "./share-field-5dfa7966.js";
|
|
8
8
|
import { c as E } from "./slot-aa6fccb9.js";
|
|
9
9
|
function H(i) {
|
|
10
10
|
const n = y({}), { componentWrapperClass: c, customClass: a } = E({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: m, fieldKey: f, fieldObj: g } = N(i), { setAllRefList: l } = $(n.value), p = (o = !1) => {
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, openBlock as _, createBlock as u, mergeProps as x, unref as o, withCtx as g, createVNode as w } from "vue";
|
|
2
|
-
import { I as C } from "./field-base-5547436d.js";
|
|
3
|
-
import { b as P } from "./share-field-102c0951.js";
|
|
4
|
-
import { w as b } from "./expression-e4a50cfb.js";
|
|
5
|
-
import { _ as h } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-45ed1937.js";
|
|
6
|
-
import { _ as k } from "./content-wrapper.vue_vue_type_script_setup_true_lang-8fdd2d4a.js";
|
|
7
|
-
import { R as F } from "./enum-type-5a9b17ba.js";
|
|
8
|
-
import "./widget-base-4c2d6265.js";
|
|
9
|
-
import "./multirow-bcc05494.js";
|
|
10
|
-
import "./baseImp-2703fc95.js";
|
|
11
|
-
import "./enum-type-673fa7d4.js";
|
|
12
|
-
import "./icon-a0e0cdb0.js";
|
|
13
|
-
import "./dialog-1af96257.js";
|
|
14
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
-
import "./uuid-4999945f.js";
|
|
16
|
-
import "element-plus";
|
|
17
|
-
import "./index-4a277f99.js";
|
|
18
|
-
import "./slot-aa6fccb9.js";
|
|
19
|
-
import "./source-map-b04aec4a.js";
|
|
20
|
-
import "./esprima-e8d15055.js";
|
|
21
|
-
import "./index-e9b4d9d2.js";
|
|
22
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./fieldobj-6e5012ec.js";
|
|
24
|
-
const $ = i({ componentName: b.FieldWidget }), U = /* @__PURE__ */ i({
|
|
25
|
-
...$,
|
|
26
|
-
__name: "html-text-widget",
|
|
27
|
-
props: { ...C },
|
|
28
|
-
setup(m, { expose: s }) {
|
|
29
|
-
const n = m, { exposed: a, fieldEditor: f, extendAttrs: t, attrs: l, fieldObj: c } = P(n);
|
|
30
|
-
return s({ ...a }), (d, j) => (_(), u(h, x(d.$props, {
|
|
31
|
-
"prop-options": { fieldObj: o(c) }
|
|
32
|
-
}), {
|
|
33
|
-
default: g(() => {
|
|
34
|
-
var r, e, p;
|
|
35
|
-
return [
|
|
36
|
-
w(k, {
|
|
37
|
-
ref_key: "fieldEditor",
|
|
38
|
-
ref: f,
|
|
39
|
-
"component-name": "div",
|
|
40
|
-
allProps: { customClass: o(F)((r = o(t)) == null ? void 0 : r.customClass), content: ((e = o(l)) == null ? void 0 : e.content) || ((p = o(t)) == null ? void 0 : p.content) }
|
|
41
|
-
}, null, 8, ["allProps"])
|
|
42
|
-
];
|
|
43
|
-
}),
|
|
44
|
-
_: 1
|
|
45
|
-
}, 16, ["prop-options"]));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export {
|
|
49
|
-
U as default
|
|
50
|
-
};
|
package/link-widget-b246623e.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as e, createBlock as r, mergeProps as g, unref as o, withCtx as w, createCommentVNode as a, createVNode as N } from "vue";
|
|
2
|
-
import { I as O } from "./field-base-5547436d.js";
|
|
3
|
-
import { _ as P } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-1333d551.js";
|
|
4
|
-
import { w as b } from "./expression-e4a50cfb.js";
|
|
5
|
-
import { _ as C } from "./content-wrapper.vue_vue_type_script_setup_true_lang-8fdd2d4a.js";
|
|
6
|
-
import { S as c } from "./index-e9b4d9d2.js";
|
|
7
|
-
import { b as F } from "./share-field-102c0951.js";
|
|
8
|
-
import "./widget-base-4c2d6265.js";
|
|
9
|
-
import "./enum-type-5a9b17ba.js";
|
|
10
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-45ed1937.js";
|
|
11
|
-
import "./index-4a277f99.js";
|
|
12
|
-
import "./uuid-4999945f.js";
|
|
13
|
-
import "./enum-type-673fa7d4.js";
|
|
14
|
-
import "./baseImp-2703fc95.js";
|
|
15
|
-
import "./icon-a0e0cdb0.js";
|
|
16
|
-
import "./dialog-1af96257.js";
|
|
17
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
18
|
-
import "element-plus";
|
|
19
|
-
import "./fieldobj-6e5012ec.js";
|
|
20
|
-
import "./slot-aa6fccb9.js";
|
|
21
|
-
import "./drag-wrapper-e6fc52d7.js";
|
|
22
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./source-map-b04aec4a.js";
|
|
24
|
-
import "./esprima-e8d15055.js";
|
|
25
|
-
import "./multirow-bcc05494.js";
|
|
26
|
-
const S = l({ componentName: b.FieldWidget }), to = /* @__PURE__ */ l({
|
|
27
|
-
...S,
|
|
28
|
-
__name: "link-widget",
|
|
29
|
-
props: { ...O },
|
|
30
|
-
setup(f, { expose: d }) {
|
|
31
|
-
const _ = f, { attrs: u, extendAttrs: t, exposed: x, fieldObj: I } = F(_);
|
|
32
|
-
return d({ ...x }), (k, V) => (e(), r(P, g(k.$props, {
|
|
33
|
-
propOptions: { elementName: "el-link", fieldObj: o(I) }
|
|
34
|
-
}), {
|
|
35
|
-
contentSlot: w(({ data: $ }) => {
|
|
36
|
-
var p, m, i, n, s;
|
|
37
|
-
return [
|
|
38
|
-
(p = o(t)) != null && p.prefixIcon ? (e(), r(c, {
|
|
39
|
-
key: (m = o(t)) == null ? void 0 : m.prefixIcon,
|
|
40
|
-
name: (i = o(t)) == null ? void 0 : i.prefixIcon
|
|
41
|
-
}, null, 8, ["name"])) : a("", !0),
|
|
42
|
-
N(C, {
|
|
43
|
-
allProps: { content: o(u).content || o(t).content }
|
|
44
|
-
}, null, 8, ["allProps"]),
|
|
45
|
-
(n = o(t)) != null && n.suffixIcon ? (e(), r(c, {
|
|
46
|
-
key: 1,
|
|
47
|
-
name: (s = o(t)) == null ? void 0 : s.suffixIcon
|
|
48
|
-
}, null, 8, ["name"])) : a("", !0)
|
|
49
|
-
];
|
|
50
|
-
}),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 16, ["propOptions"]));
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
to as default
|
|
57
|
-
};
|
package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-45ed1937.js
DELETED
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import { defineComponent as de, resolveComponent as R, openBlock as l, createElementBlock as y, Fragment as N, createVNode as o, createCommentVNode as W, createBlock as h, createSlots as ee, withCtx as a, createElementVNode as U, renderList as te, createTextVNode as C, toDisplayString as k, withModifiers as v, unref as n, renderSlot as S, computed as L, ref as ne, resolveDynamicComponent as ie, mergeProps as V, toHandlers as ae } from "vue";
|
|
2
|
-
import { e as f, c as re, R as se } from "./enum-type-5a9b17ba.js";
|
|
3
|
-
import { I as pe, a as ue } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { a as oe, i as me, j as ge, k as fe, d as we } from "./index-4a277f99.js";
|
|
5
|
-
import { S as g } from "./index-e9b4d9d2.js";
|
|
6
|
-
import { f as ve } from "./baseImp-2703fc95.js";
|
|
7
|
-
import { c as Q, S as ye } from "./enum-type-673fa7d4.js";
|
|
8
|
-
import { u as We } from "./fieldobj-6e5012ec.js";
|
|
9
|
-
const he = { key: 0 }, ce = { class: "clWhite" }, Ce = { class: "clWhite" }, ke = ["title"], Le = ["title"], be = ["title"], $e = ["title"], Se = /* @__PURE__ */ de({
|
|
10
|
-
__name: "drag-handler",
|
|
11
|
-
props: { ...pe, parentTree: { type: Object, default: null }, hidden: { type: Boolean, default: !1 }, simple: { type: Boolean } },
|
|
12
|
-
setup(w) {
|
|
13
|
-
const r = w, { setSelected: z, findWidgetById: E, removeWidget: j, moveDownWidget: I, moveUpWidget: B, cloneWidget: D } = oe(r.designer), F = (t) => {
|
|
14
|
-
const d = t == null ? void 0 : t.id;
|
|
15
|
-
if (t.selectable === !1)
|
|
16
|
-
ve.info(f.i18nt("designer.hint.currentNodeCannotBeSelected"));
|
|
17
|
-
else {
|
|
18
|
-
const u = E(d);
|
|
19
|
-
z(u);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
return (t, d) => {
|
|
23
|
-
var b, $;
|
|
24
|
-
const u = R("el-dropdown-item"), J = R("el-dropdown-menu"), s = R("el-dropdown"), T = R("el-divider");
|
|
25
|
-
return l(), y(N, null, [
|
|
26
|
-
w.hidden === !0 ? (l(), y("i", he, [
|
|
27
|
-
o(g, { name: "@el-hide" })
|
|
28
|
-
])) : W("", !0),
|
|
29
|
-
w.simple ? (l(), h(s, {
|
|
30
|
-
key: 1,
|
|
31
|
-
onCommand: F
|
|
32
|
-
}, ee({
|
|
33
|
-
default: a(() => [
|
|
34
|
-
U("span", ce, [
|
|
35
|
-
o(g, { name: "@el-arrow-down" })
|
|
36
|
-
])
|
|
37
|
-
]),
|
|
38
|
-
_: 2
|
|
39
|
-
}, [
|
|
40
|
-
((b = w.parentTree) == null ? void 0 : b.length) > 0 ? {
|
|
41
|
-
name: "dropdown",
|
|
42
|
-
fn: a(() => [
|
|
43
|
-
o(J, null, {
|
|
44
|
-
default: a(() => [
|
|
45
|
-
(l(!0), y(N, null, te(w.parentTree, (i, m) => (l(), h(u, { command: i }, {
|
|
46
|
-
default: a(() => [
|
|
47
|
-
C(k(i == null ? void 0 : i.label), 1)
|
|
48
|
-
]),
|
|
49
|
-
_: 2
|
|
50
|
-
}, 1032, ["command"]))), 256)),
|
|
51
|
-
o(u, {
|
|
52
|
-
divided: "",
|
|
53
|
-
onClick: d[0] || (d[0] = v((i) => n(D)(t.widget, t.parentList), ["stop"]))
|
|
54
|
-
}, {
|
|
55
|
-
default: a(() => [
|
|
56
|
-
o(g, { name: "@el-clone" }),
|
|
57
|
-
C(k(n(f).i18nt("designer.hint.cloneWidget")), 1)
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
}),
|
|
61
|
-
o(u, {
|
|
62
|
-
onClick: d[1] || (d[1] = v((i) => n(j)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
63
|
-
}, {
|
|
64
|
-
default: a(() => [
|
|
65
|
-
o(g, { name: "@el-delete" }),
|
|
66
|
-
C(k(n(f).i18nt("designer.hint.remove")), 1)
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}),
|
|
70
|
-
t.parentList && t.parentList.length > 1 ? (l(), h(u, {
|
|
71
|
-
key: 0,
|
|
72
|
-
onClick: d[2] || (d[2] = v((i) => n(B)(t.parentList, t.widget), ["stop"]))
|
|
73
|
-
}, {
|
|
74
|
-
default: a(() => [
|
|
75
|
-
o(g, { name: "@el-move-up" }),
|
|
76
|
-
C(k(n(f).i18nt("designer.hint.moveUpWidget")), 1)
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
})) : W("", !0),
|
|
80
|
-
t.parentList && t.parentList.length > 1 ? (l(), h(u, {
|
|
81
|
-
key: 1,
|
|
82
|
-
onClick: d[3] || (d[3] = v((i) => n(I)(t.parentList, t.widget), ["stop"]))
|
|
83
|
-
}, {
|
|
84
|
-
default: a(() => [
|
|
85
|
-
o(g, { name: "@el-move-down" }),
|
|
86
|
-
C(k(n(f).i18nt("designer.hint.moveDownWidget")), 1)
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
})) : W("", !0),
|
|
90
|
-
t.$slots.default ? (l(), h(u, {
|
|
91
|
-
key: 2,
|
|
92
|
-
divied: ""
|
|
93
|
-
}, {
|
|
94
|
-
default: a(() => [
|
|
95
|
-
S(t.$slots, "default")
|
|
96
|
-
]),
|
|
97
|
-
_: 3
|
|
98
|
-
})) : W("", !0)
|
|
99
|
-
]),
|
|
100
|
-
_: 3
|
|
101
|
-
})
|
|
102
|
-
]),
|
|
103
|
-
key: "0"
|
|
104
|
-
} : void 0
|
|
105
|
-
]), 1024)) : (l(), y(N, { key: 2 }, [
|
|
106
|
-
o(s, { onCommand: F }, ee({
|
|
107
|
-
default: a(() => {
|
|
108
|
-
var i, m;
|
|
109
|
-
return [
|
|
110
|
-
U("span", Ce, [
|
|
111
|
-
C(k(n(f).i18n2t(
|
|
112
|
-
`designer.widgetLabel.${(i = t.widget) == null ? void 0 : i.type}`,
|
|
113
|
-
`extension.widgetLabel.${(m = t.widget) == null ? void 0 : m.type}`
|
|
114
|
-
)) + " ", 1),
|
|
115
|
-
o(g, {
|
|
116
|
-
name: "@el-arrow-down",
|
|
117
|
-
class: "el-icon--right"
|
|
118
|
-
})
|
|
119
|
-
])
|
|
120
|
-
];
|
|
121
|
-
}),
|
|
122
|
-
_: 2
|
|
123
|
-
}, [
|
|
124
|
-
(($ = w.parentTree) == null ? void 0 : $.length) > 0 ? {
|
|
125
|
-
name: "dropdown",
|
|
126
|
-
fn: a(() => [
|
|
127
|
-
o(J, null, {
|
|
128
|
-
default: a(() => [
|
|
129
|
-
(l(!0), y(N, null, te(w.parentTree, (i, m) => (l(), h(u, { command: i }, {
|
|
130
|
-
default: a(() => [
|
|
131
|
-
C(k(i == null ? void 0 : i.label), 1)
|
|
132
|
-
]),
|
|
133
|
-
_: 2
|
|
134
|
-
}, 1032, ["command"]))), 256))
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
})
|
|
138
|
-
]),
|
|
139
|
-
key: "0"
|
|
140
|
-
} : void 0
|
|
141
|
-
]), 1024),
|
|
142
|
-
o(T, {
|
|
143
|
-
direction: "vertical",
|
|
144
|
-
"border-style": "dashed",
|
|
145
|
-
color: "white"
|
|
146
|
-
}),
|
|
147
|
-
S(t.$slots, "default"),
|
|
148
|
-
t.parentList && t.parentList.length > 1 ? (l(), y("i", {
|
|
149
|
-
key: 0,
|
|
150
|
-
title: n(f).i18nt("designer.hint.moveUpWidget"),
|
|
151
|
-
onClick: d[4] || (d[4] = v((i) => n(B)(t.parentList, t.widget), ["stop"]))
|
|
152
|
-
}, [
|
|
153
|
-
o(g, { name: "@el-move-up" })
|
|
154
|
-
], 8, ke)) : W("", !0),
|
|
155
|
-
t.parentList && t.parentList.length > 1 ? (l(), y("i", {
|
|
156
|
-
key: 1,
|
|
157
|
-
title: n(f).i18nt("designer.hint.moveDownWidget"),
|
|
158
|
-
onClick: d[5] || (d[5] = v((i) => n(I)(t.parentList, t.widget), ["stop"]))
|
|
159
|
-
}, [
|
|
160
|
-
o(g, { name: "@el-move-down" })
|
|
161
|
-
], 8, Le)) : W("", !0),
|
|
162
|
-
U("i", {
|
|
163
|
-
title: n(f).i18nt("designer.hint.cloneWidget"),
|
|
164
|
-
onClick: d[6] || (d[6] = v((i) => n(D)(t.widget, t.parentList), ["stop"]))
|
|
165
|
-
}, [
|
|
166
|
-
o(g, { name: "@el-clone" })
|
|
167
|
-
], 8, be),
|
|
168
|
-
U("i", {
|
|
169
|
-
title: n(f).i18nt("designer.hint.remove"),
|
|
170
|
-
onClick: d[7] || (d[7] = v((i) => n(j)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
171
|
-
}, [
|
|
172
|
-
o(g, { name: "@el-delete" })
|
|
173
|
-
], 8, $e)
|
|
174
|
-
], 64))
|
|
175
|
-
], 64);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
const He = /* @__PURE__ */ de({
|
|
180
|
-
__name: "widget-wrapper",
|
|
181
|
-
props: { ...ue },
|
|
182
|
-
setup(w) {
|
|
183
|
-
var Y;
|
|
184
|
-
const r = w, { selectWidget: z } = oe(r.designer), { widgetTree: E } = me((Y = r.designer) == null ? void 0 : Y.widgetList, !0), { pathNodes: j, parentTree: I } = ge(E.value, r.widget), { size: B, displayLayout: D, labelAlign: F, labelWidth: t, formItemFlag: d, labelSuffix: u, labelHidden: J } = fe(r, re(j.value));
|
|
185
|
-
we(r.widget);
|
|
186
|
-
const { getAttrProp: s } = We(r), T = L(() => s == null ? void 0 : s("hidden")), b = L(() => s == null ? void 0 : s("labelWidth")), $ = (e) => e && !["div", "span"].includes(e), i = L(() => {
|
|
187
|
-
var e, p;
|
|
188
|
-
return (e = r.widget) != null && e.type ? [Q.grid, Q.gridCol, Q.wrapper].includes((p = r.widget) == null ? void 0 : p.type) : !1;
|
|
189
|
-
}), m = L(() => {
|
|
190
|
-
const e = s == null ? void 0 : s("width"), p = s == null ? void 0 : s("ctrlWidth"), c = s == null ? void 0 : s("customClass"), H = s == null ? void 0 : s("componentWrapperClass");
|
|
191
|
-
let O = {};
|
|
192
|
-
return b.value != ye.auto && b.value && (O.labelWidth = b.value), {
|
|
193
|
-
size: B.value,
|
|
194
|
-
labelAlign: F.value,
|
|
195
|
-
labelWidth: t.value,
|
|
196
|
-
// 隐藏的标签宽度仍旧保留,为占位
|
|
197
|
-
formItemFlag: d.value,
|
|
198
|
-
formItemAttr: O,
|
|
199
|
-
ctrlWidth: p,
|
|
200
|
-
displayStyle: D.value,
|
|
201
|
-
labelSuffix: u.value || "",
|
|
202
|
-
injectStyle: {},
|
|
203
|
-
//verticalAlign: verticalAlign.value, width: withLabel.value ? '100%' : ctrlWidth.value
|
|
204
|
-
//注:宽度全屏
|
|
205
|
-
injectClass: [se(c), e ? "" : "full-width", G.value],
|
|
206
|
-
// filterDisplay.value ? displayStyle.value : ''
|
|
207
|
-
componentWrapperClass: se(H)
|
|
208
|
-
};
|
|
209
|
-
}), X = L(() => {
|
|
210
|
-
var e, p, c;
|
|
211
|
-
return !!r.designer && ((e = r.widget) == null ? void 0 : e.id) === ((c = (p = r.designer) == null ? void 0 : p.selectedWidget) == null ? void 0 : c.id);
|
|
212
|
-
}), M = ne(), q = ne(), le = L(() => {
|
|
213
|
-
var e, p;
|
|
214
|
-
if (M.value && q.value && X.value)
|
|
215
|
-
return ((e = M.value) == null ? void 0 : e.offsetWidth) > ((p = q.value) == null ? void 0 : p.offsetWidth);
|
|
216
|
-
}), G = L(() => {
|
|
217
|
-
var e;
|
|
218
|
-
return (e = r.widget) == null ? void 0 : e.id;
|
|
219
|
-
});
|
|
220
|
-
return (e, p) => {
|
|
221
|
-
var c, H, O, Z, A, P;
|
|
222
|
-
return e.designState ? (l(), h(ie(e.componentName), V({
|
|
223
|
-
key: 0,
|
|
224
|
-
class: ["field-wrapper", [n(X) ? "selected" : "", " drag-handler", e.propOptions.class, n(G), e.showWrapperComponent ? n(m).injectClass : null]],
|
|
225
|
-
style: e.propOptions.style,
|
|
226
|
-
onClick: p[0] || (p[0] = v((K) => n(z)(e.widget, e.parentWidget, e.parentList), ["stop"])),
|
|
227
|
-
ref_key: "wrapperRef",
|
|
228
|
-
ref: q,
|
|
229
|
-
tabindex: 0
|
|
230
|
-
}, $(e.componentName) ? (H = (c = e.propOptions) == null ? void 0 : c.fieldObj) == null ? void 0 : H.attrs : {}), {
|
|
231
|
-
default: a(() => {
|
|
232
|
-
var K, _, x;
|
|
233
|
-
return [
|
|
234
|
-
S(e.$slots, "default", { data: n(m) }),
|
|
235
|
-
((_ = (K = e.designer) == null ? void 0 : K.selectedWidget) == null ? void 0 : _.id) === ((x = e.widget) == null ? void 0 : x.id) ? (l(), y("div", {
|
|
236
|
-
key: 0,
|
|
237
|
-
class: "action",
|
|
238
|
-
ref_key: "dragHandlerRef",
|
|
239
|
-
ref: M
|
|
240
|
-
}, [
|
|
241
|
-
o(Se, {
|
|
242
|
-
simple: n(le),
|
|
243
|
-
"design-state": e.designState,
|
|
244
|
-
designer: e.designer,
|
|
245
|
-
widget: e.widget,
|
|
246
|
-
"parent-widget": e.parentWidget,
|
|
247
|
-
"parent-list": e.parentList,
|
|
248
|
-
parentTree: n(I),
|
|
249
|
-
hidden: n(T)
|
|
250
|
-
}, {
|
|
251
|
-
default: a(() => [
|
|
252
|
-
S(e.$slots, "drag")
|
|
253
|
-
]),
|
|
254
|
-
_: 3
|
|
255
|
-
}, 8, ["simple", "design-state", "designer", "widget", "parent-widget", "parent-list", "parentTree", "hidden"])
|
|
256
|
-
], 512)) : W("", !0)
|
|
257
|
-
];
|
|
258
|
-
}),
|
|
259
|
-
_: 3
|
|
260
|
-
}, 16, ["class", "style"])) : !n(T) || n(i) ? (l(), y(N, { key: 1 }, [
|
|
261
|
-
e.showWrapperComponent ? (l(), h(ie(e.componentName), V({ key: 0 }, $(e.componentName) ? (Z = (O = e.propOptions) == null ? void 0 : O.fieldObj) == null ? void 0 : Z.attrs : {}, ae($(e.componentName) ? (P = (A = e.propOptions) == null ? void 0 : A.fieldObj) == null ? void 0 : P.events : {}), {
|
|
262
|
-
class: ["_id_BycomponentName", [...n(m).injectClass, n(G), e.propOptions.class, n(T) && n(i) ? "hlhidden" : ""]],
|
|
263
|
-
style: { ...n(m).injectStyle, ...e.propOptions.style }
|
|
264
|
-
}), {
|
|
265
|
-
default: a(() => [
|
|
266
|
-
S(e.$slots, "default", V({ data: n(m) }, e.$props))
|
|
267
|
-
]),
|
|
268
|
-
_: 3
|
|
269
|
-
}, 16, ["class", "style"])) : S(e.$slots, "default", V({
|
|
270
|
-
key: 1,
|
|
271
|
-
data: n(m)
|
|
272
|
-
}, e.$props))
|
|
273
|
-
], 64)) : W("", !0);
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
export {
|
|
278
|
-
He as _
|
|
279
|
-
};
|