ss-component-new 1.1.113 → 1.1.115
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/{array-DyxKeexo.js → array-B1nKYchL.js} +269 -266
- package/dist/array-Bv_j-DQ6.cjs +7 -0
- package/dist/cloneDeep-BkHxCZQ6.cjs +1 -0
- package/dist/{cloneDeep-BfzU0pBe.js → cloneDeep-DDG2sYfV.js} +2 -8
- package/dist/{index-BTt24r3U.cjs → index-B2YxsOFS.cjs} +1 -1
- package/dist/{index-CVBCwf2F.cjs → index-B9CeiT-K.cjs} +1 -1
- package/dist/{index-COPrDtid.js → index-BDQh7_bN.js} +1 -1
- package/dist/index-BKH3emIo.js +400 -0
- package/dist/{index-CbphQpiC.cjs → index-BOMVVmWM.cjs} +1 -1
- package/dist/index-BZEbgud2.cjs +6 -0
- package/dist/index-BeUperzd.cjs +1 -0
- package/dist/index-BgZXex98.js +199 -0
- package/dist/{index-BH3F6_ql.js → index-BrXeR-w4.js} +1025 -1121
- package/dist/{index-DWiZqfBA.js → index-Bx4Vzo3K.js} +3 -3
- package/dist/{index-5dGTUAu_.cjs → index-ByH4hihL.cjs} +1 -1
- package/dist/{index-CyQkKXnK.js → index-C1474J4s.js} +2 -2
- package/dist/{index-DVEWSdUo.cjs → index-CfR4fhRH.cjs} +1 -1
- package/dist/index-CosMCnZD.js +456 -0
- package/dist/{index-CBHJLZo4.cjs → index-DGEVn6kJ.cjs} +1 -1
- package/dist/index-DHZKgJQ-.cjs +1 -0
- package/dist/{index-b_11tfuG.js → index-DbEFJXIu.js} +4 -4
- package/dist/{index-CdEEK8I0.js → index-DcJXJfJq.js} +68 -69
- package/dist/{index-B3iQoZwc.js → index-DmZPczSP.js} +3 -3
- package/dist/{index-QWm4yJ7u.js → index-FuXHUCO7.js} +2 -2
- package/dist/index-PctLLbfg.cjs +1 -0
- package/dist/{index-DxyREQkR.js → index-RTJn4TlV.js} +5 -5
- package/dist/{index-BpJeYb4X.js → index-RUWVqYLT.js} +1 -1
- package/dist/{index-ChXKNVG8.cjs → index-fstYT4Ji.cjs} +1 -1
- package/dist/{index-EQOXj03f.cjs → index-pKfoDOT3.cjs} +1 -1
- package/dist/{index-CqJa9o1o.cjs → index-tXx4uqsB.cjs} +1 -1
- package/dist/{index-B4WYIlOz.cjs → index-xFolZMqB.cjs} +1 -1
- package/dist/{index-DLartnmY.js → index-x_myaReY.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Bwb6U8rC.js} +22 -22
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CF3B2HoM.cjs} +1 -1
- package/dist/{main-DS-YP1Wn.cjs → main-BhZ-c5nF.cjs} +1 -1
- package/dist/{main-DAPxADXM.js → main-CaHX_enG.js} +4 -4
- package/dist/{request-BrHEv9dn.cjs → request-CNnOyEMG.cjs} +1 -1
- package/dist/{request-BK6KCyS9.js → request-_jH8DsLJ.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
- package/dist/array-BYRvPg11.cjs +0 -7
- package/dist/cloneDeep-WwDap0fL.cjs +0 -1
- package/dist/index-BIRKKGuW.cjs +0 -1
- package/dist/index-BUxzwz5l.cjs +0 -1
- package/dist/index-CumtOgAw.cjs +0 -7
- package/dist/index-DmoecEm1.js +0 -205
- package/dist/index-EIbm0jBZ.js +0 -2707
- package/dist/index-smYHb1Ta.js +0 -456
- package/dist/index-uMboxmjq.cjs +0 -6
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { ref as i, computed as G, reactive as E, nextTick as H, defineComponent as L, onMounted as J, watch as X, resolveComponent as C, createElementBlock as K, openBlock as S, Fragment as $, createElementVNode as b, createVNode as g, withCtx as h, toDisplayString as V, renderList as Y, createBlock as Z, createTextVNode as T } from "vue";
|
|
2
|
+
import { s as ee } from "./index-DmZPczSP.js";
|
|
3
|
+
import { s as te } from "./index-CosMCnZD.js";
|
|
4
|
+
import { s as F, u as U } from "./menu-BIINB-0Y.js";
|
|
5
|
+
import { g as ae, c as oe, u as ne, d as le } from "./index-BDQh7_bN.js";
|
|
6
|
+
import { c as B } from "./cloneDeep-DDG2sYfV.js";
|
|
7
|
+
import { E as z } from "./index-DcJXJfJq.js";
|
|
8
|
+
import { u as se } from "./modelComp-CHWFvhCq.js";
|
|
9
|
+
import { useRoute as ce } from "vue-router";
|
|
10
|
+
import { _ as re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const ue = U(), { activeMenuPath: D } = F(ue), ie = i([
|
|
12
|
+
{
|
|
13
|
+
label: "角色名称",
|
|
14
|
+
value: "",
|
|
15
|
+
name: "a0"
|
|
16
|
+
}
|
|
17
|
+
]), de = i([
|
|
18
|
+
{
|
|
19
|
+
label: "查询"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: "重置"
|
|
23
|
+
}
|
|
24
|
+
]), j = E({
|
|
25
|
+
isFilter: !1,
|
|
26
|
+
filterForm: {}
|
|
27
|
+
}), he = i(!1), ge = (a) => {
|
|
28
|
+
console.log("handleQueryChange", a), j.isFilter = !0, j.filterForm = a;
|
|
29
|
+
}, r = i([
|
|
30
|
+
{
|
|
31
|
+
key: "extraButton",
|
|
32
|
+
contents: [
|
|
33
|
+
{
|
|
34
|
+
label: "新增"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
key: "rowButton",
|
|
40
|
+
contents: [
|
|
41
|
+
{
|
|
42
|
+
label: "授权",
|
|
43
|
+
textColor: "blue"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "编辑"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: "删除",
|
|
50
|
+
textColor: "red"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: "tableIndex",
|
|
56
|
+
contents: []
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: "header",
|
|
60
|
+
contents: [
|
|
61
|
+
{
|
|
62
|
+
label: "角色名称"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: "角色状态",
|
|
66
|
+
formType: "Radio",
|
|
67
|
+
options: [
|
|
68
|
+
{
|
|
69
|
+
label: "启用",
|
|
70
|
+
value: "启用"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: "禁用",
|
|
74
|
+
value: "禁用"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: "角色排序",
|
|
80
|
+
formType: "Number"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: "权限",
|
|
84
|
+
isHidden: !0
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: "操作"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
key: "tableContents"
|
|
93
|
+
// contents: [
|
|
94
|
+
// [
|
|
95
|
+
// "超级管理员",
|
|
96
|
+
// "启动",
|
|
97
|
+
// 1,
|
|
98
|
+
// []
|
|
99
|
+
// // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
100
|
+
// ], [
|
|
101
|
+
// "普通管理员",
|
|
102
|
+
// "启动",
|
|
103
|
+
// 2,
|
|
104
|
+
// []
|
|
105
|
+
// // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
106
|
+
// ],
|
|
107
|
+
// ]
|
|
108
|
+
// contents:undefined
|
|
109
|
+
}
|
|
110
|
+
]), pe = G(() => r.value), fe = (a) => {
|
|
111
|
+
var t;
|
|
112
|
+
r.value = (t = r.value) == null ? void 0 : t.map((e) => e.key === "tableContents" ? {
|
|
113
|
+
...e,
|
|
114
|
+
contents: a.content
|
|
115
|
+
} : e), console.log("handleItemDataChange", a), P(a.singleContent, a.buttonName);
|
|
116
|
+
}, me = (a) => {
|
|
117
|
+
var n, o, s;
|
|
118
|
+
console.log("handleContentChange", a);
|
|
119
|
+
const t = B(a);
|
|
120
|
+
let e = (o = (n = t == null ? void 0 : t.contents) == null ? void 0 : n.find((l) => l.key === "tableContents")) == null ? void 0 : o.contents;
|
|
121
|
+
r.value = (s = r.value) == null ? void 0 : s.map((l) => l.key === "tableContents" ? {
|
|
122
|
+
...l,
|
|
123
|
+
contents: e == null ? void 0 : e.map((c) => Object.keys(c).filter((f) => f.startsWith("a")).map((f) => c[f]))
|
|
124
|
+
} : l), console.log("rawData", r.value);
|
|
125
|
+
}, w = i({}), M = i(), k = async (a, t) => {
|
|
126
|
+
var n, o;
|
|
127
|
+
const e = await a(t);
|
|
128
|
+
if (((n = e == null ? void 0 : e.data) == null ? void 0 : n.code) === 200)
|
|
129
|
+
return e.data.result || ((o = e == null ? void 0 : e.data) == null ? void 0 : o.code) === 200;
|
|
130
|
+
}, Ce = async (a, t) => {
|
|
131
|
+
var e, n, o;
|
|
132
|
+
switch (console.log("clickRowButton", a, t, x.value), w.value = B(t), a) {
|
|
133
|
+
case "授权":
|
|
134
|
+
I.show = !0;
|
|
135
|
+
const s = (o = (n = (e = r.value) == null ? void 0 : e.find((c) => c.key === "header")) == null ? void 0 : n.contents) == null ? void 0 : o.findIndex((c) => c.label === "权限"), l = t["a" + s];
|
|
136
|
+
(l == null ? void 0 : l.length) > 0, console.log("clickRowButton-authorityIndex", r.value, l, M.value);
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}, ke = () => {
|
|
140
|
+
I.show = !1;
|
|
141
|
+
}, y = i(), ye = async (a) => {
|
|
142
|
+
const t = await k(ae, {
|
|
143
|
+
key: {
|
|
144
|
+
compKey: a
|
|
145
|
+
// rowKey: "/role/2"
|
|
146
|
+
}
|
|
147
|
+
}), e = t == null ? void 0 : t.map((n) => {
|
|
148
|
+
var o;
|
|
149
|
+
return {
|
|
150
|
+
id: n.id,
|
|
151
|
+
rowData: (o = n == null ? void 0 : n.value) == null ? void 0 : o.rowData
|
|
152
|
+
};
|
|
153
|
+
});
|
|
154
|
+
return console.log("tempRes", e), e == null ? void 0 : e.map((n) => {
|
|
155
|
+
var o;
|
|
156
|
+
if (Array.isArray(n == null ? void 0 : n.rowData)) {
|
|
157
|
+
let s = { id: n.id };
|
|
158
|
+
return (o = n == null ? void 0 : n.rowData) == null || o.forEach((l, c) => {
|
|
159
|
+
s[`a${c}`] = l;
|
|
160
|
+
}), s;
|
|
161
|
+
} else
|
|
162
|
+
return {
|
|
163
|
+
...n.rowData,
|
|
164
|
+
id: n.id
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
}, P = (a, t) => {
|
|
168
|
+
t === "新增" ? k(oe, {
|
|
169
|
+
key: {
|
|
170
|
+
compKey: D.value,
|
|
171
|
+
rowKey: `${D.value}/${a.a0}`
|
|
172
|
+
},
|
|
173
|
+
value: {
|
|
174
|
+
rowData: a
|
|
175
|
+
}
|
|
176
|
+
}).then((e) => {
|
|
177
|
+
y.value = {
|
|
178
|
+
...a,
|
|
179
|
+
newId: e
|
|
180
|
+
}, t && e && z.success(t + "成功");
|
|
181
|
+
}) : t === "编辑" ? k(ne, {
|
|
182
|
+
key: {
|
|
183
|
+
compKey: D.value,
|
|
184
|
+
rowKey: `${D.value}/${a.a0}`
|
|
185
|
+
},
|
|
186
|
+
value: {
|
|
187
|
+
rowData: a
|
|
188
|
+
}
|
|
189
|
+
}).then((e) => {
|
|
190
|
+
t && e && z.success(t + "成功"), I.show = !1;
|
|
191
|
+
}) : t === "删除" && (console.log(222, a), k(le, {
|
|
192
|
+
id: a.id
|
|
193
|
+
}).then((e) => {
|
|
194
|
+
t && e && z.success(t + "成功");
|
|
195
|
+
}));
|
|
196
|
+
}, N = (a) => {
|
|
197
|
+
let t = [];
|
|
198
|
+
return a == null || a.forEach((e) => {
|
|
199
|
+
e.checkedButtons && (t = t.concat(e.checkedButtons)), e.children && (t = t.concat(N(e.children)));
|
|
200
|
+
}), t;
|
|
201
|
+
}, ve = () => {
|
|
202
|
+
var t, e, n, o;
|
|
203
|
+
(t = M.value) == null || t.getCheckedKeys();
|
|
204
|
+
const a = (o = (n = (e = r.value) == null ? void 0 : e.find((s) => s.key === "header")) == null ? void 0 : n.contents) == null ? void 0 : o.findIndex((s) => s.label === "权限");
|
|
205
|
+
console.log(122, w.value, N(x.value)), y.value = {
|
|
206
|
+
...w.value,
|
|
207
|
+
["a" + a]: N(x.value)
|
|
208
|
+
// ['a' + authorityIndex]: checkedKeys
|
|
209
|
+
}, H(() => {
|
|
210
|
+
var s, l;
|
|
211
|
+
(l = (s = r.value) == null ? void 0 : s.find((c) => c.key === "tableContents")) == null || l.contents, console.log("clickSubmitAuthority", y.value, r.value), P(y.value, "编辑");
|
|
212
|
+
});
|
|
213
|
+
}, I = E({
|
|
214
|
+
show: !1,
|
|
215
|
+
title: "角色授权",
|
|
216
|
+
width: "30%",
|
|
217
|
+
draggable: !0
|
|
218
|
+
}), _e = ({ isPenultimate: a }) => a ? "is-penultimate" : "", x = i([]), be = i([
|
|
219
|
+
{
|
|
220
|
+
path: "资源管理/人员",
|
|
221
|
+
buttons: ["查询", "新增", "编辑", "删除"]
|
|
222
|
+
}
|
|
223
|
+
]), De = (a, t) => {
|
|
224
|
+
var e;
|
|
225
|
+
a.checkedButtons = t ? (e = a.renderButtons) == null ? void 0 : e.map((n) => n.path) : [], console.log("handleNodeCheckChange", a, t);
|
|
226
|
+
};
|
|
227
|
+
i([]);
|
|
228
|
+
const Be = (a, t) => {
|
|
229
|
+
t.checkedButtons = a, console.log("handleNodeBtnChange", t);
|
|
230
|
+
}, q = (a, t) => {
|
|
231
|
+
if (Array.isArray(a))
|
|
232
|
+
return a == null ? void 0 : a.map((e) => e.children && e.children.length > 0 ? {
|
|
233
|
+
...e,
|
|
234
|
+
renderButtons: e.carryData ? t == null ? void 0 : t.map((n) => ({
|
|
235
|
+
title: n,
|
|
236
|
+
path: e.path + "/" + n
|
|
237
|
+
})) : [],
|
|
238
|
+
checkedButtons: [],
|
|
239
|
+
children: q(e.children, t)
|
|
240
|
+
} : {
|
|
241
|
+
...e,
|
|
242
|
+
renderButtons: e.carryData ? t == null ? void 0 : t.map((n) => ({
|
|
243
|
+
title: n,
|
|
244
|
+
path: e.path + "/" + n
|
|
245
|
+
})) : [],
|
|
246
|
+
checkedButtons: []
|
|
247
|
+
});
|
|
248
|
+
}, Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
249
|
+
__proto__: null,
|
|
250
|
+
addButtonsToTree: q,
|
|
251
|
+
authorizeDialog: I,
|
|
252
|
+
buttonValue: de,
|
|
253
|
+
changedRow: y,
|
|
254
|
+
clickRow: w,
|
|
255
|
+
clickRowButton: Ce,
|
|
256
|
+
clickSubmitAuthority: ve,
|
|
257
|
+
closeAuthorizeDialog: ke,
|
|
258
|
+
customNodeClass: _e,
|
|
259
|
+
getPageDataAsync: ye,
|
|
260
|
+
handleContentChange: me,
|
|
261
|
+
handleItemDataChange: fe,
|
|
262
|
+
handleNodeBtnChange: Be,
|
|
263
|
+
handleNodeCheckChange: De,
|
|
264
|
+
handleQueryChange: ge,
|
|
265
|
+
handleSubmitAsync: k,
|
|
266
|
+
isPageDataExist: he,
|
|
267
|
+
menuData: x,
|
|
268
|
+
menusButtons: be,
|
|
269
|
+
pageData: r,
|
|
270
|
+
pageDataFiltered: pe,
|
|
271
|
+
queryFormData: ie,
|
|
272
|
+
submitTableAsyncByVerify: P,
|
|
273
|
+
treeRef: M
|
|
274
|
+
}, Symbol.toStringTag, { value: "Module" })), we = { class: "role-wrapper" }, xe = { class: "role-dialog-header" }, Ie = { class: "node-text" }, Ae = { class: "dialog-footer" }, Re = /* @__PURE__ */ L({
|
|
275
|
+
__name: "index",
|
|
276
|
+
setup(a) {
|
|
277
|
+
const t = U(), { menus: e, activeMenuPath: n } = F(t), o = E({ ...Q }), { treeRef: s } = Q, l = se(), { itemData: c } = F(l), f = ce();
|
|
278
|
+
return J(() => {
|
|
279
|
+
console.log("state", o);
|
|
280
|
+
const p = B(c.value), u = {
|
|
281
|
+
comp: "Group",
|
|
282
|
+
name: f.path,
|
|
283
|
+
pageData: o.pageData
|
|
284
|
+
};
|
|
285
|
+
console.log(123, [...p, u]), l.setItemData([...p, u]), n.value && o.getPageDataAsync(n.value).then((A) => {
|
|
286
|
+
var v;
|
|
287
|
+
o.pageData = (v = o.pageData) == null ? void 0 : v.map((m) => m.key === "tableContents" ? {
|
|
288
|
+
...m,
|
|
289
|
+
contents: A
|
|
290
|
+
} : m), console.log(111, o.pageData);
|
|
291
|
+
});
|
|
292
|
+
}), X(() => e.value, (p) => {
|
|
293
|
+
const u = B(p);
|
|
294
|
+
o.menuData = o.addButtonsToTree(u, ["查询", "新增", "编辑", "删除"]), console.log("menus123", o.menuData, p);
|
|
295
|
+
}, {
|
|
296
|
+
immediate: !0,
|
|
297
|
+
deep: !0
|
|
298
|
+
}), (p, u) => {
|
|
299
|
+
const A = C("el-checkbox"), v = C("el-checkbox-group"), m = C("el-tree"), O = C("el-button"), W = C("el-dialog");
|
|
300
|
+
return S(), K($, null, [
|
|
301
|
+
b("div", we, [
|
|
302
|
+
g(ee, {
|
|
303
|
+
class: "role-header",
|
|
304
|
+
rowContents: o.queryFormData,
|
|
305
|
+
isEnableWrap: !0,
|
|
306
|
+
isEdit: !0,
|
|
307
|
+
onChange: o.handleQueryChange
|
|
308
|
+
}, null, 8, ["rowContents", "onChange"]),
|
|
309
|
+
g(te, {
|
|
310
|
+
class: "role-body",
|
|
311
|
+
itemData: o.pageDataFiltered,
|
|
312
|
+
changedContent: o.changedRow,
|
|
313
|
+
onChange: o.handleItemDataChange,
|
|
314
|
+
onContentChange: o.handleContentChange,
|
|
315
|
+
onOnButtonClick: o.clickRowButton
|
|
316
|
+
}, null, 8, ["itemData", "changedContent", "onChange", "onContentChange", "onOnButtonClick"])
|
|
317
|
+
]),
|
|
318
|
+
g(W, {
|
|
319
|
+
modelValue: o.authorizeDialog.show,
|
|
320
|
+
"onUpdate:modelValue": u[0] || (u[0] = (R) => o.authorizeDialog.show = R),
|
|
321
|
+
width: o.authorizeDialog.width,
|
|
322
|
+
draggable: o.authorizeDialog.draggable,
|
|
323
|
+
"before-close": o.closeAuthorizeDialog,
|
|
324
|
+
class: "role-dialog"
|
|
325
|
+
}, {
|
|
326
|
+
header: h(() => [
|
|
327
|
+
b("div", xe, V(o.authorizeDialog.title), 1)
|
|
328
|
+
]),
|
|
329
|
+
footer: h(() => [
|
|
330
|
+
b("div", Ae, [
|
|
331
|
+
g(O, {
|
|
332
|
+
onClick: o.closeAuthorizeDialog
|
|
333
|
+
}, {
|
|
334
|
+
default: h(() => u[1] || (u[1] = [
|
|
335
|
+
T("取消")
|
|
336
|
+
])),
|
|
337
|
+
_: 1,
|
|
338
|
+
__: [1]
|
|
339
|
+
}, 8, ["onClick"]),
|
|
340
|
+
g(O, {
|
|
341
|
+
type: "primary",
|
|
342
|
+
onClick: o.clickSubmitAuthority
|
|
343
|
+
}, {
|
|
344
|
+
default: h(() => u[2] || (u[2] = [
|
|
345
|
+
T(" 确认 ")
|
|
346
|
+
])),
|
|
347
|
+
_: 1,
|
|
348
|
+
__: [2]
|
|
349
|
+
}, 8, ["onClick"])
|
|
350
|
+
])
|
|
351
|
+
]),
|
|
352
|
+
default: h(() => [
|
|
353
|
+
g(m, {
|
|
354
|
+
class: "role-tree",
|
|
355
|
+
ref_key: "treeRef",
|
|
356
|
+
ref: s,
|
|
357
|
+
data: o.menuData,
|
|
358
|
+
"node-key": "path",
|
|
359
|
+
props: { children: "children", label: "title", path: "path" },
|
|
360
|
+
"highlight-current": "",
|
|
361
|
+
"default-expand-all": "",
|
|
362
|
+
style: { height: "500px", "overflow-y": "auto" },
|
|
363
|
+
"check-on-click-leaf": !1,
|
|
364
|
+
onCheckChange: o.handleNodeCheckChange
|
|
365
|
+
}, {
|
|
366
|
+
default: h(({ node: R, data: _ }) => [
|
|
367
|
+
b("span", Ie, V(R.label), 1),
|
|
368
|
+
g(v, {
|
|
369
|
+
modelValue: _.checkedButtons,
|
|
370
|
+
"onUpdate:modelValue": (d) => _.checkedButtons = d,
|
|
371
|
+
onChange: (d) => o.handleNodeBtnChange(d, _),
|
|
372
|
+
class: "node-buttons"
|
|
373
|
+
}, {
|
|
374
|
+
default: h(() => [
|
|
375
|
+
(S(!0), K($, null, Y(_.renderButtons, (d) => (S(), Z(A, {
|
|
376
|
+
key: d.title,
|
|
377
|
+
label: d.title,
|
|
378
|
+
value: d.path
|
|
379
|
+
}, {
|
|
380
|
+
default: h(() => [
|
|
381
|
+
T(V(d.title), 1)
|
|
382
|
+
]),
|
|
383
|
+
_: 2
|
|
384
|
+
}, 1032, ["label", "value"]))), 128))
|
|
385
|
+
]),
|
|
386
|
+
_: 2
|
|
387
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
388
|
+
]),
|
|
389
|
+
_: 1
|
|
390
|
+
}, 8, ["data", "onCheckChange"])
|
|
391
|
+
]),
|
|
392
|
+
_: 1
|
|
393
|
+
}, 8, ["modelValue", "width", "draggable", "before-close"])
|
|
394
|
+
], 64);
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
}), Ke = /* @__PURE__ */ re(Re, [["__scopeId", "data-v-9becc629"]]);
|
|
398
|
+
export {
|
|
399
|
+
Ke as default
|
|
400
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),C=require("./array-
|
|
1
|
+
"use strict";const e=require("vue"),C=require("./array-Bv_j-DQ6.cjs"),k=require("./index-BeUperzd.cjs"),V=require("./index-BZEbgud2.cjs"),h=require("./modelComp-DY1RniW6.cjs"),D=require("./menu-B_Az9K_F.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),d=require("./cloneDeep-BkHxCZQ6.cjs"),I={class:"type-select"},N=["onClick"],x={class:"list-icon"},$={__name:"index",setup(B){const s=h.useModelComp(k.pinia),{itemData:n}=D.storeToRefs(s),r=o=>V.ElIcons[o],i=o=>{const u=d.cloneDeep(n.value);u.push({comp:o.comp,name:o.name,compData:[]}),s.setItemData(u)};return(o,u)=>(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C.slotContent),(a,t)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:t},[e.createElementVNode("div",{class:"list-content",onClick:c=>i(a)},[e.createElementVNode("div",x,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(a.icon))))]),e.createElementVNode("div",null,e.toDisplayString(a.name),1)],8,N)]))),128))]))}},w=f._export_sfc($,[["__scopeId","data-v-fe4aecc8"]]),q={class:"fill-content"},S={class:"operate-content"},F={class:"collapse-title"},L={class:"comp-child"},M={__name:"index",setup(B){const s=h.useModelComp(k.pinia),{itemData:n,originalData:r}=D.storeToRefs(s),i=e.ref([]),o=e.ref([]);e.watch(()=>n.value,()=>{var t;!n.value||((t=n.value)==null?void 0:t.length)===0||(i.value=d.cloneDeep(n.value))},{deep:!0,immediate:!0});const u=t=>C.getComponent(t),a=(t,c,v)=>{if(!t||t.length===0)return;let p=d.cloneDeep(n.value);const l=d.cloneDeep(c);l.compData=t,p=p==null?void 0:p.map((m,_)=>(_===v&&(m=l),m)),s.setItemData(p)};return(t,c)=>{const v=e.resolveComponent("el-collapse-item"),p=e.resolveComponent("el-collapse");return e.openBlock(),e.createElementBlock("div",q,[c[1]||(c[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",S,[e.createVNode(p,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=l=>o.value=l),class:"collapse-content"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,m)=>(e.openBlock(),e.createBlock(v,{key:m,name:m},{title:e.withCtx(()=>[e.createElementVNode("div",F,e.toDisplayString(l.name),1)]),default:e.withCtx(()=>{var _,g;return[e.createElementVNode("div",L,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u(l.comp+"Operate")),{itemContents:l==null?void 0:l.compData,originalItemContents:(g=(_=e.unref(r))==null?void 0:_.find((E,y)=>y===m))==null?void 0:g.compData,onChange:E=>a(E,l,m)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])])}}},R=f._export_sfc(M,[["__scopeId","data-v-a216b035"]]),T={key:0,class:"show-content"},b={__name:"index",setup(B){const s=h.useModelComp(k.pinia),{itemData:n}=D.storeToRefs(s),r=e.ref([]);e.watch(()=>n.value,()=>{var o;!n.value||((o=n.value)==null?void 0:o.length)===0||(r.value=d.cloneDeep(n.value))},{deep:!0,immediate:!0});const i=o=>C.getComponent(o);return(o,u)=>{var a;return((a=r.value)==null?void 0:a.length)>0?(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:c},[e.createElementVNode("div",null,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:c},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},H=f._export_sfc(b,[["__scopeId","data-v-79320497"]]);exports.modelFill=R;exports.modelSelect=w;exports.modelShow=H;
|