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,779 @@
|
|
|
1
|
+
import { defineComponent as ie, computed as G, ref as ae, resolveComponent as v, openBlock as a, createBlock as r, unref as e, withCtx as p, createVNode as y, shallowRef as Ve, createElementBlock as b, Fragment as M, mergeProps as k, isRef as _, renderList as Ke, resolveDynamicComponent as K, createTextVNode as P, toDisplayString as x, createCommentVNode as L, renderSlot as Ce, createElementVNode as ee, normalizeClass as we, withDirectives as Ge, vShow as Je, defineAsyncComponent as ke, pushScopeId as Ft, popScopeId as Pt, createSlots as Lt } from "vue";
|
|
2
|
+
import { a as g, j as qe, P as St, o as Nt, d as be, y as jt, k as Mt } from "./enum-type-287a50b6.js";
|
|
3
|
+
import { l as $t, c as j } from "./uuid-39f0308a.js";
|
|
4
|
+
import { u as Ee } from "./icon-2bb9fa65.js";
|
|
5
|
+
import { b as Bt, P as Y, O as Qe } from "./baseImp-8c4be88e.js";
|
|
6
|
+
import { B as zt, g as he, c as At, p as Xe } from "./template-c30585f4.js";
|
|
7
|
+
import { d as Ye, ag as i, bh as Z, ap as Kt } from "./enum-type-255ade69.js";
|
|
8
|
+
import { I as lt, a as Gt } from "./property-base-e63e2f28.js";
|
|
9
|
+
import { u as xe } from "./share-event-dd8ff2ba.js";
|
|
10
|
+
import { u as ot, g as Ze } from "./share-editor-27d43940.js";
|
|
11
|
+
import { u as et } from "./index-f146282d.js";
|
|
12
|
+
import { S as J } from "./index-ffbcbc43.js";
|
|
13
|
+
import { _ as nt } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
|
+
function Jt(V) {
|
|
15
|
+
const s = V.designer, d = s == null ? void 0 : s.selectedWidget;
|
|
16
|
+
return {
|
|
17
|
+
emitDefaultValueChange: () => {
|
|
18
|
+
var h, H, O, D, C;
|
|
19
|
+
if (s && s.pageWidget) {
|
|
20
|
+
const { fieldName: w } = Bt(d, void 0, { s_fieldName: !0 });
|
|
21
|
+
let l = (O = (H = (h = s.pageWidget) == null ? void 0 : h.exposed) == null ? void 0 : H.refManager) == null ? void 0 : O.getWidgetRef(w.value);
|
|
22
|
+
l && ((D = l == null ? void 0 : l.exposed) != null && D.refreshDefaultValue) && ((C = l == null ? void 0 : l.exposed) == null || C.refreshDefaultValue());
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const qt = /* @__PURE__ */ ie({
|
|
28
|
+
__name: "variable-trigger",
|
|
29
|
+
props: {
|
|
30
|
+
state: { type: Boolean }
|
|
31
|
+
},
|
|
32
|
+
emits: ["click"],
|
|
33
|
+
setup(V, { emit: s }) {
|
|
34
|
+
const d = V, { getInstance: W } = Ee(), { toolTipHandler: h } = xe({ ...d, instance: W() }), H = () => {
|
|
35
|
+
s("click");
|
|
36
|
+
}, O = G(() => d.state ? "primary" : "default"), D = ae(), C = (l = !0) => {
|
|
37
|
+
h({ tips: [g.i18nt("designer.hint.variableBind")], visible: l, triggerRef: D });
|
|
38
|
+
}, w = () => {
|
|
39
|
+
C(!1);
|
|
40
|
+
};
|
|
41
|
+
return (l, E) => {
|
|
42
|
+
const R = v("el-link");
|
|
43
|
+
return a(), r(R, {
|
|
44
|
+
underline: !1,
|
|
45
|
+
onClick: H,
|
|
46
|
+
type: e(O),
|
|
47
|
+
onMouseover: E[0] || (E[0] = (re) => C()),
|
|
48
|
+
onMouseleave: w,
|
|
49
|
+
ref_key: "linkRef",
|
|
50
|
+
ref: D
|
|
51
|
+
}, {
|
|
52
|
+
icon: p(() => [
|
|
53
|
+
y(J, { name: "@widget-link" })
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["type"]);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}), at = (V) => (Ft("data-v-bafdfc39"), V = V(), Pt(), V), Qt = /* @__PURE__ */ at(() => /* @__PURE__ */ ee("span", null, null, -1)), Xt = {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: "full-width"
|
|
62
|
+
}, Yt = /* @__PURE__ */ at(() => /* @__PURE__ */ ee("span", null, null, -1)), Zt = {
|
|
63
|
+
key: 22,
|
|
64
|
+
style: { display: "none" }
|
|
65
|
+
}, el = /* @__PURE__ */ ie({
|
|
66
|
+
__name: "oneBase-editor",
|
|
67
|
+
props: { ...lt, triggerRef: { type: Object } },
|
|
68
|
+
setup(V) {
|
|
69
|
+
const s = V, d = G(() => {
|
|
70
|
+
var o;
|
|
71
|
+
return ((o = s.propConfig) == null ? void 0 : o.name) + "_" + $t();
|
|
72
|
+
}), { getInstance: W } = Ee(), { emitDefaultValueChange: h } = Jt(s), { editHandler: H, toolTipHandler: O, popOverHandler: D, drawerHandler: C } = xe({ ...s, instance: W() }), {
|
|
73
|
+
propData: w,
|
|
74
|
+
propValue: l,
|
|
75
|
+
propModel: E,
|
|
76
|
+
propName: R,
|
|
77
|
+
propOptions: re,
|
|
78
|
+
multiple: q,
|
|
79
|
+
propDataType: u,
|
|
80
|
+
widgetType: S,
|
|
81
|
+
propVariable: it,
|
|
82
|
+
attrs: c,
|
|
83
|
+
variableState: rt,
|
|
84
|
+
optionEnable: $,
|
|
85
|
+
optionEnableShow: te,
|
|
86
|
+
arrayPropValue: se,
|
|
87
|
+
codePropValue: ue,
|
|
88
|
+
codeEdit: He,
|
|
89
|
+
editTip: De,
|
|
90
|
+
changeFn: de,
|
|
91
|
+
propChanged: le,
|
|
92
|
+
propFormulaChanged: st,
|
|
93
|
+
propSchemaDataChanged: ut,
|
|
94
|
+
propVariableChanged: dt
|
|
95
|
+
} = ot(s), pe = j(w.value), Ue = G(() => {
|
|
96
|
+
var o;
|
|
97
|
+
return S.value || ((o = s.selectedWidget) == null ? void 0 : o.type) || Ye.page;
|
|
98
|
+
}), B = G(() => s.optionModel);
|
|
99
|
+
G(() => {
|
|
100
|
+
var o;
|
|
101
|
+
return Y.getValue((o = B == null ? void 0 : B.value) == null ? void 0 : o.defaultValue);
|
|
102
|
+
});
|
|
103
|
+
const Ie = G(() => {
|
|
104
|
+
var o;
|
|
105
|
+
return [i.javascript, i.json, i.css, i.html].includes(u.value) && (Y.isComplex(E.value) && !qe((o = E == null ? void 0 : E.value) == null ? void 0 : o.value) || !Y.isComplex(E.value) && !qe(E == null ? void 0 : E.value));
|
|
106
|
+
}), z = !0, Te = Ve(), Re = Ve(), We = Ve(), me = ae(), Oe = G(() => !!u.value && [i.javascript, i.css, i.json, i.html, i.optionsEdit].includes(u.value));
|
|
107
|
+
(() => {
|
|
108
|
+
switch (u.value) {
|
|
109
|
+
case i.treeEdit:
|
|
110
|
+
Te.value = ke(() => import("./index-7b38fd82.js"));
|
|
111
|
+
break;
|
|
112
|
+
case i.multirow:
|
|
113
|
+
Re.value = ke(() => import("./index-8713c192.js"));
|
|
114
|
+
break;
|
|
115
|
+
default:
|
|
116
|
+
Oe.value && He.value && (We.value = ke(() => import("./index-188b745d.js")));
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
})();
|
|
120
|
+
const ce = ae();
|
|
121
|
+
let fe = null;
|
|
122
|
+
const pt = () => {
|
|
123
|
+
var o;
|
|
124
|
+
fe = Mt((o = j(l.value)) == null ? void 0 : o.options);
|
|
125
|
+
}, Fe = () => {
|
|
126
|
+
fe = null;
|
|
127
|
+
}, mt = () => {
|
|
128
|
+
j(l.value) && be(j(l.value).options, fe), Fe();
|
|
129
|
+
}, ge = (o = !0) => {
|
|
130
|
+
O({ tips: [$.value ? g.i18nt("designer.hint.disable") : g.i18nt("designer.hint.enable")], visible: o, triggerRef: ce });
|
|
131
|
+
}, Pe = () => {
|
|
132
|
+
ge(!1);
|
|
133
|
+
}, ct = (o) => {
|
|
134
|
+
Fe(), ve(!1);
|
|
135
|
+
}, ft = () => {
|
|
136
|
+
mt(), ve(!1);
|
|
137
|
+
}, ve = (o = !0) => {
|
|
138
|
+
var T, N;
|
|
139
|
+
pt();
|
|
140
|
+
var t = Y.getOptions(E.value), m = Nt(t);
|
|
141
|
+
if (!(m != null && m.length))
|
|
142
|
+
return;
|
|
143
|
+
(((T = c == null ? void 0 : c.value) == null ? void 0 : T.editorType) === Kt.drawer ? C : D)({
|
|
144
|
+
attrs: {
|
|
145
|
+
props: {
|
|
146
|
+
optionModel: s.optionModel
|
|
147
|
+
},
|
|
148
|
+
triggerRef: s.triggerRef,
|
|
149
|
+
widgetType: (N = s.selectedWidget) == null ? void 0 : N.type,
|
|
150
|
+
visible: o,
|
|
151
|
+
data: t,
|
|
152
|
+
keys: m,
|
|
153
|
+
path: R.value,
|
|
154
|
+
title: g.i18nt("designer.hint.propEditTitle")
|
|
155
|
+
},
|
|
156
|
+
events: {
|
|
157
|
+
confirm: ct,
|
|
158
|
+
cancel: ft
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}, gt = (o) => {
|
|
162
|
+
le(o), U(!1);
|
|
163
|
+
}, vt = () => {
|
|
164
|
+
U(!1);
|
|
165
|
+
}, U = (o = !0, t, m, f, T, N) => {
|
|
166
|
+
H({
|
|
167
|
+
attrs: be({
|
|
168
|
+
props: {
|
|
169
|
+
optionModel: s.optionModel,
|
|
170
|
+
propConfig: be(s.propConfig, t),
|
|
171
|
+
...f
|
|
172
|
+
},
|
|
173
|
+
dialogType: m,
|
|
174
|
+
visible: o,
|
|
175
|
+
title: Ct(R.value, u.value, S.value),
|
|
176
|
+
name: R.value
|
|
177
|
+
}, N),
|
|
178
|
+
events: {
|
|
179
|
+
confirm: T || gt,
|
|
180
|
+
cancel: vt
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}, Le = () => jt(B.value, he.defaultValue), oe = () => {
|
|
184
|
+
Le() && R.value === he.defaultValue && h();
|
|
185
|
+
}, Se = (o) => {
|
|
186
|
+
Le() && (Y.set(B.value, he.defaultValue, o), h());
|
|
187
|
+
}, _t = () => {
|
|
188
|
+
const { widgetList: o } = ne();
|
|
189
|
+
U(
|
|
190
|
+
!0,
|
|
191
|
+
void 0,
|
|
192
|
+
Z.targetEvent,
|
|
193
|
+
{
|
|
194
|
+
otherConfig: { widgetList: o },
|
|
195
|
+
pageConfig: s.pageConfig
|
|
196
|
+
},
|
|
197
|
+
(t) => {
|
|
198
|
+
le(t), U(!1);
|
|
199
|
+
},
|
|
200
|
+
{ title: g.i18nt("designer.hint.targetEvent"), height: "80%" }
|
|
201
|
+
);
|
|
202
|
+
}, yt = () => {
|
|
203
|
+
const { widgetList: o } = ne();
|
|
204
|
+
U(
|
|
205
|
+
!0,
|
|
206
|
+
void 0,
|
|
207
|
+
Z.var,
|
|
208
|
+
{
|
|
209
|
+
widgetList: o,
|
|
210
|
+
pageConfig: s.pageConfig
|
|
211
|
+
},
|
|
212
|
+
(t) => {
|
|
213
|
+
dt(t), oe(), U(!1);
|
|
214
|
+
},
|
|
215
|
+
{ title: g.i18nt("designer.hint.variableBind"), height: "80%" }
|
|
216
|
+
);
|
|
217
|
+
}, Vt = () => {
|
|
218
|
+
const { widgetList: o, currentField: t } = ne();
|
|
219
|
+
U(
|
|
220
|
+
!0,
|
|
221
|
+
void 0,
|
|
222
|
+
Z.formula,
|
|
223
|
+
{
|
|
224
|
+
widgetList: o,
|
|
225
|
+
currentField: t
|
|
226
|
+
},
|
|
227
|
+
(m) => {
|
|
228
|
+
st(m), oe(), U(!1);
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
maximize: !0,
|
|
232
|
+
title: g.i18nt("designer.hint.formulaEdit")
|
|
233
|
+
}
|
|
234
|
+
);
|
|
235
|
+
}, kt = () => {
|
|
236
|
+
const { widgetList: o } = ne();
|
|
237
|
+
U(
|
|
238
|
+
!0,
|
|
239
|
+
void 0,
|
|
240
|
+
Z.schema,
|
|
241
|
+
{
|
|
242
|
+
widgetList: o
|
|
243
|
+
},
|
|
244
|
+
(t) => {
|
|
245
|
+
ut(t), U(!1);
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
maximize: !0,
|
|
249
|
+
title: g.i18nt("designer.hint.schemaData")
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
}, _e = () => {
|
|
253
|
+
u.value === i.optionsEdit ? ve() : U();
|
|
254
|
+
}, Ne = () => {
|
|
255
|
+
U(!0, { type: i.json });
|
|
256
|
+
}, I = (o) => {
|
|
257
|
+
de == null || de(o), oe();
|
|
258
|
+
}, bt = () => {
|
|
259
|
+
var f, T;
|
|
260
|
+
const o = Gt.getOption(s, (f = re.value) == null ? void 0 : f.bindOptionItems);
|
|
261
|
+
var t = St(o, At.children, (N) => !N.children);
|
|
262
|
+
const { widgetList: m } = ht();
|
|
263
|
+
U(
|
|
264
|
+
!0,
|
|
265
|
+
void 0,
|
|
266
|
+
Z.relateWithWidget,
|
|
267
|
+
{
|
|
268
|
+
widgetList: (T = m == null ? void 0 : m[0]) == null ? void 0 : T.children,
|
|
269
|
+
optionItems: t
|
|
270
|
+
},
|
|
271
|
+
void 0,
|
|
272
|
+
{ title: g.i18nt("designer.hint.relateWithWidget"), maximize: !0 }
|
|
273
|
+
);
|
|
274
|
+
}, ht = () => {
|
|
275
|
+
var m;
|
|
276
|
+
let o = [], t = null;
|
|
277
|
+
if (s.designer) {
|
|
278
|
+
const { getNodeTree: f, findTreeNode: T } = et(s.designer);
|
|
279
|
+
o = f(), t = T(o, (m = s.selectedWidget) == null ? void 0 : m.id);
|
|
280
|
+
}
|
|
281
|
+
return {
|
|
282
|
+
widgetList: o,
|
|
283
|
+
currentField: t
|
|
284
|
+
};
|
|
285
|
+
}, ne = () => {
|
|
286
|
+
var m;
|
|
287
|
+
let o = [], t = null;
|
|
288
|
+
if (s.designer) {
|
|
289
|
+
const { findTreeNode: f, buildFormItemList: T } = et(s.designer);
|
|
290
|
+
o = T(), t = f(o, (m = s.selectedWidget) == null ? void 0 : m.id);
|
|
291
|
+
}
|
|
292
|
+
return {
|
|
293
|
+
widgetList: o,
|
|
294
|
+
currentField: t
|
|
295
|
+
};
|
|
296
|
+
}, Ct = (o, t, m) => {
|
|
297
|
+
let f = "";
|
|
298
|
+
return m === Ye.page ? o === Xe.cssCode ? f = g.i18nt("designer.setting.formCss") : o === Xe.functions ? f = g.i18nt("designer.setting.globalFunctions") : t === i.javascript && (f = g.i18nt("designer.setting.editFormEventHandler")) : t === i.json ? f = g.i18nt("designer.setting.Jsons") : t === i.javascript && (f = g.i18nt("designer.setting.editWidgetEventHandler")), f;
|
|
299
|
+
}, wt = () => {
|
|
300
|
+
const o = Ze(R.value);
|
|
301
|
+
me.value.setValue(o);
|
|
302
|
+
}, Et = () => {
|
|
303
|
+
me.value.formatCode();
|
|
304
|
+
};
|
|
305
|
+
return (o, t) => {
|
|
306
|
+
var ze, Ae;
|
|
307
|
+
const m = v("el-switch"), f = v("el-input"), T = v("el-input-number"), N = v("el-color-picker"), xt = v("el-date-picker"), je = v("el-time-picker"), Ht = v("el-time-select"), Dt = v("el-option"), Ut = v("el-select"), It = v("el-select-v2"), Tt = v("el-radio-group"), Rt = v("el-cascader"), F = v("el-button"), Me = v("el-checkbox"), $e = v("el-button-group"), Be = v("el-col"), Wt = v("el-row"), Ot = v("el-alert");
|
|
308
|
+
return a(), b(M, null, [
|
|
309
|
+
e(u) === e(i).switch ? (a(), r(m, k({
|
|
310
|
+
modelValue: e(l),
|
|
311
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => _(l) ? l.value = n : null),
|
|
312
|
+
key: e(d),
|
|
313
|
+
onChange: I
|
|
314
|
+
}, e(c)), null, 16, ["modelValue"])) : e(u) === e(i).input ? (a(), r(f, k({
|
|
315
|
+
type: "text",
|
|
316
|
+
modelValue: e(l),
|
|
317
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => _(l) ? l.value = n : null),
|
|
318
|
+
key: e(d),
|
|
319
|
+
onChange: I
|
|
320
|
+
}, e(c)), null, 16, ["modelValue"])) : e(u) === e(i).number ? (a(), r(f, k({
|
|
321
|
+
type: "number",
|
|
322
|
+
modelValue: e(l),
|
|
323
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => _(l) ? l.value = n : null),
|
|
324
|
+
key: e(d),
|
|
325
|
+
onInput: e(zt),
|
|
326
|
+
onChange: I
|
|
327
|
+
}, e(c)), null, 16, ["modelValue", "onInput"])) : e(u) === e(i).textarea ? (a(), r(f, k({
|
|
328
|
+
type: "textarea",
|
|
329
|
+
modelValue: e(l),
|
|
330
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => _(l) ? l.value = n : null),
|
|
331
|
+
key: e(d),
|
|
332
|
+
rows: 5,
|
|
333
|
+
class: "html-content-editor",
|
|
334
|
+
onChange: I
|
|
335
|
+
}, e(c)), null, 16, ["modelValue"])) : e(u) === e(i).inputNumber ? (a(), r(T, k({
|
|
336
|
+
modelValue: e(l),
|
|
337
|
+
"onUpdate:modelValue": t[4] || (t[4] = (n) => _(l) ? l.value = n : null),
|
|
338
|
+
key: e(d),
|
|
339
|
+
onChange: I
|
|
340
|
+
}, e(c)), null, 16, ["modelValue"])) : e(u) === e(i).color ? (a(), r(N, k({
|
|
341
|
+
modelValue: e(l),
|
|
342
|
+
"onUpdate:modelValue": t[5] || (t[5] = (n) => _(l) ? l.value = n : null),
|
|
343
|
+
key: e(d),
|
|
344
|
+
onChange: oe
|
|
345
|
+
}, e(c), { teleported: z }), null, 16, ["modelValue"])) : e(u) === e(i).date ? (a(), r(xt, k({
|
|
346
|
+
modelValue: e(l),
|
|
347
|
+
"onUpdate:modelValue": t[6] || (t[6] = (n) => _(l) ? l.value = n : null),
|
|
348
|
+
key: e(d),
|
|
349
|
+
onChange: I,
|
|
350
|
+
"value-format": e(B).valueFormat,
|
|
351
|
+
format: e(B).format,
|
|
352
|
+
teleported: z
|
|
353
|
+
}, e(c)), null, 16, ["modelValue", "value-format", "format"])) : e(u) === e(i).time ? (a(), r(je, k({
|
|
354
|
+
modelValue: e(l),
|
|
355
|
+
"onUpdate:modelValue": t[7] || (t[7] = (n) => _(l) ? l.value = n : null),
|
|
356
|
+
key: e(d)
|
|
357
|
+
}, e(c), {
|
|
358
|
+
onChange: I,
|
|
359
|
+
teleported: z,
|
|
360
|
+
format: "HH:mm:ss",
|
|
361
|
+
"value-format": "HH:mm:ss"
|
|
362
|
+
}), null, 16, ["modelValue"])) : e(u) === e(i).timeHHmm ? (a(), r(je, k({
|
|
363
|
+
modelValue: e(l),
|
|
364
|
+
"onUpdate:modelValue": t[8] || (t[8] = (n) => _(l) ? l.value = n : null),
|
|
365
|
+
key: e(d)
|
|
366
|
+
}, e(c), {
|
|
367
|
+
onChange: I,
|
|
368
|
+
teleported: z,
|
|
369
|
+
format: "HH:mm",
|
|
370
|
+
"value-format": "HH:mm"
|
|
371
|
+
}), null, 16, ["modelValue"])) : e(u) === e(i).timeSelect ? (a(), r(Ht, k({
|
|
372
|
+
modelValue: e(l),
|
|
373
|
+
"onUpdate:modelValue": t[9] || (t[9] = (n) => _(l) ? l.value = n : null),
|
|
374
|
+
key: e(d)
|
|
375
|
+
}, e(c), {
|
|
376
|
+
onChange: I,
|
|
377
|
+
format: "HH:mm",
|
|
378
|
+
start: "00:00",
|
|
379
|
+
end: "23:59"
|
|
380
|
+
}), null, 16, ["modelValue"])) : e(u) === e(i).selectGroup ? (a(), r(Ut, k({
|
|
381
|
+
modelValue: e(l),
|
|
382
|
+
"onUpdate:modelValue": t[10] || (t[10] = (n) => _(l) ? l.value = n : null),
|
|
383
|
+
key: e(d),
|
|
384
|
+
clearable: !0
|
|
385
|
+
}, e(c), {
|
|
386
|
+
onChange: I,
|
|
387
|
+
teleported: z
|
|
388
|
+
}), {
|
|
389
|
+
default: p(() => [
|
|
390
|
+
(a(!0), b(M, null, Ke(e(w) || [], (n, A) => {
|
|
391
|
+
var Q, X;
|
|
392
|
+
return a(), r(Dt, {
|
|
393
|
+
key: A,
|
|
394
|
+
label: (Q = e(j)(n)) == null ? void 0 : Q.label,
|
|
395
|
+
value: (X = e(j)(n)) == null ? void 0 : X.value
|
|
396
|
+
}, {
|
|
397
|
+
default: p(({ item: ye }) => [
|
|
398
|
+
(a(), r(K(e(Qe)(ye == null ? void 0 : ye.slotDefault))))
|
|
399
|
+
]),
|
|
400
|
+
_: 2
|
|
401
|
+
}, 1032, ["label", "value"]);
|
|
402
|
+
}), 128))
|
|
403
|
+
]),
|
|
404
|
+
_: 1
|
|
405
|
+
}, 16, ["modelValue"])) : e(u) === e(i).selectGroupV2 ? (a(), r(It, k({
|
|
406
|
+
modelValue: e(l),
|
|
407
|
+
"onUpdate:modelValue": t[11] || (t[11] = (n) => _(l) ? l.value = n : null),
|
|
408
|
+
key: e(d),
|
|
409
|
+
clearable: !0,
|
|
410
|
+
options: e(w) || [],
|
|
411
|
+
teleported: z
|
|
412
|
+
}, e(c), { onChange: I }), {
|
|
413
|
+
default: p(({ item: n }) => [
|
|
414
|
+
(a(), r(K(e(Qe)(n == null ? void 0 : n.slotDefault))))
|
|
415
|
+
]),
|
|
416
|
+
_: 1
|
|
417
|
+
}, 16, ["modelValue", "options"])) : e(u) && [e(i).radiobutton, e(i).radio].includes(e(u)) ? (a(), r(Tt, k({
|
|
418
|
+
key: 12,
|
|
419
|
+
modelValue: e(l),
|
|
420
|
+
"onUpdate:modelValue": t[12] || (t[12] = (n) => _(l) ? l.value = n : null),
|
|
421
|
+
onChange: I
|
|
422
|
+
}, e(c)), {
|
|
423
|
+
default: p(() => {
|
|
424
|
+
var n;
|
|
425
|
+
return [
|
|
426
|
+
(a(!0), b(M, null, Ke(e(w), (A) => {
|
|
427
|
+
var Q;
|
|
428
|
+
return a(), r(K(e(u) === e(i).radiobutton ? "el-radio-button" : "el-radio"), {
|
|
429
|
+
key: A == null ? void 0 : A.value,
|
|
430
|
+
value: (Q = e(j)(A)) == null ? void 0 : Q.value
|
|
431
|
+
}, {
|
|
432
|
+
default: p(() => {
|
|
433
|
+
var X;
|
|
434
|
+
return [
|
|
435
|
+
P(x((X = e(j)(A)) == null ? void 0 : X.label), 1)
|
|
436
|
+
];
|
|
437
|
+
}),
|
|
438
|
+
_: 2
|
|
439
|
+
}, 1032, ["value"]);
|
|
440
|
+
}), 128)),
|
|
441
|
+
(n = e(c)) != null && n.clearable ? (a(), r(K(e(u) === e(i).radiobutton ? "el-radio-button" : "el-radio"), {
|
|
442
|
+
key: 0,
|
|
443
|
+
value: ""
|
|
444
|
+
}, {
|
|
445
|
+
default: p(() => [
|
|
446
|
+
P(x(e(g).i18nt("designer.hint.clear")), 1)
|
|
447
|
+
]),
|
|
448
|
+
_: 1
|
|
449
|
+
})) : L("", !0)
|
|
450
|
+
];
|
|
451
|
+
}),
|
|
452
|
+
_: 1
|
|
453
|
+
}, 16, ["modelValue"])) : e(u) === e(i).cascader ? (a(), r(Rt, k({
|
|
454
|
+
key: e(d),
|
|
455
|
+
modelValue: e(l),
|
|
456
|
+
"onUpdate:modelValue": t[13] || (t[13] = (n) => _(l) ? l.value = n : null),
|
|
457
|
+
options: e(w),
|
|
458
|
+
teleported: z,
|
|
459
|
+
onChange: I
|
|
460
|
+
}, e(c)), null, 16, ["modelValue", "options"])) : e(u) === e(i).treeEdit ? (a(), r(K(e(Te)), k({
|
|
461
|
+
modelValue: e(se),
|
|
462
|
+
"onUpdate:modelValue": t[14] || (t[14] = (n) => _(se) ? se.value = n : null),
|
|
463
|
+
key: e(d),
|
|
464
|
+
"widget-type": e(Ue),
|
|
465
|
+
multiple: e(q)
|
|
466
|
+
}, e(c), {
|
|
467
|
+
"onUpdate:modelValue": e(le),
|
|
468
|
+
onUpdateDefaultValue: Se,
|
|
469
|
+
onImportData: Ne
|
|
470
|
+
}), null, 16, ["modelValue", "widget-type", "multiple", "onUpdate:modelValue"])) : e(u) === e(i).multirow ? (a(), r(K(e(Re)), k({
|
|
471
|
+
modelValue: e(l),
|
|
472
|
+
"onUpdate:modelValue": t[15] || (t[15] = (n) => _(l) ? l.value = n : null),
|
|
473
|
+
key: e(d),
|
|
474
|
+
"widget-type": e(Ue),
|
|
475
|
+
multiple: e(q)
|
|
476
|
+
}, e(c), {
|
|
477
|
+
"onUpdate:modelValue": e(le),
|
|
478
|
+
onUpdateDefaultValue: Se,
|
|
479
|
+
onImportData: Ne
|
|
480
|
+
}), null, 16, ["modelValue", "widget-type", "multiple", "onUpdate:modelValue"])) : e(u) === e(i).formula ? (a(), r(F, {
|
|
481
|
+
key: 16,
|
|
482
|
+
type: "primary",
|
|
483
|
+
onClick: Vt,
|
|
484
|
+
class: "st_btn"
|
|
485
|
+
}, {
|
|
486
|
+
default: p(() => [
|
|
487
|
+
y(J, { name: "@el-edit" }),
|
|
488
|
+
P(" " + x(e(g).i18nt("designer.hint.formulaEdit")), 1)
|
|
489
|
+
]),
|
|
490
|
+
_: 1
|
|
491
|
+
})) : e(u) === e(i).schemaData ? (a(), r(F, {
|
|
492
|
+
key: 17,
|
|
493
|
+
type: "primary",
|
|
494
|
+
onClick: kt,
|
|
495
|
+
class: "st_btn"
|
|
496
|
+
}, {
|
|
497
|
+
default: p(() => [
|
|
498
|
+
y(J, { name: "@el-edit" }),
|
|
499
|
+
P(" " + x(e(g).i18nt("designer.hint.schemaData")), 1)
|
|
500
|
+
]),
|
|
501
|
+
_: 1
|
|
502
|
+
})) : e(u) === e(i).slot ? Ce(o.$slots, "specialEditor", { key: 18 }, void 0, !0) : e(u) === e(i).targetEvent ? (a(), b(M, { key: 19 }, [
|
|
503
|
+
Qt,
|
|
504
|
+
(a(), b("span", { key: e(d) }, [
|
|
505
|
+
ee("span", {
|
|
506
|
+
class: we(["dot", { "green-dot": !!e(Ie) }]),
|
|
507
|
+
style: { "margin-right": "10px" }
|
|
508
|
+
}, null, 2),
|
|
509
|
+
e(te) ? (a(), r($e, { key: 0 }, {
|
|
510
|
+
default: p(() => [
|
|
511
|
+
y(F, {
|
|
512
|
+
type: "info",
|
|
513
|
+
plain: "",
|
|
514
|
+
onClick: _t
|
|
515
|
+
}, {
|
|
516
|
+
default: p(() => [
|
|
517
|
+
y(J, { name: "@el-edit" })
|
|
518
|
+
]),
|
|
519
|
+
_: 1
|
|
520
|
+
}),
|
|
521
|
+
Ge(y(F, {
|
|
522
|
+
onMouseover: t[17] || (t[17] = (n) => ge()),
|
|
523
|
+
onMouseleave: Pe,
|
|
524
|
+
ref_key: "enableRef",
|
|
525
|
+
ref: ce
|
|
526
|
+
}, {
|
|
527
|
+
default: p(() => [
|
|
528
|
+
y(Me, {
|
|
529
|
+
modelValue: e($),
|
|
530
|
+
"onUpdate:modelValue": t[16] || (t[16] = (n) => _($) ? $.value = n : null)
|
|
531
|
+
}, null, 8, ["modelValue"])
|
|
532
|
+
]),
|
|
533
|
+
_: 1
|
|
534
|
+
}, 512), [
|
|
535
|
+
[Je, e(te)]
|
|
536
|
+
])
|
|
537
|
+
]),
|
|
538
|
+
_: 1
|
|
539
|
+
})) : (a(), r(F, {
|
|
540
|
+
key: 1,
|
|
541
|
+
type: "info",
|
|
542
|
+
plain: "",
|
|
543
|
+
onClick: _e
|
|
544
|
+
}, {
|
|
545
|
+
default: p(() => [
|
|
546
|
+
y(J, { name: "@el-edit" })
|
|
547
|
+
]),
|
|
548
|
+
_: 1
|
|
549
|
+
}))
|
|
550
|
+
]))
|
|
551
|
+
], 64)) : e(u) === e(i).relate ? (a(), r(F, {
|
|
552
|
+
key: 20,
|
|
553
|
+
type: "primary",
|
|
554
|
+
class: "full-width st-btn",
|
|
555
|
+
onClick: bt
|
|
556
|
+
}, {
|
|
557
|
+
default: p(() => [
|
|
558
|
+
P(x(e(g).i18nt("designer.hint.relateWithWidget")), 1)
|
|
559
|
+
]),
|
|
560
|
+
_: 1
|
|
561
|
+
})) : e(Oe) ? (a(), b(M, { key: 21 }, [
|
|
562
|
+
e(He) ? (a(), b("div", Xt, [
|
|
563
|
+
((ze = e(pe)) == null ? void 0 : ze.length) > 0 ? (a(), r(Wt, {
|
|
564
|
+
key: 0,
|
|
565
|
+
class: "full-width"
|
|
566
|
+
}, {
|
|
567
|
+
default: p(() => [
|
|
568
|
+
y(Be, { span: 20 }, {
|
|
569
|
+
default: p(() => {
|
|
570
|
+
var n;
|
|
571
|
+
return [
|
|
572
|
+
P(x(e(R)) + "(" + x((n = e(pe)) == null ? void 0 : n.join(",")) + ") { ", 1)
|
|
573
|
+
];
|
|
574
|
+
}),
|
|
575
|
+
_: 1
|
|
576
|
+
}),
|
|
577
|
+
y(Be, { span: 4 }, {
|
|
578
|
+
default: p(() => [
|
|
579
|
+
e(Ze)(e(R)) ? (a(), r(F, {
|
|
580
|
+
key: 0,
|
|
581
|
+
link: "",
|
|
582
|
+
type: "primary",
|
|
583
|
+
onClick: wt
|
|
584
|
+
}, {
|
|
585
|
+
default: p(() => [
|
|
586
|
+
P(x(e(g).i18nt("designer.hint.importExampleCode")), 1)
|
|
587
|
+
]),
|
|
588
|
+
_: 1
|
|
589
|
+
})) : L("", !0),
|
|
590
|
+
y(F, {
|
|
591
|
+
link: "",
|
|
592
|
+
type: "primary",
|
|
593
|
+
onClick: Et
|
|
594
|
+
}, {
|
|
595
|
+
default: p(() => [
|
|
596
|
+
P(x(e(g).i18nt("designer.hint.beautifyCode")), 1)
|
|
597
|
+
]),
|
|
598
|
+
_: 1
|
|
599
|
+
})
|
|
600
|
+
]),
|
|
601
|
+
_: 1
|
|
602
|
+
})
|
|
603
|
+
]),
|
|
604
|
+
_: 1
|
|
605
|
+
})) : L("", !0),
|
|
606
|
+
(a(), r(K(e(We)), k({
|
|
607
|
+
ref_key: "codeEditorRef",
|
|
608
|
+
ref: me,
|
|
609
|
+
modelValue: e(ue),
|
|
610
|
+
"onUpdate:modelValue": t[18] || (t[18] = (n) => _(ue) ? ue.value = n : null),
|
|
611
|
+
class: "full-width border"
|
|
612
|
+
}, e(c)), null, 16, ["modelValue"])),
|
|
613
|
+
((Ae = e(pe)) == null ? void 0 : Ae.length) > 0 ? (a(), r(Ot, {
|
|
614
|
+
key: 1,
|
|
615
|
+
type: "info",
|
|
616
|
+
closable: !1
|
|
617
|
+
}, {
|
|
618
|
+
title: p(() => [
|
|
619
|
+
P(" } ")
|
|
620
|
+
]),
|
|
621
|
+
_: 1
|
|
622
|
+
})) : L("", !0)
|
|
623
|
+
])) : (a(), b(M, { key: 1 }, [
|
|
624
|
+
Yt,
|
|
625
|
+
(a(), b("span", { key: e(d) }, [
|
|
626
|
+
ee("span", {
|
|
627
|
+
class: we(["dot", { "green-dot": !!e(Ie) }]),
|
|
628
|
+
style: { "margin-right": "10px" }
|
|
629
|
+
}, null, 2),
|
|
630
|
+
e(te) ? (a(), r($e, { key: 0 }, {
|
|
631
|
+
default: p(() => [
|
|
632
|
+
y(F, {
|
|
633
|
+
type: "info",
|
|
634
|
+
plain: "",
|
|
635
|
+
onClick: _e
|
|
636
|
+
}, {
|
|
637
|
+
default: p(() => [
|
|
638
|
+
y(J, { name: "@el-edit" }),
|
|
639
|
+
P(x(e(De)), 1)
|
|
640
|
+
]),
|
|
641
|
+
_: 1
|
|
642
|
+
}),
|
|
643
|
+
Ge(y(F, {
|
|
644
|
+
onMouseover: t[20] || (t[20] = (n) => ge()),
|
|
645
|
+
onMouseleave: Pe,
|
|
646
|
+
ref_key: "enableRef",
|
|
647
|
+
ref: ce
|
|
648
|
+
}, {
|
|
649
|
+
default: p(() => [
|
|
650
|
+
y(Me, {
|
|
651
|
+
modelValue: e($),
|
|
652
|
+
"onUpdate:modelValue": t[19] || (t[19] = (n) => _($) ? $.value = n : null)
|
|
653
|
+
}, null, 8, ["modelValue"])
|
|
654
|
+
]),
|
|
655
|
+
_: 1
|
|
656
|
+
}, 512), [
|
|
657
|
+
[Je, e(te)]
|
|
658
|
+
])
|
|
659
|
+
]),
|
|
660
|
+
_: 1
|
|
661
|
+
})) : (a(), r(F, {
|
|
662
|
+
key: 1,
|
|
663
|
+
type: "info",
|
|
664
|
+
plain: "",
|
|
665
|
+
onClick: _e
|
|
666
|
+
}, {
|
|
667
|
+
default: p(() => [
|
|
668
|
+
y(J, { name: "@el-edit" }),
|
|
669
|
+
P(x(e(De)), 1)
|
|
670
|
+
]),
|
|
671
|
+
_: 1
|
|
672
|
+
}))
|
|
673
|
+
]))
|
|
674
|
+
], 64))
|
|
675
|
+
], 64)) : e(u) === e(i).hidden ? (a(), b("div", Zt)) : L("", !0),
|
|
676
|
+
e(it) ? (a(), r(qt, {
|
|
677
|
+
key: 23,
|
|
678
|
+
onClick: yt,
|
|
679
|
+
state: e(rt)
|
|
680
|
+
}, null, 8, ["state"])) : L("", !0)
|
|
681
|
+
], 64);
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
const yl = /* @__PURE__ */ nt(el, [["__scopeId", "data-v-bafdfc39"]]), tl = ["href"], tt = /* @__PURE__ */ ie({
|
|
686
|
+
__name: "label-editor",
|
|
687
|
+
props: {
|
|
688
|
+
label: null,
|
|
689
|
+
tips: null,
|
|
690
|
+
href: null
|
|
691
|
+
},
|
|
692
|
+
setup(V) {
|
|
693
|
+
const s = V, { getInstance: d } = Ee(), { toolTipHandler: W } = xe({ ...s, instance: d() }), h = ae(), H = (D = !0) => {
|
|
694
|
+
W({ tips: s.tips, visible: D, triggerRef: h });
|
|
695
|
+
}, O = () => {
|
|
696
|
+
H(!1);
|
|
697
|
+
};
|
|
698
|
+
return (D, C) => V.href ? (a(), b("a", {
|
|
699
|
+
key: 0,
|
|
700
|
+
href: V.href,
|
|
701
|
+
target: "_blank"
|
|
702
|
+
}, [
|
|
703
|
+
ee("span", {
|
|
704
|
+
onMouseover: C[0] || (C[0] = (w) => H()),
|
|
705
|
+
onMouseleave: O,
|
|
706
|
+
ref_key: "labelRef",
|
|
707
|
+
ref: h
|
|
708
|
+
}, x(V.label), 545)
|
|
709
|
+
], 8, tl)) : (a(), b("span", {
|
|
710
|
+
key: 1,
|
|
711
|
+
onMouseover: C[1] || (C[1] = (w) => H()),
|
|
712
|
+
onMouseleave: O,
|
|
713
|
+
ref_key: "labelRef",
|
|
714
|
+
ref: h
|
|
715
|
+
}, x(V.label), 545));
|
|
716
|
+
}
|
|
717
|
+
}), ll = {
|
|
718
|
+
key: 0,
|
|
719
|
+
class: "custom-divider"
|
|
720
|
+
}, ol = /* @__PURE__ */ ie({
|
|
721
|
+
__name: "editor-wrapper",
|
|
722
|
+
props: { ...lt },
|
|
723
|
+
setup(V) {
|
|
724
|
+
const s = V, { propLabel: d, newRowLabel: W, localDividerTitle: h, rules: H, propName: O, propOptions: D, propVisible: C, noRowLabel: w, propTipContent: l, addFormItem: E } = ot(s);
|
|
725
|
+
return (R, re) => {
|
|
726
|
+
var u;
|
|
727
|
+
const q = v("el-form-item");
|
|
728
|
+
return e(C) ? (a(), b(M, { key: 0 }, [
|
|
729
|
+
e(h) ? (a(), b("div", ll, x(e(h)), 1)) : L("", !0),
|
|
730
|
+
e(E) === !1 ? Ce(R.$slots, "slotEditor", { key: 1 }, void 0, !0) : (a(), b(M, { key: 2 }, [
|
|
731
|
+
e(W) && !e(w) ? (a(), r(q, { key: 0 }, {
|
|
732
|
+
label: p(() => {
|
|
733
|
+
var S;
|
|
734
|
+
return [
|
|
735
|
+
y(tt, {
|
|
736
|
+
label: e(d),
|
|
737
|
+
tips: e(l),
|
|
738
|
+
href: (S = e(D)) == null ? void 0 : S.helpUrl
|
|
739
|
+
}, null, 8, ["label", "tips", "href"])
|
|
740
|
+
];
|
|
741
|
+
}),
|
|
742
|
+
_: 1
|
|
743
|
+
})) : L("", !0),
|
|
744
|
+
y(q, {
|
|
745
|
+
"label-width": e(W) ? "0px" : "",
|
|
746
|
+
class: we([e(W) ? "nopadding" : "", "commonFormItem", (u = e(H)) != null && u.length ? "ruleFormItem" : ""]),
|
|
747
|
+
rules: e(H),
|
|
748
|
+
prop: e(O)
|
|
749
|
+
}, Lt({
|
|
750
|
+
default: p(() => [
|
|
751
|
+
Ce(R.$slots, "slotEditor", {}, void 0, !0)
|
|
752
|
+
]),
|
|
753
|
+
_: 2
|
|
754
|
+
}, [
|
|
755
|
+
!e(W) && !e(w) ? {
|
|
756
|
+
name: "label",
|
|
757
|
+
fn: p(() => {
|
|
758
|
+
var S;
|
|
759
|
+
return [
|
|
760
|
+
y(tt, {
|
|
761
|
+
label: e(d),
|
|
762
|
+
tips: e(l),
|
|
763
|
+
href: (S = e(D)) == null ? void 0 : S.helpUrl
|
|
764
|
+
}, null, 8, ["label", "tips", "href"])
|
|
765
|
+
];
|
|
766
|
+
}),
|
|
767
|
+
key: "0"
|
|
768
|
+
} : void 0
|
|
769
|
+
]), 1032, ["label-width", "class", "rules", "prop"])
|
|
770
|
+
], 64))
|
|
771
|
+
], 64)) : L("", !0);
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
const Vl = /* @__PURE__ */ nt(ol, [["__scopeId", "data-v-c91dba5d"]]);
|
|
776
|
+
export {
|
|
777
|
+
Vl as E,
|
|
778
|
+
yl as O
|
|
779
|
+
};
|