epic-designer-gold 1.0.5 → 1.0.6
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/dist/{attributeView-B2dWB_U2.cjs → attributeView-CEFjPemt.cjs} +1 -1
- package/dist/{attributeView-Cu_tjo9A.js → attributeView-C_rnFDGo.js} +3 -3
- package/dist/{axios-B8aFvCWj.cjs → axios-B5oA4AjJ.cjs} +1 -1
- package/dist/{axios-Bb3STC1u.js → axios-awtfJhsA.js} +1 -1
- package/dist/index-AH-Lj15r.js +107 -0
- package/dist/{index-VblxMq6V.js → index-B0rUZfG_.js} +2 -2
- package/dist/{index-CMbBKMQU.js → index-BEMPXyNN.js} +2 -2
- package/dist/{index-BhcwWM1G.cjs → index-BOUKAGKU.cjs} +1 -1
- package/dist/index-B_BKVTct.cjs +1 -0
- package/dist/{index-Bn8pwpgq.cjs → index-Ba8KVYrQ.cjs} +1 -1
- package/dist/{index-D0kQz_zt.js → index-BfdYrl-Q.js} +1 -1
- package/dist/{index-21c4Pe3i.cjs → index-BnLI5N3M.cjs} +1 -1
- package/dist/index-BpROfyMH.cjs +1 -0
- package/dist/index-BxCrqMkz.cjs +1 -0
- package/dist/{index-DeZ09CHf.cjs → index-CBBK4Aze.cjs} +1 -1
- package/dist/index-CDTcUcwY.cjs +1 -0
- package/dist/{index-CgwN4ucQ.js → index-CFZioB1O.js} +2 -2
- package/dist/{index-BLJT8e0Q.js → index-Ce470l1n.js} +4 -4
- package/dist/{index-CHCOxt3B.js → index-CeVV_SOj.js} +3 -3
- package/dist/{index-DxNdcsD-.js → index-CoCyrWM2.js} +124 -120
- package/dist/{index-CYAKMqdR.cjs → index-Cq5wbnmA.cjs} +1 -1
- package/dist/index-D8olMR4m.cjs +10 -0
- package/dist/index-DENcRmIy.js +47 -0
- package/dist/{index-CqeRfqUw.cjs → index-DK4PrvRF.cjs} +1 -1
- package/dist/{index-Dg7MK40D.js → index-DWxy0GSJ.js} +6 -2
- package/dist/{index-DeFAvWuV.cjs → index-DaJuXp0q.cjs} +1 -1
- package/dist/index-DfRZtELz.js +4 -0
- package/dist/{index-Bybwt7-u.js → index-DpF9E6J8.js} +1 -1
- package/dist/{index-DUMEtCCN.cjs → index-J9twEwWw.cjs} +1 -1
- package/dist/{index-CjIIhZdV.js → index-P13z5c0g.js} +3 -3
- package/dist/{index-CEDIwmNK.js → index-cElDeAm2.js} +2 -2
- package/dist/{index-BULuVnVl.js → index-oMkqg9Zb.js} +194 -186
- package/dist/{index-BV9SE7wG.cjs → index-tR-Y01R8.cjs} +1 -1
- package/dist/{index-Bxi3JLms.cjs → index-vzxiD3pz.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/locale/lang/en-US.d.ts +2 -0
- package/dist/locale/lang/zh-cn.d.ts +2 -0
- package/dist/{outline-DxCKINRN.js → outline-DQ8wgGyH.js} +2 -2
- package/dist/{outline-CK-jNomF.cjs → outline-JJ0IbSzs.cjs} +1 -1
- package/dist/sign-BBoshwS_.cjs +1 -0
- package/dist/{sign-B-FCN_7O.js → sign-Dfqcv4Fg.js} +52 -48
- package/dist/style.css +1 -1
- package/dist/{styleView-CRUqDcCl.cjs → styleView-CZEOSq2l.cjs} +1 -1
- package/dist/{styleView-ClMjCfMk.js → styleView-CajgzMOm.js} +3 -3
- package/dist/tree.vue_vue_type_script_setup_true_lang-B-8wkdQS.js +243 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-BS6Anq-8.cjs +1 -0
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +4 -4
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +1 -1
- package/dist/{uploadFile-oB2-NP-v.cjs → uploadFile-BHn9oVA8.cjs} +1 -1
- package/dist/{uploadFile-Bc5Rxk0b.js → uploadFile-D_0_6ghp.js} +1 -1
- package/dist/{uploadImage-CGXm3zNQ.js → uploadImage-4U4YGGfK.js} +1 -1
- package/dist/{uploadImage-CF7fobUP.cjs → uploadImage-B3tV49Mm.cjs} +1 -1
- package/dist/{uploadImage-4tgp3t7X.cjs → uploadImage-C-OyUMFn.cjs} +1 -1
- package/dist/{uploadImage-COCC3pxH.js → uploadImage-Z6Y6KN1R.js} +1 -1
- package/package.json +1 -1
- package/dist/index-B553TaXm.js +0 -44
- package/dist/index-CEvDmc0a.js +0 -104
- package/dist/index-CI3dhGXT.cjs +0 -1
- package/dist/index-Cq6eLpKZ.cjs +0 -1
- package/dist/index-CrV5FaWU.cjs +0 -10
- package/dist/index-DR80h8IU.js +0 -4
- package/dist/index-DddTXMY9.cjs +0 -1
- package/dist/index-DzxQG0o7.cjs +0 -1
- package/dist/sign-Dho4kHTC.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-B9rWLveX.js +0 -242
- package/dist/tree.vue_vue_type_script_setup_true_lang-DDDqMedP.cjs +0 -1
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { defineComponent as B, inject as h, computed as E, h as T, openBlock as g, createElementBlock as K, normalizeClass as V, unref as r, createElementVNode as b, createVNode as k, createCommentVNode as I, createBlock as w, mergeProps as j, withCtx as $, Fragment as z, renderList as F, useSlots as H, provide as _, ref as P, withDirectives as M, toDisplayString as q, vShow as G } from "vue";
|
|
2
|
+
import { _ as L } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
3
|
+
import { p as D } from "./axios-awtfJhsA.js";
|
|
4
|
+
import { d as J } from "./vuedraggable.umd-D2S7Eo7p.js";
|
|
5
|
+
import { u as O } from "./index-DWxy0GSJ.js";
|
|
6
|
+
const U = /* @__PURE__ */ B({
|
|
7
|
+
name: "ETreeNodeItem",
|
|
8
|
+
__name: "treeNodeItem",
|
|
9
|
+
props: {
|
|
10
|
+
schema: {}
|
|
11
|
+
},
|
|
12
|
+
setup(C) {
|
|
13
|
+
const t = C, m = h("slots", {}), f = h("pageSchema", {}), p = h("expandedKeys"), u = h("treeProps"), S = h("selectedKeys"), d = h("handleSelect"), v = E(() => p.value.includes(t.schema.id ?? "")), y = B({
|
|
14
|
+
setup() {
|
|
15
|
+
return () => {
|
|
16
|
+
var s;
|
|
17
|
+
return T(
|
|
18
|
+
"span",
|
|
19
|
+
{
|
|
20
|
+
class: {
|
|
21
|
+
text: !0,
|
|
22
|
+
hover: u.hoverKey === t.schema.id,
|
|
23
|
+
checked: S.value.includes(t.schema.id)
|
|
24
|
+
},
|
|
25
|
+
onClick: () => d(t.schema.id, t.schema)
|
|
26
|
+
},
|
|
27
|
+
((s = m["tree-node"]) == null ? void 0 : s.call(m, t)) ?? T(
|
|
28
|
+
"span",
|
|
29
|
+
{ class: "epic-text-padding flex" },
|
|
30
|
+
{
|
|
31
|
+
default: () => {
|
|
32
|
+
var e;
|
|
33
|
+
return [
|
|
34
|
+
T(
|
|
35
|
+
"span",
|
|
36
|
+
{ class: "max-w-full truncate" },
|
|
37
|
+
t.schema.label ?? ((e = D.getComponentConfingByType(t.schema.type)) == null ? void 0 : e.defaultSchema.label)
|
|
38
|
+
),
|
|
39
|
+
T(
|
|
40
|
+
"span",
|
|
41
|
+
{ class: "epic-node-type-text flex-1 w-0 truncate" },
|
|
42
|
+
t.schema.id
|
|
43
|
+
)
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
function o() {
|
|
53
|
+
const s = t.schema.id;
|
|
54
|
+
if (!s)
|
|
55
|
+
return !1;
|
|
56
|
+
p.value.includes(s) ? p.value = p.value.filter((e) => e !== s) : p.value.push(s);
|
|
57
|
+
}
|
|
58
|
+
function c() {
|
|
59
|
+
var e;
|
|
60
|
+
const s = t.schema.id;
|
|
61
|
+
if (!s || !((e = t.schema.children) != null && e.length))
|
|
62
|
+
return !1;
|
|
63
|
+
p.value.push(s);
|
|
64
|
+
}
|
|
65
|
+
return c(), (s, e) => {
|
|
66
|
+
var a, l, i, n, x;
|
|
67
|
+
return g(), K("li", {
|
|
68
|
+
class: V(["epic-tree-node", {
|
|
69
|
+
expanded: (a = t.schema.children) == null ? void 0 : a.length,
|
|
70
|
+
"level-1": t.schema.id === ((l = r(f).schemas[0]) == null ? void 0 : l.id)
|
|
71
|
+
}])
|
|
72
|
+
}, [
|
|
73
|
+
b("a", null, [
|
|
74
|
+
(i = t.schema.children) != null && i.length && t.schema.id !== ((n = r(f).schemas[0]) == null ? void 0 : n.id) ? (g(), K("span", {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: V(["icon-expanded", { expanded: v.value }]),
|
|
77
|
+
onClick: o
|
|
78
|
+
}, [
|
|
79
|
+
k(r(L), { name: "icon--epic--caret-right-outlined" })
|
|
80
|
+
], 2)) : I("", !0),
|
|
81
|
+
k(r(y))
|
|
82
|
+
]),
|
|
83
|
+
(x = t.schema.children) != null && x.length ? (g(), w(A, {
|
|
84
|
+
key: 0,
|
|
85
|
+
class: V(["epic-tree-sublist", { expanded: v.value }]),
|
|
86
|
+
schemas: t.schema.children,
|
|
87
|
+
"onUpdate:schemas": e[0] || (e[0] = (N) => t.schema.children = N),
|
|
88
|
+
parentSchema: t.schema
|
|
89
|
+
}, null, 8, ["class", "schemas", "parentSchema"])) : I("", !0)
|
|
90
|
+
], 2);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}), Q = { key: 1 }, A = /* @__PURE__ */ B({
|
|
94
|
+
name: "ETreeNodes",
|
|
95
|
+
__name: "treeNodes",
|
|
96
|
+
props: {
|
|
97
|
+
schemas: {},
|
|
98
|
+
parentSchema: {}
|
|
99
|
+
},
|
|
100
|
+
emits: ["update:schemas"],
|
|
101
|
+
setup(C, { emit: t }) {
|
|
102
|
+
const m = h("designer"), f = h("pageSchema"), p = h("treeProps"), u = C, S = t, d = E({
|
|
103
|
+
get() {
|
|
104
|
+
return u.schemas;
|
|
105
|
+
},
|
|
106
|
+
set(o) {
|
|
107
|
+
S("update:schemas", o);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
function v(o) {
|
|
111
|
+
m.setDisableHover(!0), m.setCheckedNode(d.value[o]);
|
|
112
|
+
}
|
|
113
|
+
function y(o) {
|
|
114
|
+
var c, s, e;
|
|
115
|
+
return o.id === ((c = f.schemas[0]) == null ? void 0 : c.id) || (e = (s = D.getComponentConfingByType(o.type)) == null ? void 0 : s.editConstraints) != null && e.immovable ? "unmover-item" : "draggable-item";
|
|
116
|
+
}
|
|
117
|
+
return (o, c) => {
|
|
118
|
+
var s, e, a, l, i;
|
|
119
|
+
return (a = (e = r(D).getComponentConfingByType(((s = u.parentSchema) == null ? void 0 : s.type) || "")) == null ? void 0 : e.editConstraints) != null && a.childImmovable ? (g(), K("ul", Q, [
|
|
120
|
+
(g(!0), K(z, null, F(d.value, (n) => (g(), w(U, {
|
|
121
|
+
key: n.id,
|
|
122
|
+
schema: n
|
|
123
|
+
}, null, 8, ["schema"]))), 128))
|
|
124
|
+
])) : (g(), w(r(J), j({
|
|
125
|
+
key: 0,
|
|
126
|
+
modelValue: d.value,
|
|
127
|
+
"onUpdate:modelValue": c[0] || (c[0] = (n) => d.value = n),
|
|
128
|
+
"item-key": "id",
|
|
129
|
+
"component-data": {},
|
|
130
|
+
class: "epic-draggable-range"
|
|
131
|
+
}, {
|
|
132
|
+
animation: 200,
|
|
133
|
+
tag: "ul",
|
|
134
|
+
group: "tree-draggable",
|
|
135
|
+
ghostClass: "moveing",
|
|
136
|
+
draggable: ".draggable-item",
|
|
137
|
+
disabled: !r(p).draggable || ((l = d.value[0]) == null ? void 0 : l.id) === ((i = r(f).schemas[0]) == null ? void 0 : i.id)
|
|
138
|
+
}, {
|
|
139
|
+
onStart: c[1] || (c[1] = (n) => v(n.oldIndex))
|
|
140
|
+
}), {
|
|
141
|
+
item: $(({ element: n, index: x }) => [
|
|
142
|
+
(g(), w(U, {
|
|
143
|
+
class: V(y(n)),
|
|
144
|
+
key: n.id,
|
|
145
|
+
schema: n
|
|
146
|
+
}, null, 8, ["class", "schema"]))
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 16, ["modelValue"]));
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}), R = { class: "epic-tree h-full flex flex-col" }, W = { class: "epic-search-box px-10px py-6px" }, X = { class: "epic-tree-main flex-1 overflow-auto h-0" }, ae = /* @__PURE__ */ B({
|
|
153
|
+
name: "ETree",
|
|
154
|
+
__name: "tree",
|
|
155
|
+
props: {
|
|
156
|
+
options: {
|
|
157
|
+
type: Array,
|
|
158
|
+
default: () => []
|
|
159
|
+
},
|
|
160
|
+
hoverKey: {
|
|
161
|
+
type: String,
|
|
162
|
+
default: ""
|
|
163
|
+
},
|
|
164
|
+
selectedKeys: {
|
|
165
|
+
type: Array,
|
|
166
|
+
default: () => []
|
|
167
|
+
},
|
|
168
|
+
draggable: {
|
|
169
|
+
type: Boolean,
|
|
170
|
+
default: !1
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
emits: ["update:selectedKeys", "nodeClick"],
|
|
174
|
+
setup(C, { emit: t }) {
|
|
175
|
+
const { t: m } = O(), f = H();
|
|
176
|
+
_("slots", f);
|
|
177
|
+
const p = D.getComponent("input"), u = P(""), S = P([]), d = C, v = t, y = E({
|
|
178
|
+
get() {
|
|
179
|
+
return d.selectedKeys;
|
|
180
|
+
},
|
|
181
|
+
set(e) {
|
|
182
|
+
v("update:selectedKeys", e);
|
|
183
|
+
}
|
|
184
|
+
}), o = E({
|
|
185
|
+
get() {
|
|
186
|
+
return c(d.options, u.value);
|
|
187
|
+
},
|
|
188
|
+
set(e) {
|
|
189
|
+
console.log(e);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
function c(e, a) {
|
|
193
|
+
const l = [];
|
|
194
|
+
return e.forEach((i) => {
|
|
195
|
+
var n;
|
|
196
|
+
if ((n = i.label) != null && n.includes(a))
|
|
197
|
+
l.push(i);
|
|
198
|
+
else if (i.children) {
|
|
199
|
+
const x = c(i.children, a);
|
|
200
|
+
if (x.length > 0) {
|
|
201
|
+
const N = { ...i };
|
|
202
|
+
N.children = x, l.push(N);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}), l;
|
|
206
|
+
}
|
|
207
|
+
function s(e, a) {
|
|
208
|
+
y.value = [e], v("nodeClick", { id: e, componentSchema: a });
|
|
209
|
+
}
|
|
210
|
+
return _("expandedKeys", S), _("selectedKeys", y), _("treeProps", d), _("handleSelect", s), (e, a) => (g(), K("div", R, [
|
|
211
|
+
b("div", W, [
|
|
212
|
+
k(r(p), {
|
|
213
|
+
placeholder: r(m)("searchNode"),
|
|
214
|
+
clearable: "",
|
|
215
|
+
allowClear: "",
|
|
216
|
+
modelValue: u.value,
|
|
217
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => u.value = l),
|
|
218
|
+
value: u.value,
|
|
219
|
+
"onUpdate:value": a[1] || (a[1] = (l) => u.value = l)
|
|
220
|
+
}, {
|
|
221
|
+
prefix: $(() => [
|
|
222
|
+
k(r(L), { name: "icon--epic--search-rounded" })
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["placeholder", "modelValue", "value"])
|
|
226
|
+
]),
|
|
227
|
+
b("div", X, [
|
|
228
|
+
b("ul", null, [
|
|
229
|
+
k(A, {
|
|
230
|
+
schemas: o.value,
|
|
231
|
+
"onUpdate:schemas": a[2] || (a[2] = (l) => o.value = l)
|
|
232
|
+
}, null, 8, ["schemas"])
|
|
233
|
+
]),
|
|
234
|
+
M(b("div", { class: "text-center pt-42px text-gray-400" }, q(r(m)("noDataFound")), 513), [
|
|
235
|
+
[G, !o.value.length]
|
|
236
|
+
])
|
|
237
|
+
])
|
|
238
|
+
]));
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
export {
|
|
242
|
+
ae as _
|
|
243
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),C=require("./axios-B5oA4AjJ.cjs"),S=require("./vuedraggable.umd-BqhSJIAi.cjs"),N=require("./index-BpROfyMH.cjs"),_=e.defineComponent({name:"ETreeNodeItem",__name:"treeNodeItem",props:{schema:{}},setup(y){const n=y,m=e.inject("slots",{}),h=e.inject("pageSchema",{}),u=e.inject("expandedKeys"),p=e.inject("treeProps"),x=e.inject("selectedKeys"),d=e.inject("handleSelect"),g=e.computed(()=>u.value.includes(n.schema.id??"")),f=e.defineComponent({setup(){return()=>{var a;return e.h("span",{class:{text:!0,hover:p.hoverKey===n.schema.id,checked:x.value.includes(n.schema.id)},onClick:()=>d(n.schema.id,n.schema)},((a=m["tree-node"])==null?void 0:a.call(m,n))??e.h("span",{class:"epic-text-padding flex"},{default:()=>{var t;return[e.h("span",{class:"max-w-full truncate"},n.schema.label??((t=C.pluginManager.getComponentConfingByType(n.schema.type))==null?void 0:t.defaultSchema.label)),e.h("span",{class:"epic-node-type-text flex-1 w-0 truncate"},n.schema.id)]}}))}}});function o(){const a=n.schema.id;if(!a)return!1;u.value.includes(a)?u.value=u.value.filter(t=>t!==a):u.value.push(a)}function r(){var t;const a=n.schema.id;if(!a||!((t=n.schema.children)!=null&&t.length))return!1;u.value.push(a)}return r(),(a,t)=>{var s,c,i,l,v;return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["epic-tree-node",{expanded:(s=n.schema.children)==null?void 0:s.length,"level-1":n.schema.id===((c=e.unref(h).schemas[0])==null?void 0:c.id)}])},[e.createElementVNode("a",null,[(i=n.schema.children)!=null&&i.length&&n.schema.id!==((l=e.unref(h).schemas[0])==null?void 0:l.id)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["icon-expanded",{expanded:g.value}]),onClick:o},[e.createVNode(e.unref(B._sfc_main),{name:"icon--epic--caret-right-outlined"})],2)):e.createCommentVNode("",!0),e.createVNode(e.unref(f))]),(v=n.schema.children)!=null&&v.length?(e.openBlock(),e.createBlock(b,{key:0,class:e.normalizeClass(["epic-tree-sublist",{expanded:g.value}]),schemas:n.schema.children,"onUpdate:schemas":t[0]||(t[0]=k=>n.schema.children=k),parentSchema:n.schema},null,8,["class","schemas","parentSchema"])):e.createCommentVNode("",!0)],2)}}}),V={key:1},b=e.defineComponent({name:"ETreeNodes",__name:"treeNodes",props:{schemas:{},parentSchema:{}},emits:["update:schemas"],setup(y,{emit:n}){const m=e.inject("designer"),h=e.inject("pageSchema"),u=e.inject("treeProps"),p=y,x=n,d=e.computed({get(){return p.schemas},set(o){x("update:schemas",o)}});function g(o){m.setDisableHover(!0),m.setCheckedNode(d.value[o])}function f(o){var r,a,t;return o.id===((r=h.schemas[0])==null?void 0:r.id)||(t=(a=C.pluginManager.getComponentConfingByType(o.type))==null?void 0:a.editConstraints)!=null&&t.immovable?"unmover-item":"draggable-item"}return(o,r)=>{var a,t,s,c,i;return(s=(t=e.unref(C.pluginManager).getComponentConfingByType(((a=p.parentSchema)==null?void 0:a.type)||""))==null?void 0:t.editConstraints)!=null&&s.childImmovable?(e.openBlock(),e.createElementBlock("ul",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,l=>(e.openBlock(),e.createBlock(_,{key:l.id,schema:l},null,8,["schema"]))),128))])):(e.openBlock(),e.createBlock(e.unref(S.draggable),e.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":r[0]||(r[0]=l=>d.value=l),"item-key":"id","component-data":{},class:"epic-draggable-range"},{animation:200,tag:"ul",group:"tree-draggable",ghostClass:"moveing",draggable:".draggable-item",disabled:!e.unref(u).draggable||((c=d.value[0])==null?void 0:c.id)===((i=e.unref(h).schemas[0])==null?void 0:i.id)},{onStart:r[1]||(r[1]=l=>g(l.oldIndex))}),{item:e.withCtx(({element:l,index:v})=>[(e.openBlock(),e.createBlock(_,{class:e.normalizeClass(f(l)),key:l.id,schema:l},null,8,["class","schema"]))]),_:1},16,["modelValue"]))}}}),E={class:"epic-tree h-full flex flex-col"},K={class:"epic-search-box px-10px py-6px"},T={class:"epic-tree-main flex-1 overflow-auto h-0"},j=e.defineComponent({name:"ETree",__name:"tree",props:{options:{type:Array,default:()=>[]},hoverKey:{type:String,default:""},selectedKeys:{type:Array,default:()=>[]},draggable:{type:Boolean,default:!1}},emits:["update:selectedKeys","nodeClick"],setup(y,{emit:n}){const{t:m}=N.useLocale(),h=e.useSlots();e.provide("slots",h);const u=C.pluginManager.getComponent("input"),p=e.ref(""),x=e.ref([]),d=y,g=n,f=e.computed({get(){return d.selectedKeys},set(t){g("update:selectedKeys",t)}}),o=e.computed({get(){return r(d.options,p.value)},set(t){console.log(t)}});function r(t,s){const c=[];return t.forEach(i=>{var l;if((l=i.label)!=null&&l.includes(s))c.push(i);else if(i.children){const v=r(i.children,s);if(v.length>0){const k={...i};k.children=v,c.push(k)}}}),c}function a(t,s){f.value=[t],g("nodeClick",{id:t,componentSchema:s})}return e.provide("expandedKeys",x),e.provide("selectedKeys",f),e.provide("treeProps",d),e.provide("handleSelect",a),(t,s)=>(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",K,[e.createVNode(e.unref(u),{placeholder:e.unref(m)("searchNode"),clearable:"",allowClear:"",modelValue:p.value,"onUpdate:modelValue":s[0]||(s[0]=c=>p.value=c),value:p.value,"onUpdate:value":s[1]||(s[1]=c=>p.value=c)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(B._sfc_main),{name:"icon--epic--search-rounded"})]),_:1},8,["placeholder","modelValue","value"])]),e.createElementVNode("div",T,[e.createElementVNode("ul",null,[e.createVNode(b,{schemas:o.value,"onUpdate:schemas":s[2]||(s[2]=c=>o.value=c)},null,8,["schemas"])]),e.withDirectives(e.createElementVNode("div",{class:"text-center pt-42px text-gray-400"},e.toDisplayString(e.unref(m)("noDataFound")),513),[[e.vShow,!o.value.length]])])]))}});exports._sfc_main=j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var L=Object.create;var F=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty;var M=(e,a,b,C)=>{if(a&&typeof a=="object"||typeof a=="function")for(let w of N(a))!D.call(e,w)&&w!==b&&F(e,w,{get:()=>a[w],enumerable:!(C=Y(a,w))||C.enumerable});return e};var S=(e,a,b)=>(b=e!=null?L(q(e)):{},M(a||!e||!e.__esModule?F(b,"default",{value:e,enumerable:!0}):b,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("epic-designer-gold"),c=require("../../index-Cq6eLpKZ.cjs"),g=require("element-plus"),{t:n}=c.useLocale();console.log("%c [ t ]-4","font-size:13px; background:pink; color:#bf2c9f;",n("form"));const $={component:async()=>(await import("element-plus")).ElInput,groupName:n("form"),icon:"icon--epic--border-color-outline-rounded",sort:700,defaultSchema:{label:n("input"),type:"input",field:"input",input:!0,componentProps:{placeholder:n("pleaseEnter")}},config:{attribute:[{label:n("fieldName"),type:"input",field:"field"},{label:n("title"),type:"input",field:"label"},{label:n("defaultValue"),type:"input",field:"componentProps.defaultValue"},{label:n("placeholder"),type:"input",field:"componentProps.placeholder"},{label:n("size"),type:"select",defaultValue:"default",componentProps:{placeholder:n("pleaseSelect"),clearable:!0,options:[{label:n("large"),value:"large"},{label:n("medium"),value:"default"},{label:n("small"),value:"small"}]},field:"componentProps.size"},{label:n("maxInputLength"),type:"number",field:"componentProps.maxlength",componentProps:{placeholder:n("pleaseEnter"),min:0}},{label:n("countWords"),type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:n("inputType"),type:"select",defaultValue:"text",componentProps:{placeholder:n("pleaseSelect"),clearable:!0,options:[{label:"text",value:"text"},{label:"number",value:"number"},{label:"password",value:"password"}]},field:"componentProps.type"},{label:n("showToggleIcon"),type:"switch",field:"componentProps.showPassword",show:({values:e})=>e.componentProps.type==="password"},{label:n("clearable"),type:"switch",field:"componentProps.clearable"},{label:n("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:n("validationRuleRequiresForm")}],event:[{type:"input",describe:n("onInput")},{type:"change",describe:n("onChange")},{type:"focus",describe:n("onFocus")},{type:"blur",describe:n("onBlur")},{type:"clear",describe:n("onClear")}],action:[{type:"focus",describe:n("focusInput")},{type:"blur",describe:n("blurInput")},{type:"clear",describe:n("clearInput")},{type:"select",describe:n("selectInputText")}]}},{t:p}=c.useLocale(),W={component:async()=>(await import("element-plus")).ElInput,icon:"icon--epic--edit-square-outline-rounded",groupName:p("form"),sort:705,defaultSchema:{label:p("textarea"),type:"textarea",field:"textarea",input:!0,componentProps:{placeholder:p("pleaseEnter"),type:"textarea"}},config:{attribute:[{label:p("fieldName"),type:"input",field:"field"},{label:p("title"),type:"input",field:"label"},{label:p("defaultValue"),type:"textarea",field:"componentProps.defaultValue"},{label:p("placeholder"),type:"input",field:"componentProps.placeholder"},{label:p("size"),type:"select",componentProps:{placeholder:p("pleaseSelect"),clearable:!0,options:[{label:p("large"),value:"large"},{label:p("medium"),value:"default"},{label:p("small"),value:"small"}]},field:"componentProps.size"},{label:p("maxInputLength"),type:"number",field:"componentProps.maxlength",componentProps:{placeholder:p("pleaseEnter"),min:0}},{label:p("countWords"),type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:p("minRows"),type:"number",field:"componentProps.autosize.minRows",componentProps:{placeholder:p("pleaseEnter")}},{label:p("maxRows"),type:"number",field:"componentProps.autosize.maxRows",componentProps:{placeholder:p("pleaseEnter")}},{label:p("clearable"),type:"switch",field:"componentProps.clearable"},{label:p("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:p("validationRuleRequiresForm")}],event:[{type:"input",describe:p("inputValue")},{type:"change",describe:p("valueChange")},{type:"focus",describe:p("focus")},{type:"blur",describe:p("blur")}],action:[{type:"focus",describe:p("focusInput")},{type:"blur",describe:p("blurInput")},{type:"clear",describe:p("clearInput")},{type:"select",describe:p("selectInputText")}]}},{t:s}=c.useLocale(),A={component:async()=>(await import("element-plus")).ElInputNumber,groupName:s("form"),icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:s("numberInput"),type:"number",field:"number",input:!0,componentProps:{placeholder:s("pleaseEnter")}},config:{attribute:[{label:s("fieldName"),type:"input",field:"field"},{label:s("title"),type:"input",field:"label"},{label:s("defaultValue"),type:"number",field:"componentProps.defaultValue"},{label:s("placeholder"),type:"input",field:"componentProps.placeholder"},{label:s("size"),type:"select",componentProps:{placeholder:s("pleaseSelect"),clearable:!0,options:[{label:s("large"),value:"large"},{label:s("medium"),value:"default"},{label:s("small"),value:"small"}]},field:"componentProps.size"},{label:s("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:s("pleaseEnter")}},{label:s("minValue"),type:"number",field:"componentProps.min",componentProps:{placeholder:s("pleaseEnter")}},{label:s("step"),type:"number",field:"componentProps.step",componentProps:{placeholder:s("pleaseEnter")}},{label:s("controlButtonPosition"),type:"select",defaultValue:"",componentProps:{options:[{label:"default",value:""},{label:"right",value:"right"}],placeholder:s("pleaseSelect"),clearable:!0},field:"componentProps.controlsPosition"},{label:s("precision"),type:"number",field:"componentProps.precision",componentProps:{placeholder:s("pleaseEnter")}},{label:s("inputControlIsMultipleOfStep"),type:"switch",field:"componentProps.stepStrictly"},{label:s("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:s("validationRuleRequiresForm"),componentProps:{ruleType:"number"}}],event:[{type:"change",describe:s("onValueChange")}]}},{t:u}=c.useLocale(),U={component:()=>Promise.resolve().then(()=>require("../../form-CthzLIgs.cjs")),groupName:u("form"),icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:u("form"),type:"form",componentProps:{name:"default",labelWidth:"100px","label-position":"left"},children:[]},config:{attribute:[{label:"Name",type:"input",field:"componentProps.name"},{label:u("labelPosition"),type:"radio",field:"componentProps.label-position",componentProps:{clearable:!0,radioButton:!0,options:[{label:u("left"),value:"left"},{label:u("right"),value:"right"},{label:u("top"),value:"top"}]}},{label:u("labelWidth"),type:"EInputSize",field:"componentProps.labelWidth"},{label:u("labelSuffix"),type:"input",field:"componentProps.labelSuffix",componentProps:{placeholder:u("pleaseEnter")}},{label:u("formSize"),type:"select",field:"componentProps.size",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("large"),value:"large"},{label:u("medium"),value:"default"},{label:u("small"),value:"small"}]}},{label:u("asteriskPosition"),type:"select",field:"componentProps.require-asterisk-position",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("left"),value:"left"},{label:u("right"),value:"right"}]}},{label:u("inlineValidationMessage"),type:"switch",field:"componentProps.inline-message"},{label:u("validationFeedbackIcon"),type:"switch",field:"componentProps.status-icon"},{label:u("scrollToValidationError"),type:"switch",field:"componentProps.scroll-to-error"},{label:u("inlineMode"),type:"switch",field:"componentProps.inline"}],action:[{type:"getData",describe:u("getFormData")},{type:"setData",describe:u("setFormData")},{type:"validate",describe:u("validateForm")}]}};c.useLocale();const O={component:()=>Promise.resolve().then(()=>require("../../formItem-BVnNs1Q9.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},{t:y}=c.useLocale(),j={component:()=>Promise.resolve().then(()=>require("../../button-Cc4KYk3v.cjs")),groupName:y("form"),icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:y("button"),type:"button",field:"input",input:!1},config:{attribute:[{label:y("title"),type:"input",field:"label"},{label:y("actionType"),type:"select",componentProps:{placeholder:y("pleaseSelect"),clearable:!0,options:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]},field:"componentProps.type"},{label:y("actionType"),type:"select",componentProps:{placeholder:y("pleaseSelect"),clearable:!0,options:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}]},field:"componentProps.native-type"},{label:y("customColor"),type:"color-picker",field:"componentProps.color",componentProps:{type:"color"}},{label:y("plainButton"),type:"switch",field:"componentProps.plain"},{label:y("roundButton"),type:"switch",field:"componentProps.round"},{label:y("circleButton"),type:"switch",field:"componentProps.circle"},{label:y("textButton"),type:"switch",field:"componentProps.text"},{label:y("loadingState"),type:"switch",field:"componentProps.loading"}],event:[{type:"click",describe:y("onClick")},{type:"dblclick",describe:y("onDoubleClick")}]}},{t:I}=c.useLocale(),G={component:()=>Promise.resolve().then(()=>require("../../card-BowzD9vN.cjs")),groupName:I("layout"),icon:"icon--epic--wysiwyg-rounded",sort:700,defaultSchema:{label:I("cardLayout"),type:"card",children:[],componentProps:{}},config:{attribute:[{label:I("title"),type:"input",field:"label"},{label:I("shadowTiming"),type:"select",componentProps:{options:[{label:"always",value:"always"},{label:"hover",value:"hover"},{label:"never",value:"never"}],placeholder:I("pleaseSelect"),clearable:!0},field:"componentProps.shadow"}]}},{t:E}=c.useLocale(),H={component:()=>Promise.resolve().then(()=>require("../../row-NNlPGZRG.cjs")),groupName:E("layout"),icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:E("gridLayout"),type:"row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:E("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:E("pleaseSelect")},field:"componentProps.align"},{label:E("horizontalArrangement"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}],placeholder:E("pleaseSelect")},field:"componentProps.justify"},{label:E("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:E("pleaseEnter")}},{label:E("gridWidth"),type:"EColEditor",field:"children"}]}},{t:k}=c.useLocale(),K={component:()=>Promise.resolve().then(()=>require("../../col-B1GUMkMK.cjs")),defaultSchema:{label:k("gridLayout")+"-"+k("column"),type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},{t}=c.useLocale(),J={component:()=>Promise.resolve().then(()=>require("../../select-BvJWp4t6.cjs")),groupName:t("form"),icon:"icon--epic--select",sort:900,defaultSchema:{label:t("select"),type:"select",field:"select",input:!0,componentProps:{options:[{label:t("option1"),value:t("option1")},{label:t("option2"),value:t("option2")}],dynamicId:"",placeholder:t("pleaseSelect"),size:"default",effect:"light",placement:"bottom-start"}},config:{attribute:[{label:t("fieldName"),type:"input",field:"field"},{label:t("title"),type:"input",field:"label"},{label:t("defaultValue"),type:"select",field:"componentProps.defaultValue"},{label:t("placeholder"),type:"input",field:"componentProps.placeholder"},{label:t("size"),type:"select",componentProps:{placeholder:t("pleaseSelect"),clearable:!0,options:[{label:t("large"),value:"large"},{label:t("medium"),value:"default"},{label:t("small"),value:"small"}]},field:"componentProps.size"},{label:t("multiple"),type:"switch",field:"componentProps.multiple",onChange:({value:e,values:a})=>{e?a.componentProps.defaultValue=[]:a.componentProps.defaultValue=null}},{label:t("hideMultiple"),type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.multiple},{label:t("hideHint"),type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.multiple&&e.componentProps.collapseTags},{label:t("retainSearchKeyword"),type:"switch",field:"componentProps.reserveKeyword",show:({values:e})=>e.componentProps.multiple},{label:t("tagType"),type:"select",defaultValue:"info",componentProps:{options:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]},show:({values:e})=>e.componentProps.multiple,field:"componentProps.tagType"},{label:t("multipleLimit"),type:"number",field:"componentProps.multipleLimit",show:({values:e})=>e.componentProps.multiple},{label:t("hintTheme"),type:"select",componentProps:{options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]},field:"componentProps.effect"},{label:t("filterable"),type:"switch",field:"componentProps.filterable"},{label:t("allowCreate"),type:"switch",field:"componentProps.allowCreate"},{label:t("dropdownPosition"),type:"select",defaultValue:"bottom-start",componentProps:{options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},field:"componentProps.placement"},{label:t("dropdownWidthSameAsInput"),type:"switch",field:"componentProps.fitInputWidth"},{label:t("noDataText"),type:"input",field:"componentProps.noDataText",componentProps:{placeholder:t("pleaseEnter")}},{label:t("clearable"),type:"switch",field:"componentProps.clearable"},{label:t("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:t("configureOptions")},{label:t("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:t("validationRuleRequiresForm")},{label:t("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:t("dataSourceConfig")}],event:[{type:"change",describe:t("onValueChange")}]}},{t:d}=c.useLocale(),Q={component:()=>Promise.resolve().then(()=>require("../../radio-_GXvcBNP.cjs")),groupName:d("form"),icon:"icon--epic--radio-button-checked-outline",sort:850,defaultSchema:{label:d("radio"),type:"radio",field:"radio",input:!0,componentProps:{options:[{label:d("option1"),value:d("option1")},{label:d("option2"),value:d("option2")}],size:"default"}},config:{attribute:[{label:d("fieldName"),type:"input",field:"field"},{label:d("title"),type:"input",field:"label"},{label:d("defaultValue"),type:"radio",field:"componentProps.defaultValue"},{label:d("size"),type:"select",componentProps:{placeholder:d("pleaseSelect"),clearable:!0,options:[{label:d("large"),value:"large"},{label:d("medium"),value:"default"},{label:d("small"),value:"small"}]},field:"componentProps.size"},{label:d("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:d("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:d("effectiveInButtonMode")},{label:d("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:d("effectiveInButtonMode")},{label:d("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:d("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:d("validationRuleRequiresForm")},{label:d("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:d("dataSourceConfig")}],event:[{type:"change",describe:d("onValueChange")}]}},{t:r}=c.useLocale(),X={component:()=>Promise.resolve().then(()=>require("../../checkbox-Bjqm2Ob1.cjs")),groupName:r("form"),icon:"icon--epic--dialogs-outline-rounded",sort:860,defaultSchema:{label:r("checkbox"),type:"checkbox",field:"checkbox",input:!0,componentProps:{options:[{label:r("option1"),value:r("option1")},{label:r("option2"),value:r("option2")}]}},config:{attribute:[{label:r("fieldName"),type:"input",field:"field"},{label:r("title"),type:"input",field:"label"},{label:r("defaultValue"),type:"checkbox",field:"componentProps.defaultValue"},{label:r("size"),type:"select",componentProps:{placeholder:r("pleaseSelect"),clearable:!0,options:[{label:r("large"),value:"large"},{label:r("medium"),value:"default"},{label:r("small"),value:"small"}]},field:"componentProps.size"},{label:r("maxSelected"),type:"number",field:"componentProps.max",componentProps:{placeholder:r("pleaseEnter")}},{label:r("minSelected"),type:"number",field:"componentProps.min",componentProps:{placeholder:r("pleaseEnter")}},{label:r("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:r("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:r("effectiveInButtonMode")},{label:r("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:r("effectiveInButtonMode")},{label:r("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:r("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:r("validationRuleRequiresForm"),componentProps:{ruleType:"array"}},{label:r("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:r("dataSourceConfig")}],event:[{type:"change",describe:r("onValueChange")}]}},{t:i}=c.useLocale(),Z={component:async()=>(await import("element-plus")).ElSlider,groupName:i("form"),icon:"icon--epic--switches",sort:930,defaultSchema:{label:i("slider"),type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start",showTooltip:!0}},config:{attribute:[{label:i("fieldName"),type:"input",field:"field"},{label:i("title"),type:"input",field:"label"},{label:i("defaultValue"),type:"slider",field:"componentProps.defaultValue"},{label:i("size"),type:"select",componentProps:{placeholder:i("pleaseSelect"),clearable:!0,options:[{label:i("large"),value:"large"},{label:i("medium"),value:"default"},{label:i("small"),value:"small"}]},field:"componentProps.size"},{label:i("minValue"),type:"number",field:"componentProps.min",componentProps:{placeholder:i("pleaseEnter")},onChange:({value:e,values:a,componentAttributes:b})=>{const C=b.value.findIndex(T=>T.field==="componentProps.max"),w=b.value[C];w.componentProps={min:e},(a.componentProps.max??0)<e&&(a.componentProps.max=e)}},{label:i("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:i("pleaseEnter")},onChange:({value:e,values:a,componentAttributes:b})=>{const C=b.value.findIndex(T=>T.field==="componentProps.min"),w=b.value[C];w.componentProps={max:e},(a.componentProps.min??0)>e&&(a.componentProps.min=e)}},{label:i("step"),type:"number",field:"componentProps.step",componentProps:{placeholder:i("pleaseEnter")}},{label:i("showStops"),type:"switch",field:"componentProps.showStops"},{label:i("tooltip"),type:"switch",field:"componentProps.showTooltip"},{label:i("range"),type:"switch",field:"componentProps.range"},{label:i("vertical"),type:"switch",field:"componentProps.vertical"},{label:i("height"),type:"EInputSize",field:"componentProps.height",show:({values:e})=>e.componentProps.vertical},{label:i("showInput"),type:"switch",field:"componentProps.showInput",onChange:({value:e,values:a})=>{e&&(a.componentProps.showInputControls=!0)}},{label:i("controlButtons"),type:"switch",field:"componentProps.showInputControls",show:({values:e})=>e.componentProps.showInput},{label:i("tooltipPosition"),type:"select",defaultValue:"bottom-start",componentProps:{options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},field:"componentProps.placement"},{label:i("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:i("validationRuleRequiresForm"),componentProps:{ruleType:"number"}}],event:[{type:"input",describe:i("realTimeTrigger")},{type:"change",describe:i("onChangeEnd")}]}},{t:h}=c.useLocale(),_={component:async()=>(await import("element-plus")).ElColorPicker,groupName:h("form"),icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:h("colorPicker"),type:"color-picker",field:"color-picker",input:!0},config:{attribute:[{label:h("fieldName"),type:"input",field:"field"},{label:h("title"),type:"input",field:"label"},{label:h("defaultValue"),type:"color-picker",field:"componentProps.defaultValue"},{label:h("size"),type:"select",componentProps:{placeholder:h("pleaseSelect"),clearable:!0,options:[{label:h("large"),value:"large"},{label:h("medium"),value:"default"},{label:h("small"),value:"small"}]},field:"componentProps.size"},{label:h("format"),type:"select",componentProps:{placeholder:h("pleaseSelect"),clearable:!0,options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},field:"componentProps.colorFormat"},{label:h("alpha"),type:"switch",field:"componentProps.showAlpha"},{label:h("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:h("validationRuleRequiresForm")}],event:[{type:"change",describe:h("onValueChange")}],action:[]}},{t:m}=c.useLocale(),ee={component:async()=>(await import("element-plus")).ElSwitch,groupName:m("form"),icon:"icon--epic--toggle-off-outline",sort:930,defaultSchema:{label:m("switch"),type:"switch",field:"switch",input:!0,componentProps:{defaultValue:!1}},config:{attribute:[{label:m("fieldName"),type:"input",field:"field"},{label:m("title"),type:"input",field:"label"},{label:m("defaultValue"),type:"switch",field:"componentProps.defaultValue"},{label:m("onValue"),type:"input",field:"componentProps.activeValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>z(e))}},{label:m("offValue"),type:"input",field:"componentProps.inactiveValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>z(e))}},{label:m("onDescription"),type:"input",field:"componentProps.activeText",componentProps:{placeholder:m("pleaseEnter")}},{label:m("offDescription"),type:"input",field:"componentProps.inactiveText",componentProps:{placeholder:m("pleaseEnter")}},{label:m("size"),type:"select",componentProps:{placeholder:m("pleaseSelect"),clearable:!0,options:[{label:m("large"),value:"large"},{label:m("medium"),value:"default"},{label:m("small"),value:"small"}]},field:"componentProps.size"},{label:m("width"),type:"number",field:"componentProps.width",componentProps:{min:50,placeholder:m("pleaseEnter")}},{label:m("textInside"),type:"switch",field:"componentProps.inlinePrompt"},{label:m("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:m("validationRuleRequiresForm"),componentProps:{ruleType:"boolean"}}],event:[{type:"change",describe:m("onChangeSwitch")}]}};function z(e){var b;let a=((b=e.values.componentProps)==null?void 0:b.inactiveValue)||!1;e.values.componentProps.unCheckedValue===""&&delete e.values.componentProps.unCheckedValue,e.values.componentProps.activeValue===""&&delete e.values.componentProps.activeValue,e.values.componentProps?e.values.componentProps.defaultValue=a:e.values.componentProps={defaultValue:a}}const{t:l}=c.useLocale(),le={component:async()=>(await import("element-plus")).ElCascader,groupName:l("form"),icon:"icon--epic--full-coverage-outline",sort:900,defaultSchema:{label:l("cascader"),type:"cascader",field:"cascader",input:!0,componentProps:{options:[{label:l("option1"),value:l("option1")},{label:l("option2"),value:l("option2")}],placeholder:l("pleaseSelect"),props:{expandTrigger:"click"}}},config:{attribute:[{label:l("fieldName"),type:"input",field:"field"},{label:l("title"),type:"input",field:"label"},{label:l("defaultValue"),type:"cascader",field:"componentProps.defaultValue"},{label:l("placeholder"),type:"input",field:"componentProps.placeholder"},{label:l("size"),type:"select",componentProps:{placeholder:l("pleaseSelect"),clearable:!0,options:[{label:l("large"),value:"large"},{label:l("medium"),value:"default"},{label:l("small"),value:"small"}]},field:"componentProps.size"},{label:l("separator"),type:"input",componentProps:{placeholder:l("pleaseEnter")},field:"componentProps.separator"},{label:l("subMenuExpandMode"),type:"select",field:"componentProps.props.expandTrigger",componentProps:{placeholder:l("pleaseSelect"),clearable:!0,options:[{label:"click",value:"click"},{label:"hover",value:"hover"}]}},{label:l("searchable"),type:"switch",field:"componentProps.filterable"},{label:l("multiple"),type:"switch",field:"componentProps.props.multiple",onChange:({value:e,values:a})=>{e?a.componentProps.defaultValue=[]:a.componentProps.defaultValue=null}},{label:l("collapseTags"),type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.props.multiple},{label:l("showCollapsedTags"),type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.props.multiple&&e.componentProps.collapseTags},{label:l("hidePath"),type:"switch",componentProps:{activeValue:!1,inactiveValue:!0},field:"componentProps.showAllLevels"},{label:l("parentSelectable"),type:"switch",field:"componentProps.props.checkStrictly",describe:l("parentChildNotLinked")},{label:l("onlyGetSelectedNodes"),type:"switch",field:"componentProps.props.emitPath",componentProps:{activeValue:!1,inactiveValue:!0}},{label:l("clearable"),type:"switch",field:"componentProps.clearable"},{label:l("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:l("configureOptions")},{label:l("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:l("validationRuleRequiresForm"),componentProps:{ruleType:"array"}},{label:l("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:l("dataSourceConfig")}],event:[{type:"change",describe:l("onSelectedNodeChange")},{type:"blur",describe:" 当失去焦点时触发"},{type:"focus",describe:l("onFocu")}],action:[{type:"getCheckedNodes",describe:l("getCurrentSelectedNodes")},{type:"togglePopperVisible",describe:l("togglePopperVisibility")}]}};c.useLocale();const te={component:()=>Promise.resolve().then(()=>require("../../collapse-B2AXU6Jz.cjs")),icon:"epic-icon-xiala",defaultSchema:{label:"折叠面板",type:"collapse",children:[{type:"collapse-item",children:[],componentProps:{span:12},id:"g062zikd2jk001"},{type:"collapse-item",children:[],componentProps:{span:12},id:"gy5z9jtfb3s001"}]},config:{attribute:[{label:"折叠项管理",type:"EColEditor",field:"children"}]}};c.useLocale();const oe={component:()=>Promise.resolve().then(()=>require("../../collapseItem-CAGqWjGg.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},{t:o}=c.useLocale(),ae={component:async()=>(await import("element-plus")).ElDatePicker,groupName:o("form"),icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:o("datePicker"),type:"date",field:"date",input:!0,componentProps:{type:"date",valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD",placeholder:o("pleaseSelect"),startPlaceholder:o("pleaseSelect"),endPlaceholder:o("pleaseSelect")}},config:{attribute:[{label:o("fieldName"),type:"input",field:"field"},{label:o("title"),type:"input",field:"label"},{label:o("defaultValue"),type:"date",field:"componentProps.defaultValue"},{label:o("dateType"),type:"select",field:"componentProps.type",componentProps:{options:[{label:o("date"),value:"date"},{label:o("week"),value:"week"},{label:o("month"),value:"month"},{label:o("year"),value:"year"},{label:o("time"),value:"datetime"},{label:o("timeRange"),value:"datetimerange"},{label:o("dateRange"),value:"daterange"},{label:o("monthRange"),value:"monthrange"},{label:o("multipleDates"),value:"dates"}]},onChange({values:e,value:a}){e.componentProps.defaultValue=null,["date","daterange","dates"].includes(a)?(e.componentProps.format="YYYY-MM-DD",e.componentProps.valueFormat="YYYY-MM-DD"):["week"].includes(a)?(e.componentProps.format="ww [周]",e.componentProps.valueFormat="YYYY-MM-DD"):["month","monthrange"].includes(a)?(e.componentProps.format="YYYY-MM",e.componentProps.valueFormat="YYYY-MM"):["datetime","datetimerange"].includes(a)?(e.componentProps.format="YYYY-MM-DD HH:mm:ss",e.componentProps.valueFormat="YYYY-MM-DD HH:mm:ss"):["year"].includes(a)&&(e.componentProps.format="YYYY",e.componentProps.valueFormat="YYYY")}},{label:o("startPlaceholder"),type:"input",field:"componentProps.startPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("endPlaceholder"),type:"input",field:"componentProps.endPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("placeholder"),type:"input",field:"componentProps.placeholder",show({values:e}){return!["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("size"),type:"select",defaultValue:"default",componentProps:{placeholder:o("pleaseSelect"),clearable:!0,options:[{label:o("large"),value:"large"},{label:o("medium"),value:"default"},{label:o("small"),value:"small"}]},field:"componentProps.size"},{label:o("editable"),type:"switch",field:"componentProps.editable"},{label:o("displayFormat"),type:"input",field:"componentProps.format"},{label:o("dataFormat"),type:"input",field:"componentProps.valueFormat"},{label:o("separator"),type:"input",field:"componentProps.rangeSeparator",componentProps:{placeholder:o("pleaseEnter")},show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("clearable"),type:"switch",field:"componentProps.clearable"},{label:o("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:o("validationRuleRequiresForm")}],event:[{type:"change",describe:o("onValueChange")}]}},{t:P}=c.useLocale(),ne={component:()=>Promise.resolve().then(()=>require("../../uploadFile-oB2-NP-v.cjs")),groupName:P("form"),icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:P("fileUpload"),type:"upload-file",field:"uploadFile",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload",name:"file",showFileList:!0}},config:{attribute:[{label:P("fieldName"),type:"input",field:"field"},{label:P("title"),type:"input",field:"label"},{label:P("requestUrl"),type:"input",field:"componentProps.action"},{label:P("uploadFileField"),type:"input",field:"componentProps.name"},{label:P("multiples"),type:"switch",field:"componentProps.multiple"},{label:P("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:P("dragUpload"),type:"switch",field:"componentProps.drag"},{label:P("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:P("pleaseEnter")}},{label:P("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:P("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:v}=c.useLocale(),pe={component:()=>Promise.resolve().then(()=>require("../../uploadImage-4tgp3t7X.cjs")),groupName:v("form"),icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:v("imageUpload"),type:"upload-image",field:"uploadImage",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload",name:"file",showFileList:!0}},config:{attribute:[{label:v("fieldName"),type:"input",field:"field"},{label:v("title"),type:"input",field:"label"},{label:v("requestUrl"),type:"input",field:"componentProps.action"},{label:v("uploadFileField"),type:"input",field:"componentProps.name"},{label:v("multiples"),type:"switch",field:"componentProps.multiple"},{label:v("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:v("dragUpload"),type:"switch",field:"componentProps.drag"},{label:v("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:v("pleaseEnter")}},{label:v("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:v("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:re}=c.useLocale(),ie={component:()=>Promise.resolve().then(()=>require("../../modal-BLOgN3us.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:re("title"),type:"input",field:"title"}]}},{t:V}=c.useLocale(),ce={component:async()=>await Promise.resolve().then(()=>require("../../sign-Dho4kHTC.cjs")),icon:"icon--epic--insert-text-outline-rounded",groupName:V("form"),sort:705,defaultSchema:{label:V("signaturePad"),type:"sign",field:"sign",input:!0,componentProps:{placeholder:V("pleaseEnter"),lineWidth:4,type:"sign",style:{}}},config:{attribute:[{label:V("fieldName"),type:"input",field:"field"},{label:V("title"),type:"input",field:"label"},{label:V("lineWidth")+"(px)",type:"input",componentProps:{placeholder:V("pleaseSelect"),clearable:!0},field:"componentProps.lineWidth"},{label:V("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:V("validationRuleRequiresForm")}]}},{t:R}=c.useLocale(),se={component:()=>Promise.resolve().then(()=>require("../../table-DM2-xHlv.cjs")),groupName:"",icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:"表格",type:"table",children:[{type:"table-row",children:[{type:"table-col",children:[],componentProps:{span:12}},{type:"table-col",children:[],componentProps:{span:12}}],componentProps:{span:24}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:R("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:R("pleaseSelect")},field:"componentProps.align"},{label:R("horizontalArrangement"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}],placeholder:R("pleaseSelect")},field:"componentProps.justify"}]}},{t:f}=c.useLocale(),ue={component:async()=>await Promise.resolve().then(()=>require("../../text-X9fl5oe8.cjs")),groupName:f("form"),icon:"icon--epic--insert-text-outline-rounded",sort:1e3,defaultSchema:{label:f("staticText"),type:"text",position:"left",fontSize:"14"},config:{attribute:[{label:f("staticText"),type:"input",field:"label"},{label:f("labelPosition"),type:"radio",field:"position",componentProps:{clearable:!1,radioButton:!0,options:[{label:f("leftAlign"),value:"left"},{label:f("centerAlign"),value:"center"},{label:f("rightAlign"),value:"right"}]}},{label:f("fontSize")+"(px)",type:"input",field:"fontSize"}],event:[{type:"input",describe:f("onInput")},{type:"change",describe:f("onChange")},{type:"focus",describe:f("onFocus")},{type:"blur",describe:f("onBlur")},{type:"clear",describe:f("onClear")}],action:[{type:"focus",describe:f("focusInput")},{type:"blur",describe:f("blurInput")},{type:"clear",describe:f("clearInput")},{type:"select",describe:f("selectInputText")}]}},{t:x}=c.useLocale(),de={component:()=>Promise.resolve().then(()=>require("../../row-BWnbt6dh.cjs")),icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:"表格-行",type:"table-row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:x("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:x("pleaseSelect")},field:"componentProps.align"},{label:x("horizontalArrangement"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}],placeholder:x("pleaseSelect")},field:"componentProps.justify"},{label:x("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:x("pleaseEnter")}},{label:"列编辑(一行几列)",type:"EColEditor",field:"children"}]}};c.useLocale();const me={component:()=>Promise.resolve().then(()=>require("../../col-BNNn9Yx8.cjs")),defaultSchema:{label:"表格-列",type:"table-col",children:[]},config:{attribute:[]}};function be(e=B.pluginManager){e.component("FormItem",g.ElFormItem),e.component("Form",g.ElForm),e.component("RadioGroup",g.ElRadioGroup),e.component("RadioButton",g.ElRadioButton),e.component("Tabs",g.ElTabs),e.component("TabPane",g.ElTabPane),e.component("Collapse",g.ElCollapse),e.component("CollapseItem",g.ElCollapseItem),e.component("Drawer",g.ElDrawer),e.component("Dialog",g.ElDialog),[U,O,$,W,A,Q,X,ae,J,ee,_,le,Z,ne,pe,j,G,H,K,te,oe,ie,ce,se,ue,de,me].forEach(b=>{e.registerComponent(b),e.addBaseComponentTypes(b.defaultSchema.type)}),e.setInitialized(!0)}function fe(e){import("element-plus").then(({provideGlobalConfig:a})=>{a(e)})}exports.provideGlobalConfig=fe;exports.setupElementPlus=be;
|
|
1
|
+
"use strict";var L=Object.create;var F=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty;var M=(e,a,b,C)=>{if(a&&typeof a=="object"||typeof a=="function")for(let w of N(a))!D.call(e,w)&&w!==b&&F(e,w,{get:()=>a[w],enumerable:!(C=Y(a,w))||C.enumerable});return e};var S=(e,a,b)=>(b=e!=null?L(q(e)):{},M(a||!e||!e.__esModule?F(b,"default",{value:e,enumerable:!0}):b,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("epic-designer-gold"),c=require("../../index-BpROfyMH.cjs"),g=require("element-plus"),{t:n}=c.useLocale();console.log("%c [ t ]-4","font-size:13px; background:pink; color:#bf2c9f;",n("form"));const $={component:async()=>(await import("element-plus")).ElInput,groupName:n("form"),icon:"icon--epic--border-color-outline-rounded",sort:700,defaultSchema:{label:n("input"),type:"input",field:"input",input:!0,componentProps:{placeholder:n("pleaseEnter")}},config:{attribute:[{label:n("fieldName"),type:"input",field:"field"},{label:n("title"),type:"input",field:"label"},{label:n("defaultValue"),type:"input",field:"componentProps.defaultValue"},{label:n("placeholder"),type:"input",field:"componentProps.placeholder"},{label:n("size"),type:"select",defaultValue:"default",componentProps:{placeholder:n("pleaseSelect"),clearable:!0,options:[{label:n("large"),value:"large"},{label:n("medium"),value:"default"},{label:n("small"),value:"small"}]},field:"componentProps.size"},{label:n("maxInputLength"),type:"number",field:"componentProps.maxlength",componentProps:{placeholder:n("pleaseEnter"),min:0}},{label:n("countWords"),type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:n("inputType"),type:"select",defaultValue:"text",componentProps:{placeholder:n("pleaseSelect"),clearable:!0,options:[{label:"text",value:"text"},{label:"number",value:"number"},{label:"password",value:"password"}]},field:"componentProps.type"},{label:n("showToggleIcon"),type:"switch",field:"componentProps.showPassword",show:({values:e})=>e.componentProps.type==="password"},{label:n("clearable"),type:"switch",field:"componentProps.clearable"},{label:n("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:n("validationRuleRequiresForm")}],event:[{type:"input",describe:n("onInput")},{type:"change",describe:n("onChange")},{type:"focus",describe:n("onFocus")},{type:"blur",describe:n("onBlur")},{type:"clear",describe:n("onClear")}],action:[{type:"focus",describe:n("focusInput")},{type:"blur",describe:n("blurInput")},{type:"clear",describe:n("clearInput")},{type:"select",describe:n("selectInputText")}]}},{t:p}=c.useLocale(),W={component:async()=>(await import("element-plus")).ElInput,icon:"icon--epic--edit-square-outline-rounded",groupName:p("form"),sort:705,defaultSchema:{label:p("textarea"),type:"textarea",field:"textarea",input:!0,componentProps:{placeholder:p("pleaseEnter"),type:"textarea"}},config:{attribute:[{label:p("fieldName"),type:"input",field:"field"},{label:p("title"),type:"input",field:"label"},{label:p("defaultValue"),type:"textarea",field:"componentProps.defaultValue"},{label:p("placeholder"),type:"input",field:"componentProps.placeholder"},{label:p("size"),type:"select",componentProps:{placeholder:p("pleaseSelect"),clearable:!0,options:[{label:p("large"),value:"large"},{label:p("medium"),value:"default"},{label:p("small"),value:"small"}]},field:"componentProps.size"},{label:p("maxInputLength"),type:"number",field:"componentProps.maxlength",componentProps:{placeholder:p("pleaseEnter"),min:0}},{label:p("countWords"),type:"switch",field:"componentProps.showWordLimit",show:({values:e})=>e.componentProps.maxlength},{label:p("minRows"),type:"number",field:"componentProps.autosize.minRows",componentProps:{placeholder:p("pleaseEnter")}},{label:p("maxRows"),type:"number",field:"componentProps.autosize.maxRows",componentProps:{placeholder:p("pleaseEnter")}},{label:p("clearable"),type:"switch",field:"componentProps.clearable"},{label:p("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:p("validationRuleRequiresForm")}],event:[{type:"input",describe:p("inputValue")},{type:"change",describe:p("valueChange")},{type:"focus",describe:p("focus")},{type:"blur",describe:p("blur")}],action:[{type:"focus",describe:p("focusInput")},{type:"blur",describe:p("blurInput")},{type:"clear",describe:p("clearInput")},{type:"select",describe:p("selectInputText")}]}},{t:s}=c.useLocale(),A={component:async()=>(await import("element-plus")).ElInputNumber,groupName:s("form"),icon:"icon--epic--123-rounded",sort:710,defaultSchema:{label:s("numberInput"),type:"number",field:"number",input:!0,componentProps:{placeholder:s("pleaseEnter")}},config:{attribute:[{label:s("fieldName"),type:"input",field:"field"},{label:s("title"),type:"input",field:"label"},{label:s("defaultValue"),type:"number",field:"componentProps.defaultValue"},{label:s("placeholder"),type:"input",field:"componentProps.placeholder"},{label:s("size"),type:"select",componentProps:{placeholder:s("pleaseSelect"),clearable:!0,options:[{label:s("large"),value:"large"},{label:s("medium"),value:"default"},{label:s("small"),value:"small"}]},field:"componentProps.size"},{label:s("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:s("pleaseEnter")}},{label:s("minValue"),type:"number",field:"componentProps.min",componentProps:{placeholder:s("pleaseEnter")}},{label:s("step"),type:"number",field:"componentProps.step",componentProps:{placeholder:s("pleaseEnter")}},{label:s("controlButtonPosition"),type:"select",defaultValue:"",componentProps:{options:[{label:"default",value:""},{label:"right",value:"right"}],placeholder:s("pleaseSelect"),clearable:!0},field:"componentProps.controlsPosition"},{label:s("precision"),type:"number",field:"componentProps.precision",componentProps:{placeholder:s("pleaseEnter")}},{label:s("inputControlIsMultipleOfStep"),type:"switch",field:"componentProps.stepStrictly"},{label:s("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:s("validationRuleRequiresForm"),componentProps:{ruleType:"number"}}],event:[{type:"change",describe:s("onValueChange")}]}},{t:u}=c.useLocale(),U={component:()=>Promise.resolve().then(()=>require("../../form-CthzLIgs.cjs")),groupName:u("form"),icon:"icon--epic--list-alt-outline-rounded",sort:600,defaultSchema:{label:u("form"),type:"form",componentProps:{name:"default",labelWidth:"100px","label-position":"left"},children:[]},config:{attribute:[{label:"Name",type:"input",field:"componentProps.name"},{label:u("labelPosition"),type:"radio",field:"componentProps.label-position",componentProps:{clearable:!0,radioButton:!0,options:[{label:u("left"),value:"left"},{label:u("right"),value:"right"},{label:u("top"),value:"top"}]}},{label:u("labelWidth"),type:"EInputSize",field:"componentProps.labelWidth"},{label:u("labelSuffix"),type:"input",field:"componentProps.labelSuffix",componentProps:{placeholder:u("pleaseEnter")}},{label:u("formSize"),type:"select",field:"componentProps.size",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("large"),value:"large"},{label:u("medium"),value:"default"},{label:u("small"),value:"small"}]}},{label:u("asteriskPosition"),type:"select",field:"componentProps.require-asterisk-position",componentProps:{placeholder:u("pleaseSelect"),clearable:!0,options:[{label:u("left"),value:"left"},{label:u("right"),value:"right"}]}},{label:u("inlineValidationMessage"),type:"switch",field:"componentProps.inline-message"},{label:u("validationFeedbackIcon"),type:"switch",field:"componentProps.status-icon"},{label:u("scrollToValidationError"),type:"switch",field:"componentProps.scroll-to-error"},{label:u("inlineMode"),type:"switch",field:"componentProps.inline"}],action:[{type:"getData",describe:u("getFormData")},{type:"setData",describe:u("setFormData")},{type:"validate",describe:u("validateForm")}]}};c.useLocale();const O={component:()=>Promise.resolve().then(()=>require("../../formItem-BVnNs1Q9.cjs")),defaultSchema:{label:"表单项",type:"form-item"},config:{}},{t:y}=c.useLocale(),j={component:()=>Promise.resolve().then(()=>require("../../button-Cc4KYk3v.cjs")),groupName:y("form"),icon:"icon--epic--fit-screen-rounded",sort:1200,defaultSchema:{label:y("button"),type:"button",field:"input",input:!1},config:{attribute:[{label:y("title"),type:"input",field:"label"},{label:y("actionType"),type:"select",componentProps:{placeholder:y("pleaseSelect"),clearable:!0,options:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]},field:"componentProps.type"},{label:y("actionType"),type:"select",componentProps:{placeholder:y("pleaseSelect"),clearable:!0,options:[{label:"button",value:"button"},{label:"submit",value:"submit"},{label:"reset",value:"reset"}]},field:"componentProps.native-type"},{label:y("customColor"),type:"color-picker",field:"componentProps.color",componentProps:{type:"color"}},{label:y("plainButton"),type:"switch",field:"componentProps.plain"},{label:y("roundButton"),type:"switch",field:"componentProps.round"},{label:y("circleButton"),type:"switch",field:"componentProps.circle"},{label:y("textButton"),type:"switch",field:"componentProps.text"},{label:y("loadingState"),type:"switch",field:"componentProps.loading"}],event:[{type:"click",describe:y("onClick")},{type:"dblclick",describe:y("onDoubleClick")}]}},{t:I}=c.useLocale(),G={component:()=>Promise.resolve().then(()=>require("../../card-BowzD9vN.cjs")),groupName:I("layout"),icon:"icon--epic--wysiwyg-rounded",sort:700,defaultSchema:{label:I("cardLayout"),type:"card",children:[],componentProps:{}},config:{attribute:[{label:I("title"),type:"input",field:"label"},{label:I("shadowTiming"),type:"select",componentProps:{options:[{label:"always",value:"always"},{label:"hover",value:"hover"},{label:"never",value:"never"}],placeholder:I("pleaseSelect"),clearable:!0},field:"componentProps.shadow"}]}},{t:E}=c.useLocale(),H={component:()=>Promise.resolve().then(()=>require("../../row-NNlPGZRG.cjs")),groupName:E("layout"),icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:E("gridLayout"),type:"row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:E("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:E("pleaseSelect")},field:"componentProps.align"},{label:E("horizontalArrangement"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}],placeholder:E("pleaseSelect")},field:"componentProps.justify"},{label:E("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:E("pleaseEnter")}},{label:E("gridWidth"),type:"EColEditor",field:"children"}]}},{t:k}=c.useLocale(),K={component:()=>Promise.resolve().then(()=>require("../../col-B1GUMkMK.cjs")),defaultSchema:{label:k("gridLayout")+"-"+k("column"),type:"col",children:[],componentProps:{span:6}},config:{attribute:[{label:"占位格数",type:"number",field:"componentProps.span"}]}},{t}=c.useLocale(),J={component:()=>Promise.resolve().then(()=>require("../../select-BvJWp4t6.cjs")),groupName:t("form"),icon:"icon--epic--select",sort:900,defaultSchema:{label:t("select"),type:"select",field:"select",input:!0,componentProps:{options:[{label:t("option1"),value:t("option1")},{label:t("option2"),value:t("option2")}],dynamicId:"",placeholder:t("pleaseSelect"),size:"default",effect:"light",placement:"bottom-start"}},config:{attribute:[{label:t("fieldName"),type:"input",field:"field"},{label:t("title"),type:"input",field:"label"},{label:t("defaultValue"),type:"select",field:"componentProps.defaultValue"},{label:t("placeholder"),type:"input",field:"componentProps.placeholder"},{label:t("size"),type:"select",componentProps:{placeholder:t("pleaseSelect"),clearable:!0,options:[{label:t("large"),value:"large"},{label:t("medium"),value:"default"},{label:t("small"),value:"small"}]},field:"componentProps.size"},{label:t("multiple"),type:"switch",field:"componentProps.multiple",onChange:({value:e,values:a})=>{e?a.componentProps.defaultValue=[]:a.componentProps.defaultValue=null}},{label:t("hideMultiple"),type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.multiple},{label:t("hideHint"),type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.multiple&&e.componentProps.collapseTags},{label:t("retainSearchKeyword"),type:"switch",field:"componentProps.reserveKeyword",show:({values:e})=>e.componentProps.multiple},{label:t("tagType"),type:"select",defaultValue:"info",componentProps:{options:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]},show:({values:e})=>e.componentProps.multiple,field:"componentProps.tagType"},{label:t("multipleLimit"),type:"number",field:"componentProps.multipleLimit",show:({values:e})=>e.componentProps.multiple},{label:t("hintTheme"),type:"select",componentProps:{options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]},field:"componentProps.effect"},{label:t("filterable"),type:"switch",field:"componentProps.filterable"},{label:t("allowCreate"),type:"switch",field:"componentProps.allowCreate"},{label:t("dropdownPosition"),type:"select",defaultValue:"bottom-start",componentProps:{options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},field:"componentProps.placement"},{label:t("dropdownWidthSameAsInput"),type:"switch",field:"componentProps.fitInputWidth"},{label:t("noDataText"),type:"input",field:"componentProps.noDataText",componentProps:{placeholder:t("pleaseEnter")}},{label:t("clearable"),type:"switch",field:"componentProps.clearable"},{label:t("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",describe:t("configureOptions")},{label:t("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:t("validationRuleRequiresForm")},{label:t("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:t("dataSourceConfig")}],event:[{type:"change",describe:t("onValueChange")}]}},{t:d}=c.useLocale(),Q={component:()=>Promise.resolve().then(()=>require("../../radio-_GXvcBNP.cjs")),groupName:d("form"),icon:"icon--epic--radio-button-checked-outline",sort:850,defaultSchema:{label:d("radio"),type:"radio",field:"radio",input:!0,componentProps:{options:[{label:d("option1"),value:d("option1")},{label:d("option2"),value:d("option2")}],size:"default"}},config:{attribute:[{label:d("fieldName"),type:"input",field:"field"},{label:d("title"),type:"input",field:"label"},{label:d("defaultValue"),type:"radio",field:"componentProps.defaultValue"},{label:d("size"),type:"select",componentProps:{placeholder:d("pleaseSelect"),clearable:!0,options:[{label:d("large"),value:"large"},{label:d("medium"),value:"default"},{label:d("small"),value:"small"}]},field:"componentProps.size"},{label:d("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:d("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:d("effectiveInButtonMode")},{label:d("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:d("effectiveInButtonMode")},{label:d("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:d("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:d("validationRuleRequiresForm")},{label:d("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:d("dataSourceConfig")}],event:[{type:"change",describe:d("onValueChange")}]}},{t:r}=c.useLocale(),X={component:()=>Promise.resolve().then(()=>require("../../checkbox-Bjqm2Ob1.cjs")),groupName:r("form"),icon:"icon--epic--dialogs-outline-rounded",sort:860,defaultSchema:{label:r("checkbox"),type:"checkbox",field:"checkbox",input:!0,componentProps:{options:[{label:r("option1"),value:r("option1")},{label:r("option2"),value:r("option2")}]}},config:{attribute:[{label:r("fieldName"),type:"input",field:"field"},{label:r("title"),type:"input",field:"label"},{label:r("defaultValue"),type:"checkbox",field:"componentProps.defaultValue"},{label:r("size"),type:"select",componentProps:{placeholder:r("pleaseSelect"),clearable:!0,options:[{label:r("large"),value:"large"},{label:r("medium"),value:"default"},{label:r("small"),value:"small"}]},field:"componentProps.size"},{label:r("maxSelected"),type:"number",field:"componentProps.max",componentProps:{placeholder:r("pleaseEnter")}},{label:r("minSelected"),type:"number",field:"componentProps.min",componentProps:{placeholder:r("pleaseEnter")}},{label:r("buttonMode"),type:"switch",field:"componentProps.radioButton"},{label:r("optionTextColor"),type:"color-picker",layout:"horizontal",field:"componentProps.textColor",show:({values:e})=>e.componentProps.radioButton,describe:r("effectiveInButtonMode")},{label:r("optionButtonColor"),type:"color-picker",layout:"horizontal",field:"componentProps.fill",show:({values:e})=>e.componentProps.radioButton,describe:r("effectiveInButtonMode")},{label:r("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options"},{label:r("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:r("validationRuleRequiresForm"),componentProps:{ruleType:"array"}},{label:r("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:r("dataSourceConfig")}],event:[{type:"change",describe:r("onValueChange")}]}},{t:i}=c.useLocale(),Z={component:async()=>(await import("element-plus")).ElSlider,groupName:i("form"),icon:"icon--epic--switches",sort:930,defaultSchema:{label:i("slider"),type:"slider",field:"slider",input:!0,componentProps:{placement:"top-start",showTooltip:!0}},config:{attribute:[{label:i("fieldName"),type:"input",field:"field"},{label:i("title"),type:"input",field:"label"},{label:i("defaultValue"),type:"slider",field:"componentProps.defaultValue"},{label:i("size"),type:"select",componentProps:{placeholder:i("pleaseSelect"),clearable:!0,options:[{label:i("large"),value:"large"},{label:i("medium"),value:"default"},{label:i("small"),value:"small"}]},field:"componentProps.size"},{label:i("minValue"),type:"number",field:"componentProps.min",componentProps:{placeholder:i("pleaseEnter")},onChange:({value:e,values:a,componentAttributes:b})=>{const C=b.value.findIndex(T=>T.field==="componentProps.max"),w=b.value[C];w.componentProps={min:e},(a.componentProps.max??0)<e&&(a.componentProps.max=e)}},{label:i("maxValue"),type:"number",field:"componentProps.max",componentProps:{placeholder:i("pleaseEnter")},onChange:({value:e,values:a,componentAttributes:b})=>{const C=b.value.findIndex(T=>T.field==="componentProps.min"),w=b.value[C];w.componentProps={max:e},(a.componentProps.min??0)>e&&(a.componentProps.min=e)}},{label:i("step"),type:"number",field:"componentProps.step",componentProps:{placeholder:i("pleaseEnter")}},{label:i("showStops"),type:"switch",field:"componentProps.showStops"},{label:i("tooltip"),type:"switch",field:"componentProps.showTooltip"},{label:i("range"),type:"switch",field:"componentProps.range"},{label:i("vertical"),type:"switch",field:"componentProps.vertical"},{label:i("height"),type:"EInputSize",field:"componentProps.height",show:({values:e})=>e.componentProps.vertical},{label:i("showInput"),type:"switch",field:"componentProps.showInput",onChange:({value:e,values:a})=>{e&&(a.componentProps.showInputControls=!0)}},{label:i("controlButtons"),type:"switch",field:"componentProps.showInputControls",show:({values:e})=>e.componentProps.showInput},{label:i("tooltipPosition"),type:"select",defaultValue:"bottom-start",componentProps:{options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},field:"componentProps.placement"},{label:i("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:i("validationRuleRequiresForm"),componentProps:{ruleType:"number"}}],event:[{type:"input",describe:i("realTimeTrigger")},{type:"change",describe:i("onChangeEnd")}]}},{t:h}=c.useLocale(),_={component:async()=>(await import("element-plus")).ElColorPicker,groupName:h("form"),icon:"icon--epic--palette-outline",sort:950,defaultSchema:{label:h("colorPicker"),type:"color-picker",field:"color-picker",input:!0},config:{attribute:[{label:h("fieldName"),type:"input",field:"field"},{label:h("title"),type:"input",field:"label"},{label:h("defaultValue"),type:"color-picker",field:"componentProps.defaultValue"},{label:h("size"),type:"select",componentProps:{placeholder:h("pleaseSelect"),clearable:!0,options:[{label:h("large"),value:"large"},{label:h("medium"),value:"default"},{label:h("small"),value:"small"}]},field:"componentProps.size"},{label:h("format"),type:"select",componentProps:{placeholder:h("pleaseSelect"),clearable:!0,options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},field:"componentProps.colorFormat"},{label:h("alpha"),type:"switch",field:"componentProps.showAlpha"},{label:h("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:h("validationRuleRequiresForm")}],event:[{type:"change",describe:h("onValueChange")}],action:[]}},{t:m}=c.useLocale(),ee={component:async()=>(await import("element-plus")).ElSwitch,groupName:m("form"),icon:"icon--epic--toggle-off-outline",sort:930,defaultSchema:{label:m("switch"),type:"switch",field:"switch",input:!0,componentProps:{defaultValue:!1}},config:{attribute:[{label:m("fieldName"),type:"input",field:"field"},{label:m("title"),type:"input",field:"label"},{label:m("defaultValue"),type:"switch",field:"componentProps.defaultValue"},{label:m("onValue"),type:"input",field:"componentProps.activeValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>z(e))}},{label:m("offValue"),type:"input",field:"componentProps.inactiveValue",componentProps:{placeholder:m("pleaseEnter")},onChange(e){setTimeout(()=>z(e))}},{label:m("onDescription"),type:"input",field:"componentProps.activeText",componentProps:{placeholder:m("pleaseEnter")}},{label:m("offDescription"),type:"input",field:"componentProps.inactiveText",componentProps:{placeholder:m("pleaseEnter")}},{label:m("size"),type:"select",componentProps:{placeholder:m("pleaseSelect"),clearable:!0,options:[{label:m("large"),value:"large"},{label:m("medium"),value:"default"},{label:m("small"),value:"small"}]},field:"componentProps.size"},{label:m("width"),type:"number",field:"componentProps.width",componentProps:{min:50,placeholder:m("pleaseEnter")}},{label:m("textInside"),type:"switch",field:"componentProps.inlinePrompt"},{label:m("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:m("validationRuleRequiresForm"),componentProps:{ruleType:"boolean"}}],event:[{type:"change",describe:m("onChangeSwitch")}]}};function z(e){var b;let a=((b=e.values.componentProps)==null?void 0:b.inactiveValue)||!1;e.values.componentProps.unCheckedValue===""&&delete e.values.componentProps.unCheckedValue,e.values.componentProps.activeValue===""&&delete e.values.componentProps.activeValue,e.values.componentProps?e.values.componentProps.defaultValue=a:e.values.componentProps={defaultValue:a}}const{t:l}=c.useLocale(),le={component:async()=>(await import("element-plus")).ElCascader,groupName:l("form"),icon:"icon--epic--full-coverage-outline",sort:900,defaultSchema:{label:l("cascader"),type:"cascader",field:"cascader",input:!0,componentProps:{options:[{label:l("option1"),value:l("option1")},{label:l("option2"),value:l("option2")}],placeholder:l("pleaseSelect"),props:{expandTrigger:"click"}}},config:{attribute:[{label:l("fieldName"),type:"input",field:"field"},{label:l("title"),type:"input",field:"label"},{label:l("defaultValue"),type:"cascader",field:"componentProps.defaultValue"},{label:l("placeholder"),type:"input",field:"componentProps.placeholder"},{label:l("size"),type:"select",componentProps:{placeholder:l("pleaseSelect"),clearable:!0,options:[{label:l("large"),value:"large"},{label:l("medium"),value:"default"},{label:l("small"),value:"small"}]},field:"componentProps.size"},{label:l("separator"),type:"input",componentProps:{placeholder:l("pleaseEnter")},field:"componentProps.separator"},{label:l("subMenuExpandMode"),type:"select",field:"componentProps.props.expandTrigger",componentProps:{placeholder:l("pleaseSelect"),clearable:!0,options:[{label:"click",value:"click"},{label:"hover",value:"hover"}]}},{label:l("searchable"),type:"switch",field:"componentProps.filterable"},{label:l("multiple"),type:"switch",field:"componentProps.props.multiple",onChange:({value:e,values:a})=>{e?a.componentProps.defaultValue=[]:a.componentProps.defaultValue=null}},{label:l("collapseTags"),type:"switch",field:"componentProps.collapseTags",show:({values:e})=>e.componentProps.props.multiple},{label:l("showCollapsedTags"),type:"switch",field:"componentProps.collapseTagsTooltip",show:({values:e})=>e.componentProps.props.multiple&&e.componentProps.collapseTags},{label:l("hidePath"),type:"switch",componentProps:{activeValue:!1,inactiveValue:!0},field:"componentProps.showAllLevels"},{label:l("parentSelectable"),type:"switch",field:"componentProps.props.checkStrictly",describe:l("parentChildNotLinked")},{label:l("onlyGetSelectedNodes"),type:"switch",field:"componentProps.props.emitPath",componentProps:{activeValue:!1,inactiveValue:!0}},{label:l("clearable"),type:"switch",field:"componentProps.clearable"},{label:l("optionManagement"),type:"EOptionsEditor",layout:"vertical",field:"componentProps.options",componentProps:{tree:!0},describe:l("configureOptions")},{label:l("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:l("validationRuleRequiresForm"),componentProps:{ruleType:"array"}},{label:l("dataSource"),type:"EDataSource",layout:"vertical",field:"componentProps.dataSource",describe:l("dataSourceConfig")}],event:[{type:"change",describe:l("onSelectedNodeChange")},{type:"blur",describe:" 当失去焦点时触发"},{type:"focus",describe:l("onFocu")}],action:[{type:"getCheckedNodes",describe:l("getCurrentSelectedNodes")},{type:"togglePopperVisible",describe:l("togglePopperVisibility")}]}};c.useLocale();const te={component:()=>Promise.resolve().then(()=>require("../../collapse-B2AXU6Jz.cjs")),icon:"epic-icon-xiala",defaultSchema:{label:"折叠面板",type:"collapse",children:[{type:"collapse-item",children:[],componentProps:{span:12},id:"g062zikd2jk001"},{type:"collapse-item",children:[],componentProps:{span:12},id:"gy5z9jtfb3s001"}]},config:{attribute:[{label:"折叠项管理",type:"EColEditor",field:"children"}]}};c.useLocale();const oe={component:()=>Promise.resolve().then(()=>require("../../collapseItem-CAGqWjGg.cjs")),defaultSchema:{label:"折叠项",type:"collapse-item",children:[]},config:{attribute:[]}},{t:o}=c.useLocale(),ae={component:async()=>(await import("element-plus")).ElDatePicker,groupName:o("form"),icon:"icon--epic--calendar-month-outline-rounded",sort:910,defaultSchema:{label:o("datePicker"),type:"date",field:"date",input:!0,componentProps:{type:"date",valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD",placeholder:o("pleaseSelect"),startPlaceholder:o("pleaseSelect"),endPlaceholder:o("pleaseSelect")}},config:{attribute:[{label:o("fieldName"),type:"input",field:"field"},{label:o("title"),type:"input",field:"label"},{label:o("defaultValue"),type:"date",field:"componentProps.defaultValue"},{label:o("dateType"),type:"select",field:"componentProps.type",componentProps:{options:[{label:o("date"),value:"date"},{label:o("week"),value:"week"},{label:o("month"),value:"month"},{label:o("year"),value:"year"},{label:o("time"),value:"datetime"},{label:o("timeRange"),value:"datetimerange"},{label:o("dateRange"),value:"daterange"},{label:o("monthRange"),value:"monthrange"},{label:o("multipleDates"),value:"dates"}]},onChange({values:e,value:a}){e.componentProps.defaultValue=null,["date","daterange","dates"].includes(a)?(e.componentProps.format="YYYY-MM-DD",e.componentProps.valueFormat="YYYY-MM-DD"):["week"].includes(a)?(e.componentProps.format="ww [周]",e.componentProps.valueFormat="YYYY-MM-DD"):["month","monthrange"].includes(a)?(e.componentProps.format="YYYY-MM",e.componentProps.valueFormat="YYYY-MM"):["datetime","datetimerange"].includes(a)?(e.componentProps.format="YYYY-MM-DD HH:mm:ss",e.componentProps.valueFormat="YYYY-MM-DD HH:mm:ss"):["year"].includes(a)&&(e.componentProps.format="YYYY",e.componentProps.valueFormat="YYYY")}},{label:o("startPlaceholder"),type:"input",field:"componentProps.startPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("endPlaceholder"),type:"input",field:"componentProps.endPlaceholder",show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("placeholder"),type:"input",field:"componentProps.placeholder",show({values:e}){return!["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("size"),type:"select",defaultValue:"default",componentProps:{placeholder:o("pleaseSelect"),clearable:!0,options:[{label:o("large"),value:"large"},{label:o("medium"),value:"default"},{label:o("small"),value:"small"}]},field:"componentProps.size"},{label:o("editable"),type:"switch",field:"componentProps.editable"},{label:o("displayFormat"),type:"input",field:"componentProps.format"},{label:o("dataFormat"),type:"input",field:"componentProps.valueFormat"},{label:o("separator"),type:"input",field:"componentProps.rangeSeparator",componentProps:{placeholder:o("pleaseEnter")},show({values:e}){return["datetimerange","daterange","monthrange"].includes(e.componentProps.type)}},{label:o("clearable"),type:"switch",field:"componentProps.clearable"},{label:o("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:o("validationRuleRequiresForm")}],event:[{type:"change",describe:o("onValueChange")}]}},{t:P}=c.useLocale(),ne={component:()=>Promise.resolve().then(()=>require("../../uploadFile-BHn9oVA8.cjs")),groupName:P("form"),icon:"icon--epic--upload-rounded",sort:920,defaultSchema:{label:P("fileUpload"),type:"upload-file",field:"uploadFile",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload",name:"file",showFileList:!0}},config:{attribute:[{label:P("fieldName"),type:"input",field:"field"},{label:P("title"),type:"input",field:"label"},{label:P("requestUrl"),type:"input",field:"componentProps.action"},{label:P("uploadFileField"),type:"input",field:"componentProps.name"},{label:P("multiples"),type:"switch",field:"componentProps.multiple"},{label:P("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:P("dragUpload"),type:"switch",field:"componentProps.drag"},{label:P("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:P("pleaseEnter")}},{label:P("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:P("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:v}=c.useLocale(),pe={component:()=>Promise.resolve().then(()=>require("../../uploadImage-C-OyUMFn.cjs")),groupName:v("form"),icon:"icon--epic--imagesmode-outline-rounded",sort:920,defaultSchema:{label:v("imageUpload"),type:"upload-image",field:"uploadImage",input:!0,componentProps:{action:"https://ess-ds.com/prod-api/center-file/file/upload",name:"file",showFileList:!0}},config:{attribute:[{label:v("fieldName"),type:"input",field:"field"},{label:v("title"),type:"input",field:"label"},{label:v("requestUrl"),type:"input",field:"componentProps.action"},{label:v("uploadFileField"),type:"input",field:"componentProps.name"},{label:v("multiples"),type:"switch",field:"componentProps.multiple"},{label:v("showFileList"),type:"switch",field:"componentProps.showFileList"},{label:v("dragUpload"),type:"switch",field:"componentProps.drag"},{label:v("maxUploadCount"),type:"number",field:"componentProps.limit",componentProps:{min:0,placeholder:v("pleaseEnter")}},{label:v("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:v("validationRuleRequiresForm"),componentProps:{ruleType:"array"}}]},bindModel:"modelValue"},{t:re}=c.useLocale(),ie={component:()=>Promise.resolve().then(()=>require("../../modal-BLOgN3us.cjs")),defaultSchema:{label:"模态框",type:"modal",children:[]},config:{attribute:[{label:re("title"),type:"input",field:"title"}]}},{t:V}=c.useLocale(),ce={component:async()=>await Promise.resolve().then(()=>require("../../sign-BBoshwS_.cjs")),icon:"icon--epic--insert-text-outline-rounded",groupName:V("form"),sort:705,defaultSchema:{label:V("signaturePad"),type:"sign",field:"sign",input:!0,componentProps:{placeholder:V("pleaseEnter"),lineWidth:4,type:"sign",style:{}}},config:{attribute:[{label:V("fieldName"),type:"input",field:"field"},{label:V("title"),type:"input",field:"label"},{label:V("lineWidth")+"(px)",type:"input",componentProps:{placeholder:V("pleaseSelect"),clearable:!0},field:"componentProps.lineWidth"},{label:V("formValidation"),type:"ERuleEditor",layout:"vertical",field:"rules",describe:V("validationRuleRequiresForm")}]}},{t:R}=c.useLocale(),se={component:()=>Promise.resolve().then(()=>require("../../table-DM2-xHlv.cjs")),groupName:"",icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:"表格",type:"table",children:[{type:"table-row",children:[{type:"table-col",children:[],componentProps:{span:12}},{type:"table-col",children:[],componentProps:{span:12}}],componentProps:{span:24}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:R("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:R("pleaseSelect")},field:"componentProps.align"},{label:R("horizontalArrangement"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}],placeholder:R("pleaseSelect")},field:"componentProps.justify"}]}},{t:f}=c.useLocale(),ue={component:async()=>await Promise.resolve().then(()=>require("../../text-X9fl5oe8.cjs")),groupName:f("form"),icon:"icon--epic--insert-text-outline-rounded",sort:1e3,defaultSchema:{label:f("staticText"),type:"text",position:"left",fontSize:"14"},config:{attribute:[{label:f("staticText"),type:"input",field:"label"},{label:f("labelPosition"),type:"radio",field:"position",componentProps:{clearable:!1,radioButton:!0,options:[{label:f("leftAlign"),value:"left"},{label:f("centerAlign"),value:"center"},{label:f("rightAlign"),value:"right"}]}},{label:f("fontSize")+"(px)",type:"input",field:"fontSize"}],event:[{type:"input",describe:f("onInput")},{type:"change",describe:f("onChange")},{type:"focus",describe:f("onFocus")},{type:"blur",describe:f("onBlur")},{type:"clear",describe:f("onClear")}],action:[{type:"focus",describe:f("focusInput")},{type:"blur",describe:f("blurInput")},{type:"clear",describe:f("clearInput")},{type:"select",describe:f("selectInputText")}]}},{t:x}=c.useLocale(),de={component:()=>Promise.resolve().then(()=>require("../../row-BWnbt6dh.cjs")),icon:"icon--epic--width-normal-outline",sort:800,defaultSchema:{label:"表格-行",type:"table-row",children:[{type:"col",children:[],componentProps:{span:12}},{type:"col",children:[],componentProps:{span:12}}]},editConstraints:{childImmovable:!0},config:{attribute:[{label:x("verticalAlignment"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}],placeholder:x("pleaseSelect")},field:"componentProps.align"},{label:x("horizontalArrangement"),type:"select",componentProps:{style:{width:"100%"},options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}],placeholder:x("pleaseSelect")},field:"componentProps.justify"},{label:x("gridSpacing"),type:"number",field:"componentProps.gutter",componentProps:{placeholder:x("pleaseEnter")}},{label:"列编辑(一行几列)",type:"EColEditor",field:"children"}]}};c.useLocale();const me={component:()=>Promise.resolve().then(()=>require("../../col-BNNn9Yx8.cjs")),defaultSchema:{label:"表格-列",type:"table-col",children:[]},config:{attribute:[]}};function be(e=B.pluginManager){e.component("FormItem",g.ElFormItem),e.component("Form",g.ElForm),e.component("RadioGroup",g.ElRadioGroup),e.component("RadioButton",g.ElRadioButton),e.component("Tabs",g.ElTabs),e.component("TabPane",g.ElTabPane),e.component("Collapse",g.ElCollapse),e.component("CollapseItem",g.ElCollapseItem),e.component("Drawer",g.ElDrawer),e.component("Dialog",g.ElDialog),[U,O,$,W,A,Q,X,ae,J,ee,_,le,Z,ne,pe,j,G,H,K,te,oe,ie,ce,se,ue,de,me].forEach(b=>{e.registerComponent(b),e.addBaseComponentTypes(b.defaultSchema.type)}),e.setInitialized(!0)}function fe(e){import("element-plus").then(({provideGlobalConfig:a})=>{a(e)})}exports.provideGlobalConfig=fe;exports.setupElementPlus=be;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pluginManager as F } from "epic-designer-gold";
|
|
2
|
-
import { u as r } from "../../index-
|
|
2
|
+
import { u as r } from "../../index-DWxy0GSJ.js";
|
|
3
3
|
import { ElFormItem as k, ElForm as z, ElRadioGroup as Y, ElRadioButton as N, ElTabs as D, ElTabPane as B, ElCollapse as M, ElCollapseItem as q, ElDrawer as L, ElDialog as W } from "element-plus";
|
|
4
4
|
const { t: a } = r();
|
|
5
5
|
console.log("%c [ t ]-4", "font-size:13px; background:pink; color:#bf2c9f;", a("form"));
|
|
@@ -2398,7 +2398,7 @@ const ae = {
|
|
|
2398
2398
|
]
|
|
2399
2399
|
}
|
|
2400
2400
|
}, { t: h } = r(), pe = {
|
|
2401
|
-
component: () => import("../../uploadFile-
|
|
2401
|
+
component: () => import("../../uploadFile-D_0_6ghp.js"),
|
|
2402
2402
|
groupName: h("form"),
|
|
2403
2403
|
icon: "icon--epic--upload-rounded",
|
|
2404
2404
|
sort: 920,
|
|
@@ -2483,7 +2483,7 @@ const ae = {
|
|
|
2483
2483
|
},
|
|
2484
2484
|
bindModel: "modelValue"
|
|
2485
2485
|
}, { t: P } = r(), ie = {
|
|
2486
|
-
component: () => import("../../uploadImage-
|
|
2486
|
+
component: () => import("../../uploadImage-4U4YGGfK.js"),
|
|
2487
2487
|
groupName: P("form"),
|
|
2488
2488
|
icon: "icon--epic--imagesmode-outline-rounded",
|
|
2489
2489
|
sort: 920,
|
|
@@ -2585,7 +2585,7 @@ const ae = {
|
|
|
2585
2585
|
}
|
|
2586
2586
|
}, { t: w } = r(), se = {
|
|
2587
2587
|
// component: async () => await import("../../../../packages/core/components/designer/src"),
|
|
2588
|
-
component: async () => await import("../../sign-
|
|
2588
|
+
component: async () => await import("../../sign-Dfqcv4Fg.js"),
|
|
2589
2589
|
icon: "icon--epic--insert-text-outline-rounded",
|
|
2590
2590
|
groupName: w("form"),
|
|
2591
2591
|
sort: 705,
|