hlrender 0.0.142 → 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-3991908f.js → affix-widget-bb93dbf0.js} +4 -4
- package/{alert-widget-af9fee8e.js → alert-widget-54a1651c.js} +4 -4
- package/{anchor-widget-c46752a1.js → anchor-widget-98654efc.js} +2 -2
- package/{auto-complete-widget-78c13cf4.js → auto-complete-widget-21203c12.js} +4 -4
- package/{avatar-widget-2792306a.js → avatar-widget-56f6e6a4.js} +4 -4
- package/{backtop-widget-1ae22555.js → backtop-widget-fcee9b45.js} +4 -4
- package/{badge-widget-e08a6988.js → badge-widget-102aa468.js} +4 -4
- package/{barcode-widget-90490444.js → barcode-widget-df3038ab.js} +2 -2
- package/{breadcrumb-widget-4f9650a1.js → breadcrumb-widget-4d844415.js} +2 -2
- package/{button-widget-6fd4cf6f.js → button-widget-f02a1b1a.js} +17 -17
- package/{cache-widget-e0564ce1.js → cache-widget-35a8ab56.js} +3 -3
- package/{card-widget-4b049c2f.js → card-widget-b4f5584d.js} +3 -3
- package/{carousel-widget-001788b9.js → carousel-widget-27b11a6a.js} +2 -2
- package/{cascader-widget-426b4c4b.js → cascader-widget-ac928f84.js} +3 -3
- package/{chart-widget-fdda9017.js → chart-widget-6dbee1ac.js} +2 -2
- package/{checkbox-widget-56e95707.js → checkbox-widget-2a12e0f4.js} +3 -3
- package/{collapse-widget-5088e3f2.js → collapse-widget-8751ac96.js} +2 -2
- package/{color-picker-widget-f5df0ea0.js → color-picker-widget-b617c3d3.js} +3 -3
- package/{cont-cell-widget-9a5cc300.js → cont-cell-widget-e2145b1f.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-b5ec2b82.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-4fc1c6a7.js} +2 -2
- package/{cont-widget-e65b466d.js → cont-widget-66b4ece4.js} +3 -3
- package/{date-picker-range-widget-cd5eaff6.js → date-picker-range-widget-d97214da.js} +3 -3
- package/{date-picker-widget-f3e3940d.js → date-picker-widget-32a63a3b.js} +3 -3
- package/{default-slot-widget-a2dd2f78.js → default-slot-widget-0fd9dfcd.js} +3 -3
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-9cc563fb.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-ce93fdaa.js} +2 -2
- package/{descriptions-widget-7bf1787d.js → descriptions-widget-f78a71f7.js} +3 -3
- package/{dialog-widget-36ba595d.js → dialog-widget-4bc86ed5.js} +4 -4
- package/{divider-widget-860298df.js → divider-widget-cb220b5b.js} +4 -4
- package/{drag-wrapper-5634520c.js → drag-wrapper-a322293d.js} +1 -1
- package/{drawer-widget-8cbf7896.js → drawer-widget-98ec70f7.js} +4 -4
- package/{dropdown-widget-1fac0aba.js → dropdown-widget-9547884e.js} +3 -3
- package/{empty-widget-65ae0cd1.js → empty-widget-e153bbe6.js} +4 -4
- package/{feedback-widget-34515aef.js → feedback-widget-a91ed42e.js} +4 -4
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-99bcb28f.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-7bf45492.js} +3 -3
- package/{file-upload-widget-79330e0c.js → file-upload-widget-2f0d4204.js} +7 -7
- package/{form-item-wrapper-7de5f9bf.js → form-item-wrapper-5ac6c9e7.js} +1 -1
- package/{form-widget-372d26c9.js → form-widget-cd11ef85.js} +3 -3
- package/{grid-col-widget-7cf70e0e.js → grid-col-widget-ffa084d5.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4cd8815d.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-c4467c54.js} +3 -3
- package/{grid-widget-36b93b4e.js → grid-widget-0c218aea.js} +3 -3
- package/html-text-widget-4cf65f95.js +50 -0
- package/{icon-widget-06f949c0.js → icon-widget-0dac1067.js} +2 -2
- package/{iframe-widget-60d647a7.js → iframe-widget-8fc793c4.js} +2 -2
- package/{image-widget-f13e9b8e.js → image-widget-0e443141.js} +2 -2
- package/{input-number-widget-951ff536.js → input-number-widget-3aae4807.js} +3 -3
- package/{input-widget-b99fea74.js → input-widget-4801bba1.js} +4 -4
- package/link-widget-ebe1b45b.js +57 -0
- package/{ltable-col-widget-bad649f0.js → ltable-col-widget-5fa718bd.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7c0f1711.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-f49f7017.js} +3 -3
- package/{ltable-widget-2b6391b9.js → ltable-widget-c94e6302.js} +3 -3
- package/{menu-widget-5ec66905.js → menu-widget-79f1ab96.js} +2 -2
- package/{model-widget-06551d1f.js → model-widget-4f3130e8.js} +2 -2
- package/{multirow-widget-efe6e574.js → multirow-widget-7b624281.js} +3 -3
- package/package.json +1 -1
- package/{pagination-widget-c508e708.js → pagination-widget-3eea142b.js} +2 -2
- package/{picture-upload-widget-81891cf7.js → picture-upload-widget-438d25b9.js} +4 -4
- package/{progress-widget-fd47099b.js → progress-widget-73e6c401.js} +3 -3
- package/{qrcode-widget-c17ec257.js → qrcode-widget-710b20a3.js} +2 -2
- package/{radio-widget-392e9bbc.js → radio-widget-8f0f8abd.js} +3 -3
- package/{range-widget-e7ade627.js → range-widget-5d4b4f0b.js} +4 -4
- package/{rate-widget-830c89da.js → rate-widget-a8187f2f.js} +3 -3
- package/render.es.js +17 -17
- package/render.umd.js +332 -332
- package/{result-widget-80615278.js → result-widget-7bda4844.js} +3 -3
- package/{rich-editor-widget-f832226c.js → rich-editor-widget-eb258cc0.js} +3 -3
- package/{router-widget-c30f9b01.js → router-widget-b4fc1fe7.js} +2 -2
- package/{select-widget-cbee9efc.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-9f698439.js → slider-widget-3c7e4eec.js} +3 -3
- package/{static-text-widget-8421ed25.js → static-text-widget-15ee0116.js} +15 -15
- package/{steps-widget-7a66fcd7.js → steps-widget-8a5b0506.js} +2 -2
- package/{switch-widget-6d6a5038.js → switch-widget-82d8a7ed.js} +3 -3
- package/{tab-pane-widget-5caf99eb.js → tab-pane-widget-b978cd2d.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-96320b54.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-f9fcbd78.js} +3 -3
- package/{table-col-widget-e4d98331.js → table-col-widget-97537a60.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2edb9587.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-f5ecc994.js} +1 -1
- package/{table-widget-1e49129c.js → table-widget-2177632c.js} +4 -4
- package/{tabs-widget-0a51e1c1.js → tabs-widget-1db89784.js} +3 -3
- package/{tag-widget-2372a2ea.js → tag-widget-e17962e6.js} +4 -4
- package/{text-widget-1a3d558e.js → text-widget-e37a6a81.js} +4 -4
- package/{textarea-widget-7e06da83.js → textarea-widget-010d8053.js} +3 -3
- package/{time-picker-range-widget-d50eca1d.js → time-picker-range-widget-0407d00b.js} +3 -3
- package/{time-picker-widget-a44c8f18.js → time-picker-widget-b1a6ebbd.js} +3 -3
- package/{time-select-widget-80906d38.js → time-select-widget-7ebb8900.js} +3 -3
- package/{tmpl-widget-8fe837a0.js → tmpl-widget-4ca1f618.js} +3 -3
- package/{tree-select-widget-21947182.js → tree-select-widget-769ad21f.js} +3 -3
- package/{tree-widget-9266ebd3.js → tree-widget-f04abf13.js} +2 -2
- package/{verifycode-widget-35dba865.js → verifycode-widget-820ab186.js} +2 -2
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b3a3064b.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-a051d226.js} +63 -63
- package/{wrapper-widget-a8c4e3dd.js → wrapper-widget-c1c5ffe8.js} +3 -3
- package/html-text-widget-1546e6a1.js +0 -50
- package/link-widget-042ef4db.js +0 -57
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { defineComponent as de, resolveComponent as U, openBlock as l, createElementBlock as v, Fragment as
|
|
2
|
-
import { e as g, c as
|
|
3
|
-
import { I as
|
|
4
|
-
import { a as oe, i as
|
|
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
5
|
import { S as m } from "./index-e9b4d9d2.js";
|
|
6
|
-
import { f as
|
|
7
|
-
import { c as Q, S as
|
|
8
|
-
import { u as
|
|
9
|
-
const
|
|
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
10
|
__name: "drag-handler",
|
|
11
|
-
props: { ...
|
|
11
|
+
props: { ...pe, parentTree: { type: Object, default: null }, hidden: { type: Boolean, default: !1 }, simple: { type: Boolean } },
|
|
12
12
|
setup(f) {
|
|
13
|
-
const r = f, { setSelected: E, findWidgetById: J, removeWidget:
|
|
14
|
-
const
|
|
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
15
|
if (t.selectable === !1)
|
|
16
|
-
|
|
16
|
+
we.info(g.i18nt("designer.hint.currentNodeCannotBeSelected"));
|
|
17
17
|
else {
|
|
18
|
-
const u = J(
|
|
18
|
+
const u = J(d);
|
|
19
19
|
E(u);
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
return (t,
|
|
22
|
+
return (t, d) => {
|
|
23
23
|
var b, $;
|
|
24
|
-
const u = U("el-dropdown-item"), M = U("el-dropdown-menu"),
|
|
25
|
-
return l(), v(
|
|
26
|
-
f.hidden === !0 ? (l(), v("i",
|
|
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
27
|
o(m, { name: "@el-hide" })
|
|
28
28
|
])) : y("", !0),
|
|
29
|
-
f.simple ? (l(), W(
|
|
29
|
+
f.simple ? (l(), W(s, {
|
|
30
30
|
key: 1,
|
|
31
|
-
onCommand:
|
|
31
|
+
onCommand: H
|
|
32
32
|
}, ee({
|
|
33
33
|
default: a(() => [
|
|
34
|
-
V("span",
|
|
34
|
+
V("span", he, [
|
|
35
35
|
o(m, { name: "@el-arrow-down" })
|
|
36
36
|
])
|
|
37
37
|
]),
|
|
@@ -42,7 +42,7 @@ const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, Le
|
|
|
42
42
|
fn: a(() => [
|
|
43
43
|
o(M, null, {
|
|
44
44
|
default: a(() => [
|
|
45
|
-
(l(!0), v(
|
|
45
|
+
(l(!0), v(j, null, te(f.parentTree, (i, h) => (l(), W(u, { command: i }, {
|
|
46
46
|
default: a(() => [
|
|
47
47
|
C(k(i == null ? void 0 : i.label), 1)
|
|
48
48
|
]),
|
|
@@ -50,7 +50,7 @@ const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, Le
|
|
|
50
50
|
}, 1032, ["command"]))), 256)),
|
|
51
51
|
o(u, {
|
|
52
52
|
divided: "",
|
|
53
|
-
onClick:
|
|
53
|
+
onClick: d[0] || (d[0] = w((i) => n(F)(t.widget, t.parentList), ["stop"]))
|
|
54
54
|
}, {
|
|
55
55
|
default: a(() => [
|
|
56
56
|
o(m, { name: "@el-clone" }),
|
|
@@ -59,7 +59,7 @@ const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, Le
|
|
|
59
59
|
_: 1
|
|
60
60
|
}),
|
|
61
61
|
o(u, {
|
|
62
|
-
onClick:
|
|
62
|
+
onClick: d[1] || (d[1] = w((i) => n(I)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
63
63
|
}, {
|
|
64
64
|
default: a(() => [
|
|
65
65
|
o(m, { name: "@el-delete" }),
|
|
@@ -69,7 +69,7 @@ const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, Le
|
|
|
69
69
|
}),
|
|
70
70
|
t.parentList && t.parentList.length > 1 ? (l(), W(u, {
|
|
71
71
|
key: 0,
|
|
72
|
-
onClick:
|
|
72
|
+
onClick: d[2] || (d[2] = w((i) => n(D)(t.parentList, t.widget), ["stop"]))
|
|
73
73
|
}, {
|
|
74
74
|
default: a(() => [
|
|
75
75
|
o(m, { name: "@el-move-up" }),
|
|
@@ -79,7 +79,7 @@ const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, Le
|
|
|
79
79
|
})) : y("", !0),
|
|
80
80
|
t.parentList && t.parentList.length > 1 ? (l(), W(u, {
|
|
81
81
|
key: 1,
|
|
82
|
-
onClick:
|
|
82
|
+
onClick: d[3] || (d[3] = w((i) => n(B)(t.parentList, t.widget), ["stop"]))
|
|
83
83
|
}, {
|
|
84
84
|
default: a(() => [
|
|
85
85
|
o(m, { name: "@el-move-down" }),
|
|
@@ -102,12 +102,12 @@ const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, Le
|
|
|
102
102
|
]),
|
|
103
103
|
key: "0"
|
|
104
104
|
} : void 0
|
|
105
|
-
]), 1024)) : (l(), v(
|
|
106
|
-
o(
|
|
105
|
+
]), 1024)) : (l(), v(j, { key: 2 }, [
|
|
106
|
+
o(s, { onCommand: H }, ee({
|
|
107
107
|
default: a(() => {
|
|
108
108
|
var i, h;
|
|
109
109
|
return [
|
|
110
|
-
V("span",
|
|
110
|
+
V("span", ce, [
|
|
111
111
|
C(k(n(g).i18n2t(
|
|
112
112
|
`designer.widgetLabel.${(i = t.widget) == null ? void 0 : i.type}`,
|
|
113
113
|
`extension.widgetLabel.${(h = t.widget) == null ? void 0 : h.type}`
|
|
@@ -126,7 +126,7 @@ const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, Le
|
|
|
126
126
|
fn: a(() => [
|
|
127
127
|
o(M, null, {
|
|
128
128
|
default: a(() => [
|
|
129
|
-
(l(!0), v(
|
|
129
|
+
(l(!0), v(j, null, te(f.parentTree, (i, h) => (l(), W(u, { command: i }, {
|
|
130
130
|
default: a(() => [
|
|
131
131
|
C(k(i == null ? void 0 : i.label), 1)
|
|
132
132
|
]),
|
|
@@ -139,7 +139,7 @@ const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, Le
|
|
|
139
139
|
key: "0"
|
|
140
140
|
} : void 0
|
|
141
141
|
]), 1024),
|
|
142
|
-
o(
|
|
142
|
+
o(O, {
|
|
143
143
|
direction: "vertical",
|
|
144
144
|
"border-style": "dashed",
|
|
145
145
|
color: "white"
|
|
@@ -148,59 +148,62 @@ const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, Le
|
|
|
148
148
|
t.parentList && t.parentList.length > 1 ? (l(), v("i", {
|
|
149
149
|
key: 0,
|
|
150
150
|
title: n(g).i18nt("designer.hint.moveUpWidget"),
|
|
151
|
-
onClick:
|
|
151
|
+
onClick: d[4] || (d[4] = w((i) => n(D)(t.parentList, t.widget), ["stop"]))
|
|
152
152
|
}, [
|
|
153
153
|
o(m, { name: "@el-move-up" })
|
|
154
|
-
], 8,
|
|
154
|
+
], 8, Ce)) : y("", !0),
|
|
155
155
|
t.parentList && t.parentList.length > 1 ? (l(), v("i", {
|
|
156
156
|
key: 1,
|
|
157
157
|
title: n(g).i18nt("designer.hint.moveDownWidget"),
|
|
158
|
-
onClick:
|
|
158
|
+
onClick: d[5] || (d[5] = w((i) => n(B)(t.parentList, t.widget), ["stop"]))
|
|
159
159
|
}, [
|
|
160
160
|
o(m, { name: "@el-move-down" })
|
|
161
|
-
], 8,
|
|
161
|
+
], 8, ke)) : y("", !0),
|
|
162
162
|
V("i", {
|
|
163
163
|
title: n(g).i18nt("designer.hint.cloneWidget"),
|
|
164
|
-
onClick:
|
|
164
|
+
onClick: d[6] || (d[6] = w((i) => n(F)(t.widget, t.parentList), ["stop"]))
|
|
165
165
|
}, [
|
|
166
166
|
o(m, { name: "@el-clone" })
|
|
167
|
-
], 8,
|
|
167
|
+
], 8, Le),
|
|
168
168
|
V("i", {
|
|
169
169
|
title: n(g).i18nt("designer.hint.remove"),
|
|
170
|
-
onClick:
|
|
170
|
+
onClick: d[7] || (d[7] = w((i) => n(I)(t.widget, t.parentWidget, t.parentList), ["stop"]))
|
|
171
171
|
}, [
|
|
172
172
|
o(m, { name: "@el-delete" })
|
|
173
|
-
], 8,
|
|
173
|
+
], 8, be)
|
|
174
174
|
], 64))
|
|
175
175
|
], 64);
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
|
-
const
|
|
179
|
+
const Fe = /* @__PURE__ */ de({
|
|
180
180
|
__name: "widget-wrapper",
|
|
181
|
-
props: { ...
|
|
181
|
+
props: { ...ue },
|
|
182
182
|
setup(f) {
|
|
183
183
|
var Y;
|
|
184
|
-
const r = f, { selectWidget: E } = oe(r.designer), { widgetTree: J } =
|
|
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(() => {
|
|
185
188
|
var e, p;
|
|
186
189
|
return (e = r.widget) != null && e.type ? [Q.grid, Q.gridCol, Q.wrapper].includes((p = r.widget) == null ? void 0 : p.type) : !1;
|
|
187
190
|
}), S = L(() => {
|
|
188
|
-
const e =
|
|
189
|
-
let
|
|
190
|
-
return
|
|
191
|
-
size:
|
|
192
|
-
labelAlign:
|
|
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,
|
|
193
196
|
labelWidth: t.value,
|
|
194
197
|
// 隐藏的标签宽度仍旧保留,为占位
|
|
195
|
-
formItemFlag:
|
|
196
|
-
formItemAttr:
|
|
198
|
+
formItemFlag: d.value,
|
|
199
|
+
formItemAttr: N,
|
|
197
200
|
ctrlWidth: p,
|
|
198
|
-
displayStyle:
|
|
201
|
+
displayStyle: F.value,
|
|
199
202
|
labelSuffix: u.value || "",
|
|
200
203
|
injectStyle: {},
|
|
201
204
|
//verticalAlign: verticalAlign.value, width: withLabel.value ? '100%' : ctrlWidth.value
|
|
202
205
|
//注:宽度全屏
|
|
203
|
-
injectClass: [se(c), e ? "" : "full-width",
|
|
206
|
+
injectClass: [se(c), e ? "" : "full-width", i.value],
|
|
204
207
|
// filterDisplay.value ? displayStyle.value : ''
|
|
205
208
|
componentWrapperClass: se(R)
|
|
206
209
|
};
|
|
@@ -211,21 +214,18 @@ const Re = /* @__PURE__ */ de({
|
|
|
211
214
|
var e, p;
|
|
212
215
|
if (q.value && G.value && X.value)
|
|
213
216
|
return ((e = q.value) == null ? void 0 : e.offsetWidth) > ((p = G.value) == null ? void 0 : p.offsetWidth);
|
|
214
|
-
}), ae = L(() => {
|
|
215
|
-
var e;
|
|
216
|
-
return (e = r.widget) == null ? void 0 : e.id;
|
|
217
217
|
});
|
|
218
218
|
return (e, p) => {
|
|
219
|
-
var c, R,
|
|
219
|
+
var c, R, N, Z, A, P;
|
|
220
220
|
return e.designState ? (l(), W(ie(e.componentName), z({
|
|
221
221
|
key: 0,
|
|
222
|
-
class: ["field-wrapper", [n(X) ? "selected" : "", " drag-handler", e.propOptions.class, e.showWrapperComponent ? n(S).injectClass : null]],
|
|
222
|
+
class: ["field-wrapper", [n(X) ? "selected" : "", " drag-handler", e.propOptions.class, n(i), e.showWrapperComponent ? n(S).injectClass : null]],
|
|
223
223
|
style: e.propOptions.style,
|
|
224
224
|
onClick: p[0] || (p[0] = w((K) => n(E)(e.widget, e.parentWidget, e.parentList), ["stop"])),
|
|
225
225
|
ref_key: "wrapperRef",
|
|
226
226
|
ref: G,
|
|
227
227
|
tabindex: 0
|
|
228
|
-
},
|
|
228
|
+
}, $(e.componentName) ? (R = (c = e.propOptions) == null ? void 0 : c.fieldObj) == null ? void 0 : R.attrs : {}), {
|
|
229
229
|
default: a(() => {
|
|
230
230
|
var K, _, x;
|
|
231
231
|
return [
|
|
@@ -236,15 +236,15 @@ const Re = /* @__PURE__ */ de({
|
|
|
236
236
|
ref_key: "dragHandlerRef",
|
|
237
237
|
ref: q
|
|
238
238
|
}, [
|
|
239
|
-
o(
|
|
239
|
+
o($e, {
|
|
240
240
|
simple: n(le),
|
|
241
241
|
"design-state": e.designState,
|
|
242
242
|
designer: e.designer,
|
|
243
243
|
widget: e.widget,
|
|
244
244
|
"parent-widget": e.parentWidget,
|
|
245
245
|
"parent-list": e.parentList,
|
|
246
|
-
parentTree: n(
|
|
247
|
-
hidden: n(
|
|
246
|
+
parentTree: n(B),
|
|
247
|
+
hidden: n(O)
|
|
248
248
|
}, {
|
|
249
249
|
default: a(() => [
|
|
250
250
|
T(e.$slots, "drag")
|
|
@@ -255,9 +255,9 @@ const Re = /* @__PURE__ */ de({
|
|
|
255
255
|
];
|
|
256
256
|
}),
|
|
257
257
|
_: 3
|
|
258
|
-
}, 16, ["class", "style"])) : !n(
|
|
259
|
-
e.showWrapperComponent ? (l(), W(ie(e.componentName), z({ key: 0 },
|
|
260
|
-
class: ["_id_BycomponentName", [...n(S).injectClass, e.propOptions.class, n(
|
|
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
261
|
style: { ...n(S).injectStyle, ...e.propOptions.style }
|
|
262
262
|
}), {
|
|
263
263
|
default: a(() => [
|
|
@@ -273,5 +273,5 @@ const Re = /* @__PURE__ */ de({
|
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
export {
|
|
276
|
-
|
|
276
|
+
Fe as _
|
|
277
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-b3a3064b.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-042ef4db.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-9cc563fb.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-b3a3064b.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-5634520c.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
|
-
};
|