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,216 @@
|
|
|
1
|
+
import { openBlock as _, createElementBlock as h, defineComponent as Z, inject as N, ref as ee, resolveComponent as r, createBlock as b, withCtx as t, createVNode as i, unref as u, createElementVNode as p, Fragment as F, renderList as V, toDisplayString as g, mergeProps as te, createTextVNode as D, createCommentVNode as ne } from "vue";
|
|
2
|
+
import { a as o, m as ae, k as le, f as ie } from "./enum-type-287a50b6.js";
|
|
3
|
+
import { g as oe } from "./uuid-39f0308a.js";
|
|
4
|
+
import { u as re } from "./icon-2bb9fa65.js";
|
|
5
|
+
import { w as m } from "./optionItem-0ac4a3ae.js";
|
|
6
|
+
import { S as se } from "./index-ffbcbc43.js";
|
|
7
|
+
import { _ as ce } from "./_plugin-vue_export-helper-dad06003.js";
|
|
8
|
+
import { u as de } from "./index-f146282d.js";
|
|
9
|
+
import { d as P } from "./template-c30585f4.js";
|
|
10
|
+
import { B as f, A as pe } from "./baseImp-8c4be88e.js";
|
|
11
|
+
import "./enum-type-255ade69.js";
|
|
12
|
+
import "./index-7fa591e3.js";
|
|
13
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
|
+
import "./dialog-5e196819.js";
|
|
15
|
+
import "element-plus";
|
|
16
|
+
const me = {}, ue = { style: { height: "1px", margin: "0px", padding: "0px" } };
|
|
17
|
+
function _e(T, v) {
|
|
18
|
+
return _(), h("div", ue);
|
|
19
|
+
}
|
|
20
|
+
const ge = /* @__PURE__ */ ce(me, [["render", _e]]), fe = { class: "collapse_title" }, he = ["title", "onDblclick"], ye = { class: "widget-item-span" }, be = ["src"], Fe = ["src"], Te = { class: "bottom clear-fix" }, ve = { class: "ft-title" }, Ie = /* @__PURE__ */ Z({
|
|
21
|
+
__name: "index",
|
|
22
|
+
props: {
|
|
23
|
+
designer: null
|
|
24
|
+
},
|
|
25
|
+
setup(T) {
|
|
26
|
+
const v = T, { $message: x, $confirm: $ } = re(), { copyNewFieldWidget: S, copyNewContainerWidget: W, addContainerByDbClick: E, addFieldByDbClick: J, loadPageJson: L, emitHistoryChange: I } = de(v.designer), y = N(P.getBannedWidgets), O = N(P.getPageTemplates, []), s = (e) => (y == null ? void 0 : y.indexOf(e)) > -1, c = (e) => {
|
|
27
|
+
var n;
|
|
28
|
+
return (n = le(e)) == null || n.forEach((a) => {
|
|
29
|
+
a.key = oe(), a.displayName = f.getWidgetTypeName(a == null ? void 0 : a.type);
|
|
30
|
+
}), e;
|
|
31
|
+
}, H = (e) => !0, j = (e) => f.isContainer(e) ? W(e) : S(e), A = (e) => f.isContainer(e) ? E(e) : J(e), G = [
|
|
32
|
+
{
|
|
33
|
+
title: "containerTitle",
|
|
34
|
+
data: c(m.containers).filter((e) => !e.internal && !s(e.type))
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: "navFieldTitle",
|
|
38
|
+
data: c(m.navFields).filter((e) => !e.internal && !s(e.type))
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: "basicFieldTitle",
|
|
42
|
+
data: c(m.basicFields).filter((e) => !e.internal && !s(e.type))
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: "formFieldTitle",
|
|
46
|
+
data: c(m.formFields).filter((e) => !e.internal && !s(e.type))
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: "dataFieldTitle",
|
|
50
|
+
data: c(m.dataFields).filter((e) => !e.internal && !s(e.type))
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: "feedBackFieldTitle",
|
|
54
|
+
data: c(m.feedBackFields).filter((e) => !e.internal && !s(e.type))
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: "advancedFieldTitle",
|
|
58
|
+
data: c(m.advancedFields).filter((e) => !e.internal && !s(e.type))
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: "otherFieldTitle",
|
|
62
|
+
data: c(m.otherFields).filter((e) => !e.internal && !s(e.type))
|
|
63
|
+
}
|
|
64
|
+
], C = ee("formFieldTitle"), K = (e) => {
|
|
65
|
+
$(o.i18nt("designer.hint.loadFormTemplateHint"), o.i18nt("render.hint.prompt"), {
|
|
66
|
+
confirmButtonText: o.i18nt("render.hint.confirm"),
|
|
67
|
+
cancelButtonText: o.i18nt("render.hint.cancel")
|
|
68
|
+
}).then(async () => {
|
|
69
|
+
pe.isUrl(e) ? await M(e) : k(e);
|
|
70
|
+
}).catch((n) => {
|
|
71
|
+
console.error(n);
|
|
72
|
+
});
|
|
73
|
+
}, M = async (e) => {
|
|
74
|
+
(await import("./index-6d56f058.js")).default.get(e).then((a) => {
|
|
75
|
+
k(a.data);
|
|
76
|
+
}).catch((a) => {
|
|
77
|
+
x.error(o.i18nt("designer.hint.loadFormTemplateFailed") + ":" + a);
|
|
78
|
+
});
|
|
79
|
+
}, k = (e) => {
|
|
80
|
+
let n = !1;
|
|
81
|
+
n = L(ie(e)), n && I("load page template"), x.success(o.i18nt("designer.hint.loadFormTemplateSuccess"));
|
|
82
|
+
};
|
|
83
|
+
return (e, n) => {
|
|
84
|
+
const a = r("draggable"), U = r("el-collapse-item"), q = r("el-collapse"), B = r("el-scrollbar"), w = r("el-tab-pane"), z = r("el-popover"), Q = r("el-button"), R = r("el-card"), X = r("el-tabs");
|
|
85
|
+
return _(), b(X, {
|
|
86
|
+
stretch: !0,
|
|
87
|
+
class: "full-height-tab"
|
|
88
|
+
}, {
|
|
89
|
+
default: t(() => [
|
|
90
|
+
i(w, {
|
|
91
|
+
label: u(o).i18nt("designer.componentLib"),
|
|
92
|
+
class: "full-height"
|
|
93
|
+
}, {
|
|
94
|
+
default: t(() => [
|
|
95
|
+
i(B, { class: "noOutline" }, {
|
|
96
|
+
default: t(() => [
|
|
97
|
+
p("div", null, [
|
|
98
|
+
i(q, {
|
|
99
|
+
modelValue: C.value,
|
|
100
|
+
"onUpdate:modelValue": n[0] || (n[0] = (l) => C.value = l)
|
|
101
|
+
}, {
|
|
102
|
+
default: t(() => [
|
|
103
|
+
(_(), h(F, null, V(G, (l) => (_(), h(F, null, [
|
|
104
|
+
i(ge),
|
|
105
|
+
u(ae)(l.data) ? (_(), b(U, {
|
|
106
|
+
key: 0,
|
|
107
|
+
name: l.title
|
|
108
|
+
}, {
|
|
109
|
+
title: t(() => [
|
|
110
|
+
p("span", fe, g(u(o).i18nt("designer." + l.title)), 1)
|
|
111
|
+
]),
|
|
112
|
+
default: t(() => [
|
|
113
|
+
i(a, te({
|
|
114
|
+
list: l.data,
|
|
115
|
+
group: { name: "dragGroup", pull: "clone", put: !1 }
|
|
116
|
+
}, { ghostClass: "ghost", sort: !1 }, {
|
|
117
|
+
"item-key": "key",
|
|
118
|
+
tag: "ul",
|
|
119
|
+
clone: j,
|
|
120
|
+
class: "widget-container",
|
|
121
|
+
move: H
|
|
122
|
+
}), {
|
|
123
|
+
item: t(({ element: d }) => [
|
|
124
|
+
p("li", {
|
|
125
|
+
class: "widget-item",
|
|
126
|
+
title: d.displayName,
|
|
127
|
+
onDblclick: (Y) => A(d)
|
|
128
|
+
}, [
|
|
129
|
+
p("span", ye, [
|
|
130
|
+
i(se, {
|
|
131
|
+
name: d.icon,
|
|
132
|
+
"class-name": "primary-color"
|
|
133
|
+
}, null, 8, ["name"]),
|
|
134
|
+
D(" " + g(u(f).getWidgetTypeName(d == null ? void 0 : d.type)), 1)
|
|
135
|
+
])
|
|
136
|
+
], 40, he)
|
|
137
|
+
]),
|
|
138
|
+
_: 2
|
|
139
|
+
}, 1040, ["list"])
|
|
140
|
+
]),
|
|
141
|
+
_: 2
|
|
142
|
+
}, 1032, ["name"])) : ne("", !0)
|
|
143
|
+
], 64))), 64))
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["modelValue"])
|
|
147
|
+
])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
})
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["label"]),
|
|
154
|
+
i(w, {
|
|
155
|
+
label: u(o).i18nt("designer.formLib"),
|
|
156
|
+
class: "full-height"
|
|
157
|
+
}, {
|
|
158
|
+
default: t(() => [
|
|
159
|
+
i(B, null, {
|
|
160
|
+
default: t(() => [
|
|
161
|
+
(_(!0), h(F, null, V(u(O), (l, d) => (_(), b(R, {
|
|
162
|
+
"bord-style": { padding: "0" },
|
|
163
|
+
shadow: "hover",
|
|
164
|
+
class: "ft-card"
|
|
165
|
+
}, {
|
|
166
|
+
default: t(() => [
|
|
167
|
+
i(z, {
|
|
168
|
+
placement: "right",
|
|
169
|
+
trigger: "hover"
|
|
170
|
+
}, {
|
|
171
|
+
reference: t(() => [
|
|
172
|
+
p("img", {
|
|
173
|
+
src: l.img,
|
|
174
|
+
style: { width: "200px" }
|
|
175
|
+
}, null, 8, be)
|
|
176
|
+
]),
|
|
177
|
+
default: t(() => [
|
|
178
|
+
p("img", {
|
|
179
|
+
src: l.img,
|
|
180
|
+
style: { height: "600px", width: "720px" }
|
|
181
|
+
}, null, 8, Fe)
|
|
182
|
+
]),
|
|
183
|
+
_: 2
|
|
184
|
+
}, 1024),
|
|
185
|
+
p("div", Te, [
|
|
186
|
+
p("span", ve, "#" + g(d + 1) + " " + g(l.title), 1),
|
|
187
|
+
i(Q, {
|
|
188
|
+
link: "",
|
|
189
|
+
type: "primary",
|
|
190
|
+
class: "right-button",
|
|
191
|
+
onClick: (Y) => K(l.json)
|
|
192
|
+
}, {
|
|
193
|
+
default: t(() => [
|
|
194
|
+
D(g(u(o).i18nt("designer.hint.loadFormTemplate")), 1)
|
|
195
|
+
]),
|
|
196
|
+
_: 2
|
|
197
|
+
}, 1032, ["onClick"])
|
|
198
|
+
])
|
|
199
|
+
]),
|
|
200
|
+
_: 2
|
|
201
|
+
}, 1024))), 256))
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
})
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}, 8, ["label"])
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
});
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
export {
|
|
215
|
+
Ie as default
|
|
216
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as y, computed as d, ref as w, shallowRef as z, watch as C, isRef as I, resolveComponent as N, unref as t, openBlock as s, createElementBlock as _, normalizeClass as S, createElementVNode as b, toDisplayString as B, createCommentVNode as $, createBlock as h, withCtx as D, resolveDynamicComponent as E } from "vue";
|
|
2
|
+
import { l as R } from "./enum-type-287a50b6.js";
|
|
3
|
+
import { u as L, r as V } from "./icon-2bb9fa65.js";
|
|
4
|
+
import { _ as W } from "./_plugin-vue_export-helper-dad06003.js";
|
|
5
|
+
const j = ["width", "height", "color"], q = ["xlink:href"], A = {
|
|
6
|
+
key: 0,
|
|
7
|
+
slot: "title"
|
|
8
|
+
}, F = /* @__PURE__ */ y({
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: {
|
|
11
|
+
prefix: { default: "icon" },
|
|
12
|
+
dir: { default: "svg" },
|
|
13
|
+
name: null,
|
|
14
|
+
color: null,
|
|
15
|
+
size: null,
|
|
16
|
+
width: { default: "16" },
|
|
17
|
+
height: { default: "16" },
|
|
18
|
+
className: null,
|
|
19
|
+
title: { default: "" }
|
|
20
|
+
},
|
|
21
|
+
setup(n) {
|
|
22
|
+
var r, m;
|
|
23
|
+
const e = n, f = e.size || e.width, g = e.size || e.height, p = e.size || e.width, i = e.name, v = d(() => {
|
|
24
|
+
var o = "svg-icon";
|
|
25
|
+
return e.className ? o + " " + e.className : o;
|
|
26
|
+
}), c = w(), x = d(() => `#${e.prefix}-${e.dir}-${c.value}`);
|
|
27
|
+
let l = z();
|
|
28
|
+
const a = R(i) && ((r = String(i)) == null ? void 0 : r.startsWith("@"));
|
|
29
|
+
return a ? c.value = (m = String(i)) == null ? void 0 : m.substring(1) : C(() => e.name, (o) => {
|
|
30
|
+
if (I(e.name))
|
|
31
|
+
l.value = o;
|
|
32
|
+
else {
|
|
33
|
+
const { instance: u } = L();
|
|
34
|
+
l = V(o, u);
|
|
35
|
+
}
|
|
36
|
+
}, { immediate: !0 }), (o, u) => {
|
|
37
|
+
const k = N("el-icon");
|
|
38
|
+
return t(a) ? (s(), _("svg", {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: S(t(v)),
|
|
41
|
+
width: t(f),
|
|
42
|
+
height: t(g),
|
|
43
|
+
color: e.color
|
|
44
|
+
}, [
|
|
45
|
+
b("use", { "xlink:href": t(x) }, null, 8, q),
|
|
46
|
+
n.title ? (s(), _("title", A, B(n.title), 1)) : $("", !0)
|
|
47
|
+
], 10, j)) : (s(), h(k, {
|
|
48
|
+
key: 1,
|
|
49
|
+
size: t(p)
|
|
50
|
+
}, {
|
|
51
|
+
default: D(() => [
|
|
52
|
+
(s(), h(E(t(l)), {
|
|
53
|
+
color: (e == null ? void 0 : e.color) || "black",
|
|
54
|
+
key: n.name
|
|
55
|
+
}, null, 8, ["color"]))
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["size"]));
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const M = /* @__PURE__ */ W(F, [["__scopeId", "data-v-eee47a33"]]);
|
|
63
|
+
export {
|
|
64
|
+
M as S
|
|
65
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as d, resolveComponent as N, openBlock as r, createBlock as m, mergeProps as l, unref as e, withCtx as j, createElementVNode as F, isRef as I, toHandlers as O, createElementBlock as W, toDisplayString as h, createCommentVNode as z } from "vue";
|
|
2
|
+
import { c as B } from "./share-field-451430de.js";
|
|
3
|
+
import { I as M } from "./field-base-5547436d.js";
|
|
4
|
+
import P from "./form-item-wrapper-8039c512.js";
|
|
5
|
+
import { w as S } from "./template-c30585f4.js";
|
|
6
|
+
import { _ as T } from "./_plugin-vue_export-helper-dad06003.js";
|
|
7
|
+
import "./enum-type-287a50b6.js";
|
|
8
|
+
import "./emitter-2b9b9409.js";
|
|
9
|
+
import "./icon-2bb9fa65.js";
|
|
10
|
+
import "./baseImp-8c4be88e.js";
|
|
11
|
+
import "./uuid-39f0308a.js";
|
|
12
|
+
import "./enum-type-255ade69.js";
|
|
13
|
+
import "./dialog-5e196819.js";
|
|
14
|
+
import "element-plus";
|
|
15
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
+
import "./multirow-e1e1205c.js";
|
|
17
|
+
import "./index-f146282d.js";
|
|
18
|
+
import "./optionItem-0ac4a3ae.js";
|
|
19
|
+
import "./index-7fa591e3.js";
|
|
20
|
+
import "./slot-04a83a27.js";
|
|
21
|
+
import "./widget-base-4c2d6265.js";
|
|
22
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
23
|
+
import "./index-ffbcbc43.js";
|
|
24
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js";
|
|
25
|
+
const A = { class: "input-with-unit" }, D = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "unit"
|
|
28
|
+
}, H = d({ componentName: S.FieldWidget }), K = /* @__PURE__ */ d({
|
|
29
|
+
...H,
|
|
30
|
+
__name: "input-number-widget",
|
|
31
|
+
props: { ...M },
|
|
32
|
+
setup(u, { expose: _ }) {
|
|
33
|
+
const a = u, { fieldEditor: c, fieldKey: f, fieldModel: t, rules: g, attrs: y, events: x, extendAttrs: i, exposed: b, isError: v, errorMsg: k, fieldObj: E } = B(a);
|
|
34
|
+
return _({ ...b }), (V, p) => {
|
|
35
|
+
const w = N("el-input-number");
|
|
36
|
+
return r(), m(P, l(V.$props, {
|
|
37
|
+
propOptions: { fieldObj: e(E), rules: e(g), isError: e(v), errorMsg: e(k) }
|
|
38
|
+
}), {
|
|
39
|
+
default: j(({ data: o }) => {
|
|
40
|
+
var s, n;
|
|
41
|
+
return [
|
|
42
|
+
F("div", A, [
|
|
43
|
+
(r(), m(w, l({
|
|
44
|
+
ref_key: "fieldEditor",
|
|
45
|
+
ref: c,
|
|
46
|
+
modelValue: e(t),
|
|
47
|
+
"onUpdate:modelValue": p[0] || (p[0] = (C) => I(t) ? t.value = C : null),
|
|
48
|
+
key: e(f)
|
|
49
|
+
}, e(y), O(e(x)), {
|
|
50
|
+
size: o.size,
|
|
51
|
+
class: o.injectClass,
|
|
52
|
+
style: o.injectStyle
|
|
53
|
+
}), null, 16, ["modelValue", "size", "class", "style"])),
|
|
54
|
+
(s = e(i)) != null && s.unitText ? (r(), W("span", D, h((n = e(i)) == null ? void 0 : n.unitText), 1)) : z("", !0)
|
|
55
|
+
])
|
|
56
|
+
];
|
|
57
|
+
}),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 16, ["propOptions"]);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const ae = /* @__PURE__ */ T(K, [["__scopeId", "data-v-5f28c44f"]]);
|
|
64
|
+
export {
|
|
65
|
+
ae as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as f, resolveComponent as z, openBlock as i, createBlock as t, mergeProps as n, unref as r, withCtx as d, isRef as D, toHandlers as I, createSlots as M, renderList as N, resolveDynamicComponent as W, createCommentVNode as l } from "vue";
|
|
2
|
+
import { a as h } from "./enum-type-287a50b6.js";
|
|
3
|
+
import { I as x } from "./field-base-5547436d.js";
|
|
4
|
+
import { c as A } from "./share-field-451430de.js";
|
|
5
|
+
import { g as B } from "./slot-04a83a27.js";
|
|
6
|
+
import L from "./form-item-wrapper-8039c512.js";
|
|
7
|
+
import { w as P } from "./template-c30585f4.js";
|
|
8
|
+
import { D as T } from "./drag-wrapper-f9fb1533.js";
|
|
9
|
+
import "./widget-base-4c2d6265.js";
|
|
10
|
+
import "./emitter-2b9b9409.js";
|
|
11
|
+
import "./icon-2bb9fa65.js";
|
|
12
|
+
import "./baseImp-8c4be88e.js";
|
|
13
|
+
import "./uuid-39f0308a.js";
|
|
14
|
+
import "./enum-type-255ade69.js";
|
|
15
|
+
import "./dialog-5e196819.js";
|
|
16
|
+
import "element-plus";
|
|
17
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
18
|
+
import "./multirow-e1e1205c.js";
|
|
19
|
+
import "./index-f146282d.js";
|
|
20
|
+
import "./optionItem-0ac4a3ae.js";
|
|
21
|
+
import "./index-7fa591e3.js";
|
|
22
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
23
|
+
import "./index-ffbcbc43.js";
|
|
24
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
25
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js";
|
|
26
|
+
const $ = f({ componentName: P.FieldWidget }), ue = /* @__PURE__ */ f({
|
|
27
|
+
...$,
|
|
28
|
+
__name: "input-widget",
|
|
29
|
+
props: { ...x },
|
|
30
|
+
setup(u, { expose: g }) {
|
|
31
|
+
const c = u, { fieldEditor: y, isError: w, errorMsg: k, fieldKey: C, fieldModel: o, rules: b, slots: V, attrs: j, extendAttrs: v, events: E, exposed: F, fieldObj: O } = A(c);
|
|
32
|
+
return g({ ...F }), (p, s) => {
|
|
33
|
+
const S = z("el-input");
|
|
34
|
+
return i(), t(L, n(p.$props, {
|
|
35
|
+
propOptions: { fieldObj: r(O), rules: r(b), isError: r(w), errorMsg: r(k) }
|
|
36
|
+
}), {
|
|
37
|
+
default: d(({ data: m }) => {
|
|
38
|
+
var a;
|
|
39
|
+
return [
|
|
40
|
+
(i(), t(S, n({
|
|
41
|
+
ref_key: "fieldEditor",
|
|
42
|
+
ref: y,
|
|
43
|
+
modelValue: r(o),
|
|
44
|
+
"onUpdate:modelValue": s[0] || (s[0] = (e) => D(o) ? o.value = e : null)
|
|
45
|
+
}, r(j), I(r(E)), {
|
|
46
|
+
class: [m.injectClass, "hide-spin-button"],
|
|
47
|
+
key: r(C),
|
|
48
|
+
style: m.injectStyle,
|
|
49
|
+
size: m.size
|
|
50
|
+
}), M({ _: 2 }, [
|
|
51
|
+
N(r(B)(r(V), p.designState, (a = r(v)) == null ? void 0 : a.slotable), (e) => ({
|
|
52
|
+
name: e == null ? void 0 : e.slotName,
|
|
53
|
+
fn: d(() => [
|
|
54
|
+
e != null && e.default ? (i(), t(W(e == null ? void 0 : e.default), { key: 0 })) : l("", !0),
|
|
55
|
+
e != null && e.widgetList ? (i(), t(T, n({ key: 1 }, p.$props, {
|
|
56
|
+
widget: e,
|
|
57
|
+
dragTip: r(h).i18nt("designer.hint.draggableArea1")
|
|
58
|
+
}), null, 16, ["widget", "dragTip"])) : l("", !0)
|
|
59
|
+
])
|
|
60
|
+
}))
|
|
61
|
+
]), 1040, ["modelValue", "class", "style", "size"]))
|
|
62
|
+
];
|
|
63
|
+
}),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 16, ["propOptions"]);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
ue as default
|
|
71
|
+
};
|