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,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 O, 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-39f0308a.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-287a50b6.js";
|
|
5
|
+
import { u as ge, j as ye, k as he, l as We, d as Ce } from "./index-f146282d.js";
|
|
6
|
+
import { S as g } from "./index-ffbcbc43.js";
|
|
7
|
+
import { f as ce } from "./baseImp-8c4be88e.js";
|
|
8
|
+
import { d as q } from "./enum-type-255ade69.js";
|
|
9
|
+
const ke = { key: 0 }, Oe = { class: "clWhite" }, be = { 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(), O(j, {
|
|
30
|
+
key: 1,
|
|
31
|
+
onCommand: H
|
|
32
|
+
}, oe({
|
|
33
|
+
default: a(() => [
|
|
34
|
+
E("span", Oe, [
|
|
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(), O(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(), O(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(), O(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(), O(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", be, [
|
|
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(), O(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, b, C, c, v;
|
|
186
|
+
const e = (b = (u = o.propOptions) == null ? void 0 : u.fieldObj) == null ? void 0 : b.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, b = (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(b)
|
|
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, b, C, c;
|
|
220
|
+
return e.designState ? (l(), O(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) ? (b = (u = e.propOptions) == null ? void 0 : u.fieldObj) == null ? void 0 : b.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(), O(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 C, createBlock as L, mergeProps as b, 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-f9fb1533.js";
|
|
4
|
+
import { _ as z } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
5
|
+
import { w as B } from "./template-c30585f4.js";
|
|
6
|
+
import { W as g } from "./enum-type-255ade69.js";
|
|
7
|
+
import { c as F, a as S } from "./share-field-451430de.js";
|
|
8
|
+
import { c as $ } from "./multirow-e1e1205c.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) => (C(), L(z, b(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
|
+
(C(), R("div", {
|
|
58
|
+
ref: "fieldEditor",
|
|
59
|
+
class: P(i.injectClass),
|
|
60
|
+
key: n(m)
|
|
61
|
+
}, [
|
|
62
|
+
q(y, b(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
|
+
};
|