@chewel611/naive-ui-plus 0.0.25 → 0.0.27
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/index.js +551 -544
- package/dist/index.umd.cjs +1 -1
- package/es/languages/PLanguage.vue.js +24 -22
- package/es/languages/store.d.ts +21 -21
- package/es/languages/store.js +26 -24
- package/es/languages/typing.d.ts +2 -2
- package/es/layout/store.d.ts +4 -1
- package/es/layout/store.js +8 -5
- package/lib/languages/PLanguage.vue.cjs +1 -1
- package/lib/languages/store.cjs +1 -1
- package/lib/languages/store.d.ts +21 -21
- package/lib/languages/typing.d.ts +2 -2
- package/lib/layout/store.cjs +1 -1
- package/lib/layout/store.d.ts +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useDialog as Me, useMessage as fe, NCard as Xe, NDataTable as Ge, NModal as Re, NSpace as Ne, NButton as K, NTooltip as De, NIcon as M, NDropdown as Z, NAvatar as Ae, NBreadcrumb as Je, NBreadcrumbItem as Ze, NDivider as Qe, useThemeVars as et, NMenu as tt, NLayout as $e, NLayoutSider as at, NFlex as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { PlusSquareOutlined as
|
|
1
|
+
import { useDialog as Me, useMessage as fe, NCard as Xe, NDataTable as Ge, NModal as Re, NSpace as Ne, NButton as K, NTooltip as De, NIcon as M, NDropdown as Z, NAvatar as Ae, NBreadcrumb as Je, NBreadcrumbItem as Ze, NDivider as Qe, useThemeVars as et, NMenu as tt, NLayout as $e, NLayoutSider as at, NFlex as nt, NLayoutHeader as ot, NLayoutContent as lt, NBackTop as st, NConfigProvider as rt, dateZhCN as it, zhCN as ct, NDialogProvider as ut, NNotificationProvider as dt, NMessageProvider as ft, NText as gt, NEmpty as pt, NSpin as ht, NResult as ke } from "naive-ui";
|
|
2
|
+
import { defineComponent as z, ref as T, computed as j, unref as a, onMounted as Q, openBlock as y, createBlock as $, withCtx as r, createElementVNode as P, createElementBlock as D, renderSlot as F, createCommentVNode as I, createVNode as i, normalizeStyle as de, createTextVNode as Y, h as B, toRaw as J, reactive as Le, normalizeClass as ae, withDirectives as mt, toDisplayString as q, vShow as vt, nextTick as ne, inject as Ie, Fragment as Oe, renderList as _t, resolveDynamicComponent as we, withModifiers as Pe, resolveComponent as ze, KeepAlive as yt, useCssVars as bt, watch as Be, provide as wt, mergeProps as Pt, onBeforeMount as kt } from "vue";
|
|
3
|
+
import { PlusSquareOutlined as Lt, DeleteOutlined as Ct, ReloadOutlined as Ce, MoreOutlined as xt, MenuUnfoldOutlined as St, MenuFoldOutlined as Tt, FullscreenOutlined as $t, FullscreenExitOutlined as Ot, CloseOutlined as Ee, ColumnWidthOutlined as Et, MinusOutlined as Mt, LeftOutlined as Rt, RightOutlined as Nt, DownOutlined as Dt } from "@vicons/antd";
|
|
4
4
|
import { cloneDeep as At } from "lodash";
|
|
5
5
|
import { defineStore as xe } from "pinia";
|
|
6
|
-
import { useRouter as
|
|
6
|
+
import { useRouter as oe, useRoute as le } from "vue-router";
|
|
7
7
|
import It from "element-resize-detector";
|
|
8
8
|
import zt from "vuedraggable";
|
|
9
9
|
const We = (t) => {
|
|
10
|
-
Object.keys(t).forEach((
|
|
11
|
-
const
|
|
12
|
-
Array.isArray(
|
|
10
|
+
Object.keys(t).forEach((o) => {
|
|
11
|
+
const u = t[o];
|
|
12
|
+
Array.isArray(u) ? t[o] = [] : u !== null && typeof u == "object" ? We(u) : t[o] = void 0;
|
|
13
13
|
});
|
|
14
14
|
}, Bt = { id: "data-content" }, Wt = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "rounded-lg bg-gray-50 flex flex-row gap-2 items-center justify-end p-5 mb-5"
|
|
17
|
-
}, Ht = { key: 1 }, Ut = { key: 2 }, jt = /* @__PURE__ */
|
|
17
|
+
}, Ht = { key: 1 }, Ut = { key: 2 }, jt = /* @__PURE__ */ z({
|
|
18
18
|
__name: "PTable",
|
|
19
19
|
props: {
|
|
20
20
|
idField: { default: "id" },
|
|
@@ -31,27 +31,27 @@ const We = (t) => {
|
|
|
31
31
|
onSave: {},
|
|
32
32
|
onDelete: {}
|
|
33
33
|
},
|
|
34
|
-
setup(t, { expose:
|
|
35
|
-
const
|
|
34
|
+
setup(t, { expose: o }) {
|
|
35
|
+
const u = T(null), v = Me(), m = fe(), d = T(!1), L = T([]), w = T([]), S = T(null), O = T(!1), l = T(!1), _ = T(!1), c = T({}), C = T({
|
|
36
36
|
page: 1,
|
|
37
37
|
itemCount: 0,
|
|
38
38
|
pageSize: 10,
|
|
39
39
|
pageSizes: [10, 20, 30, 50],
|
|
40
40
|
showSizePicker: !0,
|
|
41
|
-
onChange: async (
|
|
42
|
-
|
|
41
|
+
onChange: async (g) => {
|
|
42
|
+
C.value.page = g, await U();
|
|
43
43
|
},
|
|
44
|
-
onUpdatePageSize: async (
|
|
45
|
-
|
|
44
|
+
onUpdatePageSize: async (g) => {
|
|
45
|
+
C.value.pageSize = g, await U();
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), p = t, f = (g) => {
|
|
48
48
|
const e = (n) => {
|
|
49
49
|
const s = [];
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
label:
|
|
53
|
-
key:
|
|
54
|
-
props: { onClick: () =>
|
|
50
|
+
return g && g.forEach((k) => {
|
|
51
|
+
k.key !== "edit" && k.key !== "delete" && s.push({
|
|
52
|
+
label: k.name,
|
|
53
|
+
key: k.key,
|
|
54
|
+
props: { onClick: () => k.action(n) }
|
|
55
55
|
});
|
|
56
56
|
}), s;
|
|
57
57
|
};
|
|
@@ -62,14 +62,14 @@ const We = (t) => {
|
|
|
62
62
|
fixed: "right",
|
|
63
63
|
render: (n) => {
|
|
64
64
|
let s = [];
|
|
65
|
-
if (
|
|
65
|
+
if (p.hiddenEdit || s.push({
|
|
66
66
|
label: "编辑",
|
|
67
67
|
key: "edit",
|
|
68
68
|
props: { onClick: () => ge(n) }
|
|
69
|
-
}),
|
|
69
|
+
}), p.hiddenDelete || s.push({
|
|
70
70
|
label: "删除",
|
|
71
71
|
key: "delete",
|
|
72
|
-
props: { onClick: () =>
|
|
72
|
+
props: { onClick: () => R(n) }
|
|
73
73
|
}), s = [...s, ...e(n)], !(s.length <= 0))
|
|
74
74
|
return B(
|
|
75
75
|
Z,
|
|
@@ -87,134 +87,134 @@ const We = (t) => {
|
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
|
-
},
|
|
91
|
-
const
|
|
90
|
+
}, b = j(() => {
|
|
91
|
+
const g = p.columns.filter((n) => n.key != "action").map((n) => ({
|
|
92
92
|
title: n.title,
|
|
93
93
|
key: n.key,
|
|
94
94
|
width: n.width,
|
|
95
95
|
fixed: n.fixed ?? !1,
|
|
96
96
|
render: n.render,
|
|
97
97
|
ellipsis: n.ellipsis ? { tooltip: !0 } : !1
|
|
98
|
-
})), e =
|
|
98
|
+
})), e = p.columns.reduce(
|
|
99
99
|
(n, s) => s.key === "action" ? s : n,
|
|
100
100
|
void 0
|
|
101
101
|
)?.action;
|
|
102
|
-
return e && e?.length > 0 || !
|
|
102
|
+
return e && e?.length > 0 || !p.hiddenDelete || !p.hiddenEdit ? [
|
|
103
103
|
{ type: "selection", fixed: "left" },
|
|
104
|
-
...
|
|
105
|
-
|
|
106
|
-
] : [{ type: "selection", fixed: "left" }, ...
|
|
107
|
-
}),
|
|
104
|
+
...g,
|
|
105
|
+
f(e)
|
|
106
|
+
] : [{ type: "selection", fixed: "left" }, ...g];
|
|
107
|
+
}), h = async () => {
|
|
108
108
|
await U();
|
|
109
|
-
},
|
|
110
|
-
|
|
109
|
+
}, R = (g) => {
|
|
110
|
+
x([g]);
|
|
111
111
|
}, E = () => {
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
|
|
112
|
+
const g = G();
|
|
113
|
+
x(g);
|
|
114
|
+
}, x = (g) => {
|
|
115
|
+
g && g.length > 0 && v.warning({
|
|
116
116
|
title: "警告",
|
|
117
117
|
content: "删除数据不可恢复, 确认删除吗?",
|
|
118
118
|
positiveText: "确定",
|
|
119
119
|
negativeText: "取消",
|
|
120
120
|
onPositiveClick: async () => {
|
|
121
|
-
if (
|
|
121
|
+
if (p.onDelete)
|
|
122
122
|
try {
|
|
123
|
-
await
|
|
123
|
+
await p.onDelete(g) ? (U(), m.success("删除成功")) : m.error("删除失败");
|
|
124
124
|
} catch (e) {
|
|
125
|
-
|
|
125
|
+
m.error(e.message);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
}, ee = () => {
|
|
130
|
-
|
|
131
|
-
}, ge = async (
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
S.value = null, ie();
|
|
131
|
+
}, ge = async (g) => {
|
|
132
|
+
S.value = At(g), ie(S.value, async () => {
|
|
133
|
+
p.onGet && (S.value = await p.onGet(g[p.idField])), Object.assign(p.item, S.value);
|
|
134
134
|
});
|
|
135
135
|
}, re = async () => {
|
|
136
|
-
if (
|
|
136
|
+
if (p.onSave)
|
|
137
137
|
try {
|
|
138
|
-
|
|
139
|
-
} catch (
|
|
140
|
-
|
|
138
|
+
_.value = !0, (O.value ? await p.onSave(void 0, J(p.item)) : await p.onSave(S.value[p.idField], J(p.item))) && (X(), await U());
|
|
139
|
+
} catch (g) {
|
|
140
|
+
m.error(g.message);
|
|
141
141
|
} finally {
|
|
142
|
-
|
|
142
|
+
_.value = !1;
|
|
143
143
|
}
|
|
144
|
-
}, ie = async (
|
|
145
|
-
|
|
144
|
+
}, ie = async (g, e) => {
|
|
145
|
+
p.onOpenModal?.(g), await e?.(), g ? (O.value = !1, l.value = !0) : (l.value = !1, O.value = !0);
|
|
146
146
|
}, X = () => {
|
|
147
|
-
|
|
148
|
-
}, G = () => L.value ?
|
|
149
|
-
if (!
|
|
150
|
-
|
|
147
|
+
S.value = null, We(p.item), Object.assign(p.item, { ...J(c.value) }), p.onCloseModal?.(p.item), O.value = !1, l.value = !1;
|
|
148
|
+
}, G = () => L.value ? w.value.filter((e) => L.value.includes(e.id)).map((e) => J(e)) : [], pe = () => G()[0], he = () => J(w.value), U = async () => {
|
|
149
|
+
if (!d.value) {
|
|
150
|
+
d.value = !0;
|
|
151
151
|
try {
|
|
152
|
-
if (
|
|
153
|
-
var { data:
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
if (p.onLoad) {
|
|
153
|
+
var { data: g, total: e } = await p.onLoad(
|
|
154
|
+
C.value.page,
|
|
155
|
+
C.value.pageSize
|
|
156
156
|
);
|
|
157
|
-
|
|
157
|
+
w.value = g, C.value.itemCount = e;
|
|
158
158
|
}
|
|
159
159
|
} catch (n) {
|
|
160
|
-
|
|
160
|
+
m.error(n.message);
|
|
161
161
|
} finally {
|
|
162
|
-
|
|
162
|
+
d.value = !1;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}, me = j(() => {
|
|
166
|
-
const
|
|
167
|
-
if (!
|
|
168
|
-
const e =
|
|
169
|
-
let
|
|
166
|
+
const g = a(u);
|
|
167
|
+
if (!g) return;
|
|
168
|
+
const e = g?.$el, n = e.querySelector(".n-data-table-thead "), { bottomIncludeBody: s } = te(n), k = 64;
|
|
169
|
+
let N = 2, A = 24;
|
|
170
170
|
const V = e.querySelector(
|
|
171
171
|
".n-data-table__pagination"
|
|
172
172
|
);
|
|
173
173
|
if (V) {
|
|
174
174
|
const _e = V.offsetHeight;
|
|
175
|
-
|
|
175
|
+
N += _e || 0;
|
|
176
176
|
} else
|
|
177
|
-
|
|
178
|
-
return s - (
|
|
179
|
-
}), ce = (
|
|
180
|
-
const e = document.documentElement, n = e.scrollLeft, s = e.scrollTop,
|
|
177
|
+
N += 28;
|
|
178
|
+
return s - (k + N + A);
|
|
179
|
+
}), ce = (g) => !g || !g.getBoundingClientRect ? 0 : g.getBoundingClientRect(), te = (g) => {
|
|
180
|
+
const e = document.documentElement, n = e.scrollLeft, s = e.scrollTop, k = e.clientLeft, N = e.clientTop, A = window.pageXOffset, V = window.pageYOffset, ue = ce(g), {
|
|
181
181
|
left: _e,
|
|
182
182
|
top: Ue,
|
|
183
183
|
width: je,
|
|
184
184
|
height: Fe
|
|
185
|
-
} = ue, qe = (
|
|
185
|
+
} = ue, qe = (A || n) - (k || 0), Ve = (V || s) - (N || 0), Ke = _e + A, Ye = Ue + V, ye = Ke - qe, be = Ye - Ve, Se = window.document.documentElement.clientWidth, Te = window.document.documentElement.clientHeight;
|
|
186
186
|
return {
|
|
187
|
-
left:
|
|
188
|
-
top:
|
|
189
|
-
right: Se - je -
|
|
190
|
-
bottom: Te - Fe -
|
|
191
|
-
rightIncludeBody: Se -
|
|
192
|
-
bottomIncludeBody: Te -
|
|
187
|
+
left: ye,
|
|
188
|
+
top: be,
|
|
189
|
+
right: Se - je - ye,
|
|
190
|
+
bottom: Te - Fe - be,
|
|
191
|
+
rightIncludeBody: Se - ye,
|
|
192
|
+
bottomIncludeBody: Te - be
|
|
193
193
|
};
|
|
194
194
|
}, ve = () => {
|
|
195
|
-
|
|
195
|
+
c.value = { ...J(p.item) };
|
|
196
196
|
};
|
|
197
197
|
return Q(async () => {
|
|
198
198
|
ve(), await U();
|
|
199
|
-
}),
|
|
199
|
+
}), o({
|
|
200
200
|
getData: he,
|
|
201
201
|
getSelectedRow: pe,
|
|
202
202
|
getSelectedRows: G,
|
|
203
203
|
closeModal: X,
|
|
204
204
|
refreshData: U,
|
|
205
205
|
resetPage: () => {
|
|
206
|
-
|
|
206
|
+
C.value.page = 1;
|
|
207
207
|
}
|
|
208
|
-
}), (
|
|
209
|
-
const n = De, s = Ge,
|
|
210
|
-
return
|
|
208
|
+
}), (g, e) => {
|
|
209
|
+
const n = De, s = Ge, k = Ne, N = Re;
|
|
210
|
+
return y(), $(a(Xe), {
|
|
211
211
|
title: " ",
|
|
212
212
|
"header-class": "p-4",
|
|
213
213
|
"content-class": "pl-4 pr-4",
|
|
214
214
|
bordered: !1
|
|
215
215
|
}, {
|
|
216
216
|
"header-extra": r(() => [
|
|
217
|
-
t.hiddenAdd ?
|
|
217
|
+
t.hiddenAdd ? I("", !0) : (y(), $(n, {
|
|
218
218
|
key: 0,
|
|
219
219
|
trigger: "hover"
|
|
220
220
|
}, {
|
|
@@ -225,17 +225,17 @@ const We = (t) => {
|
|
|
225
225
|
onClick: ee
|
|
226
226
|
}, {
|
|
227
227
|
default: r(() => [
|
|
228
|
-
i(a(
|
|
228
|
+
i(a(Lt))
|
|
229
229
|
]),
|
|
230
230
|
_: 1
|
|
231
231
|
})
|
|
232
232
|
]),
|
|
233
233
|
default: r(() => [
|
|
234
|
-
e[3] || (e[3] =
|
|
234
|
+
e[3] || (e[3] = P("span", null, "新增", -1))
|
|
235
235
|
]),
|
|
236
236
|
_: 1
|
|
237
237
|
})),
|
|
238
|
-
t.hiddenDelete ?
|
|
238
|
+
t.hiddenDelete ? I("", !0) : (y(), $(n, {
|
|
239
239
|
key: 1,
|
|
240
240
|
trigger: "hover"
|
|
241
241
|
}, {
|
|
@@ -246,13 +246,13 @@ const We = (t) => {
|
|
|
246
246
|
onClick: E
|
|
247
247
|
}, {
|
|
248
248
|
default: r(() => [
|
|
249
|
-
i(a(
|
|
249
|
+
i(a(Ct))
|
|
250
250
|
]),
|
|
251
251
|
_: 1
|
|
252
252
|
})
|
|
253
253
|
]),
|
|
254
254
|
default: r(() => [
|
|
255
|
-
e[4] || (e[4] =
|
|
255
|
+
e[4] || (e[4] = P("span", null, "删除", -1))
|
|
256
256
|
]),
|
|
257
257
|
_: 1
|
|
258
258
|
})),
|
|
@@ -261,46 +261,46 @@ const We = (t) => {
|
|
|
261
261
|
i(a(M), {
|
|
262
262
|
size: "18",
|
|
263
263
|
class: "cursor-pointer hover:text-blue-600",
|
|
264
|
-
onClick:
|
|
264
|
+
onClick: h
|
|
265
265
|
}, {
|
|
266
266
|
default: r(() => [
|
|
267
|
-
i(a(
|
|
267
|
+
i(a(Ce))
|
|
268
268
|
]),
|
|
269
269
|
_: 1
|
|
270
270
|
})
|
|
271
271
|
]),
|
|
272
272
|
default: r(() => [
|
|
273
|
-
e[5] || (e[5] =
|
|
273
|
+
e[5] || (e[5] = P("span", null, "刷新", -1))
|
|
274
274
|
]),
|
|
275
275
|
_: 1
|
|
276
276
|
})
|
|
277
277
|
]),
|
|
278
278
|
default: r(() => [
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
F(
|
|
282
|
-
])) :
|
|
279
|
+
P("div", Bt, [
|
|
280
|
+
g.$slots.toolbar ? (y(), D("div", Wt, [
|
|
281
|
+
F(g.$slots, "toolbar")
|
|
282
|
+
])) : I("", !0),
|
|
283
283
|
i(s, {
|
|
284
284
|
remote: "",
|
|
285
285
|
ref_key: "$table",
|
|
286
|
-
ref:
|
|
286
|
+
ref: u,
|
|
287
287
|
"checked-row-keys": L.value,
|
|
288
|
-
"onUpdate:checkedRowKeys": e[0] || (e[0] = (
|
|
288
|
+
"onUpdate:checkedRowKeys": e[0] || (e[0] = (A) => L.value = A),
|
|
289
289
|
"max-height": me.value,
|
|
290
|
-
loading:
|
|
290
|
+
loading: d.value,
|
|
291
291
|
bordered: !1,
|
|
292
292
|
"single-line": !1,
|
|
293
|
-
columns:
|
|
294
|
-
data:
|
|
295
|
-
pagination:
|
|
296
|
-
"row-key": (
|
|
293
|
+
columns: b.value,
|
|
294
|
+
data: w.value,
|
|
295
|
+
pagination: C.value,
|
|
296
|
+
"row-key": (A) => A[t.idField]
|
|
297
297
|
}, null, 8, ["checked-row-keys", "max-height", "loading", "columns", "data", "pagination", "row-key"]),
|
|
298
|
-
|
|
299
|
-
i(
|
|
298
|
+
g.$slots.addModal ? (y(), D("div", Ht, [
|
|
299
|
+
i(N, {
|
|
300
300
|
title: "新增",
|
|
301
301
|
preset: "card",
|
|
302
|
-
show:
|
|
303
|
-
"onUpdate:show": e[1] || (e[1] = (
|
|
302
|
+
show: O.value,
|
|
303
|
+
"onUpdate:show": e[1] || (e[1] = (A) => O.value = A),
|
|
304
304
|
"header-class": "bg-gray-50",
|
|
305
305
|
closable: !1,
|
|
306
306
|
"close-on-esc": !1,
|
|
@@ -309,11 +309,11 @@ const We = (t) => {
|
|
|
309
309
|
style: de({ width: `${t.modalWidth}px` })
|
|
310
310
|
}, {
|
|
311
311
|
action: r(() => [
|
|
312
|
-
i(
|
|
312
|
+
i(k, { justify: "end" }, {
|
|
313
313
|
default: r(() => [
|
|
314
314
|
i(a(K), {
|
|
315
315
|
type: "primary",
|
|
316
|
-
loading:
|
|
316
|
+
loading: _.value,
|
|
317
317
|
onClick: re
|
|
318
318
|
}, {
|
|
319
319
|
default: r(() => [...e[6] || (e[6] = [
|
|
@@ -332,16 +332,16 @@ const We = (t) => {
|
|
|
332
332
|
})
|
|
333
333
|
]),
|
|
334
334
|
default: r(() => [
|
|
335
|
-
F(
|
|
335
|
+
F(g.$slots, "addModal")
|
|
336
336
|
]),
|
|
337
337
|
_: 3
|
|
338
338
|
}, 8, ["show", "style"])
|
|
339
|
-
])) :
|
|
340
|
-
|
|
341
|
-
i(
|
|
339
|
+
])) : I("", !0),
|
|
340
|
+
g.$slots.editModal ? (y(), D("div", Ut, [
|
|
341
|
+
i(N, {
|
|
342
342
|
title: "编辑",
|
|
343
|
-
show:
|
|
344
|
-
"onUpdate:show": e[2] || (e[2] = (
|
|
343
|
+
show: l.value,
|
|
344
|
+
"onUpdate:show": e[2] || (e[2] = (A) => l.value = A),
|
|
345
345
|
preset: "card",
|
|
346
346
|
"header-class": "bg-gray-50",
|
|
347
347
|
closable: !1,
|
|
@@ -351,11 +351,11 @@ const We = (t) => {
|
|
|
351
351
|
style: de({ width: `${t.modalWidth}px` })
|
|
352
352
|
}, {
|
|
353
353
|
action: r(() => [
|
|
354
|
-
i(
|
|
354
|
+
i(k, { justify: "end" }, {
|
|
355
355
|
default: r(() => [
|
|
356
356
|
i(a(K), {
|
|
357
357
|
type: "primary",
|
|
358
|
-
loading:
|
|
358
|
+
loading: _.value,
|
|
359
359
|
onClick: re
|
|
360
360
|
}, {
|
|
361
361
|
default: r(() => [...e[8] || (e[8] = [
|
|
@@ -374,11 +374,11 @@ const We = (t) => {
|
|
|
374
374
|
})
|
|
375
375
|
]),
|
|
376
376
|
default: r(() => [
|
|
377
|
-
F(
|
|
377
|
+
F(g.$slots, "editModal")
|
|
378
378
|
]),
|
|
379
379
|
_: 3
|
|
380
380
|
}, 8, ["show", "style"])
|
|
381
|
-
])) :
|
|
381
|
+
])) : I("", !0)
|
|
382
382
|
])
|
|
383
383
|
]),
|
|
384
384
|
_: 3
|
|
@@ -386,12 +386,12 @@ const We = (t) => {
|
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
}), W = (t) => {
|
|
389
|
-
const
|
|
390
|
-
return
|
|
391
|
-
|
|
389
|
+
const o = t;
|
|
390
|
+
return o.install = function(u) {
|
|
391
|
+
u.component(o.__name, t);
|
|
392
392
|
}, t;
|
|
393
393
|
}, Ft = W(jt), qt = ["Redirect", "RedirectSon", "login"], se = xe("p-layout", () => {
|
|
394
|
-
const t =
|
|
394
|
+
const t = Le({
|
|
395
395
|
collapsed: !1,
|
|
396
396
|
title: "输入项目名称",
|
|
397
397
|
logo: "https://picsum.photos/id/1/100/100",
|
|
@@ -404,166 +404,173 @@ const We = (t) => {
|
|
|
404
404
|
});
|
|
405
405
|
return {
|
|
406
406
|
state: t,
|
|
407
|
-
initTabs: (
|
|
408
|
-
|
|
407
|
+
initTabs: (f) => {
|
|
408
|
+
f.sort((b, h) => (h.meta.affix ? 1 : 0) - (b.meta.affix ? 1 : 0)), t.tabs = f;
|
|
409
409
|
},
|
|
410
|
-
addTab: (
|
|
411
|
-
(
|
|
412
|
-
) || t.tabs?.push(
|
|
413
|
-
closeCurrentTab: (
|
|
414
|
-
const
|
|
415
|
-
(
|
|
410
|
+
addTab: (f) => qt.includes(f.name) ? !1 : (t.tabs?.some(
|
|
411
|
+
(h) => h.fullPath == f.fullPath
|
|
412
|
+
) || t.tabs?.push(f), !0),
|
|
413
|
+
closeCurrentTab: (f) => {
|
|
414
|
+
const b = t.tabs.findIndex(
|
|
415
|
+
(h) => h.fullPath == f.fullPath
|
|
416
416
|
);
|
|
417
|
-
t.tabs.splice(
|
|
417
|
+
t.tabs.splice(b, 1);
|
|
418
418
|
},
|
|
419
419
|
closeAllTabs: () => {
|
|
420
|
-
t.tabs = t.tabs.filter((
|
|
420
|
+
t.tabs = t.tabs.filter((f) => f?.meta?.affix ?? !1);
|
|
421
421
|
},
|
|
422
|
-
closeOtherTabs: (
|
|
422
|
+
closeOtherTabs: (f) => {
|
|
423
423
|
t.tabs = t.tabs.filter(
|
|
424
|
-
(
|
|
424
|
+
(b) => b.fullPath == f.fullPath || (b?.meta?.affix ?? !1)
|
|
425
425
|
);
|
|
426
426
|
},
|
|
427
|
-
closeLeftTabs: (
|
|
428
|
-
const
|
|
429
|
-
(
|
|
427
|
+
closeLeftTabs: (f) => {
|
|
428
|
+
const b = t.tabs.findIndex(
|
|
429
|
+
(h) => h.fullPath == f.fullPath
|
|
430
430
|
);
|
|
431
431
|
t.tabs = t.tabs.filter(
|
|
432
|
-
(
|
|
432
|
+
(h, R) => R >= b || (h?.meta?.affix ?? !1)
|
|
433
433
|
);
|
|
434
434
|
},
|
|
435
|
-
closeRightTabs: (
|
|
436
|
-
const
|
|
437
|
-
(
|
|
435
|
+
closeRightTabs: (f) => {
|
|
436
|
+
const b = t.tabs.findIndex(
|
|
437
|
+
(h) => h.fullPath == f.fullPath
|
|
438
438
|
);
|
|
439
439
|
t.tabs = t.tabs.filter(
|
|
440
|
-
(
|
|
440
|
+
(h, R) => R <= b || (h?.meta?.affix ?? !1)
|
|
441
441
|
);
|
|
442
442
|
},
|
|
443
443
|
collapse: () => {
|
|
444
444
|
t.collapsed = !t.collapsed;
|
|
445
445
|
},
|
|
446
|
-
setTitle: (
|
|
447
|
-
t.title =
|
|
446
|
+
setTitle: (f) => {
|
|
447
|
+
t.title = f;
|
|
448
448
|
},
|
|
449
|
-
setLogo: (
|
|
450
|
-
t.logo =
|
|
449
|
+
setLogo: (f) => {
|
|
450
|
+
t.logo = f;
|
|
451
451
|
},
|
|
452
|
-
setUser: (
|
|
453
|
-
t.uid =
|
|
452
|
+
setUser: (f, b) => {
|
|
453
|
+
t.uid = f, t.uname = b;
|
|
454
454
|
},
|
|
455
|
-
setSettingPages: (
|
|
456
|
-
t.settingPages =
|
|
455
|
+
setSettingPages: (f) => {
|
|
456
|
+
t.settingPages = f;
|
|
457
457
|
},
|
|
458
|
-
setLogout: (
|
|
459
|
-
t.logout =
|
|
458
|
+
setLogout: (f) => {
|
|
459
|
+
t.logout = f;
|
|
460
|
+
},
|
|
461
|
+
enableLanguage: (f) => {
|
|
462
|
+
t.enableLanguage = f;
|
|
460
463
|
}
|
|
461
464
|
};
|
|
462
|
-
}), Vt = { class: "logo" }, Kt = /* @__PURE__ */
|
|
465
|
+
}), Vt = { class: "logo" }, Kt = /* @__PURE__ */ z({
|
|
463
466
|
__name: "PLogo",
|
|
464
467
|
setup(t) {
|
|
465
|
-
const
|
|
466
|
-
return (
|
|
468
|
+
const o = se();
|
|
469
|
+
return (u, v) => (y(), D("div", Vt, [
|
|
467
470
|
i(a(Ae), {
|
|
468
471
|
color: "var(--color-logo)",
|
|
469
472
|
size: 32,
|
|
470
|
-
src: a(
|
|
471
|
-
class: ae({ "mr-2": !a(
|
|
473
|
+
src: a(o).state.logo,
|
|
474
|
+
class: ae({ "mr-2": !a(o).state.collapsed })
|
|
472
475
|
}, null, 8, ["src", "class"]),
|
|
473
|
-
mt(
|
|
474
|
-
[vt, !a(
|
|
476
|
+
mt(P("h1", { class: "font-bold ease-in-out ml-2 logo-size" }, q(a(o).state.title), 513), [
|
|
477
|
+
[vt, !a(o).state.collapsed]
|
|
475
478
|
])
|
|
476
479
|
]));
|
|
477
480
|
}
|
|
478
|
-
}), H = (t,
|
|
479
|
-
const
|
|
480
|
-
for (const [
|
|
481
|
-
|
|
482
|
-
return
|
|
481
|
+
}), H = (t, o) => {
|
|
482
|
+
const u = t.__vccOpts || t;
|
|
483
|
+
for (const [v, m] of o)
|
|
484
|
+
u[v] = m;
|
|
485
|
+
return u;
|
|
483
486
|
}, Yt = /* @__PURE__ */ H(Kt, [["__scopeId", "data-v-e48aeefa"]]), Xt = {
|
|
484
487
|
translationApiUrl: "https://translate.zvo.cn/api",
|
|
485
488
|
defaultLanguage: "chinese",
|
|
486
489
|
currentLanguage: "",
|
|
487
490
|
options: [],
|
|
488
|
-
initLanguages: () => [],
|
|
489
|
-
selectLanguage: (t) => {
|
|
491
|
+
initLanguages: async () => [],
|
|
492
|
+
selectLanguage: async (t) => {
|
|
490
493
|
}
|
|
491
494
|
}, Gt = xe("language", () => {
|
|
492
|
-
const t =
|
|
495
|
+
const t = T(Xt), o = async () => (t.value.options.length === 0 && (t.value.options = await t.value.initLanguages()), t.value.options);
|
|
493
496
|
return {
|
|
494
|
-
select: (
|
|
495
|
-
if (t.value.currentLanguage ===
|
|
497
|
+
select: async (l) => {
|
|
498
|
+
if (t.value.currentLanguage === l)
|
|
496
499
|
return;
|
|
497
|
-
const
|
|
498
|
-
|
|
500
|
+
const _ = (await o()).find(
|
|
501
|
+
(c) => c.key === l
|
|
502
|
+
);
|
|
503
|
+
_ && (t.value.currentLanguage = _.key, t.value.selectLanguage(_));
|
|
499
504
|
},
|
|
500
|
-
selectLanguageCallback: (
|
|
501
|
-
t.value.selectLanguage =
|
|
505
|
+
selectLanguageCallback: async (l) => {
|
|
506
|
+
t.value.selectLanguage = l;
|
|
502
507
|
},
|
|
503
|
-
initLanguagesCallback: (
|
|
504
|
-
t.value.initLanguages =
|
|
508
|
+
initLanguagesCallback: async (l) => {
|
|
509
|
+
t.value.initLanguages = l;
|
|
505
510
|
},
|
|
506
|
-
getLanguages:
|
|
507
|
-
getCurrentLanguage: () => {
|
|
511
|
+
getLanguages: o,
|
|
512
|
+
getCurrentLanguage: async () => {
|
|
508
513
|
if (t.value.currentLanguage)
|
|
509
|
-
return
|
|
510
|
-
(
|
|
514
|
+
return (await o()).find(
|
|
515
|
+
(l) => l.key === t.value.currentLanguage
|
|
511
516
|
);
|
|
512
517
|
},
|
|
513
|
-
setTranslationApiUrl: (
|
|
514
|
-
t.value.translationApiUrl =
|
|
518
|
+
setTranslationApiUrl: (l) => {
|
|
519
|
+
t.value.translationApiUrl = l;
|
|
515
520
|
},
|
|
516
521
|
getTranslationApiUrl: () => t.value.translationApiUrl,
|
|
517
522
|
getDefaultLanguage: () => t.value.defaultLanguage ? t.value.defaultLanguage : "chinese_simplified",
|
|
518
|
-
setDefaultLanguage: (
|
|
519
|
-
(
|
|
523
|
+
setDefaultLanguage: (l) => {
|
|
524
|
+
(l === "Chinese" || l === "chinese") && (l = "chinese_simplified"), t.value.defaultLanguage = l;
|
|
520
525
|
}
|
|
521
526
|
};
|
|
522
|
-
}), Jt = { key: 1 }, He = /* @__PURE__ */
|
|
527
|
+
}), Jt = { key: 1 }, He = /* @__PURE__ */ z({
|
|
523
528
|
__name: "PLanguage",
|
|
524
529
|
setup(t) {
|
|
525
|
-
const
|
|
526
|
-
select:
|
|
527
|
-
getLanguages:
|
|
528
|
-
getCurrentLanguage:
|
|
529
|
-
getDefaultLanguage:
|
|
530
|
-
getTranslationApiUrl:
|
|
531
|
-
} = Gt(),
|
|
532
|
-
const
|
|
533
|
-
|
|
530
|
+
const {
|
|
531
|
+
select: o,
|
|
532
|
+
getLanguages: u,
|
|
533
|
+
getCurrentLanguage: v,
|
|
534
|
+
getDefaultLanguage: m,
|
|
535
|
+
getTranslationApiUrl: d
|
|
536
|
+
} = Gt(), L = T(), w = T([]), S = async (l) => await o(l), O = async () => {
|
|
537
|
+
const l = window.translate;
|
|
538
|
+
l && (l.selectLanguageTag.show = !1, l.selectLanguageTag.languages = (await u()).map((_) => _.key).join(","), l.ignore.class.push("ignore-translate-flag"), l.ignore.id.push("ignore-translation"), l.language.setLocal(m()), l.request.api.translate = "api/v1/translation", l.request.api.connectTest = "api/v1/translation/connect-test", l.request.api.init = "api/v1/translation/init", l.request.api.language = "api/v1/translation/language", l.request.setHost(d()), l.request.listener.start(), l.listener.start(), l.whole.enableAll(), l.execute());
|
|
534
539
|
};
|
|
535
|
-
return Q(async () =>
|
|
536
|
-
|
|
537
|
-
|
|
540
|
+
return Q(async () => {
|
|
541
|
+
await ne(), await O(), L.value = await v(), w.value = await u();
|
|
542
|
+
}), (l, _) => {
|
|
543
|
+
const c = M, C = K;
|
|
544
|
+
return w.value.length > 0 ? (y(), $(a(Z), {
|
|
538
545
|
key: 0,
|
|
539
546
|
id: "ignore-translation",
|
|
540
547
|
placement: "bottom-start",
|
|
541
548
|
trigger: "hover",
|
|
542
549
|
class: "flex flex-col justify-center h-full ignore",
|
|
543
|
-
onSelect:
|
|
544
|
-
options:
|
|
550
|
+
onSelect: S,
|
|
551
|
+
options: w.value
|
|
545
552
|
}, {
|
|
546
553
|
default: r(() => [
|
|
547
|
-
i(
|
|
554
|
+
i(C, {
|
|
548
555
|
quaternary: "",
|
|
549
556
|
type: "info"
|
|
550
557
|
}, {
|
|
551
558
|
default: r(() => [
|
|
552
|
-
|
|
559
|
+
L.value ? (y(), D("label", Jt, q(L.value?.label), 1)) : (y(), $(c, {
|
|
553
560
|
key: 0,
|
|
554
561
|
size: "18"
|
|
555
562
|
}, {
|
|
556
|
-
default: r(() => [...
|
|
557
|
-
|
|
563
|
+
default: r(() => [..._[0] || (_[0] = [
|
|
564
|
+
P("svg", {
|
|
558
565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
559
566
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
560
567
|
viewBox: "0 0 512 512"
|
|
561
568
|
}, [
|
|
562
|
-
|
|
569
|
+
P("path", {
|
|
563
570
|
d: "M478.33 433.6l-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362L368 281.65L401.17 362z",
|
|
564
571
|
fill: "currentColor"
|
|
565
572
|
}),
|
|
566
|
-
|
|
573
|
+
P("path", {
|
|
567
574
|
d: "M267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73c39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36c-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93c.92 1.19 1.83 2.35 2.74 3.51c-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59c22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z",
|
|
568
575
|
fill: "currentColor"
|
|
569
576
|
})
|
|
@@ -576,77 +583,77 @@ const We = (t) => {
|
|
|
576
583
|
})
|
|
577
584
|
]),
|
|
578
585
|
_: 1
|
|
579
|
-
}, 8, ["options"])) :
|
|
586
|
+
}, 8, ["options"])) : I("", !0);
|
|
580
587
|
};
|
|
581
588
|
}
|
|
582
589
|
}), Zt = { class: "layout-header" }, Qt = { class: "layout-header-left" }, ea = { class: "link-text" }, ta = {
|
|
583
590
|
key: 1,
|
|
584
591
|
class: "link-text"
|
|
585
|
-
}, aa = { class: "layout-header-right" },
|
|
592
|
+
}, aa = { class: "layout-header-right" }, na = {
|
|
586
593
|
key: 0,
|
|
587
594
|
class: "layout-header-trigger-min"
|
|
588
|
-
},
|
|
595
|
+
}, oa = { class: "layout-header-trigger layout-header-trigger-min" }, la = { class: "layout-header-trigger layout-header-trigger-min" }, sa = { class: "avatar" }, ra = /* @__PURE__ */ z({
|
|
589
596
|
__name: "PHeader",
|
|
590
597
|
setup(t) {
|
|
591
|
-
const
|
|
592
|
-
const
|
|
593
|
-
key:
|
|
594
|
-
label:
|
|
595
|
-
icon:
|
|
596
|
-
meta:
|
|
597
|
-
disabled:
|
|
598
|
+
const o = fe(), u = Me(), v = se(), m = oe(), d = le(), L = Ie("reloadPage"), w = (f) => m.push({ name: f }), S = j(() => O(d.matched)), O = (f) => f.map((b) => {
|
|
599
|
+
const h = {
|
|
600
|
+
key: b.name,
|
|
601
|
+
label: b.meta.title,
|
|
602
|
+
icon: b.meta.icon,
|
|
603
|
+
meta: b.meta,
|
|
604
|
+
disabled: b.path === "/",
|
|
598
605
|
children: void 0
|
|
599
606
|
};
|
|
600
|
-
return
|
|
601
|
-
|
|
602
|
-
)),
|
|
603
|
-
}),
|
|
604
|
-
document.fullscreenElement ? document.exitFullscreen && (document.exitFullscreen(),
|
|
605
|
-
},
|
|
606
|
-
const
|
|
607
|
-
return
|
|
607
|
+
return b.children && b.children.length > 0 && (h.children = O(
|
|
608
|
+
b.children
|
|
609
|
+
)), h;
|
|
610
|
+
}), l = T(!1), _ = () => {
|
|
611
|
+
document.fullscreenElement ? document.exitFullscreen && (document.exitFullscreen(), l.value = !1) : (document.documentElement.requestFullscreen(), l.value = !0);
|
|
612
|
+
}, c = j(() => {
|
|
613
|
+
const f = [];
|
|
614
|
+
return f.push({
|
|
608
615
|
label: "退出登录",
|
|
609
616
|
key: "logout"
|
|
610
|
-
}),
|
|
611
|
-
|
|
612
|
-
label:
|
|
613
|
-
key:
|
|
617
|
+
}), v.state.settingPages && v.state.settingPages.length > 0 && v.state.settingPages.forEach((b) => {
|
|
618
|
+
f.push({
|
|
619
|
+
label: b.title,
|
|
620
|
+
key: b.route
|
|
614
621
|
});
|
|
615
|
-
}),
|
|
616
|
-
}),
|
|
617
|
-
|
|
618
|
-
},
|
|
619
|
-
|
|
622
|
+
}), f;
|
|
623
|
+
}), C = (f) => {
|
|
624
|
+
f === "logout" ? p() : m.push({ name: f });
|
|
625
|
+
}, p = () => {
|
|
626
|
+
u.info({
|
|
620
627
|
title: "提示",
|
|
621
628
|
content: "您确定要退出登录吗",
|
|
622
629
|
positiveText: "确定",
|
|
623
630
|
negativeText: "取消",
|
|
624
631
|
onPositiveClick: async () => {
|
|
625
|
-
if (
|
|
632
|
+
if (v.state.logout)
|
|
626
633
|
try {
|
|
627
|
-
await
|
|
628
|
-
} catch (
|
|
629
|
-
console.error(
|
|
634
|
+
await v.state.logout(), localStorage.removeItem("TABS-ROUTES"), o.error("退出成功");
|
|
635
|
+
} catch (f) {
|
|
636
|
+
console.error(f), o.error("退出登录失败");
|
|
630
637
|
} finally {
|
|
631
638
|
location.reload();
|
|
632
639
|
}
|
|
633
640
|
else
|
|
634
|
-
|
|
641
|
+
o.error("没有配置登出接口, 请配置[usePLayoutStore.logout]方法");
|
|
635
642
|
},
|
|
636
643
|
onNegativeClick: () => {
|
|
637
644
|
}
|
|
638
645
|
});
|
|
639
646
|
};
|
|
640
|
-
return (
|
|
641
|
-
const
|
|
642
|
-
return
|
|
643
|
-
|
|
644
|
-
|
|
647
|
+
return (f, b) => {
|
|
648
|
+
const h = De, R = Qe, E = Ae;
|
|
649
|
+
return y(), D("div", Zt, [
|
|
650
|
+
P("div", Qt, [
|
|
651
|
+
P("div", {
|
|
645
652
|
class: "ml-1 layout-header-trigger layout-header-trigger-min",
|
|
646
|
-
onClick:
|
|
647
|
-
(...
|
|
653
|
+
onClick: b[0] || (b[0] = //@ts-ignore
|
|
654
|
+
(...x) => a(v).collapse && a(v).collapse(...x))
|
|
648
655
|
}, [
|
|
649
|
-
a(
|
|
656
|
+
a(v).state.collapsed ? (y(), $(a(M), {
|
|
650
657
|
key: 0,
|
|
651
658
|
size: "18"
|
|
652
659
|
}, {
|
|
@@ -654,7 +661,7 @@ const We = (t) => {
|
|
|
654
661
|
i(a(St))
|
|
655
662
|
]),
|
|
656
663
|
_: 1
|
|
657
|
-
})) : (
|
|
664
|
+
})) : (y(), $(a(M), {
|
|
658
665
|
key: 1,
|
|
659
666
|
size: "18"
|
|
660
667
|
}, {
|
|
@@ -664,85 +671,85 @@ const We = (t) => {
|
|
|
664
671
|
_: 1
|
|
665
672
|
}))
|
|
666
673
|
]),
|
|
667
|
-
|
|
674
|
+
P("div", {
|
|
668
675
|
class: "mr-1 layout-header-trigger layout-header-trigger-min",
|
|
669
|
-
onClick:
|
|
670
|
-
(...
|
|
676
|
+
onClick: b[1] || (b[1] = //@ts-ignore
|
|
677
|
+
(...x) => a(L) && a(L)(...x))
|
|
671
678
|
}, [
|
|
672
679
|
i(a(M), { size: "18" }, {
|
|
673
680
|
default: r(() => [
|
|
674
|
-
i(a(
|
|
681
|
+
i(a(Ce))
|
|
675
682
|
]),
|
|
676
683
|
_: 1
|
|
677
684
|
})
|
|
678
685
|
]),
|
|
679
686
|
i(a(Je), null, {
|
|
680
687
|
default: r(() => [
|
|
681
|
-
(
|
|
682
|
-
key:
|
|
688
|
+
(y(!0), D(Oe, null, _t(S.value, (x) => (y(), D(Oe, {
|
|
689
|
+
key: x.label
|
|
683
690
|
}, [
|
|
684
|
-
|
|
691
|
+
x.label ? (y(), $(a(Ze), { key: 0 }, {
|
|
685
692
|
default: r(() => [
|
|
686
|
-
|
|
693
|
+
x.children && x.children.length ? (y(), $(a(Z), {
|
|
687
694
|
key: 0,
|
|
688
|
-
options:
|
|
689
|
-
onSelect:
|
|
695
|
+
options: x.children,
|
|
696
|
+
onSelect: w
|
|
690
697
|
}, {
|
|
691
698
|
default: r(() => [
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
699
|
+
P("span", ea, [
|
|
700
|
+
x.icon ? (y(), $(we(x.icon), { key: 0 })) : I("", !0),
|
|
701
|
+
P("span", null, q(x.label), 1)
|
|
695
702
|
])
|
|
696
703
|
]),
|
|
697
704
|
_: 2
|
|
698
|
-
}, 1032, ["options"])) : (
|
|
699
|
-
|
|
700
|
-
|
|
705
|
+
}, 1032, ["options"])) : (y(), D("span", ta, [
|
|
706
|
+
x.icon ? (y(), $(we(x.icon), { key: 0 })) : I("", !0),
|
|
707
|
+
P("span", null, q(x.label), 1)
|
|
701
708
|
]))
|
|
702
709
|
]),
|
|
703
710
|
_: 2
|
|
704
|
-
}, 1024)) :
|
|
711
|
+
}, 1024)) : I("", !0)
|
|
705
712
|
], 64))), 128))
|
|
706
713
|
]),
|
|
707
714
|
_: 1
|
|
708
715
|
})
|
|
709
716
|
]),
|
|
710
|
-
|
|
711
|
-
a(
|
|
717
|
+
P("div", aa, [
|
|
718
|
+
a(v).state.enableLanguage ? (y(), D("div", na, [
|
|
712
719
|
i(He)
|
|
713
|
-
])) :
|
|
714
|
-
|
|
715
|
-
i(
|
|
720
|
+
])) : I("", !0),
|
|
721
|
+
P("div", oa, [
|
|
722
|
+
i(h, { placement: "bottom" }, {
|
|
716
723
|
trigger: r(() => [
|
|
717
724
|
i(a(M), {
|
|
718
725
|
size: "18",
|
|
719
|
-
onClick: Pe(
|
|
726
|
+
onClick: Pe(_, ["stop"])
|
|
720
727
|
}, {
|
|
721
728
|
default: r(() => [
|
|
722
|
-
|
|
729
|
+
l.value ? (y(), $(a(Ot), { key: 1 })) : (y(), $(a($t), { key: 0 }))
|
|
723
730
|
]),
|
|
724
731
|
_: 1
|
|
725
732
|
})
|
|
726
733
|
]),
|
|
727
734
|
default: r(() => [
|
|
728
|
-
|
|
735
|
+
b[2] || (b[2] = P("span", null, "全屏", -1))
|
|
729
736
|
]),
|
|
730
737
|
_: 1
|
|
731
738
|
})
|
|
732
739
|
]),
|
|
733
|
-
|
|
740
|
+
P("div", la, [
|
|
734
741
|
i(a(Z), {
|
|
735
742
|
trigger: "hover",
|
|
736
|
-
onSelect:
|
|
737
|
-
options:
|
|
743
|
+
onSelect: C,
|
|
744
|
+
options: c.value
|
|
738
745
|
}, {
|
|
739
746
|
default: r(() => [
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
i(
|
|
747
|
+
P("div", sa, [
|
|
748
|
+
P("span", null, q(a(v).state.uname), 1),
|
|
749
|
+
i(R, { vertical: "" }),
|
|
743
750
|
i(E, {
|
|
744
751
|
round: "",
|
|
745
|
-
src: a(
|
|
752
|
+
src: a(v).state.avatar
|
|
746
753
|
}, null, 8, ["src"])
|
|
747
754
|
])
|
|
748
755
|
]),
|
|
@@ -753,20 +760,20 @@ const We = (t) => {
|
|
|
753
760
|
]);
|
|
754
761
|
};
|
|
755
762
|
}
|
|
756
|
-
}), ia = /* @__PURE__ */ H(ra, [["__scopeId", "data-v-563e4e55"]]), ca = { class: "mt-1" }, ua = /* @__PURE__ */
|
|
763
|
+
}), ia = /* @__PURE__ */ H(ra, [["__scopeId", "data-v-563e4e55"]]), ca = { class: "mt-1" }, ua = /* @__PURE__ */ z({
|
|
757
764
|
__name: "PContent",
|
|
758
765
|
props: {
|
|
759
766
|
loading: { type: Boolean, default: !1 }
|
|
760
767
|
},
|
|
761
768
|
setup(t) {
|
|
762
|
-
return (
|
|
763
|
-
const
|
|
764
|
-
return
|
|
765
|
-
t.loading ?
|
|
766
|
-
default: r(({ Component:
|
|
767
|
-
(
|
|
768
|
-
(
|
|
769
|
-
key:
|
|
769
|
+
return (o, u) => {
|
|
770
|
+
const v = ze("RouterView");
|
|
771
|
+
return y(), D("div", ca, [
|
|
772
|
+
t.loading ? I("", !0) : (y(), $(v, { key: 0 }, {
|
|
773
|
+
default: r(({ Component: m, route: d }) => [
|
|
774
|
+
(y(), $(yt, null, [
|
|
775
|
+
(y(), $(we(m), {
|
|
776
|
+
key: d.fullPath
|
|
770
777
|
}))
|
|
771
778
|
], 1024))
|
|
772
779
|
]),
|
|
@@ -775,42 +782,42 @@ const We = (t) => {
|
|
|
775
782
|
]);
|
|
776
783
|
};
|
|
777
784
|
}
|
|
778
|
-
}), da = { class: "tabs-view-main" }, fa = ["id", "onClick", "onContextmenu"], ga = { class: "tabs-close" }, pa = { class: "tabs-close-btn" }, ha = /* @__PURE__ */
|
|
785
|
+
}), da = { class: "tabs-view-main" }, fa = ["id", "onClick", "onContextmenu"], ga = { class: "tabs-close" }, pa = { class: "tabs-close-btn" }, ha = /* @__PURE__ */ z({
|
|
779
786
|
__name: "PTabs",
|
|
780
787
|
setup(t) {
|
|
781
|
-
|
|
782
|
-
v141ddb06:
|
|
783
|
-
cf709148:
|
|
788
|
+
bt((e) => ({
|
|
789
|
+
v141ddb06: u.value,
|
|
790
|
+
cf709148: v.value
|
|
784
791
|
}));
|
|
785
|
-
const
|
|
786
|
-
activeKey:
|
|
792
|
+
const o = et(), u = j(() => o.value.cardColor), v = j(() => o.value.textColor1), m = fe(), d = le(), L = oe(), w = T(null), S = T(null), O = T(!1), l = se(), _ = j(() => l.state.tabs), c = Le({
|
|
793
|
+
activeKey: d.fullPath,
|
|
787
794
|
scrollable: !0,
|
|
788
795
|
dropdownX: 0,
|
|
789
796
|
dropdownY: 0,
|
|
790
797
|
showDropdown: !1,
|
|
791
798
|
isMultiHeaderFixed: !0,
|
|
792
799
|
multiTabsSetting: !0
|
|
793
|
-
}),
|
|
794
|
-
const { fullPath: n, hash: s, meta:
|
|
795
|
-
return { fullPath: n, hash: s, meta:
|
|
796
|
-
},
|
|
797
|
-
const s =
|
|
800
|
+
}), C = ["Login", "Redirect", "ErrorPage"], p = (e) => {
|
|
801
|
+
const { fullPath: n, hash: s, meta: k, name: N, params: A, path: V, query: ue } = e;
|
|
802
|
+
return { fullPath: n, hash: s, meta: k, name: N, params: A, path: V, query: ue };
|
|
803
|
+
}, f = j(() => {
|
|
804
|
+
const s = l.state.collapsed ? "64px" : "272px";
|
|
798
805
|
return {
|
|
799
806
|
left: s,
|
|
800
807
|
width: `calc(100% - ${s})`
|
|
801
808
|
};
|
|
802
|
-
}),
|
|
803
|
-
const e =
|
|
809
|
+
}), b = j(() => {
|
|
810
|
+
const e = _.value.length <= 1;
|
|
804
811
|
return [
|
|
805
812
|
{
|
|
806
813
|
label: "刷新当前",
|
|
807
814
|
key: "1",
|
|
808
|
-
icon: () => B(M, null, { default: () => B(
|
|
815
|
+
icon: () => B(M, null, { default: () => B(Ce) })
|
|
809
816
|
},
|
|
810
817
|
{
|
|
811
818
|
label: "关闭当前",
|
|
812
819
|
key: "2",
|
|
813
|
-
disabled:
|
|
820
|
+
disabled: O.value || e,
|
|
814
821
|
icon: () => B(M, null, { default: () => B(Ee) })
|
|
815
822
|
},
|
|
816
823
|
{
|
|
@@ -826,11 +833,11 @@ const We = (t) => {
|
|
|
826
833
|
icon: () => B(M, null, { default: () => B(Mt) })
|
|
827
834
|
}
|
|
828
835
|
];
|
|
829
|
-
}),
|
|
836
|
+
}), h = () => {
|
|
830
837
|
let e = [];
|
|
831
|
-
const n =
|
|
838
|
+
const n = p(d);
|
|
832
839
|
try {
|
|
833
|
-
if (
|
|
840
|
+
if (l.state.cacheTabs) {
|
|
834
841
|
const s = localStorage.getItem("TABS_ROUTES");
|
|
835
842
|
e = s ? JSON.parse(s) : [n];
|
|
836
843
|
}
|
|
@@ -839,56 +846,56 @@ const We = (t) => {
|
|
|
839
846
|
} finally {
|
|
840
847
|
return e;
|
|
841
848
|
}
|
|
842
|
-
},
|
|
849
|
+
}, R = (e) => {
|
|
843
850
|
const n = L.getRoutes();
|
|
844
851
|
e.forEach((s) => {
|
|
845
|
-
const
|
|
846
|
-
|
|
847
|
-
}),
|
|
852
|
+
const k = n.find((N) => N.path === s.path);
|
|
853
|
+
k && (s.meta = k.meta || s.meta, s.name = k.name || s.name);
|
|
854
|
+
}), l.state.cacheTabs && localStorage.setItem("TABS_ROUTES", JSON.stringify(e));
|
|
848
855
|
}, E = () => {
|
|
849
|
-
const e =
|
|
850
|
-
|
|
851
|
-
},
|
|
852
|
-
if (await
|
|
853
|
-
const n =
|
|
854
|
-
n < s ? (
|
|
855
|
-
|
|
856
|
-
})) :
|
|
856
|
+
const e = h();
|
|
857
|
+
R(e), l.initTabs(e);
|
|
858
|
+
}, x = async (e) => {
|
|
859
|
+
if (await ne(), !w.value) return;
|
|
860
|
+
const n = w.value.offsetWidth, s = w.value.scrollWidth;
|
|
861
|
+
n < s ? (c.scrollable = !0, e && [...w.value.querySelectorAll(".tabs-card-scroll-item") || []].forEach((N) => {
|
|
862
|
+
N.id === `tag${c.activeKey.split("/").join("/")}` && N.scrollIntoView && N.scrollIntoView();
|
|
863
|
+
})) : c.scrollable = !1;
|
|
857
864
|
}, ee = (e) => !(e.draggedContext.element.meta.affix || e.relatedContext.element.meta.affix), ge = () => {
|
|
858
865
|
let e;
|
|
859
|
-
e = It(), e.listenTo(
|
|
866
|
+
e = It(), e.listenTo(S.value, () => x(!0));
|
|
860
867
|
}, re = (e) => {
|
|
861
868
|
const { fullPath: n } = e;
|
|
862
|
-
if (n ===
|
|
869
|
+
if (n === d.fullPath || (c.activeKey = n, !e))
|
|
863
870
|
return;
|
|
864
871
|
const { replace: s } = L;
|
|
865
872
|
toString.call(e), s(e).catch(console.error);
|
|
866
873
|
}, ie = (e, n) => {
|
|
867
|
-
e.preventDefault(),
|
|
868
|
-
|
|
874
|
+
e.preventDefault(), O.value = n.path === "/home", c.showDropdown = !1, ne().then(() => {
|
|
875
|
+
c.showDropdown = !0, c.dropdownX = e.clientX, c.dropdownY = e.clientY;
|
|
869
876
|
});
|
|
870
877
|
}, X = () => {
|
|
871
|
-
if (
|
|
878
|
+
if (d.meta.keepAlive) {
|
|
872
879
|
var e = L.currentRoute.value.matched.find(
|
|
873
|
-
(n) => n.name ==
|
|
880
|
+
(n) => n.name == d.name
|
|
874
881
|
);
|
|
875
882
|
e && e.components?.default?.name;
|
|
876
883
|
}
|
|
877
884
|
}, G = (e) => {
|
|
878
|
-
if (
|
|
879
|
-
return
|
|
880
|
-
if (X(),
|
|
881
|
-
const n =
|
|
882
|
-
|
|
885
|
+
if (_.value.length === 1)
|
|
886
|
+
return m.warning("这已经是最后一页,不能再关闭了!");
|
|
887
|
+
if (X(), l.closeCurrentTab(e), c.activeKey === e.fullPath) {
|
|
888
|
+
const n = _.value[Math.max(0, _.value.length - 1)];
|
|
889
|
+
c.activeKey = n.fullPath, L.push(n);
|
|
883
890
|
}
|
|
884
|
-
|
|
891
|
+
x();
|
|
885
892
|
}, pe = (e) => {
|
|
886
|
-
const { fullPath: n } = e, s =
|
|
893
|
+
const { fullPath: n } = e, s = _.value.find((k) => k.fullPath == n);
|
|
887
894
|
G(s);
|
|
888
895
|
}, he = (e) => {
|
|
889
|
-
|
|
896
|
+
l.closeOtherTabs(e), c.activeKey = e.fullPath, L.replace(e.fullPath), x();
|
|
890
897
|
}, U = () => {
|
|
891
|
-
|
|
898
|
+
l.closeAllTabs(), x();
|
|
892
899
|
}, me = Ie("reloadPage"), ce = (e) => {
|
|
893
900
|
switch (e) {
|
|
894
901
|
//刷新
|
|
@@ -897,60 +904,60 @@ const We = (t) => {
|
|
|
897
904
|
break;
|
|
898
905
|
//关闭
|
|
899
906
|
case "2":
|
|
900
|
-
G(
|
|
907
|
+
G(d);
|
|
901
908
|
break;
|
|
902
909
|
//关闭其他
|
|
903
910
|
case "3":
|
|
904
|
-
he(
|
|
911
|
+
he(d);
|
|
905
912
|
break;
|
|
906
913
|
//关闭所有
|
|
907
914
|
case "4":
|
|
908
915
|
U();
|
|
909
916
|
break;
|
|
910
917
|
}
|
|
911
|
-
|
|
918
|
+
x(), c.showDropdown = !1;
|
|
912
919
|
}, te = (e, n) => {
|
|
913
|
-
const s =
|
|
914
|
-
if (
|
|
920
|
+
const s = w.value.scrollLeft, k = n > 0 && s + n >= e || n < 0 && s + n <= e ? e : s + n;
|
|
921
|
+
if (w.value && w.value.scrollTo(k, 0), k !== e)
|
|
915
922
|
return window.requestAnimationFrame(() => te(e, n));
|
|
916
923
|
}, ve = () => {
|
|
917
|
-
const e =
|
|
924
|
+
const e = w.value.offsetWidth, n = w.value.scrollLeft;
|
|
918
925
|
if (!n) return;
|
|
919
926
|
const s = n > e ? n - e : 0;
|
|
920
927
|
te(s, (s - n) / 20);
|
|
921
|
-
},
|
|
922
|
-
const e =
|
|
928
|
+
}, g = () => {
|
|
929
|
+
const e = w.value.offsetWidth, n = w.value.scrollWidth, s = w.value.scrollLeft;
|
|
923
930
|
if (n - s <= e) return;
|
|
924
|
-
const
|
|
925
|
-
te(
|
|
931
|
+
const k = n - s > e * 2 ? s + e : n - e;
|
|
932
|
+
te(k, (k - s) / 20);
|
|
926
933
|
};
|
|
927
934
|
return window.addEventListener("beforeunload", () => {
|
|
928
|
-
localStorage.setItem("TABS_ROUTES", JSON.stringify(
|
|
935
|
+
localStorage.setItem("TABS_ROUTES", JSON.stringify(_.value));
|
|
929
936
|
}), window.addEventListener(
|
|
930
937
|
"scroll",
|
|
931
938
|
(e) => {
|
|
932
939
|
let n = e.target.scrollTop || document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
|
|
933
|
-
|
|
940
|
+
c.isMultiHeaderFixed = n >= 64;
|
|
934
941
|
},
|
|
935
942
|
!0
|
|
936
943
|
), Be(
|
|
937
|
-
() =>
|
|
944
|
+
() => d.fullPath,
|
|
938
945
|
(e) => {
|
|
939
|
-
|
|
946
|
+
C.includes(d.name) || (c.activeKey = e, l.addTab(p(d)), x(!0));
|
|
940
947
|
},
|
|
941
948
|
{ immediate: !0 }
|
|
942
|
-
), E(), Q(() => ge()), (e, n) => (
|
|
949
|
+
), E(), Q(() => ge()), (e, n) => (y(), D("div", {
|
|
943
950
|
class: "box-border tabs-view tabs-view-fix tabs-view-default-background",
|
|
944
|
-
style: de(
|
|
951
|
+
style: de(f.value)
|
|
945
952
|
}, [
|
|
946
|
-
|
|
947
|
-
|
|
953
|
+
P("div", da, [
|
|
954
|
+
P("div", {
|
|
948
955
|
ref_key: "navWrap",
|
|
949
|
-
ref:
|
|
950
|
-
class: ae(["tabs-card", { "tabs-card-scrollable":
|
|
956
|
+
ref: S,
|
|
957
|
+
class: ae(["tabs-card", { "tabs-card-scrollable": c.scrollable }])
|
|
951
958
|
}, [
|
|
952
|
-
|
|
953
|
-
class: ae(["tabs-card-prev", { "tabs-card-prev-hide": !
|
|
959
|
+
P("span", {
|
|
960
|
+
class: ae(["tabs-card-prev", { "tabs-card-prev-hide": !c.scrollable }]),
|
|
954
961
|
onClick: ve
|
|
955
962
|
}, [
|
|
956
963
|
i(a(M), {
|
|
@@ -963,9 +970,9 @@ const We = (t) => {
|
|
|
963
970
|
_: 1
|
|
964
971
|
})
|
|
965
972
|
], 2),
|
|
966
|
-
|
|
967
|
-
class: ae(["tabs-card-next", { "tabs-card-next-hide": !
|
|
968
|
-
onClick:
|
|
973
|
+
P("span", {
|
|
974
|
+
class: ae(["tabs-card-next", { "tabs-card-next-hide": !c.scrollable }]),
|
|
975
|
+
onClick: g
|
|
969
976
|
}, [
|
|
970
977
|
i(a(M), {
|
|
971
978
|
size: "16",
|
|
@@ -977,30 +984,30 @@ const We = (t) => {
|
|
|
977
984
|
_: 1
|
|
978
985
|
})
|
|
979
986
|
], 2),
|
|
980
|
-
|
|
987
|
+
P("div", {
|
|
981
988
|
ref_key: "navScroll",
|
|
982
|
-
ref:
|
|
989
|
+
ref: w,
|
|
983
990
|
class: "tabs-card-scroll"
|
|
984
991
|
}, [
|
|
985
992
|
i(a(zt), {
|
|
986
|
-
list:
|
|
993
|
+
list: _.value,
|
|
987
994
|
animation: "300",
|
|
988
995
|
"item-key": "fullPath",
|
|
989
996
|
class: "flex",
|
|
990
997
|
move: ee
|
|
991
998
|
}, {
|
|
992
999
|
item: r(({ element: s }) => [
|
|
993
|
-
|
|
1000
|
+
P("div", {
|
|
994
1001
|
id: `tag${s.fullPath.split("/").join("/")}`,
|
|
995
|
-
class: ae(["tabs-card-scroll-item", { "active-item":
|
|
996
|
-
onClick: Pe((
|
|
997
|
-
onContextmenu: (
|
|
1002
|
+
class: ae(["tabs-card-scroll-item", { "active-item": c.activeKey === s.fullPath }]),
|
|
1003
|
+
onClick: Pe((k) => re(s), ["stop"]),
|
|
1004
|
+
onContextmenu: (k) => ie(k, s)
|
|
998
1005
|
}, [
|
|
999
|
-
|
|
1000
|
-
s.meta.affix ?
|
|
1006
|
+
P("span", null, q(s.meta.title), 1),
|
|
1007
|
+
s.meta.affix ? I("", !0) : (y(), $(a(M), {
|
|
1001
1008
|
key: 0,
|
|
1002
1009
|
size: "14",
|
|
1003
|
-
onClick: Pe((
|
|
1010
|
+
onClick: Pe((k) => pe(s), ["stop"])
|
|
1004
1011
|
}, {
|
|
1005
1012
|
default: r(() => [
|
|
1006
1013
|
i(a(Ee))
|
|
@@ -1013,15 +1020,15 @@ const We = (t) => {
|
|
|
1013
1020
|
}, 8, ["list"])
|
|
1014
1021
|
], 512)
|
|
1015
1022
|
], 2),
|
|
1016
|
-
|
|
1023
|
+
P("div", ga, [
|
|
1017
1024
|
i(a(Z), {
|
|
1018
1025
|
trigger: "hover",
|
|
1019
1026
|
onSelect: ce,
|
|
1020
1027
|
placement: "bottom-end",
|
|
1021
|
-
options:
|
|
1028
|
+
options: b.value
|
|
1022
1029
|
}, {
|
|
1023
1030
|
default: r(() => [
|
|
1024
|
-
|
|
1031
|
+
P("div", pa, [
|
|
1025
1032
|
i(a(M), {
|
|
1026
1033
|
size: "16",
|
|
1027
1034
|
color: "#515a6e"
|
|
@@ -1037,108 +1044,108 @@ const We = (t) => {
|
|
|
1037
1044
|
}, 8, ["options"])
|
|
1038
1045
|
]),
|
|
1039
1046
|
i(a(Z), {
|
|
1040
|
-
show:
|
|
1041
|
-
x:
|
|
1042
|
-
y:
|
|
1043
|
-
onClickoutside: n[0] || (n[0] = (s) =>
|
|
1047
|
+
show: c.showDropdown,
|
|
1048
|
+
x: c.dropdownX,
|
|
1049
|
+
y: c.dropdownY,
|
|
1050
|
+
onClickoutside: n[0] || (n[0] = (s) => c.showDropdown = !1),
|
|
1044
1051
|
placement: "bottom-start",
|
|
1045
1052
|
onSelect: ce,
|
|
1046
|
-
options:
|
|
1053
|
+
options: b.value
|
|
1047
1054
|
}, null, 8, ["show", "x", "y", "options"])
|
|
1048
1055
|
])
|
|
1049
1056
|
], 4));
|
|
1050
1057
|
}
|
|
1051
|
-
}), ma = /* @__PURE__ */ H(ha, [["__scopeId", "data-v-48b3be2d"]]), va = /* @__PURE__ */
|
|
1058
|
+
}), ma = /* @__PURE__ */ H(ha, [["__scopeId", "data-v-48b3be2d"]]), va = /* @__PURE__ */ z({
|
|
1052
1059
|
__name: "PMenus",
|
|
1053
1060
|
setup(t) {
|
|
1054
|
-
const
|
|
1055
|
-
|
|
1056
|
-
), L =
|
|
1057
|
-
/http(s)?:/.test(
|
|
1058
|
-
},
|
|
1059
|
-
if (!
|
|
1060
|
-
const
|
|
1061
|
-
|
|
1062
|
-
},
|
|
1063
|
-
const
|
|
1064
|
-
|
|
1065
|
-
const
|
|
1066
|
-
|
|
1067
|
-
},
|
|
1068
|
-
const
|
|
1061
|
+
const o = le(), u = oe(), v = se(), m = T(o.name), d = T(
|
|
1062
|
+
o.matched && o.matched.length ? o.matched.map((c) => c.name) : []
|
|
1063
|
+
), L = T([]), w = (c) => {
|
|
1064
|
+
/http(s)?:/.test(c) ? window.open(c) : u.push({ name: c });
|
|
1065
|
+
}, S = (c) => {
|
|
1066
|
+
if (!c) return;
|
|
1067
|
+
const C = c.find((p) => d.value.indexOf(p) === -1);
|
|
1068
|
+
d.value = C ? [C] : [];
|
|
1069
|
+
}, O = () => {
|
|
1070
|
+
const c = o.matched;
|
|
1071
|
+
d.value = c.map((p) => p.name);
|
|
1072
|
+
const C = o.meta?.activeMenu || "";
|
|
1073
|
+
m.value = C || o.name;
|
|
1074
|
+
}, l = (c, C = [], p = !1) => {
|
|
1075
|
+
const f = [], b = [
|
|
1069
1076
|
"/:path(.*)*",
|
|
1070
1077
|
"/redirect",
|
|
1071
1078
|
"/redirect/:path(.*)",
|
|
1072
1079
|
"/login",
|
|
1073
1080
|
"/oidc-callback"
|
|
1074
1081
|
];
|
|
1075
|
-
if (!
|
|
1076
|
-
return
|
|
1077
|
-
|
|
1078
|
-
let E = (
|
|
1079
|
-
return E === 0 && (E = (
|
|
1082
|
+
if (!c || c.length === 0)
|
|
1083
|
+
return f;
|
|
1084
|
+
c = c.sort((h, R) => {
|
|
1085
|
+
let E = (R.children?.length ? 1 : 0) - (h.children?.length ? 1 : 0);
|
|
1086
|
+
return E === 0 && (E = (h.meta?.sort ?? 0) - (R.meta?.sort ?? 0)), E;
|
|
1080
1087
|
});
|
|
1081
|
-
for (const
|
|
1082
|
-
if (
|
|
1083
|
-
|
|
1088
|
+
for (const h of c) {
|
|
1089
|
+
if (p || (h.meta?.hidden || !1) == !0 || b.includes(h.path)) {
|
|
1090
|
+
C.push(h.name), h.children && h.children.length > 0 && l(h.children, C, !0);
|
|
1084
1091
|
continue;
|
|
1085
1092
|
}
|
|
1086
|
-
const
|
|
1093
|
+
const R = h.meta?.alwaysShow != !0 && h?.children?.filter((ee) => !ee?.meta?.hidden)?.length === 1, E = R ? h.children[0] : h, x = {
|
|
1087
1094
|
key: E.name,
|
|
1088
1095
|
label: E.meta?.title,
|
|
1089
1096
|
affix: E.meta?.affix,
|
|
1090
1097
|
sort: E.meta?.sort,
|
|
1091
1098
|
path: E.path,
|
|
1092
1099
|
redirect: E.redirect,
|
|
1093
|
-
icon:
|
|
1100
|
+
icon: R ? h.meta?.icon : E.meta?.icon,
|
|
1094
1101
|
permissions: E.meta?.permissions,
|
|
1095
1102
|
meta: E.meta,
|
|
1096
1103
|
children: void 0
|
|
1097
1104
|
};
|
|
1098
|
-
if (!
|
|
1099
|
-
if (
|
|
1100
|
-
|
|
1105
|
+
if (!C.includes(h.name)) {
|
|
1106
|
+
if (f.push(x), C.push(h.name), R) {
|
|
1107
|
+
l(h.children, C, p);
|
|
1101
1108
|
continue;
|
|
1102
1109
|
}
|
|
1103
|
-
|
|
1110
|
+
h.children && h.children.length > 0 && (x.children = l(h.children, C, p));
|
|
1104
1111
|
}
|
|
1105
1112
|
}
|
|
1106
|
-
return
|
|
1107
|
-
},
|
|
1108
|
-
const
|
|
1109
|
-
L.value =
|
|
1113
|
+
return f;
|
|
1114
|
+
}, _ = () => {
|
|
1115
|
+
const c = u.getRoutes();
|
|
1116
|
+
L.value = l(c);
|
|
1110
1117
|
};
|
|
1111
1118
|
return Be(
|
|
1112
|
-
() =>
|
|
1119
|
+
() => o.fullPath,
|
|
1113
1120
|
() => {
|
|
1114
|
-
|
|
1121
|
+
O();
|
|
1115
1122
|
}
|
|
1116
1123
|
), Q(() => {
|
|
1117
|
-
|
|
1118
|
-
}), (
|
|
1124
|
+
_(), O();
|
|
1125
|
+
}), (c, C) => (y(), $(a(tt), {
|
|
1119
1126
|
class: "h-full",
|
|
1120
1127
|
inverted: "",
|
|
1121
1128
|
mode: "vertical",
|
|
1122
1129
|
options: L.value,
|
|
1123
|
-
collapsed: a(
|
|
1130
|
+
collapsed: a(v).state.collapsed,
|
|
1124
1131
|
"collapsed-width": 64,
|
|
1125
1132
|
"collapsed-icon-size": 20,
|
|
1126
1133
|
indent: 24,
|
|
1127
|
-
"expanded-keys":
|
|
1128
|
-
value:
|
|
1129
|
-
"onUpdate:value":
|
|
1130
|
-
"onUpdate:expandedKeys":
|
|
1134
|
+
"expanded-keys": d.value,
|
|
1135
|
+
value: m.value,
|
|
1136
|
+
"onUpdate:value": w,
|
|
1137
|
+
"onUpdate:expandedKeys": S
|
|
1131
1138
|
}, null, 8, ["options", "collapsed", "expanded-keys", "value"]));
|
|
1132
1139
|
}
|
|
1133
|
-
}), _a = { class: "layout-content-main layout-content-main-fix" },
|
|
1140
|
+
}), _a = { class: "layout-content-main layout-content-main-fix" }, ya = { class: "main-view main-view-fix" }, ba = /* @__PURE__ */ z({
|
|
1134
1141
|
__name: "PLayout",
|
|
1135
1142
|
setup(t) {
|
|
1136
|
-
const
|
|
1143
|
+
const o = se(), u = T(!1);
|
|
1137
1144
|
return wt("reloadPage", () => {
|
|
1138
|
-
|
|
1139
|
-
}), (
|
|
1145
|
+
u.value = !0, ne(() => u.value = !1);
|
|
1146
|
+
}), (m, d) => {
|
|
1140
1147
|
const L = st;
|
|
1141
|
-
return
|
|
1148
|
+
return y(), $(a($e), {
|
|
1142
1149
|
"has-sider": "",
|
|
1143
1150
|
class: "layout",
|
|
1144
1151
|
position: "absolute"
|
|
@@ -1150,14 +1157,14 @@ const We = (t) => {
|
|
|
1150
1157
|
"show-trigger": "bar",
|
|
1151
1158
|
position: "absolute",
|
|
1152
1159
|
"collapse-mode": "width",
|
|
1153
|
-
collapsed: a(
|
|
1160
|
+
collapsed: a(o).state.collapsed,
|
|
1154
1161
|
"native-scrollbar": !1,
|
|
1155
1162
|
"collapsed-width": 64,
|
|
1156
|
-
onCollapse: a(
|
|
1157
|
-
onExpand: a(
|
|
1163
|
+
onCollapse: a(o).collapse,
|
|
1164
|
+
onExpand: a(o).collapse
|
|
1158
1165
|
}, {
|
|
1159
1166
|
default: r(() => [
|
|
1160
|
-
i(a(
|
|
1167
|
+
i(a(nt), { vertical: "" }, {
|
|
1161
1168
|
default: r(() => [
|
|
1162
1169
|
i(Yt),
|
|
1163
1170
|
i(va)
|
|
@@ -1169,7 +1176,7 @@ const We = (t) => {
|
|
|
1169
1176
|
}, 8, ["collapsed", "onCollapse", "onExpand"]),
|
|
1170
1177
|
i(a($e), null, {
|
|
1171
1178
|
default: r(() => [
|
|
1172
|
-
i(a(
|
|
1179
|
+
i(a(ot), { position: "absolute" }, {
|
|
1173
1180
|
default: r(() => [
|
|
1174
1181
|
i(ia)
|
|
1175
1182
|
]),
|
|
@@ -1177,10 +1184,10 @@ const We = (t) => {
|
|
|
1177
1184
|
}),
|
|
1178
1185
|
i(a(lt), { class: "layout-content layout-default-background" }, {
|
|
1179
1186
|
default: r(() => [
|
|
1180
|
-
|
|
1187
|
+
P("div", _a, [
|
|
1181
1188
|
i(ma),
|
|
1182
|
-
|
|
1183
|
-
i(ua, { loading:
|
|
1189
|
+
P("div", ya, [
|
|
1190
|
+
i(ua, { loading: u.value }, null, 8, ["loading"])
|
|
1184
1191
|
])
|
|
1185
1192
|
])
|
|
1186
1193
|
]),
|
|
@@ -1198,12 +1205,12 @@ const We = (t) => {
|
|
|
1198
1205
|
});
|
|
1199
1206
|
};
|
|
1200
1207
|
}
|
|
1201
|
-
}), wa = /* @__PURE__ */ H(
|
|
1202
|
-
function ka(t,
|
|
1203
|
-
const
|
|
1204
|
-
return
|
|
1208
|
+
}), wa = /* @__PURE__ */ H(ba, [["__scopeId", "data-v-8d20e006"]]), Pa = {};
|
|
1209
|
+
function ka(t, o) {
|
|
1210
|
+
const u = ze("router-view");
|
|
1211
|
+
return y(), $(u);
|
|
1205
1212
|
}
|
|
1206
|
-
const
|
|
1213
|
+
const La = /* @__PURE__ */ H(Pa, [["render", ka]]), Ca = W(La), xa = W(wa), Sa = /* @__PURE__ */ z({
|
|
1207
1214
|
__name: "PApplication",
|
|
1208
1215
|
props: {
|
|
1209
1216
|
theme: {},
|
|
@@ -1220,9 +1227,9 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), La = W(Ca), xa = W(wa), Sa =
|
|
|
1220
1227
|
} }
|
|
1221
1228
|
},
|
|
1222
1229
|
setup(t) {
|
|
1223
|
-
return (
|
|
1224
|
-
const
|
|
1225
|
-
return
|
|
1230
|
+
return (o, u) => {
|
|
1231
|
+
const v = rt;
|
|
1232
|
+
return y(), $(v, {
|
|
1226
1233
|
locale: a(ct),
|
|
1227
1234
|
theme: t.theme,
|
|
1228
1235
|
"theme-overrides": t.themeOverrides,
|
|
@@ -1235,7 +1242,7 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), La = W(Ca), xa = W(wa), Sa =
|
|
|
1235
1242
|
default: r(() => [
|
|
1236
1243
|
i(a(ft), null, {
|
|
1237
1244
|
default: r(() => [
|
|
1238
|
-
F(
|
|
1245
|
+
F(o.$slots, "default")
|
|
1239
1246
|
]),
|
|
1240
1247
|
_: 3
|
|
1241
1248
|
})
|
|
@@ -1250,7 +1257,7 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), La = W(Ca), xa = W(wa), Sa =
|
|
|
1250
1257
|
}, 8, ["locale", "theme", "theme-overrides", "date-locale"]);
|
|
1251
1258
|
};
|
|
1252
1259
|
}
|
|
1253
|
-
}), Ta = W(Sa), $a = /* @__PURE__ */
|
|
1260
|
+
}), Ta = W(Sa), $a = /* @__PURE__ */ z({
|
|
1254
1261
|
__name: "PModal",
|
|
1255
1262
|
props: {
|
|
1256
1263
|
saveBtnText: { default: "保存" },
|
|
@@ -1264,74 +1271,74 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), La = W(Ca), xa = W(wa), Sa =
|
|
|
1264
1271
|
onClose: {}
|
|
1265
1272
|
},
|
|
1266
1273
|
emits: ["update:visible", "update:loading"],
|
|
1267
|
-
setup(t, { expose:
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1274
|
+
setup(t, { expose: o, emit: u }) {
|
|
1275
|
+
const v = fe(), m = t, d = u, L = async () => {
|
|
1276
|
+
d("update:loading", !0);
|
|
1270
1277
|
try {
|
|
1271
|
-
|
|
1272
|
-
} catch (
|
|
1273
|
-
|
|
1278
|
+
m.onSave && await m.onSave() && w();
|
|
1279
|
+
} catch (_) {
|
|
1280
|
+
v.error(_.message);
|
|
1274
1281
|
} finally {
|
|
1275
|
-
|
|
1282
|
+
d("update:loading", !1);
|
|
1276
1283
|
}
|
|
1277
|
-
},
|
|
1278
|
-
|
|
1279
|
-
},
|
|
1284
|
+
}, w = () => {
|
|
1285
|
+
d("update:visible", !1), d("update:loading", !1);
|
|
1286
|
+
}, S = async () => {
|
|
1280
1287
|
try {
|
|
1281
|
-
|
|
1282
|
-
} catch (
|
|
1283
|
-
|
|
1288
|
+
m.onClose ? await m.onClose() && w() : w();
|
|
1289
|
+
} catch (_) {
|
|
1290
|
+
v.error(_.message), d("update:loading", !1);
|
|
1284
1291
|
}
|
|
1285
1292
|
};
|
|
1286
|
-
return
|
|
1293
|
+
return o({
|
|
1287
1294
|
open: () => {
|
|
1288
|
-
|
|
1295
|
+
d("update:visible", !0), d("update:loading", !1);
|
|
1289
1296
|
},
|
|
1290
1297
|
close: () => {
|
|
1291
|
-
|
|
1298
|
+
d("update:visible", !1), d("update:loading", !1);
|
|
1292
1299
|
}
|
|
1293
|
-
}), (
|
|
1294
|
-
const
|
|
1295
|
-
return
|
|
1300
|
+
}), (_, c) => {
|
|
1301
|
+
const C = gt, p = K, f = Ne;
|
|
1302
|
+
return y(), $(a(Re), Pt({
|
|
1296
1303
|
ref: "$modal",
|
|
1297
1304
|
preset: "card"
|
|
1298
|
-
},
|
|
1305
|
+
}, _.$attrs, {
|
|
1299
1306
|
"header-class": "bg-gray-50",
|
|
1300
|
-
show:
|
|
1307
|
+
show: m.visible,
|
|
1301
1308
|
draggable: !0,
|
|
1302
1309
|
closable: !1,
|
|
1303
1310
|
"close-on-esc": !1,
|
|
1304
1311
|
"mask-closable": !1,
|
|
1305
1312
|
bordered: !1,
|
|
1306
|
-
style: { width: `${
|
|
1307
|
-
onClose:
|
|
1313
|
+
style: { width: `${m.width}px` },
|
|
1314
|
+
onClose: w
|
|
1308
1315
|
}), {
|
|
1309
1316
|
header: r(() => [
|
|
1310
|
-
|
|
1317
|
+
_.$slots.header ? F(_.$slots, "header", { key: 0 }) : m.title ? (y(), $(C, { key: 1 }, {
|
|
1311
1318
|
default: r(() => [
|
|
1312
1319
|
Y(q(t.title), 1)
|
|
1313
1320
|
]),
|
|
1314
1321
|
_: 1
|
|
1315
|
-
})) :
|
|
1322
|
+
})) : I("", !0)
|
|
1316
1323
|
]),
|
|
1317
1324
|
"header-extra": r(() => [
|
|
1318
|
-
F(
|
|
1325
|
+
F(_.$slots, "header-extra")
|
|
1319
1326
|
]),
|
|
1320
1327
|
default: r(() => [
|
|
1321
|
-
|
|
1328
|
+
P("div", {
|
|
1322
1329
|
class: "overflow-y-auto overflow-hidden mt-5",
|
|
1323
|
-
style: de({ maxHeight: `${
|
|
1330
|
+
style: de({ maxHeight: `${m.height}px` })
|
|
1324
1331
|
}, [
|
|
1325
|
-
F(
|
|
1332
|
+
F(_.$slots, "default")
|
|
1326
1333
|
], 4)
|
|
1327
1334
|
]),
|
|
1328
1335
|
footer: r(() => [
|
|
1329
|
-
F(
|
|
1336
|
+
F(_.$slots, "footer")
|
|
1330
1337
|
]),
|
|
1331
1338
|
action: r(() => [
|
|
1332
|
-
i(
|
|
1339
|
+
i(f, { justify: "end" }, {
|
|
1333
1340
|
default: r(() => [
|
|
1334
|
-
i(
|
|
1341
|
+
i(p, {
|
|
1335
1342
|
type: "primary",
|
|
1336
1343
|
loading: t.loading,
|
|
1337
1344
|
onClick: L
|
|
@@ -1341,12 +1348,12 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), La = W(Ca), xa = W(wa), Sa =
|
|
|
1341
1348
|
]),
|
|
1342
1349
|
_: 1
|
|
1343
1350
|
}, 8, ["loading"]),
|
|
1344
|
-
F(
|
|
1345
|
-
i(
|
|
1346
|
-
onClick:
|
|
1351
|
+
F(_.$slots, "action-extra", { loading: t.loading }),
|
|
1352
|
+
i(p, {
|
|
1353
|
+
onClick: S,
|
|
1347
1354
|
loading: t.loading
|
|
1348
1355
|
}, {
|
|
1349
|
-
default: r(() => [...
|
|
1356
|
+
default: r(() => [...c[0] || (c[0] = [
|
|
1350
1357
|
Y("取消", -1)
|
|
1351
1358
|
])]),
|
|
1352
1359
|
_: 1
|
|
@@ -1359,50 +1366,50 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), La = W(Ca), xa = W(wa), Sa =
|
|
|
1359
1366
|
}, 16, ["show", "style"]);
|
|
1360
1367
|
};
|
|
1361
1368
|
}
|
|
1362
|
-
}), Oa = W($a), Ea = W(He), Ma =
|
|
1369
|
+
}), Oa = W($a), Ea = W(He), Ma = z({
|
|
1363
1370
|
name: "Redirect",
|
|
1364
1371
|
setup() {
|
|
1365
|
-
const t = le(),
|
|
1372
|
+
const t = le(), o = oe();
|
|
1366
1373
|
return kt(() => {
|
|
1367
|
-
const { params:
|
|
1368
|
-
|
|
1369
|
-
path: "/" + (Array.isArray(
|
|
1370
|
-
query:
|
|
1374
|
+
const { params: u, query: v } = t, { path: m } = u;
|
|
1375
|
+
o.replace({
|
|
1376
|
+
path: "/" + (Array.isArray(m) ? m.join("/") : m),
|
|
1377
|
+
query: v
|
|
1371
1378
|
});
|
|
1372
1379
|
}), () => /* @__PURE__ */ React.createElement(pt, null);
|
|
1373
1380
|
}
|
|
1374
|
-
}), Ra = W(Ma), Na = { class: "frame" }, Da = ["src"], Aa = /* @__PURE__ */
|
|
1381
|
+
}), Ra = W(Ma), Na = { class: "frame" }, Da = ["src"], Aa = /* @__PURE__ */ z({
|
|
1375
1382
|
__name: "PIframe",
|
|
1376
1383
|
setup(t) {
|
|
1377
|
-
const
|
|
1378
|
-
a(
|
|
1379
|
-
function
|
|
1380
|
-
|
|
1384
|
+
const o = le(), u = T(!1), v = T(null), m = T("");
|
|
1385
|
+
a(o.meta)?.frameSrc && (m.value = a(o.meta)?.frameSrc);
|
|
1386
|
+
function d() {
|
|
1387
|
+
u.value = !1;
|
|
1381
1388
|
}
|
|
1382
1389
|
function L() {
|
|
1383
|
-
|
|
1384
|
-
const
|
|
1385
|
-
if (!
|
|
1386
|
-
const
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
}) :
|
|
1390
|
-
|
|
1390
|
+
ne(() => {
|
|
1391
|
+
const w = a(v);
|
|
1392
|
+
if (!w) return;
|
|
1393
|
+
const S = w;
|
|
1394
|
+
S.attachEvent ? S.attachEvent("onload", () => {
|
|
1395
|
+
d();
|
|
1396
|
+
}) : w.onload = () => {
|
|
1397
|
+
d();
|
|
1391
1398
|
};
|
|
1392
1399
|
});
|
|
1393
1400
|
}
|
|
1394
1401
|
return Q(() => {
|
|
1395
|
-
|
|
1396
|
-
}), (
|
|
1397
|
-
const
|
|
1398
|
-
return
|
|
1402
|
+
u.value = !0, L();
|
|
1403
|
+
}), (w, S) => {
|
|
1404
|
+
const O = ht;
|
|
1405
|
+
return y(), $(O, { show: u.value }, {
|
|
1399
1406
|
default: r(() => [
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
src:
|
|
1407
|
+
P("div", Na, [
|
|
1408
|
+
P("iframe", {
|
|
1409
|
+
src: m.value,
|
|
1403
1410
|
class: "frame-iframe",
|
|
1404
1411
|
ref_key: "frameRef",
|
|
1405
|
-
ref:
|
|
1412
|
+
ref: v
|
|
1406
1413
|
}, null, 8, Da)
|
|
1407
1414
|
])
|
|
1408
1415
|
]),
|
|
@@ -1411,10 +1418,10 @@ const Ca = /* @__PURE__ */ H(Pa, [["render", ka]]), La = W(Ca), xa = W(wa), Sa =
|
|
|
1411
1418
|
};
|
|
1412
1419
|
}
|
|
1413
1420
|
}), Ia = /* @__PURE__ */ H(Aa, [["__scopeId", "data-v-161a378e"]]), za = W(Ia), Ba = {}, Wa = { class: "flex flex-col justify-center page-container" };
|
|
1414
|
-
function Ha(t,
|
|
1415
|
-
const
|
|
1416
|
-
return
|
|
1417
|
-
i(
|
|
1421
|
+
function Ha(t, o) {
|
|
1422
|
+
const u = ke;
|
|
1423
|
+
return y(), D("div", Wa, [
|
|
1424
|
+
i(u, {
|
|
1418
1425
|
status: "500",
|
|
1419
1426
|
title: "服务器错误",
|
|
1420
1427
|
description: "抱歉,服务器出错了"
|
|
@@ -1422,10 +1429,10 @@ function Ha(t, l) {
|
|
|
1422
1429
|
]);
|
|
1423
1430
|
}
|
|
1424
1431
|
const Ua = /* @__PURE__ */ H(Ba, [["render", Ha], ["__scopeId", "data-v-89cb65c7"]]), ja = {}, Fa = { class: "flex flex-col justify-center page-container" };
|
|
1425
|
-
function qa(t,
|
|
1426
|
-
const
|
|
1427
|
-
return
|
|
1428
|
-
i(
|
|
1432
|
+
function qa(t, o) {
|
|
1433
|
+
const u = ke;
|
|
1434
|
+
return y(), D("div", Fa, [
|
|
1435
|
+
i(u, {
|
|
1429
1436
|
status: "404",
|
|
1430
1437
|
title: "资源不存在",
|
|
1431
1438
|
description: "抱歉,你访问的页面不存在"
|
|
@@ -1433,77 +1440,77 @@ function qa(t, l) {
|
|
|
1433
1440
|
]);
|
|
1434
1441
|
}
|
|
1435
1442
|
const Va = /* @__PURE__ */ H(ja, [["render", qa], ["__scopeId", "data-v-99232671"]]), Ka = {}, Ya = { class: "flex flex-col justify-center page-container" };
|
|
1436
|
-
function Xa(t,
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1439
|
-
i(
|
|
1443
|
+
function Xa(t, o) {
|
|
1444
|
+
const u = ke;
|
|
1445
|
+
return y(), D("div", Ya, [
|
|
1446
|
+
i(u, {
|
|
1440
1447
|
status: "403",
|
|
1441
1448
|
title: "禁止访问",
|
|
1442
1449
|
description: "抱歉,你无权访问该页面"
|
|
1443
1450
|
})
|
|
1444
1451
|
]);
|
|
1445
1452
|
}
|
|
1446
|
-
const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3baa9c16"]]), Ja = W(Ua), Za = W(Va), Qa = W(Ga),
|
|
1447
|
-
const t =
|
|
1453
|
+
const Ga = /* @__PURE__ */ H(Ka, [["render", Xa], ["__scopeId", "data-v-3baa9c16"]]), Ja = W(Ua), Za = W(Va), Qa = W(Ga), en = xe("app-oidc", () => {
|
|
1454
|
+
const t = Le({});
|
|
1448
1455
|
return {
|
|
1449
|
-
setCallback: (
|
|
1450
|
-
callCallback: async (
|
|
1451
|
-
setError: (
|
|
1452
|
-
callError: async (
|
|
1456
|
+
setCallback: (d) => t.callback = d,
|
|
1457
|
+
callCallback: async (d) => await t.callback?.(d),
|
|
1458
|
+
setError: (d) => t.error = d,
|
|
1459
|
+
callError: async (d, L) => await t.error?.(d, L)
|
|
1453
1460
|
};
|
|
1454
|
-
}),
|
|
1461
|
+
}), tn = { class: "view-auth-callback" }, an = /* @__PURE__ */ z({
|
|
1455
1462
|
__name: "POidc",
|
|
1456
1463
|
setup(t) {
|
|
1457
|
-
const
|
|
1464
|
+
const o = oe(), { callCallback: u, callError: v } = en();
|
|
1458
1465
|
return Q(async () => {
|
|
1459
1466
|
try {
|
|
1460
|
-
await
|
|
1461
|
-
} catch (
|
|
1462
|
-
await
|
|
1467
|
+
await u(o);
|
|
1468
|
+
} catch (m) {
|
|
1469
|
+
await v(o, m);
|
|
1463
1470
|
}
|
|
1464
|
-
}), (
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1471
|
+
}), (m, d) => (y(), D("div", tn, [...d[0] || (d[0] = [
|
|
1472
|
+
P("div", { class: "view-auth-callback-content" }, [
|
|
1473
|
+
P("div", { class: "view-auth-callback-spinner" }, [
|
|
1474
|
+
P("span", null, "正在处理登录回调...")
|
|
1468
1475
|
])
|
|
1469
1476
|
], -1)
|
|
1470
1477
|
])]));
|
|
1471
1478
|
}
|
|
1472
|
-
}),
|
|
1479
|
+
}), nn = /* @__PURE__ */ H(an, [["__scopeId", "data-v-167395ae"]]), on = W(nn), ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1473
1480
|
__proto__: null,
|
|
1474
1481
|
P403: Qa,
|
|
1475
1482
|
P404: Za,
|
|
1476
1483
|
P500: Ja,
|
|
1477
1484
|
PApplication: Ta,
|
|
1478
|
-
PEmptyLayout:
|
|
1485
|
+
PEmptyLayout: Ca,
|
|
1479
1486
|
PIframe: za,
|
|
1480
1487
|
PLanguage: Ea,
|
|
1481
1488
|
PLayout: xa,
|
|
1482
1489
|
PModal: Oa,
|
|
1483
|
-
POidc:
|
|
1490
|
+
POidc: on,
|
|
1484
1491
|
PRedirect: Ra,
|
|
1485
1492
|
PTable: Ft
|
|
1486
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1487
|
-
|
|
1488
|
-
}),
|
|
1489
|
-
install:
|
|
1493
|
+
}, Symbol.toStringTag, { value: "Module" })), sn = (t, o) => (Object.values(ln).forEach((u) => {
|
|
1494
|
+
u.install && t.use(u);
|
|
1495
|
+
}), o?.(), t), mn = {
|
|
1496
|
+
install: sn
|
|
1490
1497
|
};
|
|
1491
1498
|
export {
|
|
1492
1499
|
Qa as P403,
|
|
1493
1500
|
Za as P404,
|
|
1494
1501
|
Ja as P500,
|
|
1495
1502
|
Ta as PApplication,
|
|
1496
|
-
|
|
1503
|
+
Ca as PEmptyLayout,
|
|
1497
1504
|
za as PIframe,
|
|
1498
1505
|
Ea as PLanguage,
|
|
1499
1506
|
xa as PLayout,
|
|
1500
1507
|
Oa as PModal,
|
|
1501
|
-
|
|
1508
|
+
on as POidc,
|
|
1502
1509
|
Ra as PRedirect,
|
|
1503
1510
|
Ft as PTable,
|
|
1504
|
-
|
|
1505
|
-
|
|
1511
|
+
mn as default,
|
|
1512
|
+
sn as install,
|
|
1506
1513
|
Gt as useLanguageStore,
|
|
1507
1514
|
se as useLayoutStore,
|
|
1508
|
-
|
|
1515
|
+
en as useOidcStore
|
|
1509
1516
|
};
|