workdesktop-ai 1.2.4 → 1.2.5
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/CHANGELOG.md +1 -0
- package/dist/api-button/index.mjs +1 -1
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/checkbox-list/index.mjs +1 -1
- package/dist/chunks/{ApiButton.vue_vue_type_script_setup_true_lang-GBEBLUxz.mjs → ApiButton.vue_vue_type_script_setup_true_lang-ZLHP9S_H.mjs} +2 -2
- package/dist/chunks/{ApiButton.vue_vue_type_script_setup_true_lang-GBEBLUxz.mjs.map → ApiButton.vue_vue_type_script_setup_true_lang-ZLHP9S_H.mjs.map} +1 -1
- package/dist/chunks/{AutoComplete-DqyhsqiS.mjs → AutoComplete-BKWrR5pD.mjs} +2 -2
- package/dist/chunks/{AutoComplete-DqyhsqiS.mjs.map → AutoComplete-BKWrR5pD.mjs.map} +1 -1
- package/dist/chunks/{CheckboxList-RxJGe-LQ.mjs → CheckboxList-5o9E0Tzg.mjs} +2 -2
- package/dist/chunks/{CheckboxList-RxJGe-LQ.mjs.map → CheckboxList-5o9E0Tzg.mjs.map} +1 -1
- package/dist/chunks/{ConfirmButton.vue_vue_type_script_setup_true_lang-BPtvM5GB.mjs → ConfirmButton.vue_vue_type_script_setup_true_lang-Cz1M6QsL.mjs} +2 -2
- package/dist/chunks/{ConfirmButton.vue_vue_type_script_setup_true_lang-BPtvM5GB.mjs.map → ConfirmButton.vue_vue_type_script_setup_true_lang-Cz1M6QsL.mjs.map} +1 -1
- package/dist/chunks/{DataForm-DYMderSS.mjs → DataForm-Dvx6GxlR.mjs} +3 -3
- package/dist/chunks/{DataForm-DYMderSS.mjs.map → DataForm-Dvx6GxlR.mjs.map} +1 -1
- package/dist/chunks/{DataGrid-DWAhwLVk.mjs → DataGrid-Cw3yXhmR.mjs} +3 -3
- package/dist/chunks/{DataGrid-DWAhwLVk.mjs.map → DataGrid-Cw3yXhmR.mjs.map} +1 -1
- package/dist/chunks/{EditableGrid-e3wwCaem.mjs → EditableGrid-Dr48XzLH.mjs} +4 -4
- package/dist/chunks/{EditableGrid-e3wwCaem.mjs.map → EditableGrid-Dr48XzLH.mjs.map} +1 -1
- package/dist/chunks/{Iframe-DcFFi0S9.mjs → Iframe-BB1Va2kZ.mjs} +3 -3
- package/dist/chunks/{Iframe-DcFFi0S9.mjs.map → Iframe-BB1Va2kZ.mjs.map} +1 -1
- package/dist/chunks/{ImageUpload-BK7tbU2o.mjs → ImageUpload-DiJ16Aga.mjs} +3 -3
- package/dist/chunks/{ImageUpload-BK7tbU2o.mjs.map → ImageUpload-DiJ16Aga.mjs.map} +1 -1
- package/dist/chunks/{PromptButton.vue_vue_type_script_setup_true_lang-82Mxc2Qv.mjs → PromptButton.vue_vue_type_script_setup_true_lang-y_sfI324.mjs} +2 -2
- package/dist/chunks/{PromptButton.vue_vue_type_script_setup_true_lang-82Mxc2Qv.mjs.map → PromptButton.vue_vue_type_script_setup_true_lang-y_sfI324.mjs.map} +1 -1
- package/dist/chunks/{RadioList-DuEeHumw.mjs → RadioList-CQJDixnr.mjs} +2 -2
- package/dist/chunks/{RadioList-DuEeHumw.mjs.map → RadioList-CQJDixnr.mjs.map} +1 -1
- package/dist/chunks/{Requester.vue_vue_type_script_setup_true_lang-xCw4QHCA.mjs → Requester.vue_vue_type_script_setup_true_lang-nel6vN12.mjs} +3 -3
- package/dist/chunks/{Requester.vue_vue_type_script_setup_true_lang-xCw4QHCA.mjs.map → Requester.vue_vue_type_script_setup_true_lang-nel6vN12.mjs.map} +1 -1
- package/dist/chunks/{Select-MD3taMJo.mjs → Select-ByH7uxuS.mjs} +2 -2
- package/dist/chunks/{Select-MD3taMJo.mjs.map → Select-ByH7uxuS.mjs.map} +1 -1
- package/dist/chunks/{Station-2m9uznh3.mjs → Station-DDoJem4F.mjs} +150 -139
- package/dist/chunks/Station-DDoJem4F.mjs.map +1 -0
- package/dist/chunks/{Switch.vue_vue_type_script_setup_true_lang-vok-8-BT.mjs → Switch.vue_vue_type_script_setup_true_lang-DrSXmsj6.mjs} +2 -2
- package/dist/chunks/{Switch.vue_vue_type_script_setup_true_lang-vok-8-BT.mjs.map → Switch.vue_vue_type_script_setup_true_lang-DrSXmsj6.mjs.map} +1 -1
- package/dist/chunks/{Upload.vue_vue_type_script_setup_true_lang-DVDw-3mF.mjs → Upload.vue_vue_type_script_setup_true_lang-k-0PTz3l.mjs} +3 -3
- package/dist/chunks/{Upload.vue_vue_type_script_setup_true_lang-DVDw-3mF.mjs.map → Upload.vue_vue_type_script_setup_true_lang-k-0PTz3l.mjs.map} +1 -1
- package/dist/chunks/{Viewer-FSV6xObc.mjs → Viewer-CmTaneb6.mjs} +2 -2
- package/dist/chunks/{Viewer-FSV6xObc.mjs.map → Viewer-CmTaneb6.mjs.map} +1 -1
- package/dist/chunks/{config-B6nWG5dv.mjs → config-CDqjABpD.mjs} +2 -2
- package/dist/chunks/{config-B6nWG5dv.mjs.map → config-CDqjABpD.mjs.map} +1 -1
- package/dist/chunks/{http-BKKP0gEJ.mjs → http-CW9konD4.mjs} +2 -2
- package/dist/chunks/{http-BKKP0gEJ.mjs.map → http-CW9konD4.mjs.map} +1 -1
- package/dist/chunks/{useApiAction-71XPKjlQ.mjs → useApiAction-CQVmN1MH.mjs} +2 -2
- package/dist/chunks/{useApiAction-71XPKjlQ.mjs.map → useApiAction-CQVmN1MH.mjs.map} +1 -1
- package/dist/chunks/{useColumnSettings-CbiWd27-.mjs → useColumnSettings-CIFQCmzT.mjs} +3 -3
- package/dist/chunks/{useColumnSettings-CbiWd27-.mjs.map → useColumnSettings-CIFQCmzT.mjs.map} +1 -1
- package/dist/chunks/{useConfig-CPioiLWJ.mjs → useConfig-ChIkE3Lz.mjs} +2 -2
- package/dist/chunks/{useConfig-CPioiLWJ.mjs.map → useConfig-ChIkE3Lz.mjs.map} +1 -1
- package/dist/chunks/{useOptionsLoader-D4Jh4f1F.mjs → useOptionsLoader-BUO0VTjH.mjs} +2 -2
- package/dist/chunks/{useOptionsLoader-D4Jh4f1F.mjs.map → useOptionsLoader-BUO0VTjH.mjs.map} +1 -1
- package/dist/confirm-button/index.mjs +1 -1
- package/dist/data-form/index.mjs +1 -1
- package/dist/data-grid/index.mjs +1 -1
- package/dist/editable-grid/index.mjs +1 -1
- package/dist/iframe/index.mjs +1 -1
- package/dist/image-upload/index.mjs +1 -1
- package/dist/index.esm.js +24 -24
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/prompt-button/index.mjs +1 -1
- package/dist/radio-list/index.mjs +1 -1
- package/dist/requester/index.mjs +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/station/index.mjs +1 -1
- package/dist/station/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/switch/index.mjs +1 -1
- package/dist/types/src/components/layout/Station.vue.d.ts +15 -4
- package/dist/types/src/components/layout/types.d.ts +2 -0
- package/dist/upload/index.mjs +1 -1
- package/dist/viewer/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunks/Station-2m9uznh3.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Fe, resolveComponent as m, openBlock as o, createElementBlock as _, Fragment as
|
|
1
|
+
import { defineComponent as Fe, resolveComponent as m, openBlock as o, createElementBlock as _, Fragment as I, renderList as W, createBlock as s, withCtx as l, createVNode as d, resolveDynamicComponent as G, createCommentVNode as h, createElementVNode as k, toDisplayString as x, getCurrentInstance as ft, computed as y, ref as V, watch as De, onMounted as _t, onUnmounted as vt, normalizeClass as Q, renderSlot as $, withDirectives as ze, vShow as Ke, unref as A, createTextVNode as B, withModifiers as pt, KeepAlive as yt } from "vue";
|
|
2
2
|
import * as Re from "@element-plus/icons-vue";
|
|
3
3
|
import { Fold as ht, Expand as kt, ArrowUp as mt, ArrowDown as Le, Refresh as Oe, Setting as Ve, Close as gt } from "@element-plus/icons-vue";
|
|
4
4
|
import { f as bt } from "./props-DAytpx7D.mjs";
|
|
@@ -12,7 +12,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
12
12
|
items: { type: Array, default: () => [] }
|
|
13
13
|
},
|
|
14
14
|
emits: ["select"],
|
|
15
|
-
setup(
|
|
15
|
+
setup(i, { emit: X }) {
|
|
16
16
|
const P = X;
|
|
17
17
|
function r(w) {
|
|
18
18
|
return w ? typeof w == "string" ? Re[w] || null : w : null;
|
|
@@ -25,7 +25,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
25
25
|
}
|
|
26
26
|
return (w, J) => {
|
|
27
27
|
const D = m("el-icon"), z = m("station-menu-node", !0), F = m("el-sub-menu"), j = m("el-badge"), Y = m("el-menu-item");
|
|
28
|
-
return o(!0), _(
|
|
28
|
+
return o(!0), _(I, null, W(i.items, (v) => (o(), _(I, {
|
|
29
29
|
key: v._key
|
|
30
30
|
}, [
|
|
31
31
|
v.children && v.children.length ? (o(), s(F, {
|
|
@@ -35,11 +35,11 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
35
35
|
title: l(() => [
|
|
36
36
|
r(v.icon) ? (o(), s(D, { key: 0 }, {
|
|
37
37
|
default: l(() => [
|
|
38
|
-
(o(), s(
|
|
38
|
+
(o(), s(G(r(v.icon))))
|
|
39
39
|
]),
|
|
40
40
|
_: 2
|
|
41
|
-
}, 1024)) :
|
|
42
|
-
|
|
41
|
+
}, 1024)) : h("", !0),
|
|
42
|
+
k("span", null, x(v.title), 1)
|
|
43
43
|
]),
|
|
44
44
|
default: l(() => [
|
|
45
45
|
d(z, {
|
|
@@ -57,16 +57,16 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
57
57
|
default: l(() => [
|
|
58
58
|
r(v.icon) ? (o(), s(D, { key: 0 }, {
|
|
59
59
|
default: l(() => [
|
|
60
|
-
(o(), s(
|
|
60
|
+
(o(), s(G(r(v.icon))))
|
|
61
61
|
]),
|
|
62
62
|
_: 2
|
|
63
|
-
}, 1024)) :
|
|
64
|
-
|
|
63
|
+
}, 1024)) : h("", !0),
|
|
64
|
+
k("span", null, x(v.title), 1),
|
|
65
65
|
v.badge !== void 0 && v.badge !== "" ? (o(), s(j, {
|
|
66
66
|
key: 1,
|
|
67
67
|
value: v.badge,
|
|
68
68
|
class: "wd-station__menu-badge"
|
|
69
|
-
}, null, 8, ["value"])) :
|
|
69
|
+
}, null, 8, ["value"])) : h("", !0)
|
|
70
70
|
]),
|
|
71
71
|
_: 2
|
|
72
72
|
}, 1032, ["index", "disabled", "onClick"]))
|
|
@@ -76,10 +76,10 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
76
76
|
}), R = /* @__PURE__ */ Pe(Ct, [["__scopeId", "data-v-a003600a"]]), St = { class: "wd-station__main" }, Mt = { class: "wd-station__header" }, xt = { class: "wd-station__header-left" }, $t = {
|
|
77
77
|
key: 1,
|
|
78
78
|
class: "wd-station__logo wd-station__logo--header"
|
|
79
|
-
}, At = { class: "wd-station__logo-title" },
|
|
79
|
+
}, At = { class: "wd-station__logo-title" }, It = { class: "wd-station__user" }, Tt = { class: "wd-station__user-name" }, Nt = { class: "wd-station__header-center" }, Bt = {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "wd-station__nav"
|
|
82
|
-
},
|
|
82
|
+
}, Et = ["onClick"], Gt = {
|
|
83
83
|
key: 1,
|
|
84
84
|
class: "wd-station__header-title"
|
|
85
85
|
}, Wt = { class: "wd-station__header-right" }, Dt = { class: "wd-station__user" }, zt = { class: "wd-station__user-name" }, Kt = {
|
|
@@ -127,6 +127,8 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
127
127
|
activeMenu: { type: String, default: "" },
|
|
128
128
|
/** 已开启标签(v-model:open-tabs,受控) */
|
|
129
129
|
openTabs: { type: Array, default: void 0 },
|
|
130
|
+
/** tabs 标签标题是否显示菜单图标(true 时菜单项 icon 随 tab 显示在标题前) */
|
|
131
|
+
tabIcon: { type: Boolean, default: !0 },
|
|
130
132
|
/** 用户名(有值显示用户下拉,无值显示登录按钮) */
|
|
131
133
|
userName: { type: String, default: "" },
|
|
132
134
|
/** 用户头像地址 */
|
|
@@ -155,9 +157,9 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
155
157
|
"logout",
|
|
156
158
|
"settings"
|
|
157
159
|
],
|
|
158
|
-
setup(
|
|
159
|
-
var Se, Me, xe, $e, Ae,
|
|
160
|
-
const r =
|
|
160
|
+
setup(i, { expose: X, emit: P }) {
|
|
161
|
+
var Se, Me, xe, $e, Ae, Ie, Te, Ne, Be, Ee;
|
|
162
|
+
const r = i, b = P, g = ft(), w = ((Se = g == null ? void 0 : g.proxy) == null ? void 0 : Se.$router) || (($e = (xe = (Me = g == null ? void 0 : g.appContext) == null ? void 0 : Me.config) == null ? void 0 : xe.globalProperties) == null ? void 0 : $e.$router), J = ((Ae = g == null ? void 0 : g.proxy) == null ? void 0 : Ae.$route) || ((Ne = (Te = (Ie = g == null ? void 0 : g.appContext) == null ? void 0 : Ie.config) == null ? void 0 : Te.globalProperties) == null ? void 0 : Ne.$route), D = (Ee = (Be = g == null ? void 0 : g.appContext) == null ? void 0 : Be.components) == null ? void 0 : Ee.RouterView, z = y(() => r.routerMode === "html" ? !1 : r.routerMode === "router" ? !0 : !!w);
|
|
161
163
|
function F(e, t) {
|
|
162
164
|
if (e == null || e === "") return t;
|
|
163
165
|
if (typeof e != "string") return e;
|
|
@@ -177,26 +179,26 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
177
179
|
function Y(e) {
|
|
178
180
|
const t = [], n = /* @__PURE__ */ new Map();
|
|
179
181
|
return e.forEach((c) => {
|
|
180
|
-
const
|
|
181
|
-
n.has(
|
|
182
|
-
key:
|
|
183
|
-
title: c.group || (
|
|
182
|
+
const u = c.groupKey || c.group || "default";
|
|
183
|
+
n.has(u) || (n.set(u, {
|
|
184
|
+
key: u,
|
|
185
|
+
title: c.group || (u === "default" ? "默认" : u),
|
|
184
186
|
icon: c.groupIcon,
|
|
185
187
|
menus: []
|
|
186
|
-
}), t.push(
|
|
188
|
+
}), t.push(u)), n.get(u).menus.push(c);
|
|
187
189
|
}), t.map((c) => n.get(c));
|
|
188
190
|
}
|
|
189
191
|
let v = !1;
|
|
190
192
|
function ce(e) {
|
|
191
193
|
if (v) return;
|
|
192
194
|
const t = (n, c) => {
|
|
193
|
-
n.forEach((
|
|
194
|
-
c > 2 && !v && (v = !0, console.warn("[WorkDesktop] WdStation: 菜单层级建议不超过两层,当前已超出(仍按原样渲染)")),
|
|
195
|
+
n.forEach((u) => {
|
|
196
|
+
c > 2 && !v && (v = !0, console.warn("[WorkDesktop] WdStation: 菜单层级建议不超过两层,当前已超出(仍按原样渲染)")), u.children && u.children.length && t(u.children, c + 1);
|
|
195
197
|
});
|
|
196
198
|
};
|
|
197
199
|
e.forEach((n) => t(n.menus, 1));
|
|
198
200
|
}
|
|
199
|
-
const
|
|
201
|
+
const T = y(() => {
|
|
200
202
|
const e = F(r.menuGroups, null);
|
|
201
203
|
let t;
|
|
202
204
|
if (Array.isArray(e) && e.length)
|
|
@@ -209,17 +211,17 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
209
211
|
}), Z = V(""), fe = y(
|
|
210
212
|
() => {
|
|
211
213
|
var e;
|
|
212
|
-
return r.activeGroup || Z.value || ((e =
|
|
214
|
+
return r.activeGroup || Z.value || ((e = T.value[0]) == null ? void 0 : e.key) || "";
|
|
213
215
|
}
|
|
214
|
-
), Je = y(() => r.headerMode !== "title" &&
|
|
215
|
-
() =>
|
|
216
|
+
), Je = y(() => r.headerMode !== "title" && T.value.length > 1), je = y(
|
|
217
|
+
() => T.value.find((e) => e.key === fe.value) || T.value[0]
|
|
216
218
|
), ee = y(() => {
|
|
217
219
|
var e;
|
|
218
220
|
return ((e = je.value) == null ? void 0 : e.menus) || [];
|
|
219
221
|
});
|
|
220
222
|
function He(e) {
|
|
221
223
|
Z.value = e, b("update:active-group", e);
|
|
222
|
-
const t =
|
|
224
|
+
const t = T.value.find((n) => n.key === e);
|
|
223
225
|
t && b("group-change", { key: t.key, title: t.title }), de(r.filter);
|
|
224
226
|
}
|
|
225
227
|
const te = V("");
|
|
@@ -242,7 +244,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
242
244
|
});
|
|
243
245
|
}
|
|
244
246
|
function Ue(e) {
|
|
245
|
-
for (const t of
|
|
247
|
+
for (const t of T.value) {
|
|
246
248
|
let n = null;
|
|
247
249
|
if (ne(t.menus, (c) => {
|
|
248
250
|
!n && c.path === e && (n = c);
|
|
@@ -267,16 +269,16 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
267
269
|
}
|
|
268
270
|
function le(e) {
|
|
269
271
|
const t = e._key || e.key;
|
|
270
|
-
t && (N.value.find((n) => n.key === t) || oe([...N.value, { key: t, title: e.title, path: e.path, affix: e.affix }]), K(t));
|
|
272
|
+
t && (N.value.find((n) => n.key === t) || oe([...N.value, { key: t, title: e.title, path: e.path, affix: e.affix, icon: e.icon }]), K(t));
|
|
271
273
|
}
|
|
272
274
|
function se(e) {
|
|
273
275
|
const t = N.value, n = t.findIndex((f) => f.key === e);
|
|
274
276
|
if (n < 0) return;
|
|
275
277
|
const c = t[n];
|
|
276
278
|
if (c.affix) return;
|
|
277
|
-
const
|
|
278
|
-
if (oe(
|
|
279
|
-
const f =
|
|
279
|
+
const u = t.filter((f) => f.key !== e);
|
|
280
|
+
if (oe(u), b("tab-close", { ...c }), C.value === e) {
|
|
281
|
+
const f = u[n] || u[n - 1];
|
|
280
282
|
f && K(f.key);
|
|
281
283
|
}
|
|
282
284
|
}
|
|
@@ -286,9 +288,9 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
286
288
|
function ae(e) {
|
|
287
289
|
const t = N.value, n = t.filter((f, M) => e(f, M) && !f.affix);
|
|
288
290
|
if (!n.length) return;
|
|
289
|
-
const c = new Set(n.map((f) => f.key)),
|
|
290
|
-
if (oe(
|
|
291
|
-
const f = t.findIndex((ie) => ie.key === C.value), M =
|
|
291
|
+
const c = new Set(n.map((f) => f.key)), u = t.filter((f) => !c.has(f.key));
|
|
292
|
+
if (oe(u), n.forEach((f) => b("tab-close", { ...f })), !u.find((f) => f.key === C.value)) {
|
|
293
|
+
const f = t.findIndex((ie) => ie.key === C.value), M = u[Math.min(f, u.length - 1)];
|
|
292
294
|
M && K(M.key);
|
|
293
295
|
}
|
|
294
296
|
}
|
|
@@ -351,9 +353,9 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
351
353
|
}
|
|
352
354
|
const Ce = y(() => we.value || r.footerInfo);
|
|
353
355
|
function ut(e) {
|
|
354
|
-
for (const t of
|
|
355
|
-
const n = [], c = (
|
|
356
|
-
for (const M of
|
|
356
|
+
for (const t of T.value) {
|
|
357
|
+
const n = [], c = (u, f) => {
|
|
358
|
+
for (const M of u) {
|
|
357
359
|
if (M._key === e)
|
|
358
360
|
return n.push(...f, M), !0;
|
|
359
361
|
if (M.children && M.children.length && c(M.children, [...f, M])) return !0;
|
|
@@ -364,7 +366,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
364
366
|
return {
|
|
365
367
|
chain: [
|
|
366
368
|
{ title: t.title, icon: t.icon },
|
|
367
|
-
...n.map((
|
|
369
|
+
...n.map((u) => ({ title: u.title, path: u.path, icon: u.icon }))
|
|
368
370
|
]
|
|
369
371
|
};
|
|
370
372
|
}
|
|
@@ -376,7 +378,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
376
378
|
}
|
|
377
379
|
let q = null;
|
|
378
380
|
_t(() => {
|
|
379
|
-
q = wt({ filter: r.filter, setFooterInfo: it, refresh: U, getActiveMenuChain: rt }), de(r.filter), r.contentMode === "tabs" &&
|
|
381
|
+
q = wt({ filter: r.filter, setFooterInfo: it, refresh: U, getActiveMenuChain: rt }), de(r.filter), r.contentMode === "tabs" && T.value.forEach(
|
|
380
382
|
(e) => ne(e.menus, (t) => {
|
|
381
383
|
t.affix && le(t);
|
|
382
384
|
})
|
|
@@ -384,32 +386,32 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
384
386
|
}), vt(() => {
|
|
385
387
|
q == null || q();
|
|
386
388
|
});
|
|
387
|
-
function
|
|
389
|
+
function E(e) {
|
|
388
390
|
return e ? typeof e == "string" ? Re[e] || null : e : null;
|
|
389
391
|
}
|
|
390
392
|
return X({ refresh: U, openTab: le, closeTab: se }), (e, t) => {
|
|
391
|
-
const n = m("el-icon"), c = m("el-menu-item-group"),
|
|
393
|
+
const n = m("el-icon"), c = m("el-menu-item-group"), u = m("el-badge"), f = m("el-menu-item"), M = m("el-menu"), ie = m("el-scrollbar"), Ge = m("el-avatar"), O = m("el-dropdown-item"), ue = m("el-dropdown-menu"), re = m("el-dropdown"), We = m("el-button"), dt = m("el-tab-pane"), ct = m("el-tabs");
|
|
392
394
|
return o(), _("div", {
|
|
393
395
|
class: Q(["wd-station", { "is-collapsed": S.value }])
|
|
394
396
|
}, [
|
|
395
|
-
|
|
397
|
+
i.menuMode === "side" ? (o(), _("aside", {
|
|
396
398
|
key: 0,
|
|
397
399
|
class: Q(["wd-station__aside", { "is-collapsed": S.value }])
|
|
398
400
|
}, [
|
|
399
|
-
|
|
401
|
+
k("div", {
|
|
400
402
|
class: Q(["wd-station__logo", { "is-collapsed": S.value }])
|
|
401
403
|
}, [
|
|
402
404
|
$(e.$slots, "logo", { collapsed: S.value }, () => [
|
|
403
|
-
|
|
405
|
+
E(i.logo) ? (o(), s(n, {
|
|
404
406
|
key: 0,
|
|
405
407
|
class: "wd-station__logo-icon"
|
|
406
408
|
}, {
|
|
407
409
|
default: l(() => [
|
|
408
|
-
(o(), s(
|
|
410
|
+
(o(), s(G(E(i.logo))))
|
|
409
411
|
]),
|
|
410
412
|
_: 1
|
|
411
|
-
})) :
|
|
412
|
-
ze(
|
|
413
|
+
})) : h("", !0),
|
|
414
|
+
ze(k("span", { class: "wd-station__logo-title" }, x(i.title), 513), [
|
|
413
415
|
[Ke, !S.value]
|
|
414
416
|
])
|
|
415
417
|
], !0)
|
|
@@ -423,10 +425,10 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
423
425
|
"default-active": C.value
|
|
424
426
|
}, {
|
|
425
427
|
default: l(() => {
|
|
426
|
-
var
|
|
428
|
+
var a;
|
|
427
429
|
return [
|
|
428
|
-
|
|
429
|
-
|
|
430
|
+
i.headerMode === "title" ? (o(), _(I, { key: 0 }, [
|
|
431
|
+
T.value.length > 1 ? (o(!0), _(I, { key: 0 }, W(T.value, (p) => (o(), s(c, {
|
|
430
432
|
key: p.key,
|
|
431
433
|
title: p.title
|
|
432
434
|
}, {
|
|
@@ -439,10 +441,10 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
439
441
|
_: 2
|
|
440
442
|
}, 1032, ["title"]))), 128)) : (o(), s(R, {
|
|
441
443
|
key: 1,
|
|
442
|
-
items: ((
|
|
444
|
+
items: ((a = T.value[0]) == null ? void 0 : a.menus) || [],
|
|
443
445
|
onSelect: L
|
|
444
446
|
}, null, 8, ["items"]))
|
|
445
|
-
], 64)) :
|
|
447
|
+
], 64)) : i.headerMode === "both" ? (o(!0), _(I, { key: 1 }, W(ee.value, (p) => (o(), _(I, {
|
|
446
448
|
key: p._key
|
|
447
449
|
}, [
|
|
448
450
|
p.children && p.children.length ? (o(), s(c, {
|
|
@@ -463,18 +465,18 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
463
465
|
onClick: (Ht) => L(p)
|
|
464
466
|
}, {
|
|
465
467
|
default: l(() => [
|
|
466
|
-
|
|
468
|
+
E(p.icon) ? (o(), s(n, { key: 0 }, {
|
|
467
469
|
default: l(() => [
|
|
468
|
-
(o(), s(
|
|
470
|
+
(o(), s(G(E(p.icon))))
|
|
469
471
|
]),
|
|
470
472
|
_: 2
|
|
471
|
-
}, 1024)) :
|
|
472
|
-
|
|
473
|
-
p.badge !== void 0 && p.badge !== "" ? (o(), s(
|
|
473
|
+
}, 1024)) : h("", !0),
|
|
474
|
+
k("span", null, x(p.title), 1),
|
|
475
|
+
p.badge !== void 0 && p.badge !== "" ? (o(), s(u, {
|
|
474
476
|
key: 1,
|
|
475
477
|
value: p.badge,
|
|
476
478
|
class: "wd-station__menu-badge"
|
|
477
|
-
}, null, 8, ["value"])) :
|
|
479
|
+
}, null, 8, ["value"])) : h("", !0)
|
|
478
480
|
]),
|
|
479
481
|
_: 2
|
|
480
482
|
}, 1032, ["index", "disabled", "onClick"]))
|
|
@@ -491,36 +493,36 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
491
493
|
_: 1
|
|
492
494
|
}),
|
|
493
495
|
$(e.$slots, "menu-bottom", { collapsed: S.value }, void 0, !0)
|
|
494
|
-
], 2)) :
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
496
|
+
], 2)) : h("", !0),
|
|
497
|
+
k("div", St, [
|
|
498
|
+
k("header", Mt, [
|
|
499
|
+
k("div", xt, [
|
|
500
|
+
i.collapsible && i.menuMode !== "none" ? (o(), s(n, {
|
|
499
501
|
key: 0,
|
|
500
502
|
class: "wd-station__collapse",
|
|
501
503
|
onClick: at
|
|
502
504
|
}, {
|
|
503
505
|
default: l(() => [
|
|
504
|
-
|
|
506
|
+
i.menuMode === "side" && !S.value ? (o(), s(A(ht), { key: 0 })) : i.menuMode === "side" ? (o(), s(A(kt), { key: 1 })) : S.value ? (o(), s(A(Le), { key: 3 })) : (o(), s(A(mt), { key: 2 }))
|
|
505
507
|
]),
|
|
506
508
|
_: 1
|
|
507
|
-
})) :
|
|
508
|
-
|
|
509
|
+
})) : h("", !0),
|
|
510
|
+
i.menuMode !== "side" ? (o(), _("div", $t, [
|
|
509
511
|
$(e.$slots, "logo", { collapsed: S.value }, () => [
|
|
510
|
-
|
|
512
|
+
E(i.logo) ? (o(), s(n, {
|
|
511
513
|
key: 0,
|
|
512
514
|
class: "wd-station__logo-icon"
|
|
513
515
|
}, {
|
|
514
516
|
default: l(() => [
|
|
515
|
-
(o(), s(
|
|
517
|
+
(o(), s(G(E(i.logo))))
|
|
516
518
|
]),
|
|
517
519
|
_: 1
|
|
518
|
-
})) :
|
|
519
|
-
|
|
520
|
+
})) : h("", !0),
|
|
521
|
+
k("span", At, x(i.title), 1)
|
|
520
522
|
], !0)
|
|
521
|
-
])) :
|
|
522
|
-
(o(!0), _(
|
|
523
|
-
|
|
523
|
+
])) : h("", !0),
|
|
524
|
+
(o(!0), _(I, null, W(lt.value, (a) => (o(), _(I, { key: a }, [
|
|
525
|
+
a === "refresh" ? (o(), s(n, {
|
|
524
526
|
key: 0,
|
|
525
527
|
"data-tool": "refresh",
|
|
526
528
|
class: "wd-station__tool",
|
|
@@ -530,7 +532,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
530
532
|
d(A(Oe))
|
|
531
533
|
]),
|
|
532
534
|
_: 1
|
|
533
|
-
})) :
|
|
535
|
+
})) : a === "settings" ? (o(), s(n, {
|
|
534
536
|
key: 1,
|
|
535
537
|
"data-tool": "settings",
|
|
536
538
|
class: "wd-station__tool",
|
|
@@ -540,7 +542,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
540
542
|
d(A(Ve))
|
|
541
543
|
]),
|
|
542
544
|
_: 1
|
|
543
|
-
})) :
|
|
545
|
+
})) : a === "user" ? (o(), s(re, {
|
|
544
546
|
key: 2,
|
|
545
547
|
"data-tool": "user",
|
|
546
548
|
class: "wd-station__tool",
|
|
@@ -551,7 +553,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
551
553
|
default: l(() => [
|
|
552
554
|
d(O, { onClick: me }, {
|
|
553
555
|
default: l(() => [...t[0] || (t[0] = [
|
|
554
|
-
|
|
556
|
+
B("退出登录", -1)
|
|
555
557
|
])]),
|
|
556
558
|
_: 1
|
|
557
559
|
})
|
|
@@ -560,56 +562,56 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
560
562
|
})
|
|
561
563
|
]),
|
|
562
564
|
default: l(() => [
|
|
563
|
-
|
|
564
|
-
d(
|
|
565
|
+
k("span", It, [
|
|
566
|
+
d(Ge, {
|
|
565
567
|
size: 24,
|
|
566
|
-
src:
|
|
568
|
+
src: i.userAvatar || void 0
|
|
567
569
|
}, {
|
|
568
570
|
default: l(() => [
|
|
569
|
-
|
|
571
|
+
B(x(ye.value), 1)
|
|
570
572
|
]),
|
|
571
573
|
_: 1
|
|
572
574
|
}, 8, ["src"]),
|
|
573
|
-
|
|
575
|
+
k("span", Tt, x(i.userName), 1)
|
|
574
576
|
])
|
|
575
577
|
]),
|
|
576
578
|
_: 1
|
|
577
|
-
})) :
|
|
579
|
+
})) : a === "login" ? (o(), s(We, {
|
|
578
580
|
key: 3,
|
|
579
581
|
"data-tool": "login",
|
|
580
582
|
size: "small",
|
|
581
583
|
onClick: ke
|
|
582
584
|
}, {
|
|
583
585
|
default: l(() => [...t[1] || (t[1] = [
|
|
584
|
-
|
|
586
|
+
B("登录", -1)
|
|
585
587
|
])]),
|
|
586
588
|
_: 1
|
|
587
|
-
})) :
|
|
589
|
+
})) : h("", !0)
|
|
588
590
|
], 64))), 128)),
|
|
589
591
|
$(e.$slots, "header-left", {}, void 0, !0)
|
|
590
592
|
]),
|
|
591
|
-
|
|
592
|
-
Je.value ? (o(), _("nav",
|
|
593
|
-
(o(!0), _(
|
|
594
|
-
key:
|
|
595
|
-
class: Q(["wd-station__nav-item", { "is-active":
|
|
596
|
-
onClick: (p) => He(
|
|
593
|
+
k("div", Nt, [
|
|
594
|
+
Je.value ? (o(), _("nav", Bt, [
|
|
595
|
+
(o(!0), _(I, null, W(T.value, (a) => (o(), _("span", {
|
|
596
|
+
key: a.key,
|
|
597
|
+
class: Q(["wd-station__nav-item", { "is-active": a.key === fe.value }]),
|
|
598
|
+
onClick: (p) => He(a.key)
|
|
597
599
|
}, [
|
|
598
|
-
|
|
600
|
+
E(a.icon) ? (o(), s(n, { key: 0 }, {
|
|
599
601
|
default: l(() => [
|
|
600
|
-
(o(), s(
|
|
602
|
+
(o(), s(G(E(a.icon))))
|
|
601
603
|
]),
|
|
602
604
|
_: 2
|
|
603
|
-
}, 1024)) :
|
|
604
|
-
|
|
605
|
-
], 10,
|
|
606
|
-
])) :
|
|
605
|
+
}, 1024)) : h("", !0),
|
|
606
|
+
B(" " + x(a.title), 1)
|
|
607
|
+
], 10, Et))), 128))
|
|
608
|
+
])) : i.showHeaderTitle ? (o(), _("span", Gt, x(i.title), 1)) : h("", !0),
|
|
607
609
|
$(e.$slots, "header-center", {}, void 0, !0)
|
|
608
610
|
]),
|
|
609
|
-
|
|
611
|
+
k("div", Wt, [
|
|
610
612
|
$(e.$slots, "header-right", {}, void 0, !0),
|
|
611
|
-
(o(!0), _(
|
|
612
|
-
|
|
613
|
+
(o(!0), _(I, null, W(st.value, (a) => (o(), _(I, { key: a }, [
|
|
614
|
+
a === "refresh" ? (o(), s(n, {
|
|
613
615
|
key: 0,
|
|
614
616
|
"data-tool": "refresh",
|
|
615
617
|
class: "wd-station__tool",
|
|
@@ -619,7 +621,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
619
621
|
d(A(Oe))
|
|
620
622
|
]),
|
|
621
623
|
_: 1
|
|
622
|
-
})) :
|
|
624
|
+
})) : a === "settings" ? (o(), s(n, {
|
|
623
625
|
key: 1,
|
|
624
626
|
"data-tool": "settings",
|
|
625
627
|
class: "wd-station__tool",
|
|
@@ -629,7 +631,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
629
631
|
d(A(Ve))
|
|
630
632
|
]),
|
|
631
633
|
_: 1
|
|
632
|
-
})) :
|
|
634
|
+
})) : a === "user" ? (o(), s(re, {
|
|
633
635
|
key: 2,
|
|
634
636
|
"data-tool": "user",
|
|
635
637
|
class: "wd-station__tool",
|
|
@@ -640,7 +642,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
640
642
|
default: l(() => [
|
|
641
643
|
d(O, { onClick: me }, {
|
|
642
644
|
default: l(() => [...t[2] || (t[2] = [
|
|
643
|
-
|
|
645
|
+
B("退出登录", -1)
|
|
644
646
|
])]),
|
|
645
647
|
_: 1
|
|
646
648
|
})
|
|
@@ -649,35 +651,35 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
649
651
|
})
|
|
650
652
|
]),
|
|
651
653
|
default: l(() => [
|
|
652
|
-
|
|
653
|
-
d(
|
|
654
|
+
k("span", Dt, [
|
|
655
|
+
d(Ge, {
|
|
654
656
|
size: 24,
|
|
655
|
-
src:
|
|
657
|
+
src: i.userAvatar || void 0
|
|
656
658
|
}, {
|
|
657
659
|
default: l(() => [
|
|
658
|
-
|
|
660
|
+
B(x(ye.value), 1)
|
|
659
661
|
]),
|
|
660
662
|
_: 1
|
|
661
663
|
}, 8, ["src"]),
|
|
662
|
-
|
|
664
|
+
k("span", zt, x(i.userName), 1)
|
|
663
665
|
])
|
|
664
666
|
]),
|
|
665
667
|
_: 1
|
|
666
|
-
})) :
|
|
668
|
+
})) : a === "login" ? (o(), s(We, {
|
|
667
669
|
key: 3,
|
|
668
670
|
"data-tool": "login",
|
|
669
671
|
size: "small",
|
|
670
672
|
onClick: ke
|
|
671
673
|
}, {
|
|
672
674
|
default: l(() => [...t[3] || (t[3] = [
|
|
673
|
-
|
|
675
|
+
B("登录", -1)
|
|
674
676
|
])]),
|
|
675
677
|
_: 1
|
|
676
|
-
})) :
|
|
678
|
+
})) : h("", !0)
|
|
677
679
|
], 64))), 128))
|
|
678
680
|
])
|
|
679
681
|
]),
|
|
680
|
-
|
|
682
|
+
i.menuMode === "top" ? ze((o(), _("div", Kt, [
|
|
681
683
|
$(e.$slots, "top-menu-left", {}, void 0, !0),
|
|
682
684
|
d(M, {
|
|
683
685
|
mode: "horizontal",
|
|
@@ -694,8 +696,8 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
694
696
|
$(e.$slots, "top-menu-right", {}, void 0, !0)
|
|
695
697
|
], 512)), [
|
|
696
698
|
[Ke, !S.value]
|
|
697
|
-
]) :
|
|
698
|
-
|
|
699
|
+
]) : h("", !0),
|
|
700
|
+
i.contentMode === "tabs" ? (o(), _("div", Lt, [
|
|
699
701
|
$(e.$slots, "tabs-left", {}, void 0, !0),
|
|
700
702
|
d(ct, {
|
|
701
703
|
"model-value": C.value,
|
|
@@ -703,19 +705,28 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
703
705
|
class: "wd-station__tabs"
|
|
704
706
|
}, {
|
|
705
707
|
default: l(() => [
|
|
706
|
-
(o(!0), _(
|
|
707
|
-
key:
|
|
708
|
-
name:
|
|
708
|
+
(o(!0), _(I, null, W(N.value, (a) => (o(), s(dt, {
|
|
709
|
+
key: a.key,
|
|
710
|
+
name: a.key
|
|
709
711
|
}, {
|
|
710
712
|
label: l(() => [
|
|
711
|
-
|
|
712
|
-
class: "wd-station__tab-label",
|
|
713
|
-
onClick: (p) => qe(u)
|
|
714
|
-
}, x(u.title), 9, Ot),
|
|
715
|
-
u.affix ? k("", !0) : (o(), s(n, {
|
|
713
|
+
i.tabIcon && a.icon ? (o(), s(n, {
|
|
716
714
|
key: 0,
|
|
715
|
+
class: "wd-station__tab-icon"
|
|
716
|
+
}, {
|
|
717
|
+
default: l(() => [
|
|
718
|
+
(o(), s(G(E(a.icon))))
|
|
719
|
+
]),
|
|
720
|
+
_: 2
|
|
721
|
+
}, 1024)) : h("", !0),
|
|
722
|
+
k("span", {
|
|
723
|
+
class: "wd-station__tab-label",
|
|
724
|
+
onClick: (p) => qe(a)
|
|
725
|
+
}, x(a.title), 9, Ot),
|
|
726
|
+
a.affix ? h("", !0) : (o(), s(n, {
|
|
727
|
+
key: 1,
|
|
717
728
|
class: "wd-station__tab-close",
|
|
718
|
-
onClick: pt((p) => se(
|
|
729
|
+
onClick: pt((p) => se(a.key), ["stop"])
|
|
719
730
|
}, {
|
|
720
731
|
default: l(() => [
|
|
721
732
|
d(A(gt))
|
|
@@ -740,7 +751,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
740
751
|
onClick: Qe
|
|
741
752
|
}, {
|
|
742
753
|
default: l(() => [...t[4] || (t[4] = [
|
|
743
|
-
|
|
754
|
+
B("关闭当前标签", -1)
|
|
744
755
|
])]),
|
|
745
756
|
_: 1
|
|
746
757
|
}, 8, ["disabled"]),
|
|
@@ -749,7 +760,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
749
760
|
onClick: Xe
|
|
750
761
|
}, {
|
|
751
762
|
default: l(() => [...t[5] || (t[5] = [
|
|
752
|
-
|
|
763
|
+
B("关闭左侧标签", -1)
|
|
753
764
|
])]),
|
|
754
765
|
_: 1
|
|
755
766
|
}, 8, ["disabled"]),
|
|
@@ -758,7 +769,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
758
769
|
onClick: Ye
|
|
759
770
|
}, {
|
|
760
771
|
default: l(() => [...t[6] || (t[6] = [
|
|
761
|
-
|
|
772
|
+
B("关闭其他标签", -1)
|
|
762
773
|
])]),
|
|
763
774
|
_: 1
|
|
764
775
|
}, 8, ["disabled"]),
|
|
@@ -767,7 +778,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
767
778
|
onClick: Ze
|
|
768
779
|
}, {
|
|
769
780
|
default: l(() => [...t[7] || (t[7] = [
|
|
770
|
-
|
|
781
|
+
B("关闭所有标签", -1)
|
|
771
782
|
])]),
|
|
772
783
|
_: 1
|
|
773
784
|
}, 8, ["disabled"])
|
|
@@ -776,7 +787,7 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
776
787
|
})
|
|
777
788
|
]),
|
|
778
789
|
default: l(() => [
|
|
779
|
-
|
|
790
|
+
k("span", Vt, [
|
|
780
791
|
d(n, null, {
|
|
781
792
|
default: l(() => [
|
|
782
793
|
d(A(Le))
|
|
@@ -788,31 +799,31 @@ const Ct = /* @__PURE__ */ Fe({
|
|
|
788
799
|
_: 1
|
|
789
800
|
}),
|
|
790
801
|
$(e.$slots, "tabs-right", {}, void 0, !0)
|
|
791
|
-
])) :
|
|
792
|
-
|
|
802
|
+
])) : h("", !0),
|
|
803
|
+
k("main", Ft, [
|
|
793
804
|
(o(), _("div", {
|
|
794
805
|
key: be.value,
|
|
795
806
|
class: "wd-station__content-inner"
|
|
796
807
|
}, [
|
|
797
|
-
z.value && A(D) ? (o(), _(
|
|
798
|
-
|
|
799
|
-
(o(), s(
|
|
800
|
-
], 1024)) : (o(), s(
|
|
808
|
+
z.value && A(D) ? (o(), _(I, { key: 0 }, [
|
|
809
|
+
i.keepAlive ? (o(), s(yt, { key: 0 }, [
|
|
810
|
+
(o(), s(G(A(D))))
|
|
811
|
+
], 1024)) : (o(), s(G(A(D)), { key: 1 }))
|
|
801
812
|
], 64)) : $(e.$slots, "default", {}, void 0, !0, 1)
|
|
802
813
|
]))
|
|
803
814
|
]),
|
|
804
|
-
|
|
815
|
+
k("footer", Rt, [
|
|
805
816
|
$(e.$slots, "footer", {}, () => [
|
|
806
|
-
Ce.value ? (o(), _("span", Pt, x(Ce.value), 1)) :
|
|
807
|
-
|
|
817
|
+
Ce.value ? (o(), _("span", Pt, x(Ce.value), 1)) : h("", !0),
|
|
818
|
+
i.copyright ? (o(), _("span", Jt, x(i.copyright), 1)) : h("", !0)
|
|
808
819
|
], !0)
|
|
809
820
|
])
|
|
810
821
|
])
|
|
811
822
|
], 2);
|
|
812
823
|
};
|
|
813
824
|
}
|
|
814
|
-
}), Zt = /* @__PURE__ */ Pe(jt, [["__scopeId", "data-v-
|
|
825
|
+
}), Zt = /* @__PURE__ */ Pe(jt, [["__scopeId", "data-v-493872fe"]]);
|
|
815
826
|
export {
|
|
816
827
|
Zt as W
|
|
817
828
|
};
|
|
818
|
-
//# sourceMappingURL=Station-
|
|
829
|
+
//# sourceMappingURL=Station-DDoJem4F.mjs.map
|