hlrender 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/_commonjsHelpers-e7ea1525.js +36 -0
- package/_plugin-vue_export-helper-dad06003.js +9 -0
- package/affix-widget-b6cdaf6f.js +35 -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-403fe70f.js +54 -0
- package/auto-complete-widget-597d8400.js +71 -0
- package/avatar-widget-c56add2d.js +35 -0
- package/backtop-widget-65d711e3.js +35 -0
- package/badge-widget-f6a08422.js +41 -0
- package/baseImp-70f1a9c5.js +11003 -0
- package/breadcrumb-widget-3791fbcf.js +76 -0
- package/button-widget-b539a793.js +45 -0
- package/cache-widget-89624589.js +50 -0
- package/card-widget-2890042f.js +109 -0
- package/carousel-widget-730618e4.js +72 -0
- package/cascader-widget-a364f226.js +94 -0
- package/chart-widget-d0b5993c.js +44282 -0
- package/checkbox-widget-5f87a8e5.js +76 -0
- package/collapse-widget-a654ac45.js +86 -0
- package/color-picker-widget-b5b274dd.js +53 -0
- package/cont-cell-widget-475412c6.js +8 -0
- package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9aac0112.js +59 -0
- package/cont-widget-defa7dd6.js +42 -0
- package/content-wrapper-7ba06bbc.js +14 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js +37 -0
- package/date-picker-range-widget-e528dab6.js +69 -0
- package/date-picker-widget-a5d3e5ff.js +75 -0
- package/default-slot-widget-09d11567.js +22 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js +59 -0
- package/descriptions-widget-9711a62b.js +80 -0
- package/dialog-333d3421.js +124 -0
- package/dialog-widget-94d8ab5a.js +30 -0
- package/divider-widget-b835bbc3.js +35 -0
- package/drag-wrapper-227f198f.js +258 -0
- package/drawer-widget-3906d028.js +30 -0
- package/dropdown-widget-74696f3c.js +89 -0
- package/empty-widget-ba5e0039.js +61 -0
- package/enum-type-92806e9d.js +207 -0
- package/enum-type-be3a0b8b.js +2048 -0
- package/expression-63a787db.js +2181 -0
- package/feedback-widget-3140f73d.js +23 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f8da09d0.js +82 -0
- package/field-base-5547436d.js +7 -0
- package/file-upload-widget-dcc0425c.js +95 -0
- package/form-item-wrapper-849d8a21.js +111 -0
- package/form-widget-1dcffd59.js +183 -0
- package/grid-col-widget-e6b1455d.js +8 -0
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ed554759.js +41 -0
- package/grid-widget-d7974890.js +43 -0
- package/html-text-widget-e13171fa.js +47 -0
- package/icon-e9532b43.js +119 -0
- package/iframe-widget-dee326a7.js +74 -0
- package/image-widget-d417c681.js +61 -0
- package/index-28e4bcfb.js +99 -0
- package/index-2d29f8d3.js +7233 -0
- package/index-ddd23411.js +4884 -0
- package/index-f54403db.js +65 -0
- package/index-fa19f5d9.js +10568 -0
- package/input-number-widget-548743d9.js +63 -0
- package/input-widget-81153a08.js +68 -0
- package/label-wrapper-13267254.js +12 -0
- package/label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js +80 -0
- package/link-widget-e2aeac9f.js +53 -0
- package/ltable-col-widget-ecfe9f02.js +8 -0
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js +256 -0
- package/ltable-widget-d5d81ac2.js +69 -0
- package/menu-widget-101389ec.js +93 -0
- package/model-widget-84277d11.js +119 -0
- package/multirow-3ade8c6e.js +341 -0
- package/multirow-widget copy-efbb1e00.js +855 -0
- package/multirow-widget-a73fd2b8.js +691 -0
- package/package.json +13 -0
- package/pagination-widget-12edf5f4.js +78 -0
- package/picture-upload-widget-bcef9cc8.js +99 -0
- package/progress-widget-f515a118.js +49 -0
- package/propresult-e424ed73.js +22 -0
- package/radio-widget-78f9cab9.js +76 -0
- package/range-widget-904ed0d6.js +71 -0
- package/rate-widget-efdab26c.js +53 -0
- package/render.es.js +4434 -0
- package/render.style.css +11 -0
- package/render.umd.js +160496 -0
- package/result-widget-b1688641.js +64 -0
- package/rich-editor-widget-f1bb90c7.js +74 -0
- package/router-widget-920b11e4.js +51 -0
- package/select-widget-f3a43687.js +285 -0
- package/sfc-b5fb0bca.js +2568 -0
- package/share-field-9834aef6.js +688 -0
- package/share-file-329736c4.js +121 -0
- package/slider-widget-5146c0c3.js +59 -0
- package/slot-c6523e8c.js +17 -0
- package/static-text-widget-307cd047.js +48 -0
- package/steps-widget-70c08c51.js +88 -0
- package/subMenu-widget-c1a614ad.js +16 -0
- package/subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js +69 -0
- package/switch-widget-a103faaa.js +53 -0
- package/tab-pane-widget-e7c83114.js +8 -0
- package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-12fa9f12.js +35 -0
- package/table-col-widget-f177b82e.js +20 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5a1b4f92.js +80 -0
- package/table-widget-500902fd.js +160 -0
- package/tabs-widget-5e612fc0.js +68 -0
- package/tag-widget-8b945443.js +35 -0
- package/template-9ade074e.js +251730 -0
- package/text-widget-0d93ae9a.js +35 -0
- package/textarea-widget-d2464e70.js +53 -0
- package/time-picker-range-widget-7d92f5f0.js +55 -0
- package/time-picker-widget-3e0cc2c5.js +54 -0
- package/time-select-widget-b0b17501.js +54 -0
- package/tmpl-widget-b2402ddc.js +89 -0
- package/tree-select-widget-13f054e9.js +91 -0
- package/tree-widget-8bee698c.js +87 -0
- package/uuid-b302db3f.js +192 -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-d0e116ac.js +277 -0
- package/wrapper-widget-4d87e124.js +78 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var o = (a, t, p) => t in a ? n(a, t, { enumerable: !0, configurable: !0, writable: !0, value: p }) : a[t] = p;
|
|
3
|
+
var e = (a, t, p) => (o(a, typeof t != "symbol" ? t + "" : t, p), p);
|
|
4
|
+
class s {
|
|
5
|
+
constructor() {
|
|
6
|
+
e(this, "widget", { type: Object });
|
|
7
|
+
e(this, "propOptions", { type: Object, default: {} });
|
|
8
|
+
e(this, "parentWidget", { type: Object });
|
|
9
|
+
e(this, "parentList", { type: Array });
|
|
10
|
+
e(this, "designer", { type: Object });
|
|
11
|
+
e(this, "designState", { type: Boolean, default: !1 });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
const i = new s();
|
|
15
|
+
class r extends s {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
e(this, "componentName", { type: String, default: "div" });
|
|
19
|
+
e(this, "showWrapperComponent", { type: Boolean, default: !1 });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const l = new r();
|
|
23
|
+
export {
|
|
24
|
+
i as I,
|
|
25
|
+
s as W,
|
|
26
|
+
l as a
|
|
27
|
+
};
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { defineComponent as pe, resolveComponent as z, openBlock as l, createElementBlock as h, Fragment as I, createVNode as d, createCommentVNode as k, createBlock as b, createSlots as oe, withCtx as a, createElementVNode as E, renderList as de, createTextVNode as L, toDisplayString as $, withModifiers as y, unref as n, renderSlot as S, computed as B, ref as re, resolveDynamicComponent as le, mergeProps as G } from "vue";
|
|
2
|
+
import { c as me } from "./uuid-b302db3f.js";
|
|
3
|
+
import { I as fe, a as we } from "./widget-base-4c2d6265.js";
|
|
4
|
+
import { a as m, o as ve, G as ae } from "./enum-type-be3a0b8b.js";
|
|
5
|
+
import { b as ge, i as ye, j as he, k as We, d as Ce } from "./index-fa19f5d9.js";
|
|
6
|
+
import { S as g } from "./index-f54403db.js";
|
|
7
|
+
import { x as ce } from "./baseImp-70f1a9c5.js";
|
|
8
|
+
import { d as q } from "./enum-type-92806e9d.js";
|
|
9
|
+
const ke = { key: 0 }, be = { class: "clWhite" }, Oe = { class: "clWhite" }, Le = ["title"], $e = ["title"], je = ["title"], Se = ["title"], Te = /* @__PURE__ */ pe({
|
|
10
|
+
__name: "drag-handler",
|
|
11
|
+
props: { ...fe, parentTree: { type: Object, default: null }, hidden: { type: Boolean, default: !1 }, simple: { type: Boolean } },
|
|
12
|
+
setup(f) {
|
|
13
|
+
const o = f, { setSelected: J, findWidgetById: K, removeWidget: D, moveDownWidget: F, moveUpWidget: R, cloneWidget: V } = ge(o.designer), H = (t) => {
|
|
14
|
+
const s = t == null ? void 0 : t.id;
|
|
15
|
+
if (t.selectable === !1)
|
|
16
|
+
ce.info(m.i18nt("designer.hint.currentNodeCannotBeSelected"));
|
|
17
|
+
else {
|
|
18
|
+
const p = K(s);
|
|
19
|
+
J(p);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return (t, s) => {
|
|
23
|
+
var T, w;
|
|
24
|
+
const p = z("el-dropdown-item"), P = z("el-dropdown-menu"), j = z("el-dropdown"), U = z("el-divider");
|
|
25
|
+
return l(), h(I, null, [
|
|
26
|
+
f.hidden === !0 ? (l(), h("i", ke, [
|
|
27
|
+
d(g, { name: "@el-hide" })
|
|
28
|
+
])) : k("", !0),
|
|
29
|
+
f.simple ? (l(), b(j, {
|
|
30
|
+
key: 1,
|
|
31
|
+
onCommand: H
|
|
32
|
+
}, oe({
|
|
33
|
+
default: a(() => [
|
|
34
|
+
E("span", be, [
|
|
35
|
+
d(g, { name: "@el-arrow-down" })
|
|
36
|
+
])
|
|
37
|
+
]),
|
|
38
|
+
_: 2
|
|
39
|
+
}, [
|
|
40
|
+
((T = f.parentTree) == null ? void 0 : T.length) > 0 ? {
|
|
41
|
+
name: "dropdown",
|
|
42
|
+
fn: a(() => [
|
|
43
|
+
d(P, null, {
|
|
44
|
+
default: a(() => [
|
|
45
|
+
(l(!0), h(I, null, de(f.parentTree, (i, W) => (l(), b(p, { command: i }, {
|
|
46
|
+
default: a(() => [
|
|
47
|
+
L($(i == null ? void 0 : i.label), 1)
|
|
48
|
+
]),
|
|
49
|
+
_: 2
|
|
50
|
+
}, 1032, ["command"]))), 256)),
|
|
51
|
+
d(p, {
|
|
52
|
+
divided: "",
|
|
53
|
+
onClick: s[0] || (s[0] = y((i) => n(V)(t.widget, t.parentList), ["stop"]))
|
|
54
|
+
}, {
|
|
55
|
+
default: a(() => [
|
|
56
|
+
d(g, { name: "@el-clone" }),
|
|
57
|
+
L($(n(m).i18nt("designer.hint.cloneWidget")), 1)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}),
|
|
61
|
+
d(p, {
|
|
62
|
+
onClick: s[1] || (s[1] = y((i) => n(D)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
63
|
+
}, {
|
|
64
|
+
default: a(() => [
|
|
65
|
+
d(g, { name: "@el-delete" }),
|
|
66
|
+
L($(n(m).i18nt("designer.hint.remove")), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
70
|
+
t.parentList && t.parentList.length > 1 ? (l(), b(p, {
|
|
71
|
+
key: 0,
|
|
72
|
+
onClick: s[2] || (s[2] = y((i) => n(R)(t.parentList, t.widget), ["stop"]))
|
|
73
|
+
}, {
|
|
74
|
+
default: a(() => [
|
|
75
|
+
d(g, { name: "@el-move-up" }),
|
|
76
|
+
L($(n(m).i18nt("designer.hint.moveUpWidget")), 1)
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
})) : k("", !0),
|
|
80
|
+
t.parentList && t.parentList.length > 1 ? (l(), b(p, {
|
|
81
|
+
key: 1,
|
|
82
|
+
onClick: s[3] || (s[3] = y((i) => n(F)(t.parentList, t.widget), ["stop"]))
|
|
83
|
+
}, {
|
|
84
|
+
default: a(() => [
|
|
85
|
+
d(g, { name: "@el-move-down" }),
|
|
86
|
+
L($(n(m).i18nt("designer.hint.moveDownWidget")), 1)
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
})) : k("", !0),
|
|
90
|
+
t.$slots.default ? (l(), b(p, {
|
|
91
|
+
key: 2,
|
|
92
|
+
divied: ""
|
|
93
|
+
}, {
|
|
94
|
+
default: a(() => [
|
|
95
|
+
S(t.$slots, "default")
|
|
96
|
+
]),
|
|
97
|
+
_: 3
|
|
98
|
+
})) : k("", !0)
|
|
99
|
+
]),
|
|
100
|
+
_: 3
|
|
101
|
+
})
|
|
102
|
+
]),
|
|
103
|
+
key: "0"
|
|
104
|
+
} : void 0
|
|
105
|
+
]), 1024)) : (l(), h(I, { key: 2 }, [
|
|
106
|
+
d(j, { onCommand: H }, oe({
|
|
107
|
+
default: a(() => {
|
|
108
|
+
var i, W;
|
|
109
|
+
return [
|
|
110
|
+
E("span", Oe, [
|
|
111
|
+
L($(n(m).i18n2t(
|
|
112
|
+
`designer.widgetLabel.${(i = t.widget) == null ? void 0 : i.type}`,
|
|
113
|
+
`extension.widgetLabel.${(W = t.widget) == null ? void 0 : W.type}`
|
|
114
|
+
)) + " ", 1),
|
|
115
|
+
d(g, {
|
|
116
|
+
name: "@el-arrow-down",
|
|
117
|
+
class: "el-icon--right"
|
|
118
|
+
})
|
|
119
|
+
])
|
|
120
|
+
];
|
|
121
|
+
}),
|
|
122
|
+
_: 2
|
|
123
|
+
}, [
|
|
124
|
+
((w = f.parentTree) == null ? void 0 : w.length) > 0 ? {
|
|
125
|
+
name: "dropdown",
|
|
126
|
+
fn: a(() => [
|
|
127
|
+
d(P, null, {
|
|
128
|
+
default: a(() => [
|
|
129
|
+
(l(!0), h(I, null, de(f.parentTree, (i, W) => (l(), b(p, { command: i }, {
|
|
130
|
+
default: a(() => [
|
|
131
|
+
L($(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
|
+
d(U, {
|
|
143
|
+
direction: "vertical",
|
|
144
|
+
"border-style": "dashed",
|
|
145
|
+
color: "white"
|
|
146
|
+
}),
|
|
147
|
+
S(t.$slots, "default"),
|
|
148
|
+
t.parentList && t.parentList.length > 1 ? (l(), h("i", {
|
|
149
|
+
key: 0,
|
|
150
|
+
title: n(m).i18nt("designer.hint.moveUpWidget"),
|
|
151
|
+
onClick: s[4] || (s[4] = y((i) => n(R)(t.parentList, t.widget), ["stop"]))
|
|
152
|
+
}, [
|
|
153
|
+
d(g, { name: "@el-move-up" })
|
|
154
|
+
], 8, Le)) : k("", !0),
|
|
155
|
+
t.parentList && t.parentList.length > 1 ? (l(), h("i", {
|
|
156
|
+
key: 1,
|
|
157
|
+
title: n(m).i18nt("designer.hint.moveDownWidget"),
|
|
158
|
+
onClick: s[5] || (s[5] = y((i) => n(F)(t.parentList, t.widget), ["stop"]))
|
|
159
|
+
}, [
|
|
160
|
+
d(g, { name: "@el-move-down" })
|
|
161
|
+
], 8, $e)) : k("", !0),
|
|
162
|
+
E("i", {
|
|
163
|
+
title: n(m).i18nt("designer.hint.cloneWidget"),
|
|
164
|
+
onClick: s[6] || (s[6] = y((i) => n(V)(t.widget, t.parentList), ["stop"]))
|
|
165
|
+
}, [
|
|
166
|
+
d(g, { name: "@el-clone" })
|
|
167
|
+
], 8, je),
|
|
168
|
+
E("i", {
|
|
169
|
+
title: n(m).i18nt("designer.hint.remove"),
|
|
170
|
+
onClick: s[7] || (s[7] = y((i) => n(D)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
171
|
+
}, [
|
|
172
|
+
d(g, { name: "@el-delete" })
|
|
173
|
+
], 8, Se)
|
|
174
|
+
], 64))
|
|
175
|
+
], 64);
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
const He = /* @__PURE__ */ pe({
|
|
180
|
+
__name: "widget-wrapper",
|
|
181
|
+
props: { ...we },
|
|
182
|
+
setup(f) {
|
|
183
|
+
var Q;
|
|
184
|
+
const o = f, { selectWidget: J } = ge(o.designer), { widgetTree: K } = ye((Q = o.designer) == null ? void 0 : Q.widgetList, !0), { pathNodes: D, parentTree: F } = he(K.value, o.widget), { size: R, displayLayout: V, labelAlign: H, labelWidth: t, formItemFlag: s, labelSuffix: p } = We(o, me(D.value)), { idClass: P } = Ce(o.widget), j = B(() => {
|
|
185
|
+
var u, O, C, c, v;
|
|
186
|
+
const e = (O = (u = o.propOptions) == null ? void 0 : u.fieldObj) == null ? void 0 : O.extendAttrs, r = (c = (C = o.propOptions) == null ? void 0 : C.fieldObj) == null ? void 0 : c.attrs;
|
|
187
|
+
return (v = ve(e)) != null && v.includes("hidden") ? e == null ? void 0 : e.hidden : r == null ? void 0 : r.hidden;
|
|
188
|
+
}), U = (e) => e && !["div", "span"].includes(e), T = B(() => {
|
|
189
|
+
var e, r;
|
|
190
|
+
return (e = o.widget) != null && e.type ? [q.grid, q.gridCol, q.wrapper].includes((r = o.widget) == null ? void 0 : r.type) : !1;
|
|
191
|
+
}), w = B(() => {
|
|
192
|
+
var C, c, v, N, A, X, Y, Z, _, x, ee, te, ne, ie, se;
|
|
193
|
+
const e = ((v = (c = (C = o.propOptions) == null ? void 0 : C.fieldObj) == null ? void 0 : c.extendAttrs) == null ? void 0 : v.width) || ((X = (A = (N = o.propOptions) == null ? void 0 : N.fieldObj) == null ? void 0 : A.attrs) == null ? void 0 : X.width), r = (_ = (Z = (Y = o.propOptions) == null ? void 0 : Y.fieldObj) == null ? void 0 : Z.extendAttrs) == null ? void 0 : _.ctrlWidth, u = (te = (ee = (x = o.propOptions) == null ? void 0 : x.fieldObj) == null ? void 0 : ee.extendAttrs) == null ? void 0 : te.customClass, O = (se = (ie = (ne = o.propOptions) == null ? void 0 : ne.fieldObj) == null ? void 0 : ie.extendAttrs) == null ? void 0 : se.componentWrapperClass;
|
|
194
|
+
return {
|
|
195
|
+
size: R.value,
|
|
196
|
+
labelAlign: H.value,
|
|
197
|
+
labelWidth: t.value,
|
|
198
|
+
//props.propOptions?.fieldObj?.extendAttrs?.labelHidden ? '0px' : 隐藏的标签宽度仍旧保留,为占位
|
|
199
|
+
formItemFlag: s.value,
|
|
200
|
+
ctrlWidth: r,
|
|
201
|
+
displayStyle: V.value,
|
|
202
|
+
labelSuffix: p.value || "",
|
|
203
|
+
injectStyle: {},
|
|
204
|
+
//verticalAlign: verticalAlign.value, width: withLabel.value ? '100%' : ctrlWidth.value
|
|
205
|
+
//注:宽度全屏
|
|
206
|
+
injectClass: [ae(u), e ? "" : "full-width", P],
|
|
207
|
+
// filterDisplay.value ? displayStyle.value : ''
|
|
208
|
+
componentWrapperClass: ae(O)
|
|
209
|
+
};
|
|
210
|
+
}), i = B(() => {
|
|
211
|
+
var e, r, u;
|
|
212
|
+
return !!o.designer && ((e = o.widget) == null ? void 0 : e.id) === ((u = (r = o.designer) == null ? void 0 : r.selectedWidget) == null ? void 0 : u.id);
|
|
213
|
+
}), W = re(), M = re(), ue = B(() => {
|
|
214
|
+
var e, r;
|
|
215
|
+
if (W.value && M.value && i.value)
|
|
216
|
+
return ((e = W.value) == null ? void 0 : e.offsetWidth) > ((r = M.value) == null ? void 0 : r.offsetWidth);
|
|
217
|
+
});
|
|
218
|
+
return (e, r) => {
|
|
219
|
+
var u, O, C, c;
|
|
220
|
+
return e.designState ? (l(), b(le(e.componentName), G({
|
|
221
|
+
key: 0,
|
|
222
|
+
class: ["field-wrapper", [n(i) ? "selected" : "", " drag-handler", e.propOptions.class, e.showWrapperComponent ? n(w).injectClass : null]],
|
|
223
|
+
style: e.propOptions.style,
|
|
224
|
+
onClick: r[0] || (r[0] = y((v) => n(J)(e.widget, e.parentWidget, e.parentList), ["stop"])),
|
|
225
|
+
ref_key: "wrapperRef",
|
|
226
|
+
ref: M,
|
|
227
|
+
tabindex: 0
|
|
228
|
+
}, U(e.componentName) ? (O = (u = e.propOptions) == null ? void 0 : u.fieldObj) == null ? void 0 : O.attrs : {}), {
|
|
229
|
+
default: a(() => {
|
|
230
|
+
var v, N, A;
|
|
231
|
+
return [
|
|
232
|
+
S(e.$slots, "default", { data: n(w) }),
|
|
233
|
+
((N = (v = e.designer) == null ? void 0 : v.selectedWidget) == null ? void 0 : N.id) === ((A = e.widget) == null ? void 0 : A.id) ? (l(), h("div", {
|
|
234
|
+
key: 0,
|
|
235
|
+
class: "action",
|
|
236
|
+
ref_key: "dragHandlerRef",
|
|
237
|
+
ref: W
|
|
238
|
+
}, [
|
|
239
|
+
d(Te, {
|
|
240
|
+
simple: n(ue),
|
|
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(F),
|
|
247
|
+
hidden: n(j)
|
|
248
|
+
}, {
|
|
249
|
+
default: a(() => [
|
|
250
|
+
S(e.$slots, "drag")
|
|
251
|
+
]),
|
|
252
|
+
_: 3
|
|
253
|
+
}, 8, ["simple", "design-state", "designer", "widget", "parent-widget", "parent-list", "parentTree", "hidden"])
|
|
254
|
+
], 512)) : k("", !0)
|
|
255
|
+
];
|
|
256
|
+
}),
|
|
257
|
+
_: 3
|
|
258
|
+
}, 16, ["class", "style"])) : !n(j) || n(T) ? (l(), h(I, { key: 1 }, [
|
|
259
|
+
e.showWrapperComponent ? (l(), b(le(e.componentName), G({ key: 0 }, U(e.componentName) ? (c = (C = e.propOptions) == null ? void 0 : C.fieldObj) == null ? void 0 : c.attrs : {}, {
|
|
260
|
+
class: ["_id_BycomponentName", [...n(w).injectClass, e.propOptions.class, n(j) && n(T) ? "hlhidden" : ""]],
|
|
261
|
+
style: { ...n(w).injectStyle, ...e.propOptions.style }
|
|
262
|
+
}), {
|
|
263
|
+
default: a(() => [
|
|
264
|
+
S(e.$slots, "default", G({ data: n(w) }, e.$props))
|
|
265
|
+
]),
|
|
266
|
+
_: 3
|
|
267
|
+
}, 16, ["class", "style"])) : S(e.$slots, "default", G({
|
|
268
|
+
key: 1,
|
|
269
|
+
data: n(w)
|
|
270
|
+
}, e.$props))
|
|
271
|
+
], 64)) : k("", !0);
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
export {
|
|
276
|
+
He as _
|
|
277
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ref as h, onMounted as j, watch as v, defineComponent as W, openBlock as b, createBlock as L, mergeProps as C, unref as n, withCtx as O, createElementBlock as R, normalizeClass as P, createVNode as q } from "vue";
|
|
2
|
+
import { I as D } from "./widget-base-4c2d6265.js";
|
|
3
|
+
import { D as y } from "./drag-wrapper-227f198f.js";
|
|
4
|
+
import { _ as z } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
5
|
+
import { w as B } from "./template-9ade074e.js";
|
|
6
|
+
import { W as g } from "./enum-type-92806e9d.js";
|
|
7
|
+
import { b as F, a as S } from "./share-field-9834aef6.js";
|
|
8
|
+
import { c as $ } from "./multirow-3ade8c6e.js";
|
|
9
|
+
function E(a) {
|
|
10
|
+
const d = h({}), { componentWrapperClass: l, customClass: c } = $({ widget: a.widget }), { exposed: s, attrs: p, fieldKey: f, fieldObj: m } = F(a), { setAllRefList: o } = S(d.value), r = (e = !1) => {
|
|
11
|
+
o(g.setDisabled, { flag: e });
|
|
12
|
+
}, u = (e = !1) => {
|
|
13
|
+
var t;
|
|
14
|
+
(t = s == null ? void 0 : s.setHidden) == null || t.call(s, e);
|
|
15
|
+
}, i = (e = !1) => {
|
|
16
|
+
o(g.setRequired, { flag: e });
|
|
17
|
+
}, w = (e = !1) => {
|
|
18
|
+
o(g.resetField, { flag: e });
|
|
19
|
+
}, _ = (e) => {
|
|
20
|
+
v(() => {
|
|
21
|
+
var t;
|
|
22
|
+
return (t = p.value) == null ? void 0 : t[e];
|
|
23
|
+
}, (t) => {
|
|
24
|
+
e === "disabled" && r(t), e === "hidden" && u(t), e === "required" && i(t);
|
|
25
|
+
}, { immediate: !0 });
|
|
26
|
+
};
|
|
27
|
+
return j(() => {
|
|
28
|
+
_("disabled"), _("hidden"), _("required");
|
|
29
|
+
}), {
|
|
30
|
+
attrs: p,
|
|
31
|
+
exposed: {
|
|
32
|
+
...s,
|
|
33
|
+
setDisabled: r,
|
|
34
|
+
setHidden: u,
|
|
35
|
+
setRequired: i,
|
|
36
|
+
resetField: w
|
|
37
|
+
},
|
|
38
|
+
componentWrapperClass: l,
|
|
39
|
+
customClass: c,
|
|
40
|
+
fieldKey: f,
|
|
41
|
+
fieldObj: m,
|
|
42
|
+
widgetRefList: d
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const H = W({ componentName: B.ContainerWidget }), I = /* @__PURE__ */ W({
|
|
46
|
+
...H,
|
|
47
|
+
__name: "wrapper-widget",
|
|
48
|
+
props: { ...D },
|
|
49
|
+
setup(a, { expose: d }) {
|
|
50
|
+
const l = a, { exposed: c, customClass: s, componentWrapperClass: p, fieldObj: f, fieldKey: m, widgetRefList: o } = E(l);
|
|
51
|
+
return d({ ...c }), (r, u) => (b(), L(z, C(r.$props, {
|
|
52
|
+
"prop-options": { fieldObj: n(f), class: [n(s), n(p)] },
|
|
53
|
+
"component-name": "div",
|
|
54
|
+
"show-wrapper-component": !0
|
|
55
|
+
}), {
|
|
56
|
+
default: O(({ data: i }) => [
|
|
57
|
+
(b(), R("div", {
|
|
58
|
+
ref: "fieldEditor",
|
|
59
|
+
class: P(i.injectClass),
|
|
60
|
+
key: n(m)
|
|
61
|
+
}, [
|
|
62
|
+
q(y, C(r.$props, {
|
|
63
|
+
dragClass: "dragSize",
|
|
64
|
+
"component-class": i.componentWrapperClass,
|
|
65
|
+
refList: n(o)
|
|
66
|
+
}), null, 16, ["component-class", "refList"])
|
|
67
|
+
], 2))
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 16, ["prop-options"]));
|
|
71
|
+
}
|
|
72
|
+
}), J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73
|
+
__proto__: null,
|
|
74
|
+
default: I
|
|
75
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
76
|
+
export {
|
|
77
|
+
J as _
|
|
78
|
+
};
|