@huyooo/ui 0.5.50 → 0.5.52
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/{AuthkitAuthModal-D9KYU2Q_.js → AuthkitAuthModal-bJhi6_gD.js} +5 -5
- package/dist/{AuthkitAuthorize-Dp2O6V8H.js → AuthkitAuthorize-DkATUOHh.js} +2 -2
- package/dist/{Clipboard-CKth2I5_.js → Clipboard-B1S22H4u.js} +1 -1
- package/dist/{Contact-Dn0SG2yv.js → Contact-BedOlSzv.js} +2 -2
- package/dist/{FeedbackItem-CRLaflw8.js → FeedbackItem-Dpo--iGm.js} +3 -3
- package/dist/{FeedbackModal-CieTPhns.js → FeedbackModal-CF9_lxXh.js} +3 -3
- package/dist/{MessageHandle-CXNFRd1b.js → MessageHandle-20vJx3hm.js} +3 -3
- package/dist/{PaySubscriptions--3YYjJJQ.js → PaySubscriptions-CK8CP3zA.js} +3 -3
- package/dist/{ReferrerReferees-BTGhLFWg.js → ReferrerReferees-BUbkO2tK.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-BRIQece7.js → Upload.vue_vue_type_script_setup_true_lang-CZ26PPi_.js} +2 -2
- package/dist/{UserAccountMenu-kABD5Mgj.js → UserAccountMenu-CWrFWNvu.js} +7 -7
- package/dist/WidthContainer-Bz4U5oVZ.js +585 -0
- package/dist/{auth-DoFeUkvU.js → auth-BsBlc_B8.js} +2 -1
- package/dist/authkit.js +6 -6
- package/dist/common.js +1 -1
- package/dist/composables/Authkit/useAuthMenu.d.ts +11 -0
- package/dist/composables.d.ts +1 -1
- package/dist/composables.js +23 -21
- package/dist/feedback.js +3 -3
- package/dist/index.js +168 -166
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-ColL5PT9.js → useAuthkitAppsAuthPageInfo-CoQi1eR1.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-sd36XPRm.js → useAuthkitCreateAndUpdate-Cf7nddgv.js} +1 -1
- package/dist/{useAuthkitUsersProfile-DZErSTcF.js → useAuthkitUsersProfile-ChX1jsty.js} +1 -1
- package/dist/{useDownloads-ZE9iJwIA.js → useDownloads-ysVfpJuf.js} +1 -1
- package/dist/{useMessageNotifications-a37WUHHY.js → useMessageNotifications-ChYsrw0-.js} +1 -1
- package/dist/{useSEO-cMg2LHqd.js → useSEO-gIh42v6e.js} +233 -197
- package/dist/{useTableHandle-CdyzAUWe.js → useTableHandle-C_-K5ipT.js} +1 -1
- package/dist/{useUploadCos-BEzVZoNh.js → useUploadCos-Cn_58MaN.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/WidthContainer-DPR4sEn4.js +0 -626
|
@@ -0,0 +1,585 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { defineComponent as w, ref as x, watch as O, createElementBlock as n, openBlock as e, createElementVNode as o, createVNode as f, unref as u, withCtx as ee, renderSlot as K, createCommentVNode as k, toDisplayString as S, onMounted as te, onUnmounted as ne, Fragment as T, renderList as L, normalizeClass as I, createTextVNode as oe, normalizeStyle as A, createBlock as se, computed as U } from "vue";
|
|
4
|
+
import { Spin as V } from "@arco-design/web-vue";
|
|
5
|
+
import "./useAuthkitUsersProfile-ChX1jsty.js";
|
|
6
|
+
import { a as ae } from "./auth-BsBlc_B8.js";
|
|
7
|
+
import { u as W } from "./useAuthkitAppsAuthPageInfo-CoQi1eR1.js";
|
|
8
|
+
import { a as D, b as R, w as H, f as G, c as N, e as F, d as ie } from "./useSEO-gIh42v6e.js";
|
|
9
|
+
import "./useUploadCos-Cn_58MaN.js";
|
|
10
|
+
import { useRouter as j, useRoute as J } from "vue-router";
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
import { d as re, c as Q } from "./UserAccountMenu-CWrFWNvu.js";
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
/* empty css */
|
|
18
|
+
import { M as ce } from "./Menu-ejsosUdV.js";
|
|
19
|
+
import "./CollapseItem-Cw1vcdLu.js";
|
|
20
|
+
/* empty css */
|
|
21
|
+
import "./CustomTable-B8i1SbFB.js";
|
|
22
|
+
import "./index-Bb-d5pBq.js";
|
|
23
|
+
import { Icon as z } from "@iconify/vue";
|
|
24
|
+
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
25
|
+
const le = {
|
|
26
|
+
class: "SidebarCom"
|
|
27
|
+
}, ue = {
|
|
28
|
+
class: "LogoContent"
|
|
29
|
+
}, de = {
|
|
30
|
+
class: "MenuContent"
|
|
31
|
+
}, pe = {
|
|
32
|
+
class: "sidebar-footer"
|
|
33
|
+
}, me = /* @__PURE__ */ w({
|
|
34
|
+
__name: "AppSidebar",
|
|
35
|
+
props: {
|
|
36
|
+
menuType: {
|
|
37
|
+
default: "system"
|
|
38
|
+
},
|
|
39
|
+
showUserPanel: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !0
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
setup(a) {
|
|
45
|
+
const t = a, {
|
|
46
|
+
appsData: i
|
|
47
|
+
} = W(), {
|
|
48
|
+
menus: r
|
|
49
|
+
} = D(t.menuType), c = j(), d = x(!1);
|
|
50
|
+
function _() {
|
|
51
|
+
c.push({
|
|
52
|
+
path: "/"
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
const h = J(), C = x([""]);
|
|
56
|
+
function g(v) {
|
|
57
|
+
const p = v.path;
|
|
58
|
+
H(() => {
|
|
59
|
+
c.push({
|
|
60
|
+
path: p,
|
|
61
|
+
query: h.query
|
|
62
|
+
}), C.value = [p], window.scrollTo({
|
|
63
|
+
top: 0,
|
|
64
|
+
behavior: "smooth"
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return O(() => [h.path, r.value], () => {
|
|
69
|
+
const v = R(r.value, h.path, {
|
|
70
|
+
// Sidebar 中,子路由应该选中子菜单项
|
|
71
|
+
returnParentOnChildMatch: !1,
|
|
72
|
+
// 后备查找函数
|
|
73
|
+
fallback: (p) => G(h.matched, t.menuType, p)
|
|
74
|
+
});
|
|
75
|
+
console.log(v, h.matched, t.menuType, h.path, "activateKey"), v && (C.value = [v]);
|
|
76
|
+
}, {
|
|
77
|
+
immediate: !0,
|
|
78
|
+
deep: !0
|
|
79
|
+
}), (v, p) => (e(), n("div", le, [o("div", ue, [f(u(X), {
|
|
80
|
+
icon: u(i).applicationLogoUrl,
|
|
81
|
+
name: u(i).name,
|
|
82
|
+
onTo: _
|
|
83
|
+
}, null, 8, ["icon", "name"])]), o("div", de, [f(ce, {
|
|
84
|
+
"selected-keys": C.value,
|
|
85
|
+
"onUpdate:selectedKeys": p[0] || (p[0] = (M) => C.value = M),
|
|
86
|
+
menus: u(r),
|
|
87
|
+
onChange: g
|
|
88
|
+
}, null, 8, ["selected-keys", "menus"])]), o("div", pe, [f(u(re), {
|
|
89
|
+
onArrowClick: p[2] || (p[2] = (M) => d.value = !d.value)
|
|
90
|
+
}, {
|
|
91
|
+
avatar: ee(() => [f(u(Q), {
|
|
92
|
+
modelValue: d.value,
|
|
93
|
+
"onUpdate:modelValue": p[1] || (p[1] = (M) => d.value = M),
|
|
94
|
+
position: "tr",
|
|
95
|
+
"dropdown-offset-y": "30px",
|
|
96
|
+
"dropdown-offset-x": "230px"
|
|
97
|
+
}, null, 8, ["modelValue"])]),
|
|
98
|
+
_: 1
|
|
99
|
+
})])]));
|
|
100
|
+
}
|
|
101
|
+
}), he = /* @__PURE__ */ $(me, [["__scopeId", "data-v-ab4863e1"]]), fe = {
|
|
102
|
+
class: "layout"
|
|
103
|
+
}, _e = {
|
|
104
|
+
class: "leftContent"
|
|
105
|
+
}, ve = {
|
|
106
|
+
class: "content"
|
|
107
|
+
}, ge = {
|
|
108
|
+
class: "contentCenter"
|
|
109
|
+
}, ye = {
|
|
110
|
+
class: "pages"
|
|
111
|
+
}, be = {
|
|
112
|
+
key: 0,
|
|
113
|
+
class: "loading"
|
|
114
|
+
}, ke = /* @__PURE__ */ w({
|
|
115
|
+
__name: "AppLayout",
|
|
116
|
+
props: {
|
|
117
|
+
menuType: {
|
|
118
|
+
default: "system"
|
|
119
|
+
},
|
|
120
|
+
showUserPanel: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: !0
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
setup(a) {
|
|
126
|
+
const t = a, {
|
|
127
|
+
isChecking: i
|
|
128
|
+
} = N();
|
|
129
|
+
return F(), (r, c) => (e(), n("div", fe, [o("div", _e, [f(he, {
|
|
130
|
+
"menu-type": t.menuType,
|
|
131
|
+
"show-user-panel": t.showUserPanel
|
|
132
|
+
}, null, 8, ["menu-type", "show-user-panel"])]), o("div", ve, [o("div", ge, [o("div", ye, [u(i) ? (e(), n("div", be, [f(u(V), {
|
|
133
|
+
size: 40
|
|
134
|
+
})])) : K(r.$slots, "default", {
|
|
135
|
+
key: 1
|
|
136
|
+
}, void 0, !0)])])])]));
|
|
137
|
+
}
|
|
138
|
+
}), qt = /* @__PURE__ */ $(ke, [["__scopeId", "data-v-f79dd27f"]]), Se = {
|
|
139
|
+
class: "ContentHead"
|
|
140
|
+
}, $e = {
|
|
141
|
+
class: "title"
|
|
142
|
+
}, we = {
|
|
143
|
+
key: 0,
|
|
144
|
+
class: "description"
|
|
145
|
+
}, Ce = /* @__PURE__ */ w({
|
|
146
|
+
__name: "ContentHead",
|
|
147
|
+
props: {
|
|
148
|
+
title: {
|
|
149
|
+
type: String,
|
|
150
|
+
required: !0,
|
|
151
|
+
default: () => ""
|
|
152
|
+
},
|
|
153
|
+
description: {
|
|
154
|
+
type: String,
|
|
155
|
+
required: !0,
|
|
156
|
+
default: () => ""
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
setup(a) {
|
|
160
|
+
const t = a;
|
|
161
|
+
return (i, r) => (e(), n("div", Se, [o("h1", $e, S(t.title), 1), t.description ? (e(), n("p", we, S(t.description), 1)) : k("", !0)]));
|
|
162
|
+
}
|
|
163
|
+
}), zt = /* @__PURE__ */ $(Ce, [["__scopeId", "data-v-209a7bef"]]), Ie = {
|
|
164
|
+
class: "HeaderMenus"
|
|
165
|
+
}, Me = {
|
|
166
|
+
key: 0,
|
|
167
|
+
class: "desktop-menus"
|
|
168
|
+
}, Te = {
|
|
169
|
+
key: 0,
|
|
170
|
+
class: "header-menu-item"
|
|
171
|
+
}, xe = {
|
|
172
|
+
class: "submenu-popup"
|
|
173
|
+
}, Pe = {
|
|
174
|
+
class: "submenu-content"
|
|
175
|
+
}, Le = ["onClick"], Ae = {
|
|
176
|
+
key: 0,
|
|
177
|
+
class: "submenu-item-icon"
|
|
178
|
+
}, qe = {
|
|
179
|
+
class: "submenu-item-content"
|
|
180
|
+
}, ze = {
|
|
181
|
+
class: "submenu-item-title"
|
|
182
|
+
}, Ue = {
|
|
183
|
+
key: 0,
|
|
184
|
+
class: "submenu-item-description"
|
|
185
|
+
}, He = ["onClick"], Ke = {
|
|
186
|
+
key: 3,
|
|
187
|
+
class: "mobile-menu"
|
|
188
|
+
}, Ee = {
|
|
189
|
+
class: "mobile-menu-content"
|
|
190
|
+
}, Be = ["onClick"], Oe = {
|
|
191
|
+
key: 0,
|
|
192
|
+
class: "mobile-submenu"
|
|
193
|
+
}, Ve = ["onClick"], We = ["onClick"], De = /* @__PURE__ */ w({
|
|
194
|
+
__name: "HeaderMenus",
|
|
195
|
+
props: {
|
|
196
|
+
menus: {
|
|
197
|
+
type: Array,
|
|
198
|
+
required: !0
|
|
199
|
+
},
|
|
200
|
+
activateKey: {
|
|
201
|
+
type: String,
|
|
202
|
+
required: !0
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
emits: ["change"],
|
|
206
|
+
setup(a, {
|
|
207
|
+
emit: t
|
|
208
|
+
}) {
|
|
209
|
+
const i = a, r = t, c = x(!1), d = x(!1), _ = x({});
|
|
210
|
+
function h() {
|
|
211
|
+
d.value = window.innerWidth <= 1024;
|
|
212
|
+
}
|
|
213
|
+
function C() {
|
|
214
|
+
c.value = !c.value;
|
|
215
|
+
}
|
|
216
|
+
function g() {
|
|
217
|
+
c.value = !1;
|
|
218
|
+
}
|
|
219
|
+
function v(l) {
|
|
220
|
+
r("change", l);
|
|
221
|
+
}
|
|
222
|
+
function p(l) {
|
|
223
|
+
r("change", l), g();
|
|
224
|
+
}
|
|
225
|
+
function M(l) {
|
|
226
|
+
_.value[l] = !_.value[l];
|
|
227
|
+
}
|
|
228
|
+
function P(l) {
|
|
229
|
+
const y = i.activateKey, s = l.path;
|
|
230
|
+
if (y === s || y.startsWith(s + "/"))
|
|
231
|
+
return !0;
|
|
232
|
+
if (l.children && l.children.length > 0) {
|
|
233
|
+
for (const b of l.children)
|
|
234
|
+
if (y === b.path || y.startsWith(b.path + "/"))
|
|
235
|
+
return !0;
|
|
236
|
+
}
|
|
237
|
+
return !1;
|
|
238
|
+
}
|
|
239
|
+
function E(l) {
|
|
240
|
+
const y = i.activateKey, s = l.path;
|
|
241
|
+
return !!(y === s || y.startsWith(s + "/"));
|
|
242
|
+
}
|
|
243
|
+
function Y(l) {
|
|
244
|
+
r("change", l);
|
|
245
|
+
}
|
|
246
|
+
function B() {
|
|
247
|
+
h(), d.value || g();
|
|
248
|
+
}
|
|
249
|
+
return te(() => {
|
|
250
|
+
h(), window.addEventListener("resize", B);
|
|
251
|
+
}), ne(() => {
|
|
252
|
+
window.removeEventListener("resize", B);
|
|
253
|
+
}), (l, y) => (e(), n("div", Ie, [d.value ? k("", !0) : (e(), n("div", Me, [(e(!0), n(T, null, L(i.menus, (s, b) => (e(), n(T, {
|
|
254
|
+
key: b
|
|
255
|
+
}, [s.children && s.children.length > 0 ? (e(), n("div", Te, [o("div", {
|
|
256
|
+
class: I(["headerLink hasChildren", {
|
|
257
|
+
activate: P(s)
|
|
258
|
+
}])
|
|
259
|
+
}, [oe(S(s.name) + " ", 1), f(u(z), {
|
|
260
|
+
icon: "mingcute:down-line",
|
|
261
|
+
class: "dropdown-arrow"
|
|
262
|
+
})], 2), o("div", xe, [o("div", Pe, [(e(!0), n(T, null, L(s.children, (m, q) => (e(), n("div", {
|
|
263
|
+
key: q,
|
|
264
|
+
class: I(["submenu-item", {
|
|
265
|
+
active: E(m)
|
|
266
|
+
}]),
|
|
267
|
+
onClick: (Z) => v(m)
|
|
268
|
+
}, [m.icon ? (e(), n("div", Ae, [f(u(z), {
|
|
269
|
+
icon: m.icon
|
|
270
|
+
}, null, 8, ["icon"])])) : k("", !0), o("div", qe, [o("div", ze, S(m.name), 1), m.description ? (e(), n("div", Ue, S(m.description), 1)) : k("", !0)])], 10, Le))), 128))])])])) : (e(), n("div", {
|
|
271
|
+
key: 1,
|
|
272
|
+
class: I(["headerLink", {
|
|
273
|
+
activate: P(s)
|
|
274
|
+
}]),
|
|
275
|
+
onClick: (m) => Y(s)
|
|
276
|
+
}, S(s.name), 11, He))], 64))), 128))])), d.value ? (e(), n("button", {
|
|
277
|
+
key: 1,
|
|
278
|
+
class: I(["mobile-menu-toggle", {
|
|
279
|
+
active: c.value
|
|
280
|
+
}]),
|
|
281
|
+
"aria-label": "切换菜单",
|
|
282
|
+
onClick: C
|
|
283
|
+
}, [...y[0] || (y[0] = [o("span", {
|
|
284
|
+
class: "hamburger-line"
|
|
285
|
+
}, null, -1), o("span", {
|
|
286
|
+
class: "hamburger-line"
|
|
287
|
+
}, null, -1), o("span", {
|
|
288
|
+
class: "hamburger-line"
|
|
289
|
+
}, null, -1)])], 2)) : k("", !0), c.value ? (e(), n("div", {
|
|
290
|
+
key: 2,
|
|
291
|
+
class: "mobile-menu-overlay",
|
|
292
|
+
onClick: g
|
|
293
|
+
})) : k("", !0), c.value ? (e(), n("div", Ke, [o("div", Ee, [(e(!0), n(T, null, L(i.menus, (s, b) => (e(), n(T, {
|
|
294
|
+
key: b
|
|
295
|
+
}, [s.children && s.children.length > 0 ? (e(), n("div", {
|
|
296
|
+
key: 0,
|
|
297
|
+
class: I(["mobile-menu-item has-children", {
|
|
298
|
+
activate: P(s),
|
|
299
|
+
expanded: _.value[b]
|
|
300
|
+
}])
|
|
301
|
+
}, [o("div", {
|
|
302
|
+
class: "mobile-menu-item-header",
|
|
303
|
+
onClick: (m) => M(b)
|
|
304
|
+
}, [o("span", null, S(s.name), 1), f(u(z), {
|
|
305
|
+
icon: _.value[b] ? "mingcute:up-line" : "mingcute:down-line",
|
|
306
|
+
class: "mobile-submenu-arrow"
|
|
307
|
+
}, null, 8, ["icon"])], 8, Be), _.value[b] ? (e(), n("div", Oe, [(e(!0), n(T, null, L(s.children, (m, q) => (e(), n("div", {
|
|
308
|
+
key: q,
|
|
309
|
+
class: I(["mobile-submenu-item", {
|
|
310
|
+
active: E(m)
|
|
311
|
+
}]),
|
|
312
|
+
onClick: (Z) => p(m)
|
|
313
|
+
}, S(m.name), 11, Ve))), 128))])) : k("", !0)], 2)) : (e(), n("div", {
|
|
314
|
+
key: 1,
|
|
315
|
+
class: I(["mobile-menu-item", {
|
|
316
|
+
activate: P(s)
|
|
317
|
+
}]),
|
|
318
|
+
onClick: (m) => p(s)
|
|
319
|
+
}, S(s.name), 11, We))], 64))), 128))])])) : k("", !0)]));
|
|
320
|
+
}
|
|
321
|
+
}), Re = /* @__PURE__ */ $(De, [["__scopeId", "data-v-73bcb18b"]]), Ge = ["src"], Ne = /* @__PURE__ */ w({
|
|
322
|
+
__name: "Logo",
|
|
323
|
+
props: {
|
|
324
|
+
name: {
|
|
325
|
+
type: String,
|
|
326
|
+
required: !1,
|
|
327
|
+
default: () => "#2d2d2d"
|
|
328
|
+
},
|
|
329
|
+
icon: {
|
|
330
|
+
type: String,
|
|
331
|
+
required: !1,
|
|
332
|
+
default: () => ""
|
|
333
|
+
},
|
|
334
|
+
color: {
|
|
335
|
+
type: String,
|
|
336
|
+
required: !1,
|
|
337
|
+
default: () => "#2d2d2d"
|
|
338
|
+
},
|
|
339
|
+
fontSize: {
|
|
340
|
+
type: String,
|
|
341
|
+
required: !1,
|
|
342
|
+
default: () => "16px"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
emits: ["to"],
|
|
346
|
+
setup(a, {
|
|
347
|
+
emit: t
|
|
348
|
+
}) {
|
|
349
|
+
const i = a, r = t;
|
|
350
|
+
function c() {
|
|
351
|
+
r("to");
|
|
352
|
+
}
|
|
353
|
+
return (d, _) => (e(), n("div", {
|
|
354
|
+
class: "Logo",
|
|
355
|
+
onClick: c
|
|
356
|
+
}, [a.icon ? (e(), n("img", {
|
|
357
|
+
key: 0,
|
|
358
|
+
class: "icon",
|
|
359
|
+
src: a.icon,
|
|
360
|
+
alt: "logo",
|
|
361
|
+
loading: "lazy",
|
|
362
|
+
decoding: "async"
|
|
363
|
+
}, null, 8, Ge)) : k("", !0), o("div", {
|
|
364
|
+
class: "text",
|
|
365
|
+
style: A({
|
|
366
|
+
color: i.color,
|
|
367
|
+
fontSize: i.fontSize
|
|
368
|
+
})
|
|
369
|
+
}, S(a.name), 5)]));
|
|
370
|
+
}
|
|
371
|
+
}), X = /* @__PURE__ */ $(Ne, [["__scopeId", "data-v-694a3ecc"]]), Fe = {
|
|
372
|
+
class: "HeaderCom"
|
|
373
|
+
}, je = {
|
|
374
|
+
class: "left"
|
|
375
|
+
}, Je = {
|
|
376
|
+
class: "right"
|
|
377
|
+
}, Qe = /* @__PURE__ */ w({
|
|
378
|
+
__name: "Header",
|
|
379
|
+
props: {
|
|
380
|
+
menuType: {
|
|
381
|
+
default: "header"
|
|
382
|
+
},
|
|
383
|
+
showUserPanel: {
|
|
384
|
+
type: Boolean,
|
|
385
|
+
default: !0
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
setup(a) {
|
|
389
|
+
const t = a, {
|
|
390
|
+
appsData: i
|
|
391
|
+
} = W(), {
|
|
392
|
+
menus: r
|
|
393
|
+
} = D(t.menuType), c = x(""), d = j(), _ = J();
|
|
394
|
+
function h() {
|
|
395
|
+
H(() => {
|
|
396
|
+
d.push({
|
|
397
|
+
path: "/"
|
|
398
|
+
}), window.scrollTo({
|
|
399
|
+
top: 0,
|
|
400
|
+
behavior: "smooth"
|
|
401
|
+
});
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
function C(g) {
|
|
405
|
+
const v = g.path;
|
|
406
|
+
H(() => {
|
|
407
|
+
d.push(v), c.value = v, window.scrollTo({
|
|
408
|
+
top: 0,
|
|
409
|
+
behavior: "smooth"
|
|
410
|
+
});
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
return O(() => [_.path, r.value], () => {
|
|
414
|
+
c.value = R(r.value, _.path, {
|
|
415
|
+
// Header 中,子菜单匹配时返回父菜单路径
|
|
416
|
+
returnParentOnChildMatch: !0,
|
|
417
|
+
// 后备查找函数
|
|
418
|
+
fallback: (g) => G(_.matched, t.menuType, g)
|
|
419
|
+
});
|
|
420
|
+
}, {
|
|
421
|
+
immediate: !0,
|
|
422
|
+
deep: !0
|
|
423
|
+
}), (g, v) => (e(), n("div", Fe, [o("div", je, [f(X, {
|
|
424
|
+
icon: u(i).applicationLogoUrl,
|
|
425
|
+
name: u(i).name,
|
|
426
|
+
onTo: h
|
|
427
|
+
}, null, 8, ["icon", "name"])]), o("div", Je, [f(Re, {
|
|
428
|
+
menus: u(r),
|
|
429
|
+
activateKey: c.value,
|
|
430
|
+
onChange: C
|
|
431
|
+
}, null, 8, ["menus", "activateKey"]), t.showUserPanel ? (e(), se(Q, {
|
|
432
|
+
key: 0,
|
|
433
|
+
onToHomePage: h,
|
|
434
|
+
onSignOut: h
|
|
435
|
+
})) : k("", !0)])]));
|
|
436
|
+
}
|
|
437
|
+
}), Xe = /* @__PURE__ */ $(Qe, [["__scopeId", "data-v-f84e624d"]]), Ye = {
|
|
438
|
+
class: "body"
|
|
439
|
+
}, Ze = {
|
|
440
|
+
key: 0,
|
|
441
|
+
class: "loading"
|
|
442
|
+
}, et = "linear-gradient(to bottom, #fefdff, #f9f6fe, #f2eefd, #ebe8fd, #e2e1fd, #dfe0fd, #dcdffd, #d9defd, #dde2fd, #e0e5fd, #e4e9fd, #e8ecfd)", tt = /* @__PURE__ */ w({
|
|
443
|
+
__name: "DefaultLayout",
|
|
444
|
+
props: {
|
|
445
|
+
menuType: {
|
|
446
|
+
default: "header"
|
|
447
|
+
},
|
|
448
|
+
showUserPanel: {
|
|
449
|
+
type: Boolean,
|
|
450
|
+
default: !0
|
|
451
|
+
},
|
|
452
|
+
backgroundImage: {
|
|
453
|
+
default: ""
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
setup(a) {
|
|
457
|
+
const t = a, {
|
|
458
|
+
setGlobalSEO: i
|
|
459
|
+
} = ie();
|
|
460
|
+
i(ae);
|
|
461
|
+
const {
|
|
462
|
+
isChecking: r
|
|
463
|
+
} = N();
|
|
464
|
+
return F(), (c, d) => (e(), n("div", {
|
|
465
|
+
class: "layout",
|
|
466
|
+
style: A({
|
|
467
|
+
backgroundImage: t.backgroundImage || et,
|
|
468
|
+
backgroundAttachment: "fixed"
|
|
469
|
+
})
|
|
470
|
+
}, [f(Xe, {
|
|
471
|
+
"menu-type": t.menuType,
|
|
472
|
+
"show-user-panel": t.showUserPanel
|
|
473
|
+
}, null, 8, ["menu-type", "show-user-panel"]), o("div", Ye, [u(r) ? (e(), n("div", Ze, [f(u(V), {
|
|
474
|
+
size: 40
|
|
475
|
+
})])) : K(c.$slots, "default", {
|
|
476
|
+
key: 1
|
|
477
|
+
}, void 0, !0)])], 4));
|
|
478
|
+
}
|
|
479
|
+
}), Ut = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-690c2133"]]), nt = /* @__PURE__ */ w({
|
|
480
|
+
__name: "Gradientbackground",
|
|
481
|
+
props: {
|
|
482
|
+
width: {
|
|
483
|
+
type: String,
|
|
484
|
+
default: "100%"
|
|
485
|
+
},
|
|
486
|
+
height: {
|
|
487
|
+
type: String,
|
|
488
|
+
default: "100%"
|
|
489
|
+
},
|
|
490
|
+
zIndex: {
|
|
491
|
+
type: String,
|
|
492
|
+
default: "-1"
|
|
493
|
+
},
|
|
494
|
+
top: {
|
|
495
|
+
type: String,
|
|
496
|
+
default: "10%"
|
|
497
|
+
},
|
|
498
|
+
left: {
|
|
499
|
+
type: String,
|
|
500
|
+
default: "0%"
|
|
501
|
+
},
|
|
502
|
+
right: {
|
|
503
|
+
type: String,
|
|
504
|
+
default: "auto"
|
|
505
|
+
},
|
|
506
|
+
blur: {
|
|
507
|
+
type: String,
|
|
508
|
+
default: "0px"
|
|
509
|
+
},
|
|
510
|
+
background: {
|
|
511
|
+
type: String,
|
|
512
|
+
required: !1,
|
|
513
|
+
default: () => "linear-gradient(180deg, rgb(0 225 10 / 10%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
setup(a) {
|
|
517
|
+
const t = a, i = U(() => ({
|
|
518
|
+
pointerEvents: "none",
|
|
519
|
+
position: "absolute",
|
|
520
|
+
zIndex: t.zIndex,
|
|
521
|
+
width: t.width,
|
|
522
|
+
height: t.height,
|
|
523
|
+
filter: `blur(${t.blur})`
|
|
524
|
+
})), r = U(() => ({
|
|
525
|
+
width: "100%",
|
|
526
|
+
height: "100%",
|
|
527
|
+
background: t.background
|
|
528
|
+
// background: `linear-gradient(180deg, #D5D1FF 0.31%, #EAEDFF 74.99%, rgba(240, 246, 255, 0) 99.69%)`,
|
|
529
|
+
// background: `linear-gradient(180deg, rgb(0 225 10 / 63%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)`,
|
|
530
|
+
// background: `linear-gradient(315deg, rgb(0 225 10 / 63%) 10%, rgb(26 214 255 / 52%) 50%, rgb(220 189 0 / 37%) 100%)`,
|
|
531
|
+
}));
|
|
532
|
+
return (c, d) => (e(), n("div", {
|
|
533
|
+
class: "ellipsis",
|
|
534
|
+
style: A(i.value)
|
|
535
|
+
}, [o("div", {
|
|
536
|
+
class: "ellipsis-item",
|
|
537
|
+
style: A(r.value)
|
|
538
|
+
}, null, 4)], 4));
|
|
539
|
+
}
|
|
540
|
+
}), Ht = /* @__PURE__ */ $(nt, [["__scopeId", "data-v-b6461ac4"]]), ot = {
|
|
541
|
+
class: "SvgIcon"
|
|
542
|
+
}, st = ["href", "fill"], at = /* @__PURE__ */ w({
|
|
543
|
+
__name: "SvgIcon",
|
|
544
|
+
props: {
|
|
545
|
+
prefix: {
|
|
546
|
+
type: String,
|
|
547
|
+
required: !1,
|
|
548
|
+
default: "icon"
|
|
549
|
+
},
|
|
550
|
+
name: {
|
|
551
|
+
type: String,
|
|
552
|
+
required: !0
|
|
553
|
+
},
|
|
554
|
+
color: {
|
|
555
|
+
type: String,
|
|
556
|
+
required: !1,
|
|
557
|
+
default: "#333"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
setup(a) {
|
|
561
|
+
const t = a, i = U(() => `#${t.prefix ?? "icon"}-${t.name}`);
|
|
562
|
+
return (r, c) => (e(), n("svg", ot, [o("use", {
|
|
563
|
+
href: i.value,
|
|
564
|
+
fill: t.color
|
|
565
|
+
}, null, 8, st)]));
|
|
566
|
+
}
|
|
567
|
+
}), Kt = /* @__PURE__ */ $(at, [["__scopeId", "data-v-0a9de94e"]]), it = {}, rt = {
|
|
568
|
+
class: "WidthContainer"
|
|
569
|
+
};
|
|
570
|
+
function ct(a, t) {
|
|
571
|
+
return e(), n("div", rt, [K(a.$slots, "default", {}, void 0, !0)]);
|
|
572
|
+
}
|
|
573
|
+
const Et = /* @__PURE__ */ $(it, [["render", ct], ["__scopeId", "data-v-d06aac1f"]]);
|
|
574
|
+
export {
|
|
575
|
+
qt as A,
|
|
576
|
+
zt as C,
|
|
577
|
+
Ut as D,
|
|
578
|
+
Ht as G,
|
|
579
|
+
Xe as H,
|
|
580
|
+
X as L,
|
|
581
|
+
Kt as S,
|
|
582
|
+
Et as W,
|
|
583
|
+
he as a,
|
|
584
|
+
Re as b
|
|
585
|
+
};
|
package/dist/authkit.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as a, a as s, c as u, b as A, n as h, E as e, k as r, l as o, _ as k, O as n, f as d, o as p, P as f, j as m, R as P, S, i as g, m as l, d as w, e as U, g as c, h as x } from "./AuthkitAuthModal-
|
|
2
|
-
import { A as y, a as E } from "./AuthkitAuthorize-
|
|
3
|
-
import { u as C } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { u as V, a as b } from "./useAuthkitUsersProfile-
|
|
5
|
-
import { u as B } from "./auth-
|
|
6
|
-
import { u as j } from "./useAuthkitCreateAndUpdate-
|
|
1
|
+
import { A as a, a as s, c as u, b as A, n as h, E as e, k as r, l as o, _ as k, O as n, f as d, o as p, P as f, j as m, R as P, S, i as g, m as l, d as w, e as U, g as c, h as x } from "./AuthkitAuthModal-bJhi6_gD.js";
|
|
2
|
+
import { A as y, a as E } from "./AuthkitAuthorize-DkATUOHh.js";
|
|
3
|
+
import { u as C } from "./useAuthkitAppsAuthPageInfo-CoQi1eR1.js";
|
|
4
|
+
import { u as V, a as b } from "./useAuthkitUsersProfile-ChX1jsty.js";
|
|
5
|
+
import { u as B } from "./auth-BsBlc_B8.js";
|
|
6
|
+
import { u as j } from "./useAuthkitCreateAndUpdate-Cf7nddgv.js";
|
|
7
7
|
export {
|
|
8
8
|
a as AuthkitAppSetting,
|
|
9
9
|
s as AuthkitAuth,
|
package/dist/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-
|
|
1
|
+
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-Bz4U5oVZ.js";
|
|
2
2
|
import { C as i, a as f } from "./CollapseItem-Cw1vcdLu.js";
|
|
3
3
|
import { C as x, E as H } from "./CustomTable-B8i1SbFB.js";
|
|
4
4
|
import { M, a as g } from "./Menu-ejsosUdV.js";
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { RouteLocationMatched } from 'vue-router';
|
|
2
2
|
export declare function findMenuPath(matched: RouteLocationMatched[], menuType: string, currentPath: string): string;
|
|
3
|
+
export declare function getPathOnly(path: string): string;
|
|
4
|
+
interface MenuItemWithChildren {
|
|
5
|
+
path: string;
|
|
6
|
+
children?: Array<{
|
|
7
|
+
path: string;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export declare function findActiveMenuPath(menus: MenuItemWithChildren[], currentPath: string, options?: {
|
|
11
|
+
returnParentOnChildMatch?: boolean;
|
|
12
|
+
fallback?: (currentPath: string) => string;
|
|
13
|
+
}): string;
|
|
3
14
|
interface MenuItem {
|
|
4
15
|
name: string;
|
|
5
16
|
path: string;
|
package/dist/composables.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ export { useActiveDoc } from './composables/useActiveDoc';
|
|
|
11
11
|
export { useUploadCos } from './composables/Upload/useUploadCos';
|
|
12
12
|
export { withViewTransition } from './composables/viewTransitions';
|
|
13
13
|
export { useDownloads } from './composables/useDownloads';
|
|
14
|
-
export { useAuthMenu, findMenuPath } from './composables/Authkit/useAuthMenu';
|
|
14
|
+
export { useAuthMenu, findMenuPath, findActiveMenuPath, getPathOnly } from './composables/Authkit/useAuthMenu';
|
|
15
15
|
export { useRoutePermission } from './composables/Authkit/useRoutePermission';
|
|
16
16
|
export { useSEO, useRouteSEO, type GlobalSEOConfig, type PageSEOConfig } from './composables/useSEO';
|
package/dist/composables.js
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { u as a, a as o } from "./useAuthkitUsersProfile-
|
|
2
|
-
import { g as u, a as r, s as i, b as
|
|
3
|
-
import { u as p } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as d } from "./useMessageNotifications-
|
|
6
|
-
import { u as x, a as C } from "./useDownloads-
|
|
7
|
-
import { u as
|
|
8
|
-
import { f as
|
|
9
|
-
import { u as
|
|
1
|
+
import { u as a, a as o } from "./useAuthkitUsersProfile-ChX1jsty.js";
|
|
2
|
+
import { g as u, a as r, s as i, b as n, u as f } from "./auth-BsBlc_B8.js";
|
|
3
|
+
import { u as p } from "./useAuthkitAppsAuthPageInfo-CoQi1eR1.js";
|
|
4
|
+
import { u as h } from "./useAuthkitCreateAndUpdate-Cf7nddgv.js";
|
|
5
|
+
import { u as d } from "./useMessageNotifications-ChYsrw0-.js";
|
|
6
|
+
import { u as x, a as C } from "./useDownloads-ysVfpJuf.js";
|
|
7
|
+
import { u as P } from "./useTableHandle-C_-K5ipT.js";
|
|
8
|
+
import { b as k, f as M, g as O, u as w, a as E, c as S, e as U, d as v, w as D } from "./useSEO-gIh42v6e.js";
|
|
9
|
+
import { u as R } from "./useUploadCos-Cn_58MaN.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
k as findActiveMenuPath,
|
|
12
|
+
M as findMenuPath,
|
|
13
|
+
O as getPathOnly,
|
|
12
14
|
u as globalConfig,
|
|
13
15
|
r as globalSEOConfig,
|
|
14
16
|
i as setGlobalConfig,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
n as setGlobalSEOConfig,
|
|
18
|
+
w as useActiveDoc,
|
|
19
|
+
E as useAuthMenu,
|
|
18
20
|
p as useAuthkitAppsAuthPageInfo,
|
|
19
21
|
a as useAuthkitAuth,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
f as useAuthkitAuthModal,
|
|
23
|
+
h as useAuthkitCreateAndUpdate,
|
|
22
24
|
o as useAuthkitUsersProfile,
|
|
23
25
|
x as useCommonCreateAndUpdate,
|
|
24
26
|
C as useDownloads,
|
|
25
27
|
d as useMessageNotifications,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
S as useRoutePermission,
|
|
29
|
+
U as useRouteSEO,
|
|
30
|
+
v as useSEO,
|
|
31
|
+
P as useTableHandle,
|
|
32
|
+
R as useUploadCos,
|
|
33
|
+
D as withViewTransition
|
|
32
34
|
};
|