ss-component-new 1.3.666 → 1.3.667
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/config.js +1 -1
- package/dist/{index-dD-mKgue.js → index-BKK_dL6t.js} +3 -3
- package/dist/{index-ChNfRlIP.js → index-BobGeNMx.js} +5 -5
- package/dist/index-CCShKHTf.js +50 -0
- package/dist/index-CHLS51j8.js +1044 -0
- package/dist/index-Ccv8qbdo.js +9091 -0
- package/dist/index-D2V0zCQE.js +195 -0
- package/dist/index-DgjdKpj-.js +182 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js → index.vue_vue_type_script_setup_true_lang-DRzriV-s.js} +2 -2
- package/dist/menu-B8iV5Rhf.js +5215 -0
- package/dist/origin-B7bb-ZcE.js +11428 -0
- package/dist/ss-component.css +2 -8
- package/dist/ss-component.js +28 -64
- package/dist/ss-component2.js +15 -75
- package/dist/ss-component3.js +1 -1
- package/package.json +4 -4
- package/public/config.js +1 -1
- package/dist/MTLLoader-DI0avKtj.js +0 -657
- package/dist/URDFLoader-PUxvYFDe.js +0 -2304
- package/dist/animationData-05aVUytq.js +0 -83
- package/dist/array-BHRYnJKv.js +0 -1044
- package/dist/clone-Ddn1p6-1.js +0 -8
- package/dist/eleIcon-BWVKfp5t.js +0 -29
- package/dist/iconfont-BNdGaGPn.js +0 -1018
- package/dist/icons/svg/Update.svg +0 -1
- package/dist/icons/svg/functionList.svg +0 -1
- package/dist/icons/svg/uploadCopy.svg +0 -1
- package/dist/index-7mFTFA3-.js +0 -107
- package/dist/index-BDhIWgKn.js +0 -658
- package/dist/index-BFqUz4pN.js +0 -52
- package/dist/index-BP1mKUQP.js +0 -627
- package/dist/index-BczRQX8N.js +0 -407
- package/dist/index-BnrvtCYj.js +0 -55
- package/dist/index-Bpr501oZ.js +0 -78
- package/dist/index-BvbZiTVB.js +0 -342
- package/dist/index-Bvvz41NY.js +0 -44
- package/dist/index-C2M8MGB3.js +0 -83
- package/dist/index-C67QqPPT.js +0 -24865
- package/dist/index-C85-PeF1.js +0 -11773
- package/dist/index-C9DBY1gg.js +0 -103
- package/dist/index-CFFbhR3G.js +0 -996
- package/dist/index-COr2mcbl.js +0 -48
- package/dist/index-CQ8DCGnJ.js +0 -98
- package/dist/index-CV2cha0T.js +0 -864
- package/dist/index-CV_jQDcg.js +0 -9
- package/dist/index-CXe4q28L.js +0 -447
- package/dist/index-CqNlqFQ5.js +0 -117
- package/dist/index-D-5v1Jx7.js +0 -93
- package/dist/index-D4LcEpQ7.js +0 -619
- package/dist/index-D9w3QWuY.js +0 -468
- package/dist/index-DGObzWyL.js +0 -8984
- package/dist/index-DJ59jXR0.js +0 -28483
- package/dist/index-DJrzqi4-.js +0 -209
- package/dist/index-D_kI6aHR.js +0 -98
- package/dist/index-DhQcwkOc.js +0 -61958
- package/dist/index-DhULdX5n.js +0 -2623
- package/dist/index-Dibj25i7.js +0 -93
- package/dist/index-Dr9Wt5nC.js +0 -84
- package/dist/index-Dwt0Wlg_.js +0 -201
- package/dist/index-WPJbEuld.js +0 -62
- package/dist/index-YVR3acYT.js +0 -61
- package/dist/index-roQK_1xA.js +0 -30
- package/dist/index-uF-ibwG0.js +0 -9
- package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js +0 -137728
- package/dist/isString-CoCw_sp3.js +0 -8
- package/dist/localIcon-CoJHw5ss.js +0 -76
- package/dist/main-Dlo2i9wB.js +0 -502
- package/dist/menuIndex-Dt0NyAyE.js +0 -159
- package/dist/request-DiogHwkN.js +0 -9465
- package/dist/threeModel-BfY7WDWB.js +0 -1108
- package/dist/threePreview-BHLSA5YS.js +0 -2259
- package/dist/threeSceneView-ZTUK-ls2.js +0 -1289
- package/dist/threeSceneViewForCPMPIP-DCG4eBvk.js +0 -538
- package/dist/threeTrackPathView-BR8-g2Tr.js +0 -620
- package/dist/threeViewerHost-BwblfmOC.js +0 -233
- package/dist/urdfTree-IEJgkVzs.js +0 -254
- package/dist/workpieceTreePanel-aZV2ut3W.js +0 -555
- package/public/icons/svg/Update.svg +0 -1
- package/public/icons/svg/functionList.svg +0 -1
- package/public/icons/svg/uploadCopy.svg +0 -1
- /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
- /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { defineComponent as R, ref as W, computed as b, watch as l, nextTick as z, onMounted as S, onUnmounted as N, resolveComponent as V, createElementBlock as v, openBlock as C, createBlock as G } from "vue";
|
|
2
|
+
import { u as $, a as q, g as J, v as Q } from "./origin-B7bb-ZcE.js";
|
|
3
|
+
import { p as k, s as L, u as X } from "./menu-B8iV5Rhf.js";
|
|
4
|
+
import { l as Y } from "./index-CCShKHTf.js";
|
|
5
|
+
import { useRouter as Z } from "vue-router";
|
|
6
|
+
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const ee = { key: 0 }, te = /* @__PURE__ */ R({
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
windowConfig: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
systemInfo: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => {
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
systemKey: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
pathContent: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
mode: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "view"
|
|
31
|
+
},
|
|
32
|
+
content: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ""
|
|
35
|
+
},
|
|
36
|
+
jsonContents: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default: () => []
|
|
39
|
+
},
|
|
40
|
+
showButton: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
nodeDev: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ""
|
|
47
|
+
},
|
|
48
|
+
pageKey: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: ""
|
|
51
|
+
},
|
|
52
|
+
interfaceContent: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default: () => []
|
|
55
|
+
},
|
|
56
|
+
loginContent: {
|
|
57
|
+
type: Object,
|
|
58
|
+
default: () => {
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
menuFiles: {
|
|
62
|
+
type: Array,
|
|
63
|
+
default: () => []
|
|
64
|
+
},
|
|
65
|
+
workspaceHistoryData: {
|
|
66
|
+
type: Array,
|
|
67
|
+
default: () => []
|
|
68
|
+
},
|
|
69
|
+
// 用于打开/拣选工作区
|
|
70
|
+
workspaceInfo: {
|
|
71
|
+
type: Object,
|
|
72
|
+
default: () => []
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin", "updateApiUrl", "clearFileContent", "systemContent", "getMenuPathValue", "executeWorkspace", "updateVersion"],
|
|
76
|
+
setup(s, { emit: _ }) {
|
|
77
|
+
const D = Z(), c = $(k), { loginUserInfo: f } = L(c), { initSystemInfo: A } = q(), d = X(k), g = W(!0), { activeMenuPath: h } = L(d), e = s, o = _, F = b(() => {
|
|
78
|
+
var t, n;
|
|
79
|
+
return (e == null ? void 0 : e.showButton) || ((n = (t = f.value) == null ? void 0 : t.accounttype) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
80
|
+
}), E = (t) => {
|
|
81
|
+
o("systemContent", t);
|
|
82
|
+
}, j = () => {
|
|
83
|
+
o("updateVersion");
|
|
84
|
+
}, B = () => {
|
|
85
|
+
o("clearFileContent");
|
|
86
|
+
};
|
|
87
|
+
l(
|
|
88
|
+
() => e == null ? void 0 : e.menuFiles,
|
|
89
|
+
() => {
|
|
90
|
+
var t;
|
|
91
|
+
((t = e == null ? void 0 : e.menuFiles) == null ? void 0 : t.length) > 0 && d.setLocalFiles(e == null ? void 0 : e.menuFiles);
|
|
92
|
+
},
|
|
93
|
+
{ deep: !0, immediate: !0 }
|
|
94
|
+
), l(
|
|
95
|
+
() => h.value,
|
|
96
|
+
async () => {
|
|
97
|
+
var n, i;
|
|
98
|
+
let t = await J({
|
|
99
|
+
platId: parseInt((n = f == null ? void 0 : f.value) == null ? void 0 : n.plat_id)
|
|
100
|
+
});
|
|
101
|
+
t = (i = t == null ? void 0 : t.data) == null ? void 0 : i.result, d.setDataFiles(t), o("getMenuPathValue", h.value);
|
|
102
|
+
},
|
|
103
|
+
{ deep: !0, immediate: !0 }
|
|
104
|
+
), l(
|
|
105
|
+
() => e == null ? void 0 : e.loginContent,
|
|
106
|
+
async () => {
|
|
107
|
+
g.value = !0;
|
|
108
|
+
let t = e == null ? void 0 : e.loginContent;
|
|
109
|
+
if (t != null && t.account && (t != null && t.password) && (await Y(t), status)) {
|
|
110
|
+
let n = await Q();
|
|
111
|
+
o("systemContent", n == null ? void 0 : n.allMenuContents), D.push("/"), d.setHasClickEditComp(!1);
|
|
112
|
+
}
|
|
113
|
+
g.value = !1, await z();
|
|
114
|
+
},
|
|
115
|
+
{ deep: !0, immediate: !0 }
|
|
116
|
+
);
|
|
117
|
+
const M = (t) => {
|
|
118
|
+
o("projectLogin", t);
|
|
119
|
+
}, T = () => {
|
|
120
|
+
o("projectLogin", "");
|
|
121
|
+
};
|
|
122
|
+
l(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
|
|
123
|
+
c.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
|
|
124
|
+
}, { immediate: !0 }), l(
|
|
125
|
+
() => e == null ? void 0 : e.interfaceContent,
|
|
126
|
+
() => {
|
|
127
|
+
var i, m, r, y, u;
|
|
128
|
+
if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((i = e == null ? void 0 : e.interfaceContent) == null ? void 0 : i.length) === 0) return;
|
|
129
|
+
let t = (m = e == null ? void 0 : e.interfaceContent) == null ? void 0 : m.find((a) => a == null ? void 0 : a.includes("VITE_API_NEW_URL")), n = (r = e == null ? void 0 : e.interfaceContent) == null ? void 0 : r.find((a) => a == null ? void 0 : a.includes("VITE_FACE_RECOGNITION_API_URL"));
|
|
130
|
+
n = (y = n == null ? void 0 : n.split("=")) == null ? void 0 : y[1], n = n == null ? void 0 : n.trim(), t = (u = t == null ? void 0 : t.split("=")) == null ? void 0 : u[1], t = t == null ? void 0 : t.trim(), c.setExtraUrl(n ?? ""), c.setSystemUrl(t ?? "");
|
|
131
|
+
},
|
|
132
|
+
{ immediate: !0, deep: !0 }
|
|
133
|
+
), S(async () => {
|
|
134
|
+
e.systemInfo ? c.setSystemInfo(e.systemInfo) : await A();
|
|
135
|
+
});
|
|
136
|
+
const x = () => {
|
|
137
|
+
o("buildContent");
|
|
138
|
+
}, K = () => {
|
|
139
|
+
o("setLoginInfo");
|
|
140
|
+
}, U = (t) => {
|
|
141
|
+
o("openThreeBuild", t);
|
|
142
|
+
}, H = (t) => {
|
|
143
|
+
o("threeData", t);
|
|
144
|
+
}, O = (t) => {
|
|
145
|
+
o("updateApiUrl", t);
|
|
146
|
+
}, P = (t) => {
|
|
147
|
+
o("executeWorkspace", t);
|
|
148
|
+
}, w = () => {
|
|
149
|
+
var u, a, I;
|
|
150
|
+
const t = e != null && e.windowConfig ? (u = e == null ? void 0 : e.windowConfig) == null ? void 0 : u.width : window.innerWidth, n = (a = e == null ? void 0 : e.windowConfig) != null && a.height ? (I = e == null ? void 0 : e.windowConfig) == null ? void 0 : I.height : window.innerHeight;
|
|
151
|
+
d.setSystemHeight(n);
|
|
152
|
+
const i = 1920, m = 16, r = t / i, y = m * r;
|
|
153
|
+
document.documentElement.style.fontSize = `${y}px`;
|
|
154
|
+
};
|
|
155
|
+
return S(() => {
|
|
156
|
+
w(), window.addEventListener("resize", w);
|
|
157
|
+
}), N(() => {
|
|
158
|
+
window.removeEventListener("resize", w);
|
|
159
|
+
}), (t, n) => {
|
|
160
|
+
const i = V("router-view");
|
|
161
|
+
return C(), v("div", null, [
|
|
162
|
+
g.value ? (C(), v("div", ee)) : (C(), G(i, {
|
|
163
|
+
key: 1,
|
|
164
|
+
mode: e == null ? void 0 : e.mode,
|
|
165
|
+
content: e == null ? void 0 : e.content,
|
|
166
|
+
jsonContents: e == null ? void 0 : e.jsonContents,
|
|
167
|
+
pathContent: e == null ? void 0 : e.pathContent,
|
|
168
|
+
showButton: F.value,
|
|
169
|
+
nodeDev: e == null ? void 0 : e.nodeDev,
|
|
170
|
+
windowConfig: s.windowConfig,
|
|
171
|
+
systemInfo: s.systemInfo,
|
|
172
|
+
"old-systemKey": s.systemKey,
|
|
173
|
+
onBuildContent: x,
|
|
174
|
+
onProjectLogin: M,
|
|
175
|
+
onClearLogin: T,
|
|
176
|
+
onUpdateApiUrl: O,
|
|
177
|
+
onOpenThreeBuild: U,
|
|
178
|
+
pageKey: s.pageKey,
|
|
179
|
+
onThreeData: H,
|
|
180
|
+
onSetLoginInfo: K,
|
|
181
|
+
loginContent: e == null ? void 0 : e.loginContent,
|
|
182
|
+
onUpdateVersion: j,
|
|
183
|
+
onClearFileContent: B,
|
|
184
|
+
onSystemContent: E,
|
|
185
|
+
onExecuteWorkspace: P,
|
|
186
|
+
workspaceHistoryData: e == null ? void 0 : e.workspaceHistoryData,
|
|
187
|
+
workspaceInfo: e == null ? void 0 : e.workspaceInfo
|
|
188
|
+
}, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent", "workspaceHistoryData", "workspaceInfo"]))
|
|
189
|
+
]);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
}), de = /* @__PURE__ */ p(te, [["__scopeId", "data-v-d3a775f0"]]);
|
|
193
|
+
export {
|
|
194
|
+
de as default
|
|
195
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { defineComponent as q, resolveComponent as u, createElementBlock as k, openBlock as s, Fragment as y, renderList as C, createBlock as f, createCommentVNode as z, withCtx as o, createVNode as r, createSlots as O, renderSlot as d, mergeProps as P, computed as j, ref as D, normalizeStyle as g } from "vue";
|
|
2
|
+
import { u as G, p as w, s as b, l as H } from "./menu-B8iV5Rhf.js";
|
|
3
|
+
import { S as $ } from "./index-BKK_dL6t.js";
|
|
4
|
+
import "./index-Ccv8qbdo.js";
|
|
5
|
+
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const K = /* @__PURE__ */ q({
|
|
7
|
+
__name: "menuItem",
|
|
8
|
+
props: {
|
|
9
|
+
menuList: {
|
|
10
|
+
// 注意prop变量类型定义的写法:PropType
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
emits: ["clickMenu", "openMenu", "closeMenu"],
|
|
16
|
+
setup(i, { emit: x }) {
|
|
17
|
+
const p = x, m = (l) => {
|
|
18
|
+
p("clickMenu", l);
|
|
19
|
+
}, L = (l) => {
|
|
20
|
+
p("openMenu", l);
|
|
21
|
+
}, M = (l) => {
|
|
22
|
+
p("closeMenu", l);
|
|
23
|
+
};
|
|
24
|
+
return (l, S) => {
|
|
25
|
+
const c = u("MenuItem", !0), a = u("el-sub-menu"), _ = u("el-menu-item");
|
|
26
|
+
return s(!0), k(y, null, C(i.menuList, (e) => (s(), k(y, null, [
|
|
27
|
+
e.show && e.children && e.children.length > 0 ? (s(), f(a, {
|
|
28
|
+
index: e.path,
|
|
29
|
+
key: e.path
|
|
30
|
+
}, {
|
|
31
|
+
title: o(() => [
|
|
32
|
+
r($, {
|
|
33
|
+
name: e.icon ?? ((e == null ? void 0 : e.level) <= 2 ? "default" : ""),
|
|
34
|
+
class: "menu-icon"
|
|
35
|
+
}, null, 8, ["name"]),
|
|
36
|
+
d(l.$slots, "title", { menu: e })
|
|
37
|
+
]),
|
|
38
|
+
default: o(() => [
|
|
39
|
+
r(c, {
|
|
40
|
+
menuList: e.children,
|
|
41
|
+
onClickMenu: m,
|
|
42
|
+
onOpenMenu: L,
|
|
43
|
+
onCloseMenu: M
|
|
44
|
+
}, O({ _: 2 }, [
|
|
45
|
+
C(l.$slots, (I, h) => ({
|
|
46
|
+
name: h,
|
|
47
|
+
fn: o((R) => [
|
|
48
|
+
d(l.$slots, h, P({ ref_for: !0 }, R))
|
|
49
|
+
])
|
|
50
|
+
}))
|
|
51
|
+
]), 1032, ["menuList"])
|
|
52
|
+
]),
|
|
53
|
+
_: 2
|
|
54
|
+
}, 1032, ["index"])) : e.show ? (s(), f(_, {
|
|
55
|
+
index: e.path,
|
|
56
|
+
key: e.path,
|
|
57
|
+
onClick: (I) => m(e)
|
|
58
|
+
}, {
|
|
59
|
+
title: o(() => [
|
|
60
|
+
d(l.$slots, "title", { menu: e })
|
|
61
|
+
]),
|
|
62
|
+
default: o(() => [
|
|
63
|
+
r($, {
|
|
64
|
+
name: e.icon ?? ((e == null ? void 0 : e.level) <= 2 ? "default" : ""),
|
|
65
|
+
class: "menu-icon"
|
|
66
|
+
}, null, 8, ["name"])
|
|
67
|
+
]),
|
|
68
|
+
_: 2
|
|
69
|
+
}, 1032, ["index", "onClick"])) : z("", !0)
|
|
70
|
+
], 64))), 256);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}), N = /* @__PURE__ */ q({
|
|
74
|
+
__name: "index",
|
|
75
|
+
props: {
|
|
76
|
+
menuList: {
|
|
77
|
+
// 注意prop变量类型定义的写法:PropType
|
|
78
|
+
type: Array,
|
|
79
|
+
default: () => []
|
|
80
|
+
},
|
|
81
|
+
mode: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: "vertical"
|
|
84
|
+
},
|
|
85
|
+
isCollapse: Boolean,
|
|
86
|
+
uniqueOpened: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
emits: ["clickMenu", "openMenu", "closeMenu", "selectMenu"],
|
|
92
|
+
setup(i, { expose: x, emit: p }) {
|
|
93
|
+
const m = G(w), { activeMenuPath: L, activeTopMenuPath: M } = b(m), l = H(w), { routeToChildPath: S } = b(l), c = i, a = p, _ = (n) => {
|
|
94
|
+
a("clickMenu", n);
|
|
95
|
+
}, e = (n) => {
|
|
96
|
+
a("openMenu", n);
|
|
97
|
+
}, I = (n) => {
|
|
98
|
+
a("selectMenu", n);
|
|
99
|
+
}, h = (n) => {
|
|
100
|
+
a("closeMenu", n);
|
|
101
|
+
}, R = j(() => S.value ? (c == null ? void 0 : c.mode) === "vertical" ? S.value : M.value : (c == null ? void 0 : c.mode) === "vertical" ? L.value : M.value), v = D(null);
|
|
102
|
+
return x({
|
|
103
|
+
handleResize: () => {
|
|
104
|
+
var n;
|
|
105
|
+
(n = v.value) == null || n.handleResize();
|
|
106
|
+
},
|
|
107
|
+
openMenuRefByIndex: (n) => {
|
|
108
|
+
v.value && v.value.open(n);
|
|
109
|
+
}
|
|
110
|
+
}), (n, W) => {
|
|
111
|
+
const T = u("el-sub-menu"), A = u("el-menu-item"), V = u("el-menu");
|
|
112
|
+
return s(), f(V, {
|
|
113
|
+
ref_key: "menuRef",
|
|
114
|
+
ref: v,
|
|
115
|
+
class: "menu-wrap",
|
|
116
|
+
mode: i.mode,
|
|
117
|
+
"default-active": R.value,
|
|
118
|
+
"unique-opened": i.uniqueOpened,
|
|
119
|
+
"collapse-transition": !1,
|
|
120
|
+
"popper-class": "ss-menu-popper",
|
|
121
|
+
"popper-offset": 12,
|
|
122
|
+
ellipsis: !0,
|
|
123
|
+
collapse: i.isCollapse,
|
|
124
|
+
onOpen: e,
|
|
125
|
+
onClose: h,
|
|
126
|
+
onSelect: I
|
|
127
|
+
}, {
|
|
128
|
+
default: o(() => [
|
|
129
|
+
(s(!0), k(y, null, C(i.menuList, (t) => (s(), k(y, null, [
|
|
130
|
+
t.show && t.children && t.children.length > 0 ? (s(), f(T, {
|
|
131
|
+
index: t.path,
|
|
132
|
+
key: t.path,
|
|
133
|
+
style: g(t.style)
|
|
134
|
+
}, {
|
|
135
|
+
title: o(() => [
|
|
136
|
+
r($, {
|
|
137
|
+
name: t.icon ?? ((t == null ? void 0 : t.level) <= 2 ? "default" : ""),
|
|
138
|
+
class: "menu-icon"
|
|
139
|
+
}, null, 8, ["name"]),
|
|
140
|
+
d(n.$slots, "title", { menu: t }, void 0, !0)
|
|
141
|
+
]),
|
|
142
|
+
default: o(() => [
|
|
143
|
+
r(K, {
|
|
144
|
+
menuList: t.children,
|
|
145
|
+
onClickMenu: _
|
|
146
|
+
}, O({ _: 2 }, [
|
|
147
|
+
C(n.$slots, (E, B) => ({
|
|
148
|
+
name: B,
|
|
149
|
+
fn: o((F) => [
|
|
150
|
+
d(n.$slots, B, P({ ref_for: !0 }, F), void 0, !0)
|
|
151
|
+
])
|
|
152
|
+
}))
|
|
153
|
+
]), 1032, ["menuList"])
|
|
154
|
+
]),
|
|
155
|
+
_: 2
|
|
156
|
+
}, 1032, ["index", "style"])) : t.show ? (s(), f(A, {
|
|
157
|
+
index: t.path,
|
|
158
|
+
key: t.path,
|
|
159
|
+
style: g(t.style),
|
|
160
|
+
onClick: (E) => _(t)
|
|
161
|
+
}, {
|
|
162
|
+
title: o(() => [
|
|
163
|
+
d(n.$slots, "title", { menu: t }, void 0, !0)
|
|
164
|
+
]),
|
|
165
|
+
default: o(() => [
|
|
166
|
+
r($, {
|
|
167
|
+
name: t.icon ?? ((t == null ? void 0 : t.level) <= 2 ? "default" : ""),
|
|
168
|
+
class: "menu-icon"
|
|
169
|
+
}, null, 8, ["name"])
|
|
170
|
+
]),
|
|
171
|
+
_: 2
|
|
172
|
+
}, 1032, ["index", "style", "onClick"])) : z("", !0)
|
|
173
|
+
], 64))), 256))
|
|
174
|
+
]),
|
|
175
|
+
_: 3
|
|
176
|
+
}, 8, ["mode", "default-active", "unique-opened", "collapse"]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}), ne = /* @__PURE__ */ J(N, [["__scopeId", "data-v-1566b485"]]);
|
|
180
|
+
export {
|
|
181
|
+
ne as default
|
|
182
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, ref as c, resolveComponent as m,
|
|
1
|
+
import { defineComponent as u, ref as c, resolveComponent as m, createBlock as s, openBlock as y, withCtx as f, createTextVNode as g, toDisplayString as p } from "vue";
|
|
2
2
|
const B = /* @__PURE__ */ u({
|
|
3
3
|
__name: "index",
|
|
4
4
|
props: {
|
|
@@ -35,7 +35,7 @@ const B = /* @__PURE__ */ u({
|
|
|
35
35
|
};
|
|
36
36
|
return (l, o) => {
|
|
37
37
|
const r = m("el-button");
|
|
38
|
-
return
|
|
38
|
+
return y(), s(r, {
|
|
39
39
|
type: e == null ? void 0 : e.buttonType,
|
|
40
40
|
id: e != null && e.emptyColor ? "" : "themeButton",
|
|
41
41
|
onClick: o[0] || (o[0] = (_) => d(t.value)),
|