ss-component-new 1.3.664 → 1.3.666
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/MTLLoader-DI0avKtj.js +657 -0
- package/dist/URDFLoader-PUxvYFDe.js +2304 -0
- package/dist/animationData-05aVUytq.js +83 -0
- package/dist/array-BHRYnJKv.js +1044 -0
- package/dist/clone-Ddn1p6-1.js +8 -0
- package/dist/config.js +1 -1
- package/dist/eleIcon-BWVKfp5t.js +29 -0
- package/dist/iconfont-BNdGaGPn.js +1018 -0
- package/dist/icons/svg/Update.svg +1 -0
- package/dist/icons/svg/functionList.svg +1 -0
- package/dist/icons/svg/uploadCopy.svg +1 -0
- package/dist/index-7mFTFA3-.js +107 -0
- package/dist/index-BDhIWgKn.js +658 -0
- package/dist/index-BFqUz4pN.js +52 -0
- package/dist/index-BP1mKUQP.js +627 -0
- package/dist/index-BczRQX8N.js +407 -0
- package/dist/index-BnrvtCYj.js +55 -0
- package/dist/index-Bpr501oZ.js +78 -0
- package/dist/index-BvbZiTVB.js +342 -0
- package/dist/index-Bvvz41NY.js +44 -0
- package/dist/index-C2M8MGB3.js +83 -0
- package/dist/index-C67QqPPT.js +24865 -0
- package/dist/index-C85-PeF1.js +11773 -0
- package/dist/index-C9DBY1gg.js +103 -0
- package/dist/index-CFFbhR3G.js +996 -0
- package/dist/index-COr2mcbl.js +48 -0
- package/dist/index-CQ8DCGnJ.js +98 -0
- package/dist/index-CV2cha0T.js +864 -0
- package/dist/index-CV_jQDcg.js +9 -0
- package/dist/index-CXe4q28L.js +447 -0
- package/dist/{index-BobGeNMx.js → index-ChNfRlIP.js} +5 -5
- package/dist/index-CqNlqFQ5.js +117 -0
- package/dist/index-D-5v1Jx7.js +93 -0
- package/dist/index-D4LcEpQ7.js +619 -0
- package/dist/index-D9w3QWuY.js +468 -0
- package/dist/index-DGObzWyL.js +8984 -0
- package/dist/index-DJ59jXR0.js +28483 -0
- package/dist/index-DJrzqi4-.js +209 -0
- package/dist/index-D_kI6aHR.js +98 -0
- package/dist/index-DhQcwkOc.js +61958 -0
- package/dist/index-DhULdX5n.js +2623 -0
- package/dist/index-Dibj25i7.js +93 -0
- package/dist/index-Dr9Wt5nC.js +84 -0
- package/dist/index-Dwt0Wlg_.js +201 -0
- package/dist/index-WPJbEuld.js +62 -0
- package/dist/index-YVR3acYT.js +61 -0
- package/dist/{index-BKK_dL6t.js → index-dD-mKgue.js} +3 -3
- package/dist/index-roQK_1xA.js +30 -0
- package/dist/index-uF-ibwG0.js +9 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
- package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js +137728 -0
- package/dist/isString-CoCw_sp3.js +8 -0
- package/dist/localIcon-CoJHw5ss.js +76 -0
- package/dist/main-Dlo2i9wB.js +502 -0
- package/dist/menuIndex-Dt0NyAyE.js +159 -0
- package/dist/request-DiogHwkN.js +9465 -0
- package/dist/ss-component.css +8 -2
- package/dist/ss-component.js +64 -28
- package/dist/ss-component2.js +75 -15
- package/dist/ss-component3.js +1 -1
- package/dist/threeModel-BfY7WDWB.js +1108 -0
- package/dist/threePreview-BHLSA5YS.js +2259 -0
- package/dist/threeSceneView-ZTUK-ls2.js +1289 -0
- package/dist/threeSceneViewForCPMPIP-DCG4eBvk.js +538 -0
- package/dist/threeTrackPathView-BR8-g2Tr.js +620 -0
- package/dist/threeViewerHost-BwblfmOC.js +233 -0
- package/dist/urdfTree-IEJgkVzs.js +254 -0
- package/dist/workpieceTreePanel-aZV2ut3W.js +555 -0
- package/package.json +4 -4
- package/public/config.js +1 -1
- package/public/icons/svg/Update.svg +1 -0
- package/public/icons/svg/functionList.svg +1 -0
- package/public/icons/svg/uploadCopy.svg +1 -0
- package/dist/index-CoXdIQt_.js +0 -50
- package/dist/index-DJWOuBw9.js +0 -195
- package/dist/index-DK2pco3V.js +0 -1044
- package/dist/index-DfraOPVU.js +0 -9022
- package/dist/index-MHAwX3y9.js +0 -182
- package/dist/menu-B8iV5Rhf.js +0 -5215
- package/dist/origin-C4Shcrcr.js +0 -11428
- /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
- /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
|
@@ -0,0 +1,1044 @@
|
|
|
1
|
+
import { ref as k, computed as ae, resolveComponent as te, openBlock as p, createElementBlock as M, Fragment as ue, renderList as ce, createElementVNode as w, toDisplayString as re, createVNode as R, reactive as la, watch as be, createBlock as j, resolveDynamicComponent as le, unref as _, withCtx as L, isRef as Ye, createTextVNode as de, normalizeStyle as ta, createCommentVNode as q, withModifiers as ve, normalizeClass as qe, nextTick as na } from "vue";
|
|
2
|
+
import { T as Ie, g as aa, D as oa, E as sa, F as Je, U as ra } from "./index-DhQcwkOc.js";
|
|
3
|
+
import { a as Ce, p as he, s as ie, c as K, u as ke, E as ua } from "./index-DGObzWyL.js";
|
|
4
|
+
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import ca from "./index-BFqUz4pN.js";
|
|
6
|
+
import { e as ia, d as da } from "./index-C67QqPPT.js";
|
|
7
|
+
import { s as va } from "./index-DJrzqi4-.js";
|
|
8
|
+
import { E as pa } from "./request-DiogHwkN.js";
|
|
9
|
+
const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class: "group-items" }, ma = ["onDragstart"], ba = {
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: {
|
|
12
|
+
compContainerRef: Object
|
|
13
|
+
},
|
|
14
|
+
emits: [""],
|
|
15
|
+
setup(a, { emit: n }) {
|
|
16
|
+
const i = Ce(he), { itemData: s, activeItemIndex: C } = ie(i), r = n, T = k(null), f = ae(() => {
|
|
17
|
+
var ee, P, U;
|
|
18
|
+
const H = { label: "布局", items: ["TABS", "LAYOUT"] }, O = { label: "常用", items: ["FORM", "TABLE"] }, F = { label: "高级", items: ["STEP", "TIMELINE", "CHART", "SIGNATURE", "AVATAR", "FOLD"] }, D = (ee = Ie.value) == null ? void 0 : ee.filter((A) => {
|
|
19
|
+
var c, t;
|
|
20
|
+
return (t = H == null ? void 0 : H.items) == null ? void 0 : t.includes((c = A == null ? void 0 : A.type) == null ? void 0 : c.toUpperCase());
|
|
21
|
+
}), Z = (P = Ie.value) == null ? void 0 : P.filter((A) => {
|
|
22
|
+
var c, t;
|
|
23
|
+
return (t = O == null ? void 0 : O.items) == null ? void 0 : t.includes((c = A == null ? void 0 : A.type) == null ? void 0 : c.toUpperCase());
|
|
24
|
+
}), B = (U = Ie.value) == null ? void 0 : U.filter((A) => {
|
|
25
|
+
var c, t;
|
|
26
|
+
return (t = F == null ? void 0 : F.items) == null ? void 0 : t.includes((c = A == null ? void 0 : A.type) == null ? void 0 : c.toUpperCase());
|
|
27
|
+
});
|
|
28
|
+
return [
|
|
29
|
+
{
|
|
30
|
+
...H,
|
|
31
|
+
items: D
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
...O,
|
|
35
|
+
items: Z
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
...F,
|
|
39
|
+
items: B
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
}), $ = (H, O) => {
|
|
43
|
+
try {
|
|
44
|
+
H.dataTransfer.clearData();
|
|
45
|
+
const F = {
|
|
46
|
+
...O,
|
|
47
|
+
timestamp: Date.now()
|
|
48
|
+
// 添加时间戳确保唯一性
|
|
49
|
+
};
|
|
50
|
+
H.dataTransfer.setData("application/json", JSON.stringify(F)), H.dataTransfer.effectAllowed = "copyMove", H.target.classList.add("dragging"), r("handleDragStart", O);
|
|
51
|
+
} catch (F) {
|
|
52
|
+
console.error("Drag start error:", F);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return (H, O) => {
|
|
56
|
+
const F = te("svg-icon");
|
|
57
|
+
return p(), M("div", fa, [
|
|
58
|
+
(p(!0), M(ue, null, ce(f.value, (D) => (p(), M("div", {
|
|
59
|
+
class: "group-item",
|
|
60
|
+
key: D == null ? void 0 : D.label
|
|
61
|
+
}, [
|
|
62
|
+
w("div", ha, re(D == null ? void 0 : D.label), 1),
|
|
63
|
+
w("div", ga, [
|
|
64
|
+
(p(!0), M(ue, null, ce(D == null ? void 0 : D.items, (Z, B) => (p(), M("div", {
|
|
65
|
+
class: "type-list",
|
|
66
|
+
title: "鼠标拖动",
|
|
67
|
+
ref_for: !0,
|
|
68
|
+
ref_key: "dragItem",
|
|
69
|
+
ref: T,
|
|
70
|
+
key: B,
|
|
71
|
+
draggable: !0,
|
|
72
|
+
onDragstart: (ee) => $(ee, Z)
|
|
73
|
+
}, [
|
|
74
|
+
R(F, {
|
|
75
|
+
name: Z.icon,
|
|
76
|
+
style: { width: "15px", height: "15px" }
|
|
77
|
+
}, null, 8, ["name"]),
|
|
78
|
+
w("div", null, re(Z.name), 1)
|
|
79
|
+
], 40, ma))), 128))
|
|
80
|
+
])
|
|
81
|
+
]))), 128))
|
|
82
|
+
]);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}, rl = /* @__PURE__ */ we(ba, [["__scopeId", "data-v-d9fa1a24"]]), ye = Ce(he), { pageMapState: _a } = ie(ye), Ca = ke(), { activeMenuPath: ge } = ie(Ca), J = k([
|
|
86
|
+
// [
|
|
87
|
+
// {
|
|
88
|
+
// "id": 732285669982280
|
|
89
|
+
// },
|
|
90
|
+
// '测试任务',
|
|
91
|
+
// ['列名称', '试验名称'],
|
|
92
|
+
// ['时间限制', '开始时'],
|
|
93
|
+
// "界面显示",
|
|
94
|
+
// "启动",
|
|
95
|
+
// "2025-10-21"
|
|
96
|
+
// ]
|
|
97
|
+
]), ne = k([
|
|
98
|
+
// [
|
|
99
|
+
// {
|
|
100
|
+
// "id": 732285669982280
|
|
101
|
+
// },
|
|
102
|
+
// "进度监督",
|
|
103
|
+
// "启用",
|
|
104
|
+
// "2025-10-21"
|
|
105
|
+
// ]
|
|
106
|
+
]), ya = ae(() => [
|
|
107
|
+
{
|
|
108
|
+
label: "任务配置",
|
|
109
|
+
name: "任务配置",
|
|
110
|
+
component: {
|
|
111
|
+
comp: "Table",
|
|
112
|
+
name: "任务配置",
|
|
113
|
+
isShow: !0,
|
|
114
|
+
compData: [
|
|
115
|
+
{
|
|
116
|
+
key: "header",
|
|
117
|
+
contents: [
|
|
118
|
+
{
|
|
119
|
+
prop: "任务名称",
|
|
120
|
+
align: "center",
|
|
121
|
+
isRun: !1,
|
|
122
|
+
label: "任务名称",
|
|
123
|
+
isRoute: !1,
|
|
124
|
+
isTableColHidden: !1,
|
|
125
|
+
isFormColHidden: !1
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
prop: "任务关键词",
|
|
129
|
+
align: "center",
|
|
130
|
+
isRun: !1,
|
|
131
|
+
label: "任务关键词",
|
|
132
|
+
isRoute: !1,
|
|
133
|
+
isTableColHidden: !1,
|
|
134
|
+
isFormColHidden: !1
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
prop: "执行任务",
|
|
138
|
+
align: "center",
|
|
139
|
+
isRun: !1,
|
|
140
|
+
label: "执行任务",
|
|
141
|
+
isRoute: !1,
|
|
142
|
+
isTableColHidden: !1,
|
|
143
|
+
isFormColHidden: !1
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
prop: "执行交互",
|
|
147
|
+
align: "center",
|
|
148
|
+
isRun: !1,
|
|
149
|
+
label: "执行交互",
|
|
150
|
+
isRoute: !1,
|
|
151
|
+
isTableColHidden: !1,
|
|
152
|
+
isFormColHidden: !1
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
prop: "任务状态",
|
|
156
|
+
align: "center",
|
|
157
|
+
isRun: !1,
|
|
158
|
+
label: "任务状态",
|
|
159
|
+
isRoute: !1,
|
|
160
|
+
isTableColHidden: !1,
|
|
161
|
+
isFormColHidden: !1
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
prop: "创建时间",
|
|
165
|
+
align: "center",
|
|
166
|
+
isRun: !1,
|
|
167
|
+
label: "创建时间",
|
|
168
|
+
isRoute: !1,
|
|
169
|
+
isTableColHidden: !1,
|
|
170
|
+
isFormColHidden: !1
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
label: "操作"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
key: "rowButton",
|
|
179
|
+
contents: [
|
|
180
|
+
{
|
|
181
|
+
label: "访问"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
label: "删除"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
key: "extraButton",
|
|
190
|
+
contents: [
|
|
191
|
+
{
|
|
192
|
+
label: "创建"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
label: "批量删除"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
key: "tableFilter",
|
|
201
|
+
contents: []
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
key: "tableContents",
|
|
205
|
+
contents: J.value
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
label: "任务关联",
|
|
212
|
+
name: "任务关联",
|
|
213
|
+
component: {
|
|
214
|
+
comp: "Table",
|
|
215
|
+
name: "任务关联",
|
|
216
|
+
isShow: !0,
|
|
217
|
+
compData: [
|
|
218
|
+
{
|
|
219
|
+
key: "header",
|
|
220
|
+
contents: [
|
|
221
|
+
{
|
|
222
|
+
prop: "关联名称",
|
|
223
|
+
align: "center",
|
|
224
|
+
isRun: !1,
|
|
225
|
+
label: "关联名称",
|
|
226
|
+
isRoute: !1,
|
|
227
|
+
isTableColHidden: !1,
|
|
228
|
+
isFormColHidden: !1
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
prop: "关联形式",
|
|
232
|
+
align: "center",
|
|
233
|
+
isRun: !1,
|
|
234
|
+
label: "关联形式",
|
|
235
|
+
isRoute: !1,
|
|
236
|
+
isTableColHidden: !1,
|
|
237
|
+
isFormColHidden: !1
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
prop: "关联任务集合",
|
|
241
|
+
align: "center",
|
|
242
|
+
isRun: !1,
|
|
243
|
+
label: "关联任务集合",
|
|
244
|
+
isRoute: !1,
|
|
245
|
+
isTableColHidden: !0,
|
|
246
|
+
isFormColHidden: !1
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
prop: "关联状态",
|
|
250
|
+
align: "center",
|
|
251
|
+
isRun: !1,
|
|
252
|
+
label: "关联状态",
|
|
253
|
+
isRoute: !1,
|
|
254
|
+
isTableColHidden: !1,
|
|
255
|
+
isFormColHidden: !1
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
label: "操作"
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
key: "rowButton",
|
|
264
|
+
contents: [
|
|
265
|
+
{
|
|
266
|
+
label: "访问"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
label: "删除"
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
key: "extraButton",
|
|
275
|
+
contents: [
|
|
276
|
+
{
|
|
277
|
+
label: "创建"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
label: "批量删除"
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
key: "tableFilter",
|
|
286
|
+
contents: []
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
key: "tableContents",
|
|
290
|
+
contents: ne.value
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
]), N = k([]), Xe = ae(() => {
|
|
296
|
+
var a;
|
|
297
|
+
return (a = N.value) == null ? void 0 : a.map((n, i) => ({
|
|
298
|
+
value: n == null ? void 0 : n.id,
|
|
299
|
+
label: n == null ? void 0 : n.name
|
|
300
|
+
}));
|
|
301
|
+
}), _e = k("data"), oe = k("任务配置"), fe = k({}), X = k(null), W = la({
|
|
302
|
+
width: "30%",
|
|
303
|
+
title: "任务配置",
|
|
304
|
+
type: "创建",
|
|
305
|
+
show: !1
|
|
306
|
+
}), Da = () => {
|
|
307
|
+
W.show = !1;
|
|
308
|
+
}, Ia = (a, n) => {
|
|
309
|
+
var s, C, r, T, f, $, H, O, F;
|
|
310
|
+
if (fe.value = K(n), a === "删除")
|
|
311
|
+
return oe.value === "任务配置" ? J.value = (s = J.value) == null ? void 0 : s.filter((D) => (D == null ? void 0 : D.id) !== (n == null ? void 0 : n.id)) : oe.value === "任务关联" && (ne.value = (C = ne.value) == null ? void 0 : C.filter((D) => (D == null ? void 0 : D.id) !== (n == null ? void 0 : n.id))), ye.setItemExtendData({
|
|
312
|
+
任务配置: {
|
|
313
|
+
pageKey: ge.value,
|
|
314
|
+
compId: (r = X.value) == null ? void 0 : r.id,
|
|
315
|
+
results: J.value
|
|
316
|
+
},
|
|
317
|
+
任务关联: {
|
|
318
|
+
pageKey: ge.value,
|
|
319
|
+
compId: (T = X.value) == null ? void 0 : T.id,
|
|
320
|
+
results: ne.value
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
const i = n ? (f = Object.keys(n)) == null ? void 0 : f[1] : "";
|
|
324
|
+
oe.value === "任务配置" ? W.title = `当前配置:${($ = X.value) == null ? void 0 : $.name}>任务配置>【${(n == null ? void 0 : n[i]) || a}】` : oe.value === "任务关联" && (W.title = `当前配置:${(H = X.value) == null ? void 0 : H.name}>任务关联>【${(n == null ? void 0 : n[i]) || a}】`), W.type = typeof ((O = fe.value) == null ? void 0 : O.id) == "string" || !((F = fe.value) != null && F.id) ? "创建" : "编辑", W.show = a === "创建" || a === "访问";
|
|
325
|
+
}, ka = (a) => {
|
|
326
|
+
var n;
|
|
327
|
+
typeof a == "number" && (X.value = (n = N.value) == null ? void 0 : n[a], Sa()), _e.value = "data";
|
|
328
|
+
}, wa = (a) => {
|
|
329
|
+
}, Ta = (a) => {
|
|
330
|
+
var n, i;
|
|
331
|
+
switch (oe.value) {
|
|
332
|
+
case "任务配置":
|
|
333
|
+
W.type === "创建" ? J.value.push(a == null ? void 0 : a.data) : J.value = (n = J.value) == null ? void 0 : n.map((s) => {
|
|
334
|
+
var C;
|
|
335
|
+
return (s == null ? void 0 : s.id) === ((C = a == null ? void 0 : a.data) == null ? void 0 : C.id) ? {
|
|
336
|
+
...s,
|
|
337
|
+
...a == null ? void 0 : a.data
|
|
338
|
+
} : s;
|
|
339
|
+
});
|
|
340
|
+
break;
|
|
341
|
+
case "任务关联":
|
|
342
|
+
W.type === "创建" ? ne.value.push(a == null ? void 0 : a.data) : ne.value = (i = ne.value) == null ? void 0 : i.map((s) => {
|
|
343
|
+
var C;
|
|
344
|
+
return (s == null ? void 0 : s.id) === ((C = a == null ? void 0 : a.data) == null ? void 0 : C.id) ? {
|
|
345
|
+
...s,
|
|
346
|
+
...a == null ? void 0 : a.data
|
|
347
|
+
} : s;
|
|
348
|
+
});
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
console.log("handleTableData:", J.value, a, W.type), ye.setItemExtendData({
|
|
352
|
+
任务配置: {
|
|
353
|
+
pageKey: ge.value,
|
|
354
|
+
compId: a == null ? void 0 : a.compId,
|
|
355
|
+
results: J.value
|
|
356
|
+
},
|
|
357
|
+
任务关联: {
|
|
358
|
+
pageKey: ge.value,
|
|
359
|
+
compId: a == null ? void 0 : a.compId,
|
|
360
|
+
results: ne.value
|
|
361
|
+
}
|
|
362
|
+
}), W.show = !1;
|
|
363
|
+
}, xa = (a) => {
|
|
364
|
+
var n, i;
|
|
365
|
+
if ((a == null ? void 0 : a.buttonName) === "取消")
|
|
366
|
+
W.show = !1;
|
|
367
|
+
else if ((a == null ? void 0 : a.buttonName) === "保存") {
|
|
368
|
+
const s = {
|
|
369
|
+
compId: (n = X.value) == null ? void 0 : n.id,
|
|
370
|
+
data: {
|
|
371
|
+
...a == null ? void 0 : a.content,
|
|
372
|
+
id: (i = fe.value) == null ? void 0 : i.id
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
Ta(s);
|
|
376
|
+
}
|
|
377
|
+
}, Qe = (a, n) => {
|
|
378
|
+
var r, T;
|
|
379
|
+
const { target: i, styleConfigs: s } = a;
|
|
380
|
+
if (!s) return;
|
|
381
|
+
const C = s == null ? void 0 : s.reduce((f, $) => (f[$.prop] = $.value, f), {});
|
|
382
|
+
n ? N.value = (T = N.value) == null ? void 0 : T.map((f) => (f == null ? void 0 : f.id) === (n == null ? void 0 : n.id) ? {
|
|
383
|
+
...f,
|
|
384
|
+
...C
|
|
385
|
+
} : f) : N.value = (r = N.value) == null ? void 0 : r.map((f) => ({
|
|
386
|
+
...f,
|
|
387
|
+
...C
|
|
388
|
+
})), ye.setItemData(N.value);
|
|
389
|
+
}, Ze = (a) => {
|
|
390
|
+
}, ea = (a, n) => {
|
|
391
|
+
var i;
|
|
392
|
+
return (i = a == null ? void 0 : a.filter((s) => {
|
|
393
|
+
var C, r, T, f, $;
|
|
394
|
+
return ((r = (C = s == null ? void 0 : s.key) == null ? void 0 : C.relatedInfo) == null ? void 0 : r.target) === n && ((f = (T = s == null ? void 0 : s.key) == null ? void 0 : T.relatedInfo) == null ? void 0 : f.compId) === (($ = X.value) == null ? void 0 : $.id);
|
|
395
|
+
})) == null ? void 0 : i.map((s) => {
|
|
396
|
+
var C;
|
|
397
|
+
return {
|
|
398
|
+
...(C = s == null ? void 0 : s.value) == null ? void 0 : C.tableData,
|
|
399
|
+
id: s == null ? void 0 : s.id
|
|
400
|
+
};
|
|
401
|
+
});
|
|
402
|
+
}, Sa = () => {
|
|
403
|
+
var n, i;
|
|
404
|
+
const a = (i = (n = _a.value) == null ? void 0 : n[ge.value]) == null ? void 0 : i.filter((s) => {
|
|
405
|
+
var C;
|
|
406
|
+
return ((C = s == null ? void 0 : s.key) == null ? void 0 : C.type) === "extend";
|
|
407
|
+
});
|
|
408
|
+
(a == null ? void 0 : a.length) !== 0 && (J.value = ea(a, "任务配置"), ne.value = ea(a, "任务关联"));
|
|
409
|
+
}, Ra = { class: "fill-content" }, La = { class: "overall-config-wrapper" }, Ma = { class: "operate-content" }, $a = ["onClick"], Ha = {
|
|
410
|
+
class: "collapse-title-item",
|
|
411
|
+
title: "编辑"
|
|
412
|
+
}, Ba = { key: 1 }, Ea = ["onClick"], Oa = { class: "icon-content" }, Fa = {
|
|
413
|
+
key: 0,
|
|
414
|
+
class: "edit-content"
|
|
415
|
+
}, Aa = ["onClick"], Va = { title: "设置" }, Na = ["onClick"], Ua = { class: "parent-main" }, za = { style: { display: "flex", "justify-content": "space-between" } }, Ga = { title: "样式" }, Ka = { title: "交互" }, ja = { title: "扩展" }, Pa = { style: { width: "100%", "max-height": "500px", overflow: "auto" } }, Wa = {
|
|
416
|
+
__name: "index",
|
|
417
|
+
setup(a) {
|
|
418
|
+
const n = Ce(he), { itemData: i, originalData: s } = ie(n), C = ke(), { activeMenuPath: r } = ie(C);
|
|
419
|
+
k([]);
|
|
420
|
+
const T = k([]), f = k([]), $ = k([]), H = ae(() => {
|
|
421
|
+
var c, t, g, v;
|
|
422
|
+
return ((c = N.value) == null ? void 0 : c.length) > 0 && (t = N.value) != null && t.every((h) => {
|
|
423
|
+
var V, z;
|
|
424
|
+
return (h == null ? void 0 : h.comp) === ((z = (V = N.value) == null ? void 0 : V[0]) == null ? void 0 : z.comp);
|
|
425
|
+
}) ? (v = (g = N.value) == null ? void 0 : g[0]) == null ? void 0 : v.comp : null;
|
|
426
|
+
}), O = (c) => {
|
|
427
|
+
var g;
|
|
428
|
+
let t = (g = K(f.value)) == null ? void 0 : g.map((v, h) => (c === h && (v.content = !0), v));
|
|
429
|
+
f.value = t;
|
|
430
|
+
}, F = (c) => {
|
|
431
|
+
var g;
|
|
432
|
+
let t = (g = K(f.value)) == null ? void 0 : g.map((v, h) => (c === h && (v.content = !1), v));
|
|
433
|
+
f.value = t, N.value = K(i.value);
|
|
434
|
+
}, D = (c, t) => {
|
|
435
|
+
var V;
|
|
436
|
+
let g = (V = K(f.value)) == null ? void 0 : V.map((z, u) => (c === u && (z.content = !1), z));
|
|
437
|
+
f.value = g;
|
|
438
|
+
const v = K(i.value), h = v == null ? void 0 : v.filter((z, u) => (u === c && (z.name = t), z));
|
|
439
|
+
n.setOriginalData(h), n.setItemData(h);
|
|
440
|
+
}, Z = (c) => {
|
|
441
|
+
const t = K(i.value), g = t == null ? void 0 : t.map((v, h) => ((v == null ? void 0 : v.name) === (c == null ? void 0 : c.name) ? v.isShow = !(c != null && c.isShow) : v.isShow = v.isShow, v));
|
|
442
|
+
i.value = g;
|
|
443
|
+
};
|
|
444
|
+
be(
|
|
445
|
+
() => i.value,
|
|
446
|
+
() => {
|
|
447
|
+
var c, t, g, v;
|
|
448
|
+
!i.value || ((c = i.value) == null ? void 0 : c.length) === 0 ? N.value = [] : N.value = (t = i.value) == null ? void 0 : t.filter((h) => (h == null ? void 0 : h.comp) !== "methodButton"), T.value = N.value, f.value = (g = K(T.value)) == null ? void 0 : g.map((h, V) => ({
|
|
449
|
+
id: V,
|
|
450
|
+
content: !1
|
|
451
|
+
})), $.value = (v = K(T.value)) == null ? void 0 : v.map((h, V) => ({
|
|
452
|
+
id: V,
|
|
453
|
+
isShow: h == null ? void 0 : h.isShow
|
|
454
|
+
}));
|
|
455
|
+
},
|
|
456
|
+
{ deep: !0, immediate: !0 }
|
|
457
|
+
);
|
|
458
|
+
const B = (c) => aa(c), ee = (c, t, g, v) => {
|
|
459
|
+
var V, z;
|
|
460
|
+
if (!c) return;
|
|
461
|
+
let h = K(i.value);
|
|
462
|
+
h = (V = h == null ? void 0 : h.map((u, y) => {
|
|
463
|
+
if (v && y === g) {
|
|
464
|
+
const { compData: d, itemChildData: Y } = c;
|
|
465
|
+
return u.compData = d, u.itemChildData = Y, u;
|
|
466
|
+
}
|
|
467
|
+
return y === g && (u.compData = c), u;
|
|
468
|
+
})) == null ? void 0 : V.filter((u) => (u == null ? void 0 : u.comp) !== "methodButton"), f.value = (z = K(h)) == null ? void 0 : z.map((u, y) => ({
|
|
469
|
+
id: y,
|
|
470
|
+
content: !1
|
|
471
|
+
})), n.setOriginalData(h), n.setItemData(h);
|
|
472
|
+
}, P = k(null), U = (c, t) => {
|
|
473
|
+
if (!t) {
|
|
474
|
+
n.setActiveItemIndex(c);
|
|
475
|
+
return;
|
|
476
|
+
}
|
|
477
|
+
n.setActiveItemIndex(-1);
|
|
478
|
+
}, A = (c) => {
|
|
479
|
+
ua.confirm("是否确认要删除", "", {
|
|
480
|
+
confirmButtonText: "确认",
|
|
481
|
+
cancelButtonText: "取消",
|
|
482
|
+
type: "warning"
|
|
483
|
+
}).then(
|
|
484
|
+
() => {
|
|
485
|
+
const t = K(i.value), g = t == null ? void 0 : t.filter((v, h) => h !== c);
|
|
486
|
+
n.setOriginalData(g), n.setItemData(g), n.setActiveItemIndex(-1), pa({
|
|
487
|
+
type: "success",
|
|
488
|
+
message: "删除成功"
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
).catch(() => {
|
|
492
|
+
});
|
|
493
|
+
};
|
|
494
|
+
return (c, t) => {
|
|
495
|
+
var z;
|
|
496
|
+
const g = te("svg-icon"), v = te("el-tab-pane"), h = te("el-card"), V = te("el-tabs");
|
|
497
|
+
return p(), M("div", Ra, [
|
|
498
|
+
t[10] || (t[10] = w("div", { class: "fill-operate" }, "操作栏", -1)),
|
|
499
|
+
w("div", La, [
|
|
500
|
+
(p(), j(le(B(H.value + "style")), {
|
|
501
|
+
target: "overall",
|
|
502
|
+
optionItems: _(Xe),
|
|
503
|
+
compType: H.value,
|
|
504
|
+
comp: (z = _(N)) == null ? void 0 : z[0],
|
|
505
|
+
onChange: _(Qe)
|
|
506
|
+
}, null, 40, ["optionItems", "compType", "comp", "onChange"]))
|
|
507
|
+
]),
|
|
508
|
+
w("div", Ma, [
|
|
509
|
+
R(ca, {
|
|
510
|
+
class: "collapse-content",
|
|
511
|
+
collapseContents: _(N),
|
|
512
|
+
accordion: !0,
|
|
513
|
+
onChange: _(ka),
|
|
514
|
+
ref_key: "ssCollapseRef",
|
|
515
|
+
ref: P
|
|
516
|
+
}, {
|
|
517
|
+
title: L(({ item: u, index: y, isActive: d }) => {
|
|
518
|
+
var Y, E, G, l, o, m, I, b, Q, se;
|
|
519
|
+
return [
|
|
520
|
+
w("div", {
|
|
521
|
+
class: "collapse-title-content",
|
|
522
|
+
onClick: (x) => U(y, d)
|
|
523
|
+
}, [
|
|
524
|
+
w("div", Ha, [
|
|
525
|
+
(E = (Y = f.value) == null ? void 0 : Y.find((x) => x.id === y)) != null && E.content ? q("", !0) : (p(), M("div", {
|
|
526
|
+
key: 0,
|
|
527
|
+
class: "collapse-title",
|
|
528
|
+
style: ta({ marginRight: u.name && u.name !== "" ? "8px" : "0px" })
|
|
529
|
+
}, re(u.name), 5)),
|
|
530
|
+
(l = (G = f.value) == null ? void 0 : G.find((x) => x.id === y)) != null && l.content ? (p(), M("div", Ba, [
|
|
531
|
+
R(da, {
|
|
532
|
+
modelValue: u.name,
|
|
533
|
+
"onUpdate:modelValue": (x) => u.name = x,
|
|
534
|
+
onClick: t[0] || (t[0] = ve(() => {
|
|
535
|
+
}, ["stop"]))
|
|
536
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
537
|
+
])) : q("", !0),
|
|
538
|
+
(m = (o = f.value) == null ? void 0 : o.find((x) => x.id === y)) != null && m.content ? q("", !0) : (p(), M("div", {
|
|
539
|
+
key: 2,
|
|
540
|
+
onClick: ve((x) => O(y), ["stop"]),
|
|
541
|
+
class: "icon-content"
|
|
542
|
+
}, [
|
|
543
|
+
R(g, {
|
|
544
|
+
name: "Edit",
|
|
545
|
+
style: { width: "13px", height: "13px" }
|
|
546
|
+
})
|
|
547
|
+
], 8, Ea))
|
|
548
|
+
]),
|
|
549
|
+
w("div", Oa, [
|
|
550
|
+
(b = (I = f.value) == null ? void 0 : I.find((x) => x.id === y)) != null && b.content ? (p(), M("div", Fa, [
|
|
551
|
+
R(g, {
|
|
552
|
+
name: "Cancel",
|
|
553
|
+
style: { width: "16px", height: "16px" },
|
|
554
|
+
class: "icon-content",
|
|
555
|
+
onClick: ve((x) => F(y), ["stop"])
|
|
556
|
+
}, null, 8, ["onClick"]),
|
|
557
|
+
R(g, {
|
|
558
|
+
name: "Save",
|
|
559
|
+
onClick: ve((x) => D(y, u.name), ["stop"]),
|
|
560
|
+
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
561
|
+
class: "icon-content"
|
|
562
|
+
}, null, 8, ["onClick"])
|
|
563
|
+
])) : q("", !0),
|
|
564
|
+
(se = (Q = f.value) == null ? void 0 : Q.find((x) => x.id === y)) != null && se.content ? q("", !0) : (p(), M("div", {
|
|
565
|
+
key: 1,
|
|
566
|
+
onClick: ve((x) => A(y), ["stop"]),
|
|
567
|
+
class: "icon-content"
|
|
568
|
+
}, [
|
|
569
|
+
R(g, {
|
|
570
|
+
name: "Delete",
|
|
571
|
+
style: { width: "16px", height: "16px" }
|
|
572
|
+
})
|
|
573
|
+
], 8, Aa))
|
|
574
|
+
])
|
|
575
|
+
], 8, $a)
|
|
576
|
+
];
|
|
577
|
+
}),
|
|
578
|
+
content: L(({ item: u, index: y }) => [
|
|
579
|
+
R(V, {
|
|
580
|
+
modelValue: _(_e),
|
|
581
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => Ye(_e) ? _e.value = d : null),
|
|
582
|
+
class: "config-tabs",
|
|
583
|
+
onTabClick: U
|
|
584
|
+
}, {
|
|
585
|
+
default: L(() => [
|
|
586
|
+
R(v, {
|
|
587
|
+
label: "设置",
|
|
588
|
+
name: "data"
|
|
589
|
+
}, {
|
|
590
|
+
label: L(() => [
|
|
591
|
+
w("span", Va, [
|
|
592
|
+
R(g, {
|
|
593
|
+
name: "LowCodeSetting",
|
|
594
|
+
style: { width: "15px", height: "15px", "margin-right": "5px" }
|
|
595
|
+
}),
|
|
596
|
+
t[3] || (t[3] = de("设置", -1))
|
|
597
|
+
])
|
|
598
|
+
]),
|
|
599
|
+
default: L(() => {
|
|
600
|
+
var d, Y;
|
|
601
|
+
return [
|
|
602
|
+
w("div", {
|
|
603
|
+
class: "comp-child",
|
|
604
|
+
onClick: (E) => U(y)
|
|
605
|
+
}, [
|
|
606
|
+
(p(), j(le(B(u.comp + "Operate")), {
|
|
607
|
+
itemContents: u == null ? void 0 : u.compData,
|
|
608
|
+
originalItemContents: (Y = (d = T.value) == null ? void 0 : d.find((E, G) => G === y)) == null ? void 0 : Y.compData,
|
|
609
|
+
itemChildData: u == null ? void 0 : u.itemChildData,
|
|
610
|
+
onChange: (E, G) => ee(E, u, y, G)
|
|
611
|
+
}, null, 40, ["itemContents", "originalItemContents", "itemChildData", "onChange"]))
|
|
612
|
+
], 8, Na),
|
|
613
|
+
w("div", Ua, [
|
|
614
|
+
t[5] || (t[5] = w("div", { class: "operate-title" }, [
|
|
615
|
+
w("div", null, re("显隐控制"))
|
|
616
|
+
], -1)),
|
|
617
|
+
w("div", za, [
|
|
618
|
+
t[4] || (t[4] = w("div", { class: "operate-center-content" }, re("是否显示"), -1)),
|
|
619
|
+
R(ia, {
|
|
620
|
+
value: $.value.find((E) => E.id === y).isShow,
|
|
621
|
+
"onUpdate:value": (E) => $.value.find((G) => G.id === y).isShow = E,
|
|
622
|
+
onClick: (E) => Z(u)
|
|
623
|
+
}, null, 8, ["value", "onUpdate:value", "onClick"])
|
|
624
|
+
])
|
|
625
|
+
])
|
|
626
|
+
];
|
|
627
|
+
}),
|
|
628
|
+
_: 2
|
|
629
|
+
}, 1024),
|
|
630
|
+
R(v, {
|
|
631
|
+
label: "样式",
|
|
632
|
+
name: "style"
|
|
633
|
+
}, {
|
|
634
|
+
label: L(() => [
|
|
635
|
+
w("span", Ga, [
|
|
636
|
+
R(g, {
|
|
637
|
+
name: "LowCodeStyle",
|
|
638
|
+
style: { width: "15px", height: "15px", "margin-right": "5px" }
|
|
639
|
+
}),
|
|
640
|
+
t[6] || (t[6] = de("样式", -1))
|
|
641
|
+
])
|
|
642
|
+
]),
|
|
643
|
+
default: L(() => [
|
|
644
|
+
(p(), j(le(B((u == null ? void 0 : u.comp) + "style")), {
|
|
645
|
+
target: "alone",
|
|
646
|
+
compType: u == null ? void 0 : u.comp,
|
|
647
|
+
comp: u,
|
|
648
|
+
optionItems: _(Xe),
|
|
649
|
+
onChange: (d) => _(Qe)(d, u)
|
|
650
|
+
}, null, 40, ["compType", "comp", "optionItems", "onChange"]))
|
|
651
|
+
]),
|
|
652
|
+
_: 2
|
|
653
|
+
}, 1024),
|
|
654
|
+
R(v, {
|
|
655
|
+
label: "交互",
|
|
656
|
+
name: "event"
|
|
657
|
+
}, {
|
|
658
|
+
label: L(() => [
|
|
659
|
+
w("span", Ka, [
|
|
660
|
+
R(g, {
|
|
661
|
+
name: "LowCodeEvent",
|
|
662
|
+
style: { width: "15px", height: "15px", "margin-right": "5px" }
|
|
663
|
+
}),
|
|
664
|
+
t[7] || (t[7] = de("交互", -1))
|
|
665
|
+
])
|
|
666
|
+
]),
|
|
667
|
+
default: L(() => [
|
|
668
|
+
t[8] || (t[8] = de(" 交互 ", -1))
|
|
669
|
+
]),
|
|
670
|
+
_: 1
|
|
671
|
+
}),
|
|
672
|
+
R(v, {
|
|
673
|
+
label: "扩展",
|
|
674
|
+
name: "extend"
|
|
675
|
+
}, {
|
|
676
|
+
label: L(() => [
|
|
677
|
+
w("span", ja, [
|
|
678
|
+
R(g, {
|
|
679
|
+
name: "LowCodeExtend",
|
|
680
|
+
style: { width: "15px", height: "15px", "margin-right": "5px" }
|
|
681
|
+
}),
|
|
682
|
+
t[9] || (t[9] = de("扩展", -1))
|
|
683
|
+
])
|
|
684
|
+
]),
|
|
685
|
+
default: L(() => [
|
|
686
|
+
R(V, {
|
|
687
|
+
"tab-position": "left",
|
|
688
|
+
modelValue: _(oe),
|
|
689
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => Ye(oe) ? oe.value = d : null),
|
|
690
|
+
class: "extend-tabs",
|
|
691
|
+
onTabChange: _(wa)
|
|
692
|
+
}, {
|
|
693
|
+
default: L(() => [
|
|
694
|
+
(p(!0), M(ue, null, ce(_(ya), (d, Y) => (p(), j(v, {
|
|
695
|
+
key: d == null ? void 0 : d.name,
|
|
696
|
+
label: d == null ? void 0 : d.label,
|
|
697
|
+
name: d == null ? void 0 : d.name
|
|
698
|
+
}, {
|
|
699
|
+
default: L(() => [
|
|
700
|
+
R(h, null, {
|
|
701
|
+
default: L(() => {
|
|
702
|
+
var E, G, l;
|
|
703
|
+
return [
|
|
704
|
+
(p(), j(le(B((E = d == null ? void 0 : d.component) == null ? void 0 : E.comp)), {
|
|
705
|
+
compItem: d == null ? void 0 : d.component,
|
|
706
|
+
itemData: (G = d == null ? void 0 : d.component) == null ? void 0 : G.compData,
|
|
707
|
+
childItemData: (l = d == null ? void 0 : d.component) == null ? void 0 : l.itemChildData,
|
|
708
|
+
key: Y,
|
|
709
|
+
level: 1,
|
|
710
|
+
onChange: _(Ze),
|
|
711
|
+
onOnButtonClick: _(Ia)
|
|
712
|
+
}, null, 40, ["compItem", "itemData", "childItemData", "onChange", "onOnButtonClick"]))
|
|
713
|
+
];
|
|
714
|
+
}),
|
|
715
|
+
_: 2
|
|
716
|
+
}, 1024)
|
|
717
|
+
]),
|
|
718
|
+
_: 2
|
|
719
|
+
}, 1032, ["label", "name"]))), 128))
|
|
720
|
+
]),
|
|
721
|
+
_: 1
|
|
722
|
+
}, 8, ["modelValue", "onTabChange"])
|
|
723
|
+
]),
|
|
724
|
+
_: 1
|
|
725
|
+
})
|
|
726
|
+
]),
|
|
727
|
+
_: 2
|
|
728
|
+
}, 1032, ["modelValue"])
|
|
729
|
+
]),
|
|
730
|
+
_: 1
|
|
731
|
+
}, 8, ["collapseContents", "onChange"])
|
|
732
|
+
]),
|
|
733
|
+
R(va, {
|
|
734
|
+
class: "task-dialog-wrapper",
|
|
735
|
+
visible: _(W).show,
|
|
736
|
+
title: _(W).title,
|
|
737
|
+
dialogWidth: _(W).width,
|
|
738
|
+
onBeforeDestroy: _(Da)
|
|
739
|
+
}, {
|
|
740
|
+
default: L(() => {
|
|
741
|
+
var u, y;
|
|
742
|
+
return [
|
|
743
|
+
w("div", Pa, [
|
|
744
|
+
_(X) ? (p(), j(le(B(((u = _(X)) == null ? void 0 : u.comp) + "extend")), {
|
|
745
|
+
key: 0,
|
|
746
|
+
target: "alone",
|
|
747
|
+
comp: _(X),
|
|
748
|
+
extendItem: _(fe),
|
|
749
|
+
compType: (y = _(X)) == null ? void 0 : y.comp,
|
|
750
|
+
activeTabName: _(oe),
|
|
751
|
+
relatedData: _(J),
|
|
752
|
+
onChange: _(Ze),
|
|
753
|
+
onOnButtonClick: _(xa)
|
|
754
|
+
}, null, 40, ["comp", "extendItem", "compType", "activeTabName", "relatedData", "onChange", "onOnButtonClick"])) : q("", !0)
|
|
755
|
+
])
|
|
756
|
+
];
|
|
757
|
+
}),
|
|
758
|
+
_: 1
|
|
759
|
+
}, 8, ["visible", "title", "dialogWidth", "onBeforeDestroy"])
|
|
760
|
+
]);
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
}, ul = /* @__PURE__ */ we(Wa, [["__scopeId", "data-v-2ea026b9"]]), Ya = { style: { display: "flex" } }, qa = { style: { display: "flex" } }, Ja = { key: 2 }, Xa = {
|
|
764
|
+
key: 4,
|
|
765
|
+
style: { "margin-top": "30px" }
|
|
766
|
+
}, Qa = {
|
|
767
|
+
__name: "index",
|
|
768
|
+
setup(a) {
|
|
769
|
+
const n = Ce(he), { itemData: i, activeItemIndex: s, pageMapState: C } = ie(n), r = k([]), T = k(0), f = k(""), $ = ke(he), { activeMenuPath: H } = ie($), O = k(null), F = k(null), D = k(24), Z = k(2), B = k([]), ee = k([]), P = ae(() => {
|
|
770
|
+
var l, o, m;
|
|
771
|
+
return {
|
|
772
|
+
default: !c.value && !A.value && U.value === "vertical" && ((l = r.value) == null ? void 0 : l.length) > 0,
|
|
773
|
+
grid: c.value && !A.value && U.value === "vertical",
|
|
774
|
+
tab: U.value === "horizontal" && ((o = r.value) == null ? void 0 : o.length) > 0,
|
|
775
|
+
step: A.value && U.value === "vertical" && ((m = r.value) == null ? void 0 : m.length) > 0
|
|
776
|
+
};
|
|
777
|
+
}), U = ae(() => {
|
|
778
|
+
var l, o, m, I;
|
|
779
|
+
return ((l = r.value) == null ? void 0 : l.length) > 0 && ((o = r.value) != null && o.every((b) => b == null ? void 0 : b.layout)) ? (I = (m = r.value) == null ? void 0 : m[0]) == null ? void 0 : I.layout : "vertical";
|
|
780
|
+
}), A = ae(() => {
|
|
781
|
+
var l, o;
|
|
782
|
+
return (o = (l = r.value) == null ? void 0 : l[0]) == null ? void 0 : o.isStepLayout;
|
|
783
|
+
}), c = ae(() => {
|
|
784
|
+
var l, o;
|
|
785
|
+
return (o = (l = r.value) == null ? void 0 : l[0]) == null ? void 0 : o.isGridLayout;
|
|
786
|
+
}), t = k(null), g = ae(() => {
|
|
787
|
+
var l, o, m;
|
|
788
|
+
return ((l = r.value) == null ? void 0 : l.length) > 0 && U.value === "horizontal" ? (m = (o = r.value) == null ? void 0 : o[0]) == null ? void 0 : m.name : "";
|
|
789
|
+
}), v = (l, o) => {
|
|
790
|
+
T.value = o, t.value = l;
|
|
791
|
+
}, h = (l) => {
|
|
792
|
+
var b;
|
|
793
|
+
if (!l) return;
|
|
794
|
+
let o = null;
|
|
795
|
+
const m = K(r.value);
|
|
796
|
+
if (s.value >= 0 && (o = m == null ? void 0 : m[s.value]), o && o.comp === "Layout") {
|
|
797
|
+
const { compData: Q = [] } = o;
|
|
798
|
+
((b = Q == null ? void 0 : Q.find((x) => {
|
|
799
|
+
const { key: me } = x;
|
|
800
|
+
return me === "children";
|
|
801
|
+
})) == null ? void 0 : b.contents).push({
|
|
802
|
+
comp: l.comp,
|
|
803
|
+
name: l.name,
|
|
804
|
+
compData: []
|
|
805
|
+
}), n.setItemData(m);
|
|
806
|
+
return;
|
|
807
|
+
}
|
|
808
|
+
const I = K(r.value);
|
|
809
|
+
I.push({
|
|
810
|
+
comp: l.comp,
|
|
811
|
+
name: l.name,
|
|
812
|
+
compData: []
|
|
813
|
+
}), n.setItemData(I), E(I);
|
|
814
|
+
}, V = (l) => {
|
|
815
|
+
l.preventDefault(), l.dataTransfer.dropEffect = "copy";
|
|
816
|
+
}, z = async (l) => {
|
|
817
|
+
try {
|
|
818
|
+
const o = l.dataTransfer.getData("application/json");
|
|
819
|
+
if (!o) return;
|
|
820
|
+
const m = JSON.parse(o), I = await u(l), b = y(m, I);
|
|
821
|
+
await na(), d(b), h(JSON.parse(o || "")), console.log("drop"), Y();
|
|
822
|
+
} catch (o) {
|
|
823
|
+
console.error("Drop error:", o), Y();
|
|
824
|
+
}
|
|
825
|
+
}, u = async (l) => O.value ? new Promise((o) => {
|
|
826
|
+
requestAnimationFrame(() => {
|
|
827
|
+
const m = O.value.getBoundingClientRect(), I = l.clientX - m.left, b = l.clientY, Q = Math.floor(I / (m.width / D.value)), se = Math.floor(b / (m.width / D.value));
|
|
828
|
+
o({
|
|
829
|
+
x: Math.max(0, Q),
|
|
830
|
+
y: Math.max(0, se),
|
|
831
|
+
w: D.value,
|
|
832
|
+
h: Z.value
|
|
833
|
+
});
|
|
834
|
+
});
|
|
835
|
+
}) : { x: 0, y: 0 }, y = (l, o) => {
|
|
836
|
+
var I, b;
|
|
837
|
+
const m = `item_${Date.now()}_${(b = (I = Math.random()) == null ? void 0 : I.toString(36)) == null ? void 0 : b.substring(2, 9)}`;
|
|
838
|
+
return {
|
|
839
|
+
i: m,
|
|
840
|
+
id: m,
|
|
841
|
+
x: o.x,
|
|
842
|
+
y: o.y,
|
|
843
|
+
w: o.w,
|
|
844
|
+
h: o.h,
|
|
845
|
+
component: l,
|
|
846
|
+
minW: 2,
|
|
847
|
+
minH: 2
|
|
848
|
+
};
|
|
849
|
+
}, d = (l) => {
|
|
850
|
+
E([...B.value, l], !0);
|
|
851
|
+
}, Y = () => {
|
|
852
|
+
document.querySelectorAll(".dragging").forEach((l) => {
|
|
853
|
+
l.classList.remove("dragging");
|
|
854
|
+
});
|
|
855
|
+
}, E = (l, o) => {
|
|
856
|
+
B.value = o ? l : ra(l), n.setItemGridData({
|
|
857
|
+
pageKey: H.value,
|
|
858
|
+
results: B.value
|
|
859
|
+
}), $.setContentLoading(!1);
|
|
860
|
+
};
|
|
861
|
+
be(() => P.value.step, (l) => {
|
|
862
|
+
var o;
|
|
863
|
+
l && v((o = r.value) == null ? void 0 : o[0], 1);
|
|
864
|
+
}, { immediate: !0 }), be(() => P.value.grid, (l) => {
|
|
865
|
+
var o, m;
|
|
866
|
+
!l && ((o = B.value) == null ? void 0 : o.length) > 0 && n.setItemGridData({
|
|
867
|
+
pageKey: H.value,
|
|
868
|
+
results: (m = B.value) == null ? void 0 : m.map((I) => I == null ? void 0 : I.id),
|
|
869
|
+
isDelete: !0
|
|
870
|
+
});
|
|
871
|
+
}, { immediate: !0 }), be(() => i.value, (l) => {
|
|
872
|
+
var o, m, I;
|
|
873
|
+
$.setContentLoading(!0), r.value = !l || (l == null ? void 0 : l.length) === 0 ? [] : (o = K(l)) == null ? void 0 : o.filter((b) => !(b != null && b.affix) || (b == null ? void 0 : b.affix) === "default"), ee.value = !l || (l == null ? void 0 : l.length) === 0 ? [] : (m = K(l)) == null ? void 0 : m.filter((b) => (b == null ? void 0 : b.affix) && (b == null ? void 0 : b.affix) !== "default"), (I = P.value) != null && I.grid ? E(r.value) : $.setContentLoading(!1);
|
|
874
|
+
}, { deep: !0, immediate: !0 });
|
|
875
|
+
const G = (l) => aa(l);
|
|
876
|
+
return (l, o) => {
|
|
877
|
+
var se, x, me, Te, xe, Se, Re, Le, Me, $e, He, Be;
|
|
878
|
+
const m = te("el-tab-pane"), I = te("el-tabs"), b = te("el-step"), Q = te("el-steps");
|
|
879
|
+
return p(), M("div", {
|
|
880
|
+
ref_key: "containerRef",
|
|
881
|
+
ref: O,
|
|
882
|
+
class: "low-code-wrapper",
|
|
883
|
+
onDragover: V,
|
|
884
|
+
onDrop: z
|
|
885
|
+
}, [
|
|
886
|
+
(se = P.value) != null && se.default ? (p(!0), M(ue, { key: 0 }, ce(r.value, (e, S) => (p(), M("div", {
|
|
887
|
+
class: "item-content",
|
|
888
|
+
key: S
|
|
889
|
+
}, [
|
|
890
|
+
w("div", Ya, re(e.name), 1),
|
|
891
|
+
(p(), j(le(G(e.comp)), {
|
|
892
|
+
itemData: e == null ? void 0 : e.compData,
|
|
893
|
+
childItemData: e == null ? void 0 : e.itemChildData,
|
|
894
|
+
key: S,
|
|
895
|
+
config: {
|
|
896
|
+
showIndex: e == null ? void 0 : e.showIndex,
|
|
897
|
+
allowMove: e == null ? void 0 : e.allowMove,
|
|
898
|
+
viewport: e == null ? void 0 : e.viewport
|
|
899
|
+
},
|
|
900
|
+
pageLayout: U.value,
|
|
901
|
+
parentTableId: e == null ? void 0 : e.tableId,
|
|
902
|
+
children: e == null ? void 0 : e.children,
|
|
903
|
+
level: 1
|
|
904
|
+
}, null, 8, ["itemData", "childItemData", "config", "pageLayout", "parentTableId", "children"]))
|
|
905
|
+
]))), 128)) : q("", !0),
|
|
906
|
+
(x = P.value) != null && x.grid ? (p(), j(_(oa), {
|
|
907
|
+
key: 1,
|
|
908
|
+
ref_key: "gridLayoutRef",
|
|
909
|
+
ref: F,
|
|
910
|
+
layout: B.value,
|
|
911
|
+
"onUpdate:layout": o[0] || (o[0] = (e) => B.value = e),
|
|
912
|
+
"prevent-collision": !1,
|
|
913
|
+
"is-draggable": !0,
|
|
914
|
+
"is-resizable": !0,
|
|
915
|
+
responsive: !1,
|
|
916
|
+
"col-num": 24,
|
|
917
|
+
margin: [8, 16]
|
|
918
|
+
}, {
|
|
919
|
+
default: L(() => [
|
|
920
|
+
(p(!0), M(ue, null, ce(B.value, (e, S) => {
|
|
921
|
+
var De, Ee;
|
|
922
|
+
return p(), j(_(sa), {
|
|
923
|
+
key: e.i,
|
|
924
|
+
x: e.x,
|
|
925
|
+
y: e.y,
|
|
926
|
+
"min-h": e.minH,
|
|
927
|
+
"max-h": e.maxH,
|
|
928
|
+
"min-w": e.minW,
|
|
929
|
+
w: e.w,
|
|
930
|
+
h: _(Je)((De = r.value[S]) == null ? void 0 : De.comp) ? 0 : e.h,
|
|
931
|
+
i: e.i,
|
|
932
|
+
class: qe(_(Je)((Ee = r.value[S]) == null ? void 0 : Ee.comp) ? "grid-method-button" : "")
|
|
933
|
+
}, {
|
|
934
|
+
default: L(() => {
|
|
935
|
+
var Oe, Fe, Ae, Ve, Ne, Ue, ze, Ge, Ke, je, Pe, We;
|
|
936
|
+
return [
|
|
937
|
+
w("div", {
|
|
938
|
+
class: qe((Fe = ee.value) != null && Fe.includes((Oe = e == null ? void 0 : e.component) == null ? void 0 : Oe.id) ? "comp-wrapper affix-content" : "comp-wrapper")
|
|
939
|
+
}, [
|
|
940
|
+
w("div", qa, re((Ae = r.value[S]) == null ? void 0 : Ae.name), 1),
|
|
941
|
+
(p(), j(le(G((Ve = r.value[S]) == null ? void 0 : Ve.comp)), {
|
|
942
|
+
pageLayout: U.value,
|
|
943
|
+
itemData: (Ne = r.value[S]) == null ? void 0 : Ne.compData,
|
|
944
|
+
childItemData: (Ue = r.value[S]) == null ? void 0 : Ue.itemChildData,
|
|
945
|
+
index: ((ze = r.value[S]) == null ? void 0 : ze.id) ?? S,
|
|
946
|
+
parentTableId: (Ge = r.value[S]) == null ? void 0 : Ge.tableId,
|
|
947
|
+
children: (Ke = r.value[S]) == null ? void 0 : Ke.children,
|
|
948
|
+
level: 1,
|
|
949
|
+
config: {
|
|
950
|
+
showIndex: (je = r.value[S]) == null ? void 0 : je.showIndex,
|
|
951
|
+
allowMove: (Pe = r.value[S]) == null ? void 0 : Pe.allowMove,
|
|
952
|
+
viewport: (We = r.value[S]) == null ? void 0 : We.viewport
|
|
953
|
+
}
|
|
954
|
+
}, null, 8, ["pageLayout", "itemData", "childItemData", "index", "parentTableId", "children", "config"]))
|
|
955
|
+
], 2)
|
|
956
|
+
];
|
|
957
|
+
}),
|
|
958
|
+
_: 2
|
|
959
|
+
}, 1032, ["x", "y", "min-h", "max-h", "min-w", "w", "h", "i", "class"]);
|
|
960
|
+
}), 128))
|
|
961
|
+
]),
|
|
962
|
+
_: 1
|
|
963
|
+
}, 8, ["layout"])) : q("", !0),
|
|
964
|
+
(me = P.value) != null && me.tab ? (p(), M("div", Ja, [
|
|
965
|
+
R(I, {
|
|
966
|
+
modelValue: g.value,
|
|
967
|
+
"onUpdate:modelValue": o[1] || (o[1] = (e) => g.value = e),
|
|
968
|
+
type: "card",
|
|
969
|
+
class: "display-tabs"
|
|
970
|
+
}, {
|
|
971
|
+
default: L(() => [
|
|
972
|
+
(p(!0), M(ue, null, ce(r.value, (e, S) => (p(), j(m, {
|
|
973
|
+
key: e.i,
|
|
974
|
+
label: e == null ? void 0 : e.name,
|
|
975
|
+
name: e == null ? void 0 : e.name
|
|
976
|
+
}, {
|
|
977
|
+
default: L(() => [
|
|
978
|
+
(p(), j(le(G(e == null ? void 0 : e.comp)), {
|
|
979
|
+
pageLayout: U.value,
|
|
980
|
+
itemData: e == null ? void 0 : e.compData,
|
|
981
|
+
childItemData: e == null ? void 0 : e.itemChildData,
|
|
982
|
+
key: S,
|
|
983
|
+
config: {
|
|
984
|
+
showIndex: e == null ? void 0 : e.showIndex,
|
|
985
|
+
allowMove: e == null ? void 0 : e.allowMove,
|
|
986
|
+
viewport: e == null ? void 0 : e.viewport
|
|
987
|
+
}
|
|
988
|
+
}, null, 8, ["pageLayout", "itemData", "childItemData", "config"]))
|
|
989
|
+
]),
|
|
990
|
+
_: 2
|
|
991
|
+
}, 1032, ["label", "name"]))), 128))
|
|
992
|
+
]),
|
|
993
|
+
_: 1
|
|
994
|
+
}, 8, ["modelValue"])
|
|
995
|
+
])) : q("", !0),
|
|
996
|
+
(Te = P.value) != null && Te.step ? (p(), j(Q, {
|
|
997
|
+
key: 3,
|
|
998
|
+
direction: "horizontal",
|
|
999
|
+
active: T.value,
|
|
1000
|
+
"align-center": !0,
|
|
1001
|
+
class: "display-steps"
|
|
1002
|
+
}, {
|
|
1003
|
+
default: L(() => [
|
|
1004
|
+
(p(!0), M(ue, null, ce(r.value, (e, S) => (p(), j(b, {
|
|
1005
|
+
key: S,
|
|
1006
|
+
class: "step-item",
|
|
1007
|
+
status: f.value,
|
|
1008
|
+
onClick: (De) => v(e, S + 1)
|
|
1009
|
+
}, {
|
|
1010
|
+
title: L(() => [
|
|
1011
|
+
de(re(e == null ? void 0 : e.name), 1)
|
|
1012
|
+
]),
|
|
1013
|
+
_: 2
|
|
1014
|
+
}, 1032, ["status", "onClick"]))), 128))
|
|
1015
|
+
]),
|
|
1016
|
+
_: 1
|
|
1017
|
+
}, 8, ["active"])) : q("", !0),
|
|
1018
|
+
(xe = P.value) != null && xe.step ? (p(), M("div", Xa, [
|
|
1019
|
+
(p(), j(le(G((Se = t.value) == null ? void 0 : Se.comp)), {
|
|
1020
|
+
pageLayout: U.value,
|
|
1021
|
+
itemData: (Re = t.value) == null ? void 0 : Re.compData,
|
|
1022
|
+
childItemData: (Le = t.value) == null ? void 0 : Le.itemChildData,
|
|
1023
|
+
key: (Me = t.value) == null ? void 0 : Me.id,
|
|
1024
|
+
config: {
|
|
1025
|
+
showIndex: ($e = t.value) == null ? void 0 : $e.showIndex,
|
|
1026
|
+
allowMove: (He = t.value) == null ? void 0 : He.allowMove,
|
|
1027
|
+
viewport: (Be = t.value) == null ? void 0 : Be.viewport
|
|
1028
|
+
}
|
|
1029
|
+
}, null, 8, ["pageLayout", "itemData", "childItemData", "config"]))
|
|
1030
|
+
])) : q("", !0)
|
|
1031
|
+
], 544);
|
|
1032
|
+
};
|
|
1033
|
+
}
|
|
1034
|
+
}, cl = /* @__PURE__ */ we(Qa, [["__scopeId", "data-v-b160c09f"]]), pe = k(0), il = (a) => a.reduce((i, s) => {
|
|
1035
|
+
var r, T;
|
|
1036
|
+
const C = Object.values(i);
|
|
1037
|
+
return (((r = Object.keys(i)) == null ? void 0 : r.length) === 0 || C[C.length - 1].length >= (s == null ? void 0 : s.width)) && (i[pe.value] = [], pe.value++), i[pe.value - 1].push(s), ((T = Object.keys(i)) == null ? void 0 : T.length) === (s == null ? void 0 : s.width) && (i[pe.value] = [], pe.value++), i;
|
|
1038
|
+
}, {});
|
|
1039
|
+
export {
|
|
1040
|
+
cl as a,
|
|
1041
|
+
ul as b,
|
|
1042
|
+
il as c,
|
|
1043
|
+
rl as m
|
|
1044
|
+
};
|