jmash-core 0.0.114 → 0.0.116

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.
Files changed (162) hide show
  1. package/dist/{401-BfxcI08c.mjs → 401-CPvkmwXq.mjs} +58 -58
  2. package/dist/{404-D-7ROO0t.mjs → 404-BBaQT_BU.mjs} +28 -28
  3. package/dist/{BarChart-BdAi6E6M.mjs → BarChart-BxO9HRaD.mjs} +48 -48
  4. package/dist/{FunnelChart-Ci14WUay.mjs → FunnelChart-BzoTNn36.mjs} +1 -1
  5. package/dist/{PieChart-C60V9Kgc.mjs → PieChart-vvePUqxP.mjs} +1 -1
  6. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-D1-1NDvg.mjs → PieChart.vue_vue_type_script_setup_true_lang-B4J5buH_.mjs} +13 -13
  7. package/dist/{RadarChart-BBq1VxXC.mjs → RadarChart-RsjrWpKm.mjs} +1 -1
  8. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-BNLujpKR.mjs → RadarChart.vue_vue_type_script_setup_true_lang-CPbv9lgv.mjs} +14 -14
  9. package/dist/index-BdQ3u7gA.mjs +43076 -0
  10. package/dist/index-C7Q42zf6.mjs +1642 -0
  11. package/dist/index-CovMVEPS.mjs +367 -0
  12. package/dist/{index-B3bBQvl1.mjs → index-DA53-ye2.mjs} +6292 -6252
  13. package/dist/{index-BGzZmDw9.mjs → index-DHcXllAI.mjs} +91 -91
  14. package/dist/index-Qd3b01x0.mjs +47 -0
  15. package/dist/index.mjs +35 -34
  16. package/dist/profile-CCiV7Zg6.mjs +295 -0
  17. package/dist/{runAs-B8-utIhj.mjs → runAs-CTPSw4EU.mjs} +1 -1
  18. package/dist/{runAs.vue_vue_type_script_setup_true_lang-C9-RlvZ3.mjs → runAs.vue_vue_type_script_setup_true_lang-MSZXI02n.mjs} +5 -5
  19. package/dist/style.css +1 -1
  20. package/dist/{types-DpY2PIWd.mjs → types-BywTEhHv.mjs} +84 -84
  21. package/dist/{updatePwd-E47Yqsm5.mjs → updatePwd-BkpofNJL.mjs} +1 -1
  22. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Dy2GVCiM.mjs → updatePwd.vue_vue_type_script_setup_true_lang-Dt3f2ISP.mjs} +3 -3
  23. package/dts/src/App.vue.d.ts +1 -1
  24. package/dts/src/api/auth/index.d.ts +2 -2
  25. package/dts/src/api/auth/types.d.ts +3 -3
  26. package/dts/src/api/dict.d.ts +4 -0
  27. package/dts/src/api/file/index.d.ts +3 -1
  28. package/dts/src/api/file/types.d.ts +11 -0
  29. package/dts/src/assets/components/icon-a-fixed.vue.d.ts +1 -1
  30. package/dts/src/assets/components/icon-a-list.vue.d.ts +1 -1
  31. package/dts/src/assets/components/icon-anquanrizhi.vue.d.ts +1 -1
  32. package/dts/src/assets/components/icon-api.vue.d.ts +1 -1
  33. package/dts/src/assets/components/icon-bumenguanli.vue.d.ts +1 -1
  34. package/dts/src/assets/components/icon-caozuoguanliyuan.vue.d.ts +1 -1
  35. package/dts/src/assets/components/icon-captcha.vue.d.ts +1 -1
  36. package/dts/src/assets/components/icon-cascader.vue.d.ts +1 -1
  37. package/dts/src/assets/components/icon-client.vue.d.ts +1 -1
  38. package/dts/src/assets/components/icon-close-all.vue.d.ts +1 -1
  39. package/dts/src/assets/components/icon-close-eye.vue.d.ts +1 -1
  40. package/dts/src/assets/components/icon-close-left.vue.d.ts +1 -1
  41. package/dts/src/assets/components/icon-close-other.vue.d.ts +1 -1
  42. package/dts/src/assets/components/icon-close-right.vue.d.ts +1 -1
  43. package/dts/src/assets/components/icon-close.vue.d.ts +1 -1
  44. package/dts/src/assets/components/icon-dept.vue.d.ts +1 -1
  45. package/dts/src/assets/components/icon-dict.vue.d.ts +1 -1
  46. package/dts/src/assets/components/icon-document.vue.d.ts +1 -1
  47. package/dts/src/assets/components/icon-download.vue.d.ts +1 -1
  48. package/dts/src/assets/components/icon-drag.vue.d.ts +1 -1
  49. package/dts/src/assets/components/icon-edit.vue.d.ts +1 -1
  50. package/dts/src/assets/components/icon-email.vue.d.ts +1 -1
  51. package/dts/src/assets/components/icon-exit-fullscreen.vue.d.ts +1 -1
  52. package/dts/src/assets/components/icon-eye-open.vue.d.ts +1 -1
  53. package/dts/src/assets/components/icon-fullscreen-exit.vue.d.ts +1 -1
  54. package/dts/src/assets/components/icon-fullscreen.vue.d.ts +1 -1
  55. package/dts/src/assets/components/icon-gangweiguanli.vue.d.ts +1 -1
  56. package/dts/src/assets/components/icon-github.vue.d.ts +1 -1
  57. package/dts/src/assets/components/icon-homepage.vue.d.ts +1 -1
  58. package/dts/src/assets/components/icon-icon.vue.d.ts +1 -1
  59. package/dts/src/assets/components/icon-indent-decrease.vue.d.ts +1 -1
  60. package/dts/src/assets/components/icon-ip.vue.d.ts +1 -1
  61. package/dts/src/assets/components/icon-jiemianxijietubiao-26.vue.d.ts +1 -1
  62. package/dts/src/assets/components/icon-language.vue.d.ts +1 -1
  63. package/dts/src/assets/components/icon-link.vue.d.ts +1 -1
  64. package/dts/src/assets/components/icon-lock.vue.d.ts +1 -1
  65. package/dts/src/assets/components/icon-log.vue.d.ts +1 -1
  66. package/dts/src/assets/components/icon-menu.vue.d.ts +1 -1
  67. package/dts/src/assets/components/icon-message.vue.d.ts +1 -1
  68. package/dts/src/assets/components/icon-mokuaiguanli.vue.d.ts +1 -1
  69. package/dts/src/assets/components/icon-money.vue.d.ts +1 -1
  70. package/dts/src/assets/components/icon-monitor.vue.d.ts +1 -1
  71. package/dts/src/assets/components/icon-moon.vue.d.ts +1 -1
  72. package/dts/src/assets/components/icon-order.vue.d.ts +1 -1
  73. package/dts/src/assets/components/icon-password.vue.d.ts +1 -1
  74. package/dts/src/assets/components/icon-peoples.vue.d.ts +1 -1
  75. package/dts/src/assets/components/icon-phone.vue.d.ts +1 -1
  76. package/dts/src/assets/components/icon-project.vue.d.ts +1 -1
  77. package/dts/src/assets/components/icon-publish.vue.d.ts +1 -1
  78. package/dts/src/assets/components/icon-quanxianguanli.vue.d.ts +1 -1
  79. package/dts/src/assets/components/icon-redis.vue.d.ts +1 -1
  80. package/dts/src/assets/components/icon-refresh.vue.d.ts +1 -1
  81. package/dts/src/assets/components/icon-role.vue.d.ts +1 -1
  82. package/dts/src/assets/components/icon-security.vue.d.ts +1 -1
  83. package/dts/src/assets/components/icon-setting.vue.d.ts +1 -1
  84. package/dts/src/assets/components/icon-shoujihao.vue.d.ts +1 -1
  85. package/dts/src/assets/components/icon-shrink.vue.d.ts +1 -1
  86. package/dts/src/assets/components/icon-size.vue.d.ts +1 -1
  87. package/dts/src/assets/components/icon-sunny.vue.d.ts +1 -1
  88. package/dts/src/assets/components/icon-system.vue.d.ts +1 -1
  89. package/dts/src/assets/components/icon-table.vue.d.ts +1 -1
  90. package/dts/src/assets/components/icon-team.vue.d.ts +1 -1
  91. package/dts/src/assets/components/icon-todolist.vue.d.ts +1 -1
  92. package/dts/src/assets/components/icon-tree.vue.d.ts +1 -1
  93. package/dts/src/assets/components/icon-user.vue.d.ts +1 -1
  94. package/dts/src/assets/components/icon-visit.vue.d.ts +1 -1
  95. package/dts/src/assets/components/icon-xingming.vue.d.ts +1 -1
  96. package/dts/src/assets/components/icon-yonghuguanli.vue.d.ts +1 -1
  97. package/dts/src/assets/components/icon-youxiang.vue.d.ts +1 -1
  98. package/dts/src/components/AppLink/index.vue.d.ts +3 -3
  99. package/dts/src/components/Breadcrumb/index.vue.d.ts +1 -1
  100. package/dts/src/components/Dictionary/index.vue.d.ts +5 -5
  101. package/dts/src/components/GithubCorner/index.vue.d.ts +1 -1
  102. package/dts/src/components/Hamburger/index.vue.d.ts +4 -4
  103. package/dts/src/components/IconSelect/index.vue.d.ts +5 -5
  104. package/dts/src/components/JmashAMap/index.vue.d.ts +5 -5
  105. package/dts/src/components/JmashColumnSelect/index.vue.d.ts +4 -4
  106. package/dts/src/components/JmashEditor/index.vue.d.ts +29 -0
  107. package/dts/src/components/JmashEnumRadio/index.vue.d.ts +4 -4
  108. package/dts/src/components/JmashEnumSelect/index.vue.d.ts +4 -4
  109. package/dts/src/components/JmashImportUpload/index.vue.d.ts +5 -5
  110. package/dts/src/components/JmashMobileInsComponent/index.vue.d.ts +5 -5
  111. package/dts/src/components/JmashMultiImageUpload/index.vue.d.ts +5 -5
  112. package/dts/src/components/JmashMultiUpload/index.vue.d.ts +6 -6
  113. package/dts/src/components/JmashPagination/index.vue.d.ts +5 -5
  114. package/dts/src/components/JmashSingleImageUpload/index.vue.d.ts +5 -5
  115. package/dts/src/components/JmashTMaps/index.vue.d.ts +5 -5
  116. package/dts/src/components/JmashTable/index.vue.d.ts +5 -5
  117. package/dts/src/components/JmashUploadFile/index.vue.d.ts +1 -1
  118. package/dts/src/components/JmashUploadImage/index.vue.d.ts +4 -4
  119. package/dts/src/components/LangSelect/index.vue.d.ts +1 -1
  120. package/dts/src/components/RightPanel/index.vue.d.ts +4 -4
  121. package/dts/src/components/SizeSelect/index.vue.d.ts +1 -1
  122. package/dts/src/components/SvgIcon/index.vue.d.ts +4 -4
  123. package/dts/src/constant.d.ts +4 -0
  124. package/dts/src/hooks/table.d.ts +7 -7
  125. package/dts/src/index.d.ts +2 -2
  126. package/dts/src/layout/components/AppMain/index.vue.d.ts +1 -1
  127. package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +1 -1
  128. package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +1 -1
  129. package/dts/src/layout/components/NavBar/index.vue.d.ts +1 -1
  130. package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +4 -4
  131. package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +4 -4
  132. package/dts/src/layout/components/Settings/index.vue.d.ts +1 -1
  133. package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +3 -3
  134. package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +4 -4
  135. package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +4 -4
  136. package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +5 -5
  137. package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +1 -1
  138. package/dts/src/layout/components/Sidebar/index.vue.d.ts +1 -1
  139. package/dts/src/layout/components/TagsView/index.vue.d.ts +1 -1
  140. package/dts/src/layout/index.vue.d.ts +1 -1
  141. package/dts/src/stores/modules/tagsView.d.ts +32 -5
  142. package/dts/src/types/index.d.ts +1 -1
  143. package/dts/src/views/change-organ/index.vue.d.ts +1 -1
  144. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +4 -4
  145. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +4 -4
  146. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +4 -4
  147. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +4 -4
  148. package/dts/src/views/dashboard/index.vue.d.ts +1 -1
  149. package/dts/src/views/error-page/401.vue.d.ts +1 -1
  150. package/dts/src/views/error-page/404.vue.d.ts +1 -1
  151. package/dts/src/views/login/components/types.vue.d.ts +1 -1
  152. package/dts/src/views/login/index.vue.d.ts +1 -1
  153. package/dts/src/views/my/profile.vue.d.ts +1 -1
  154. package/dts/src/views/my/runAs.vue.d.ts +3 -3
  155. package/dts/src/views/my/updatePwd.vue.d.ts +5 -5
  156. package/dts/src/views/redirect/index.vue.d.ts +1 -1
  157. package/package.json +87 -85
  158. package/dist/index-B8mVGQXm.mjs +0 -22134
  159. package/dist/index-CTvdAMPx.mjs +0 -47
  160. package/dist/index-CUzhdXPd.mjs +0 -367
  161. package/dist/index-D-uncwGv.mjs +0 -1630
  162. package/dist/profile-CnVGi5r5.mjs +0 -267
@@ -1,1630 +0,0 @@
1
- import { u as Q, E as Ue, _ as ae, S as qe, a as be, b as He, c as te, D as me, d as We, f as Ke, e as ce, g as Xe, h as je, i as F, j as Se, r as Ce, k as de, T as he, m as Ge, s as Ye, l as Je, n as ue, o as Qe } from "./index-B8mVGQXm.mjs";
2
- import { defineComponent as I, ref as z, resolveComponent as V, openBlock as u, createBlock as k, withCtx as g, createVNode as _, createElementBlock as x, Fragment as K, renderList as le, unref as l, createTextVNode as B, toDisplayString as P, createElementVNode as w, computed as R, createCommentVNode as T, isRef as _e, watch as ne, onBeforeMount as Ze, TransitionGroup as et, withModifiers as re, normalizeClass as H, pushScopeId as tt, popScopeId as nt, Transition as Te, KeepAlive as ot, resolveDynamicComponent as xe, getCurrentInstance as it, nextTick as $e, onMounted as Ae, withDirectives as at, normalizeStyle as lt, vShow as st, normalizeProps as rt, guardReactiveProps as ct, renderSlot as ut, watchEffect as dt } from "vue";
3
- import { useRoute as fe, useRouter as ye } from "vue-router";
4
- import { _ as ft } from "./updatePwd.vue_vue_type_script_setup_true_lang-Dy2GVCiM.mjs";
5
- import { _ as mt } from "./runAs.vue_vue_type_script_setup_true_lang-C9-RlvZ3.mjs";
6
- import { storeToRefs as _t } from "pinia";
7
- const pt = /* @__PURE__ */ I({
8
- __name: "index",
9
- setup(i) {
10
- const e = Q(), t = z([
11
- { label: "默认", value: "default" },
12
- { label: "大型", value: "large" },
13
- { label: "小型", value: "small" }
14
- ]);
15
- function n(s) {
16
- e.changeSize(s), Ue.success("切换布局大小成功");
17
- }
18
- return (s, o) => {
19
- const a = ae, r = V("el-dropdown-item"), c = V("el-dropdown-menu"), d = V("el-dropdown");
20
- return u(), k(d, {
21
- trigger: "click",
22
- onCommand: n
23
- }, {
24
- dropdown: g(() => [
25
- _(c, null, {
26
- default: g(() => [
27
- (u(!0), x(K, null, le(l(t), (m) => (u(), k(r, {
28
- key: m.value,
29
- disabled: l(e).size == m.value,
30
- command: m.value
31
- }, {
32
- default: g(() => [
33
- B(P(m.label), 1)
34
- ]),
35
- _: 2
36
- }, 1032, ["disabled", "command"]))), 128))
37
- ]),
38
- _: 1
39
- })
40
- ]),
41
- default: g(() => [
42
- w("div", null, [
43
- _(a, { "icon-class": "size" })
44
- ])
45
- ]),
46
- _: 1
47
- });
48
- };
49
- }
50
- }), vt = { class: "flex" }, ht = { class: "flex-center h100% p10px" }, gt = ["src"], bt = { key: 0 }, xt = /* @__PURE__ */ I({
51
- __name: "NavbarRight",
52
- setup(i) {
53
- const e = new qe(), t = Q(), n = be(), s = He(), o = te();
54
- fe();
55
- const a = ye(), r = R(() => t.device === me.MOBILE), c = z(!1), d = z(!1), { isFullscreen: m, toggle: f } = We(), p = R(() => Ke.imageUrl(s.user.avatar, 48, 48));
56
- function h() {
57
- d.value = !0;
58
- }
59
- function y() {
60
- Xe.confirm("确定注销并退出系统吗?", "提示", {
61
- confirmButtonText: "确定",
62
- cancelButtonText: "取消",
63
- type: "warning",
64
- lockScroll: !1
65
- }).then(() => {
66
- s.logout().then(() => {
67
- n.delAllViews();
68
- }).then(() => {
69
- a.push("/login");
70
- });
71
- });
72
- }
73
- function A(S) {
74
- c.value = S;
75
- }
76
- return (S, $) => {
77
- const N = ae, C = pt, U = V("el-tooltip"), Z = je, q = V("router-link"), O = V("el-dropdown-item"), G = V("el-dropdown-menu"), ee = V("el-dropdown");
78
- return u(), x("div", vt, [
79
- l(r) ? T("", !0) : (u(), x(K, { key: 0 }, [
80
- w("div", {
81
- class: "setting-item",
82
- onClick: $[0] || ($[0] = //@ts-ignore
83
- (...Y) => l(f) && l(f)(...Y))
84
- }, [
85
- _(N, {
86
- "icon-class": l(m) ? "fullscreen-exit" : "fullscreen"
87
- }, null, 8, ["icon-class"])
88
- ]),
89
- _(U, {
90
- content: S.$t("sizeSelect.tooltip"),
91
- effect: "dark",
92
- placement: "bottom"
93
- }, {
94
- default: g(() => [
95
- _(C, { class: "setting-item" })
96
- ]),
97
- _: 1
98
- }, 8, ["content"]),
99
- _(Z, { class: "setting-item" })
100
- ], 64)),
101
- _(ee, {
102
- class: "setting-item",
103
- trigger: "click"
104
- }, {
105
- dropdown: g(() => [
106
- _(G, null, {
107
- default: g(() => [
108
- _(O, null, {
109
- default: g(() => [
110
- _(q, { to: "/" }, {
111
- default: g(() => [
112
- B(P(S.$t("navbar.Dashboard")), 1)
113
- ]),
114
- _: 1
115
- })
116
- ]),
117
- _: 1
118
- }),
119
- _(O, null, {
120
- default: g(() => [
121
- _(q, { to: "/my/profile" }, {
122
- default: g(() => [
123
- B(P(S.$t("navbar.profile")), 1)
124
- ]),
125
- _: 1
126
- })
127
- ]),
128
- _: 1
129
- }),
130
- _(O, {
131
- onClick: $[1] || ($[1] = (Y) => c.value = !0)
132
- }, {
133
- default: g(() => [
134
- B(P(S.$t("navbar.changePwd")), 1)
135
- ]),
136
- _: 1
137
- }),
138
- l(e).hasRole("tester") || l(e).userInfo().runAs ? (u(), x("div", bt, [
139
- _(O, { onClick: h }, {
140
- default: g(() => [
141
- B(P(S.$t("navbar.runAs")), 1)
142
- ]),
143
- _: 1
144
- })
145
- ])) : T("", !0),
146
- _(O, {
147
- divided: "",
148
- onClick: y
149
- }, {
150
- default: g(() => [
151
- B(P(S.$t("navbar.logout")), 1)
152
- ]),
153
- _: 1
154
- })
155
- ]),
156
- _: 1
157
- })
158
- ]),
159
- default: g(() => [
160
- w("div", ht, [
161
- w("img", {
162
- src: l(p),
163
- class: "rounded-full mr-10px w24px w24px"
164
- }, null, 8, gt),
165
- w("span", null, P(l(s).user.nickName), 1)
166
- ])
167
- ]),
168
- _: 1
169
- }),
170
- l(ce).showSettings ? (u(), x("div", {
171
- key: 1,
172
- class: "setting-item",
173
- onClick: $[2] || ($[2] = (Y) => l(o).settingsVisible = !0)
174
- }, [
175
- _(N, { "icon-class": "setting" })
176
- ])) : T("", !0),
177
- l(c) ? (u(), k(ft, {
178
- key: 2,
179
- "pwd-visible": l(c),
180
- onDialogActionChange: A
181
- }, null, 8, ["pwd-visible"])) : T("", !0),
182
- l(d) ? (u(), k(mt, {
183
- key: 3,
184
- modelValue: l(d),
185
- "onUpdate:modelValue": $[3] || ($[3] = (Y) => _e(d) ? d.value = Y : null)
186
- }, null, 8, ["modelValue"])) : T("", !0)
187
- ]);
188
- };
189
- }
190
- }), Me = /* @__PURE__ */ F(xt, [["__scopeId", "data-v-659c01cf"]]);
191
- function yt(i) {
192
- for (var e = [], t = 0; t < i.length; ) {
193
- var n = i[t];
194
- if (n === "*" || n === "+" || n === "?") {
195
- e.push({ type: "MODIFIER", index: t, value: i[t++] });
196
- continue;
197
- }
198
- if (n === "\\") {
199
- e.push({ type: "ESCAPED_CHAR", index: t++, value: i[t++] });
200
- continue;
201
- }
202
- if (n === "{") {
203
- e.push({ type: "OPEN", index: t, value: i[t++] });
204
- continue;
205
- }
206
- if (n === "}") {
207
- e.push({ type: "CLOSE", index: t, value: i[t++] });
208
- continue;
209
- }
210
- if (n === ":") {
211
- for (var s = "", o = t + 1; o < i.length; ) {
212
- var a = i.charCodeAt(o);
213
- if (
214
- // `0-9`
215
- a >= 48 && a <= 57 || // `A-Z`
216
- a >= 65 && a <= 90 || // `a-z`
217
- a >= 97 && a <= 122 || // `_`
218
- a === 95
219
- ) {
220
- s += i[o++];
221
- continue;
222
- }
223
- break;
224
- }
225
- if (!s)
226
- throw new TypeError("Missing parameter name at ".concat(t));
227
- e.push({ type: "NAME", index: t, value: s }), t = o;
228
- continue;
229
- }
230
- if (n === "(") {
231
- var r = 1, c = "", o = t + 1;
232
- if (i[o] === "?")
233
- throw new TypeError('Pattern cannot start with "?" at '.concat(o));
234
- for (; o < i.length; ) {
235
- if (i[o] === "\\") {
236
- c += i[o++] + i[o++];
237
- continue;
238
- }
239
- if (i[o] === ")") {
240
- if (r--, r === 0) {
241
- o++;
242
- break;
243
- }
244
- } else if (i[o] === "(" && (r++, i[o + 1] !== "?"))
245
- throw new TypeError("Capturing groups are not allowed at ".concat(o));
246
- c += i[o++];
247
- }
248
- if (r)
249
- throw new TypeError("Unbalanced pattern at ".concat(t));
250
- if (!c)
251
- throw new TypeError("Missing pattern at ".concat(t));
252
- e.push({ type: "PATTERN", index: t, value: c }), t = o;
253
- continue;
254
- }
255
- e.push({ type: "CHAR", index: t, value: i[t++] });
256
- }
257
- return e.push({ type: "END", index: t, value: "" }), e;
258
- }
259
- function wt(i, e) {
260
- e === void 0 && (e = {});
261
- for (var t = yt(i), n = e.prefixes, s = n === void 0 ? "./" : n, o = "[^".concat(Ct(e.delimiter || "/#?"), "]+?"), a = [], r = 0, c = 0, d = "", m = function(q) {
262
- if (c < t.length && t[c].type === q)
263
- return t[c++].value;
264
- }, f = function(q) {
265
- var O = m(q);
266
- if (O !== void 0)
267
- return O;
268
- var G = t[c], ee = G.type, Y = G.index;
269
- throw new TypeError("Unexpected ".concat(ee, " at ").concat(Y, ", expected ").concat(q));
270
- }, p = function() {
271
- for (var q = "", O; O = m("CHAR") || m("ESCAPED_CHAR"); )
272
- q += O;
273
- return q;
274
- }; c < t.length; ) {
275
- var h = m("CHAR"), y = m("NAME"), A = m("PATTERN");
276
- if (y || A) {
277
- var S = h || "";
278
- s.indexOf(S) === -1 && (d += S, S = ""), d && (a.push(d), d = ""), a.push({
279
- name: y || r++,
280
- prefix: S,
281
- suffix: "",
282
- pattern: A || o,
283
- modifier: m("MODIFIER") || ""
284
- });
285
- continue;
286
- }
287
- var $ = h || m("ESCAPED_CHAR");
288
- if ($) {
289
- d += $;
290
- continue;
291
- }
292
- d && (a.push(d), d = "");
293
- var N = m("OPEN");
294
- if (N) {
295
- var S = p(), C = m("NAME") || "", U = m("PATTERN") || "", Z = p();
296
- f("CLOSE"), a.push({
297
- name: C || (U ? r++ : ""),
298
- pattern: C && !U ? o : U,
299
- prefix: S,
300
- suffix: Z,
301
- modifier: m("MODIFIER") || ""
302
- });
303
- continue;
304
- }
305
- f("END");
306
- }
307
- return a;
308
- }
309
- function kt(i, e) {
310
- return St(wt(i, e), e);
311
- }
312
- function St(i, e) {
313
- e === void 0 && (e = {});
314
- var t = $t(e), n = e.encode, s = n === void 0 ? function(c) {
315
- return c;
316
- } : n, o = e.validate, a = o === void 0 ? !0 : o, r = i.map(function(c) {
317
- if (typeof c == "object")
318
- return new RegExp("^(?:".concat(c.pattern, ")$"), t);
319
- });
320
- return function(c) {
321
- for (var d = "", m = 0; m < i.length; m++) {
322
- var f = i[m];
323
- if (typeof f == "string") {
324
- d += f;
325
- continue;
326
- }
327
- var p = c ? c[f.name] : void 0, h = f.modifier === "?" || f.modifier === "*", y = f.modifier === "*" || f.modifier === "+";
328
- if (Array.isArray(p)) {
329
- if (!y)
330
- throw new TypeError('Expected "'.concat(f.name, '" to not repeat, but got an array'));
331
- if (p.length === 0) {
332
- if (h)
333
- continue;
334
- throw new TypeError('Expected "'.concat(f.name, '" to not be empty'));
335
- }
336
- for (var A = 0; A < p.length; A++) {
337
- var S = s(p[A], f);
338
- if (a && !r[m].test(S))
339
- throw new TypeError('Expected all "'.concat(f.name, '" to match "').concat(f.pattern, '", but got "').concat(S, '"'));
340
- d += f.prefix + S + f.suffix;
341
- }
342
- continue;
343
- }
344
- if (typeof p == "string" || typeof p == "number") {
345
- var S = s(String(p), f);
346
- if (a && !r[m].test(S))
347
- throw new TypeError('Expected "'.concat(f.name, '" to match "').concat(f.pattern, '", but got "').concat(S, '"'));
348
- d += f.prefix + S + f.suffix;
349
- continue;
350
- }
351
- if (!h) {
352
- var $ = y ? "an array" : "a string";
353
- throw new TypeError('Expected "'.concat(f.name, '" to be ').concat($));
354
- }
355
- }
356
- return d;
357
- };
358
- }
359
- function Ct(i) {
360
- return i.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
361
- }
362
- function $t(i) {
363
- return i && i.sensitive ? "" : "i";
364
- }
365
- function ge(i) {
366
- var e, t;
367
- return pe((e = i.name) == null ? void 0 : e.toString(), (t = i.meta) == null ? void 0 : t.title);
368
- }
369
- function Vt(i) {
370
- return pe(i.name, i.title);
371
- }
372
- function pe(i, e) {
373
- let t = i && i != "" ? i : e;
374
- return Se.global.te("route." + t) ? Se.global.t("route." + t) : e || i;
375
- }
376
- const Tt = {
377
- key: 0,
378
- class: "color-gray-400"
379
- }, At = ["onClick"], Mt = /* @__PURE__ */ I({
380
- __name: "index",
381
- setup(i) {
382
- const e = fe(), t = (r) => {
383
- const { params: c } = e;
384
- return kt(r)(c);
385
- }, n = z([]);
386
- function s() {
387
- let r = e.matched.filter(
388
- (d) => d.meta && d.meta.title
389
- );
390
- const c = r[0];
391
- o(c) || (r = [
392
- { path: "/dashboard", meta: { title: "Dashboard" } }
393
- ].concat(r)), n.value = r.filter((d) => d.meta && d.meta.title && d.meta.breadcrumb !== !1);
394
- }
395
- function o(r) {
396
- const c = r && r.name;
397
- return c ? c.toString().trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase() : !1;
398
- }
399
- function a(r) {
400
- const { redirect: c, path: d } = r;
401
- if (c) {
402
- Ce.value.push(c).catch((m) => {
403
- console.warn(m);
404
- });
405
- return;
406
- }
407
- Ce.value.push(t(d)).catch((m) => {
408
- console.warn(m);
409
- });
410
- }
411
- return ne(
412
- () => e.path,
413
- (r) => {
414
- r.startsWith("/redirect/") || s();
415
- }
416
- ), Ze(() => {
417
- s();
418
- }), (r, c) => {
419
- const d = V("el-breadcrumb-item"), m = V("el-breadcrumb");
420
- return u(), k(m, { class: "flex-y-center" }, {
421
- default: g(() => [
422
- _(et, { "enter-active-class": "animate__animated animate__fadeInRight" }, {
423
- default: g(() => [
424
- (u(!0), x(K, null, le(l(n), (f, p) => (u(), k(d, {
425
- key: f.path
426
- }, {
427
- default: g(() => [
428
- f.redirect === "noredirect" || p === l(n).length - 1 ? (u(), x("span", Tt, P(l(ge)(f)), 1)) : (u(), x("a", {
429
- key: 1,
430
- onClick: re((h) => a(f), ["prevent"])
431
- }, P(l(ge)(f)), 9, At))
432
- ]),
433
- _: 2
434
- }, 1024))), 128))
435
- ]),
436
- _: 1
437
- })
438
- ]),
439
- _: 1
440
- });
441
- };
442
- }
443
- }), Pt = /* @__PURE__ */ F(Mt, [["__scopeId", "data-v-2ad27a3f"]]), Et = /* @__PURE__ */ I({
444
- __name: "index",
445
- props: {
446
- isActive: {
447
- required: !0,
448
- type: Boolean,
449
- default: !1
450
- }
451
- },
452
- emits: ["toggleClick"],
453
- setup(i, { emit: e }) {
454
- const t = e;
455
- function n() {
456
- t("toggleClick");
457
- }
458
- return (s, o) => {
459
- const a = ae;
460
- return u(), x("div", {
461
- class: "px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",
462
- onClick: n
463
- }, [
464
- _(a, {
465
- class: H(["hamburger", { "is-active": i.isActive }]),
466
- "icon-class": "indent-decrease"
467
- }, null, 8, ["class"])
468
- ]);
469
- };
470
- }
471
- }), Pe = /* @__PURE__ */ F(Et, [["__scopeId", "data-v-dc46f6f8"]]), Lt = { class: "flex" }, It = /* @__PURE__ */ I({
472
- __name: "NavbarLeft",
473
- setup(i) {
474
- const e = Q();
475
- function t() {
476
- e.toggleSidebar();
477
- }
478
- return (n, s) => {
479
- const o = Pe, a = Pt;
480
- return u(), x("div", Lt, [
481
- _(o, {
482
- "is-active": l(e).sidebar.opened,
483
- onToggleClick: t
484
- }, null, 8, ["is-active"]),
485
- _(a)
486
- ]);
487
- };
488
- }
489
- }), Rt = {}, Dt = { class: "navbar-container" };
490
- function Bt(i, e) {
491
- const t = It, n = Me;
492
- return u(), x("div", Dt, [
493
- _(t),
494
- _(n)
495
- ]);
496
- }
497
- const Nt = /* @__PURE__ */ F(Rt, [["render", Bt], ["__scopeId", "data-v-706e4188"]]);
498
- var J = /* @__PURE__ */ ((i) => (i.LEFT = "left", i.TOP = "top", i.MIX = "mix", i))(J || {});
499
- const se = (i) => (tt("data-v-d50a3d59"), i = i(), nt(), i), Ot = { class: "flex flex-wrap justify-around w-full h-12" }, zt = /* @__PURE__ */ se(() => /* @__PURE__ */ w("div", null, null, -1)), Ft = /* @__PURE__ */ se(() => /* @__PURE__ */ w("div", null, null, -1)), Ut = [
500
- zt,
501
- Ft
502
- ], qt = /* @__PURE__ */ se(() => /* @__PURE__ */ w("div", null, null, -1)), Ht = /* @__PURE__ */ se(() => /* @__PURE__ */ w("div", null, null, -1)), Wt = [
503
- qt,
504
- Ht
505
- ], Kt = /* @__PURE__ */ se(() => /* @__PURE__ */ w("div", null, null, -1)), Xt = /* @__PURE__ */ se(() => /* @__PURE__ */ w("div", null, null, -1)), jt = [
506
- Kt,
507
- Xt
508
- ], Gt = /* @__PURE__ */ I({
509
- __name: "LayoutSelect",
510
- props: {
511
- modelValue: String
512
- },
513
- emits: ["update:modelValue"],
514
- setup(i, { emit: e }) {
515
- const t = e;
516
- function n(s) {
517
- t("update:modelValue", s);
518
- }
519
- return (s, o) => {
520
- const a = V("el-tooltip");
521
- return u(), x("div", Ot, [
522
- _(a, {
523
- content: "左侧模式",
524
- placement: "bottom"
525
- }, {
526
- default: g(() => [
527
- w("div", {
528
- class: H(["layout-item left", { "is-active": i.modelValue === l(J).LEFT }]),
529
- onClick: o[0] || (o[0] = (r) => n(l(J).LEFT))
530
- }, Ut, 2)
531
- ]),
532
- _: 1
533
- }),
534
- _(a, {
535
- content: "顶部模式",
536
- placement: "bottom"
537
- }, {
538
- default: g(() => [
539
- w("div", {
540
- class: H(["layout-item top", { "is-active": i.modelValue === l(J).TOP }]),
541
- onClick: o[1] || (o[1] = (r) => n(l(J).TOP))
542
- }, Wt, 2)
543
- ]),
544
- _: 1
545
- }),
546
- _(a, {
547
- content: "混合模式",
548
- placement: "bottom"
549
- }, {
550
- default: g(() => [
551
- w("div", {
552
- class: H(["layout-item mix", { "is-active": i.modelValue === l(J).MIX }]),
553
- onClick: o[2] || (o[2] = (r) => n(l(J).MIX))
554
- }, jt, 2)
555
- ]),
556
- _: 1
557
- })
558
- ]);
559
- };
560
- }
561
- }), Yt = /* @__PURE__ */ F(Gt, [["__scopeId", "data-v-d50a3d59"]]), Jt = /* @__PURE__ */ I({
562
- __name: "ThemeColorPicker",
563
- props: {
564
- modelValue: String
565
- },
566
- emits: ["update:modelValue"],
567
- setup(i, { emit: e }) {
568
- const t = i, n = e, s = [
569
- "#409EFF",
570
- "#ff4500",
571
- "#ff8c00",
572
- "#90ee90",
573
- "#00ced1",
574
- "#1e90ff",
575
- "#c71585",
576
- "rgba(255, 69, 0, 0.68)",
577
- "rgb(255, 120, 0)",
578
- "hsva(120, 40, 94)"
579
- ], o = z(t.modelValue);
580
- return ne(o, (a) => {
581
- n("update:modelValue", a);
582
- }), (a, r) => {
583
- const c = V("el-color-picker");
584
- return u(), k(c, {
585
- modelValue: l(o),
586
- "onUpdate:modelValue": r[0] || (r[0] = (d) => _e(o) ? o.value = d : null),
587
- predefine: s,
588
- "popper-class": "theme-picker-dropdown"
589
- }, null, 8, ["modelValue"]);
590
- };
591
- }
592
- }), Qt = /* @__PURE__ */ F(Jt, [["__scopeId", "data-v-ba641afc"]]), Zt = { class: "flex-center" }, en = { class: "settings-option" }, tn = { class: "text-xs" }, nn = { class: "settings-option" }, on = { class: "text-xs" }, an = { class: "settings-option" }, ln = { class: "text-xs" }, sn = { class: "settings-option" }, rn = { class: "text-xs" }, cn = { class: "settings-option" }, un = { class: "text-xs" }, dn = /* @__PURE__ */ I({
593
- __name: "index",
594
- setup(i) {
595
- const e = fe(), t = Q(), n = te(), s = de(), o = R({
596
- get() {
597
- return n.settingsVisible;
598
- },
599
- set() {
600
- n.settingsVisible = !1;
601
- }
602
- });
603
- function a(p) {
604
- n.changeThemeColor(p);
605
- }
606
- const r = z(n.theme === he.DARK), c = (p) => {
607
- r.value = p, n.changeTheme(r.value ? he.DARK : he.LIGHT);
608
- };
609
- function d(p) {
610
- n.changeLayout(p), p === J.MIX ? e.name && m(e.name) : p === J.TOP && t.openSideBar();
611
- }
612
- function m(p) {
613
- const h = f(s.routes, p);
614
- t.activeTopMenu !== h.path && t.activeTopMenu(h.path);
615
- }
616
- function f(p, h) {
617
- let y = {};
618
- function A($, N) {
619
- if (y[$.name] = N, $.children)
620
- for (let C = 0; C < $.children.length; C++)
621
- A($.children[C], $);
622
- }
623
- for (let $ = 0; $ < p.length; $++)
624
- A(p[$], null);
625
- let S = y[h];
626
- for (; S; ) {
627
- if (!y[S.name])
628
- return S;
629
- S = y[S.name];
630
- }
631
- return null;
632
- }
633
- return (p, h) => {
634
- const y = V("el-divider"), A = V("el-switch"), S = Qt, $ = Yt, N = V("el-drawer");
635
- return u(), k(N, {
636
- modelValue: l(o),
637
- "onUpdate:modelValue": h[7] || (h[7] = (C) => _e(o) ? o.value = C : null),
638
- size: "300",
639
- title: p.$t("settings.project")
640
- }, {
641
- default: g(() => [
642
- _(y, null, {
643
- default: g(() => [
644
- B(P(p.$t("settings.theme")), 1)
645
- ]),
646
- _: 1
647
- }),
648
- w("div", Zt, [
649
- _(A, {
650
- modelValue: l(r),
651
- "onUpdate:modelValue": h[0] || (h[0] = (C) => _e(r) ? r.value = C : null),
652
- "active-icon": l(Ge),
653
- "inactive-icon": l(Ye),
654
- onChange: c
655
- }, null, 8, ["modelValue", "active-icon", "inactive-icon"])
656
- ]),
657
- _(y, null, {
658
- default: g(() => [
659
- B(P(p.$t("settings.interface")), 1)
660
- ]),
661
- _: 1
662
- }),
663
- w("div", en, [
664
- w("span", tn, P(p.$t("settings.themeColor")), 1),
665
- _(S, {
666
- modelValue: l(n).themeColor,
667
- "onUpdate:modelValue": [
668
- h[1] || (h[1] = (C) => l(n).themeColor = C),
669
- a
670
- ]
671
- }, null, 8, ["modelValue"])
672
- ]),
673
- w("div", nn, [
674
- w("span", on, P(p.$t("settings.tagsView")), 1),
675
- _(A, {
676
- modelValue: l(n).tagsView,
677
- "onUpdate:modelValue": h[2] || (h[2] = (C) => l(n).tagsView = C)
678
- }, null, 8, ["modelValue"])
679
- ]),
680
- w("div", an, [
681
- w("span", ln, P(p.$t("settings.fixedHeader")), 1),
682
- _(A, {
683
- modelValue: l(n).fixedHeader,
684
- "onUpdate:modelValue": h[3] || (h[3] = (C) => l(n).fixedHeader = C)
685
- }, null, 8, ["modelValue"])
686
- ]),
687
- w("div", sn, [
688
- w("span", rn, P(p.$t("settings.sidebarLogo")), 1),
689
- _(A, {
690
- modelValue: l(n).sidebarLogo,
691
- "onUpdate:modelValue": h[4] || (h[4] = (C) => l(n).sidebarLogo = C)
692
- }, null, 8, ["modelValue"])
693
- ]),
694
- w("div", cn, [
695
- w("span", un, P(p.$t("settings.watermark")), 1),
696
- _(A, {
697
- modelValue: l(n).watermarkEnabled,
698
- "onUpdate:modelValue": h[5] || (h[5] = (C) => l(n).watermarkEnabled = C)
699
- }, null, 8, ["modelValue"])
700
- ]),
701
- _(y, null, {
702
- default: g(() => [
703
- B(P(p.$t("settings.navigation")), 1)
704
- ]),
705
- _: 1
706
- }),
707
- _($, {
708
- modelValue: l(n).layout,
709
- "onUpdate:modelValue": [
710
- h[6] || (h[6] = (C) => l(n).layout = C),
711
- d
712
- ]
713
- }, null, 8, ["modelValue"])
714
- ]),
715
- _: 1
716
- }, 8, ["modelValue", "title"]);
717
- };
718
- }
719
- }), fn = /* @__PURE__ */ F(dn, [["__scopeId", "data-v-f632744c"]]), mn = { class: "app-main" }, _n = /* @__PURE__ */ I({
720
- __name: "index",
721
- setup(i) {
722
- const e = R(() => be().cachedViews);
723
- return (t, n) => {
724
- const s = V("router-view");
725
- return u(), x("section", mn, [
726
- _(s, null, {
727
- default: g(({ Component: o, route: a }) => [
728
- _(Te, {
729
- "enter-active-class": "animate__animated animate__fadeIn",
730
- mode: "out-in"
731
- }, {
732
- default: g(() => [
733
- (u(), k(ot, { include: l(e) }, [
734
- (u(), k(xe(o), {
735
- key: a.path
736
- }))
737
- ], 1032, ["include"]))
738
- ]),
739
- _: 2
740
- }, 1024)
741
- ]),
742
- _: 1
743
- })
744
- ]);
745
- };
746
- }
747
- }), pn = /* @__PURE__ */ F(_n, [["__scopeId", "data-v-abf7ec23"]]), vn = {
748
- viewBox: "0 0 1024 1024",
749
- width: "1.2em",
750
- height: "1.2em"
751
- }, hn = /* @__PURE__ */ w("path", {
752
- fill: "currentColor",
753
- d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
754
- }, null, -1), gn = [
755
- hn
756
- ];
757
- function bn(i, e) {
758
- return u(), x("svg", vn, [...gn]);
759
- }
760
- const xn = { name: "ep-close", render: bn };
761
- function j(i) {
762
- if (typeof i != "string")
763
- throw new TypeError("Path must be a string. Received " + JSON.stringify(i));
764
- }
765
- function Ve(i, e) {
766
- for (var t = "", n = 0, s = -1, o = 0, a, r = 0; r <= i.length; ++r) {
767
- if (r < i.length)
768
- a = i.charCodeAt(r);
769
- else {
770
- if (a === 47)
771
- break;
772
- a = 47;
773
- }
774
- if (a === 47) {
775
- if (!(s === r - 1 || o === 1)) if (s !== r - 1 && o === 2) {
776
- if (t.length < 2 || n !== 2 || t.charCodeAt(t.length - 1) !== 46 || t.charCodeAt(t.length - 2) !== 46) {
777
- if (t.length > 2) {
778
- var c = t.lastIndexOf("/");
779
- if (c !== t.length - 1) {
780
- c === -1 ? (t = "", n = 0) : (t = t.slice(0, c), n = t.length - 1 - t.lastIndexOf("/")), s = r, o = 0;
781
- continue;
782
- }
783
- } else if (t.length === 2 || t.length === 1) {
784
- t = "", n = 0, s = r, o = 0;
785
- continue;
786
- }
787
- }
788
- e && (t.length > 0 ? t += "/.." : t = "..", n = 2);
789
- } else
790
- t.length > 0 ? t += "/" + i.slice(s + 1, r) : t = i.slice(s + 1, r), n = r - s - 1;
791
- s = r, o = 0;
792
- } else a === 46 && o !== -1 ? ++o : o = -1;
793
- }
794
- return t;
795
- }
796
- function yn(i, e) {
797
- var t = e.dir || e.root, n = e.base || (e.name || "") + (e.ext || "");
798
- return t ? t === e.root ? t + n : t + i + n : n;
799
- }
800
- var oe = {
801
- // path.resolve([from ...], to)
802
- resolve: function() {
803
- for (var e = "", t = !1, n, s = arguments.length - 1; s >= -1 && !t; s--) {
804
- var o;
805
- s >= 0 ? o = arguments[s] : (n === void 0 && (n = process.cwd()), o = n), j(o), o.length !== 0 && (e = o + "/" + e, t = o.charCodeAt(0) === 47);
806
- }
807
- return e = Ve(e, !t), t ? e.length > 0 ? "/" + e : "/" : e.length > 0 ? e : ".";
808
- },
809
- normalize: function(e) {
810
- if (j(e), e.length === 0) return ".";
811
- var t = e.charCodeAt(0) === 47, n = e.charCodeAt(e.length - 1) === 47;
812
- return e = Ve(e, !t), e.length === 0 && !t && (e = "."), e.length > 0 && n && (e += "/"), t ? "/" + e : e;
813
- },
814
- isAbsolute: function(e) {
815
- return j(e), e.length > 0 && e.charCodeAt(0) === 47;
816
- },
817
- join: function() {
818
- if (arguments.length === 0)
819
- return ".";
820
- for (var e, t = 0; t < arguments.length; ++t) {
821
- var n = arguments[t];
822
- j(n), n.length > 0 && (e === void 0 ? e = n : e += "/" + n);
823
- }
824
- return e === void 0 ? "." : oe.normalize(e);
825
- },
826
- relative: function(e, t) {
827
- if (j(e), j(t), e === t || (e = oe.resolve(e), t = oe.resolve(t), e === t)) return "";
828
- for (var n = 1; n < e.length && e.charCodeAt(n) === 47; ++n)
829
- ;
830
- for (var s = e.length, o = s - n, a = 1; a < t.length && t.charCodeAt(a) === 47; ++a)
831
- ;
832
- for (var r = t.length, c = r - a, d = o < c ? o : c, m = -1, f = 0; f <= d; ++f) {
833
- if (f === d) {
834
- if (c > d) {
835
- if (t.charCodeAt(a + f) === 47)
836
- return t.slice(a + f + 1);
837
- if (f === 0)
838
- return t.slice(a + f);
839
- } else o > d && (e.charCodeAt(n + f) === 47 ? m = f : f === 0 && (m = 0));
840
- break;
841
- }
842
- var p = e.charCodeAt(n + f), h = t.charCodeAt(a + f);
843
- if (p !== h)
844
- break;
845
- p === 47 && (m = f);
846
- }
847
- var y = "";
848
- for (f = n + m + 1; f <= s; ++f)
849
- (f === s || e.charCodeAt(f) === 47) && (y.length === 0 ? y += ".." : y += "/..");
850
- return y.length > 0 ? y + t.slice(a + m) : (a += m, t.charCodeAt(a) === 47 && ++a, t.slice(a));
851
- },
852
- _makeLong: function(e) {
853
- return e;
854
- },
855
- dirname: function(e) {
856
- if (j(e), e.length === 0) return ".";
857
- for (var t = e.charCodeAt(0), n = t === 47, s = -1, o = !0, a = e.length - 1; a >= 1; --a)
858
- if (t = e.charCodeAt(a), t === 47) {
859
- if (!o) {
860
- s = a;
861
- break;
862
- }
863
- } else
864
- o = !1;
865
- return s === -1 ? n ? "/" : "." : n && s === 1 ? "//" : e.slice(0, s);
866
- },
867
- basename: function(e, t) {
868
- if (t !== void 0 && typeof t != "string") throw new TypeError('"ext" argument must be a string');
869
- j(e);
870
- var n = 0, s = -1, o = !0, a;
871
- if (t !== void 0 && t.length > 0 && t.length <= e.length) {
872
- if (t.length === e.length && t === e) return "";
873
- var r = t.length - 1, c = -1;
874
- for (a = e.length - 1; a >= 0; --a) {
875
- var d = e.charCodeAt(a);
876
- if (d === 47) {
877
- if (!o) {
878
- n = a + 1;
879
- break;
880
- }
881
- } else
882
- c === -1 && (o = !1, c = a + 1), r >= 0 && (d === t.charCodeAt(r) ? --r === -1 && (s = a) : (r = -1, s = c));
883
- }
884
- return n === s ? s = c : s === -1 && (s = e.length), e.slice(n, s);
885
- } else {
886
- for (a = e.length - 1; a >= 0; --a)
887
- if (e.charCodeAt(a) === 47) {
888
- if (!o) {
889
- n = a + 1;
890
- break;
891
- }
892
- } else s === -1 && (o = !1, s = a + 1);
893
- return s === -1 ? "" : e.slice(n, s);
894
- }
895
- },
896
- extname: function(e) {
897
- j(e);
898
- for (var t = -1, n = 0, s = -1, o = !0, a = 0, r = e.length - 1; r >= 0; --r) {
899
- var c = e.charCodeAt(r);
900
- if (c === 47) {
901
- if (!o) {
902
- n = r + 1;
903
- break;
904
- }
905
- continue;
906
- }
907
- s === -1 && (o = !1, s = r + 1), c === 46 ? t === -1 ? t = r : a !== 1 && (a = 1) : t !== -1 && (a = -1);
908
- }
909
- return t === -1 || s === -1 || // We saw a non-dot character immediately before the dot
910
- a === 0 || // The (right-most) trimmed path component is exactly '..'
911
- a === 1 && t === s - 1 && t === n + 1 ? "" : e.slice(t, s);
912
- },
913
- format: function(e) {
914
- if (e === null || typeof e != "object")
915
- throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof e);
916
- return yn("/", e);
917
- },
918
- parse: function(e) {
919
- j(e);
920
- var t = { root: "", dir: "", base: "", ext: "", name: "" };
921
- if (e.length === 0) return t;
922
- var n = e.charCodeAt(0), s = n === 47, o;
923
- s ? (t.root = "/", o = 1) : o = 0;
924
- for (var a = -1, r = 0, c = -1, d = !0, m = e.length - 1, f = 0; m >= o; --m) {
925
- if (n = e.charCodeAt(m), n === 47) {
926
- if (!d) {
927
- r = m + 1;
928
- break;
929
- }
930
- continue;
931
- }
932
- c === -1 && (d = !1, c = m + 1), n === 46 ? a === -1 ? a = m : f !== 1 && (f = 1) : a !== -1 && (f = -1);
933
- }
934
- return a === -1 || c === -1 || // We saw a non-dot character immediately before the dot
935
- f === 0 || // The (right-most) trimmed path component is exactly '..'
936
- f === 1 && a === c - 1 && a === r + 1 ? c !== -1 && (r === 0 && s ? t.base = t.name = e.slice(1, c) : t.base = t.name = e.slice(r, c)) : (r === 0 && s ? (t.name = e.slice(1, a), t.base = e.slice(1, c)) : (t.name = e.slice(r, a), t.base = e.slice(r, c)), t.ext = e.slice(a, c)), r > 0 ? t.dir = e.slice(0, r - 1) : s && (t.dir = "/"), t;
937
- },
938
- sep: "/",
939
- delimiter: ":",
940
- win32: null,
941
- posix: null
942
- };
943
- oe.posix = oe;
944
- var Ee = oe;
945
- const Le = /* @__PURE__ */ Je(Ee), wn = { class: "tags-container" }, kn = /* @__PURE__ */ I({
946
- __name: "index",
947
- setup(i) {
948
- const { proxy: e } = it(), t = ye(), n = fe(), s = de(), o = be(), a = Q(), { visitedViews: r } = _t(o), c = te(), d = R(() => c.layout), m = z({
949
- path: "",
950
- query: "",
951
- fullPath: "",
952
- name: "",
953
- title: "",
954
- affix: !1,
955
- keepAlive: !1
956
- }), f = z([]), p = z(0), h = z(0);
957
- ne(
958
- n,
959
- () => {
960
- $(), N();
961
- },
962
- {
963
- immediate: !0
964
- //初始化立即执行
965
- }
966
- );
967
- const y = z(!1);
968
- ne(y, (v) => {
969
- v ? document.body.addEventListener("click", ve) : document.body.removeEventListener("click", ve);
970
- });
971
- function A(v, b = "/") {
972
- let L = [];
973
- return v.forEach((D) => {
974
- var M, E, X, we;
975
- const W = Ee.resolve(b, D.path);
976
- if ((M = D.meta) != null && M.affix && L.push({
977
- path: W,
978
- fullPath: W,
979
- name: String(D.name),
980
- title: ((E = D.meta) == null ? void 0 : E.title) || "no-name",
981
- affix: (X = D.meta) == null ? void 0 : X.affix,
982
- keepAlive: (we = D.meta) == null ? void 0 : we.keepAlive
983
- }), D.children) {
984
- const ke = A(D.children, b + D.path);
985
- ke.length >= 1 && (L = [...L, ...ke]);
986
- }
987
- }), L;
988
- }
989
- function S() {
990
- const v = A(s.routes);
991
- f.value = v;
992
- for (const b of v)
993
- b.name && o.addVisitedView(b);
994
- }
995
- function $() {
996
- var v, b;
997
- n.meta.title && o.addView({
998
- name: n.name,
999
- title: n.meta.title,
1000
- path: n.path,
1001
- query: n.query,
1002
- fullPath: n.fullPath,
1003
- affix: (v = n.meta) == null ? void 0 : v.affix,
1004
- keepAlive: (b = n.meta) == null ? void 0 : b.keepAlive
1005
- });
1006
- }
1007
- function N() {
1008
- $e(() => {
1009
- var v, b;
1010
- for (const L of r.value)
1011
- L.path === n.path && L.fullPath !== n.fullPath && o.updateVisitedView({
1012
- name: n.name,
1013
- title: n.meta.title || "",
1014
- path: n.path,
1015
- query: n.query,
1016
- fullPath: n.fullPath,
1017
- affix: (v = n.meta) == null ? void 0 : v.affix,
1018
- keepAlive: (b = n.meta) == null ? void 0 : b.keepAlive
1019
- });
1020
- });
1021
- }
1022
- function C(v) {
1023
- return v.path === n.path;
1024
- }
1025
- function U(v) {
1026
- return v == null ? void 0 : v.affix;
1027
- }
1028
- function Z() {
1029
- try {
1030
- return m.value.path === "/dashboard" || m.value.fullPath === o.visitedViews[1].fullPath;
1031
- } catch {
1032
- return !1;
1033
- }
1034
- }
1035
- function q() {
1036
- try {
1037
- return m.value.fullPath === o.visitedViews[o.visitedViews.length - 1].fullPath;
1038
- } catch {
1039
- return !1;
1040
- }
1041
- }
1042
- function O(v) {
1043
- o.delCachedView(v);
1044
- const { fullPath: b } = v;
1045
- $e(() => {
1046
- t.replace({ path: "/redirect" + b });
1047
- });
1048
- }
1049
- function G(v, b) {
1050
- const L = v.slice(-1)[0];
1051
- L && L.fullPath ? t.push(L.fullPath) : (b == null ? void 0 : b.name) === "Dashboard" ? t.replace({ path: "/redirect" + b.fullPath }) : t.push("/");
1052
- }
1053
- function ee(v) {
1054
- o.delView(v).then((b) => {
1055
- C(v) && G(b.visitedViews, v);
1056
- });
1057
- }
1058
- function Y() {
1059
- o.delLeftViews(m.value).then((v) => {
1060
- v.visitedViews.find((b) => b.path === n.path) || G(v.visitedViews);
1061
- });
1062
- }
1063
- function Re() {
1064
- o.delRightViews(m.value).then((v) => {
1065
- v.visitedViews.find((b) => b.path === n.path) || G(v.visitedViews);
1066
- });
1067
- }
1068
- function De() {
1069
- t.push(m.value), o.delOtherViews(m.value).then(() => {
1070
- N();
1071
- });
1072
- }
1073
- function Be(v) {
1074
- o.delAllViews().then((b) => {
1075
- G(b.visitedViews, v);
1076
- });
1077
- }
1078
- function Ne(v, b) {
1079
- const D = e == null ? void 0 : e.$el.getBoundingClientRect().left, M = (e == null ? void 0 : e.$el.offsetWidth) - 105, E = b.clientX - D + 15;
1080
- E > M ? p.value = M : p.value = E, d.value === "mix" ? h.value = b.clientY - 50 : h.value = b.clientY, y.value = !0, m.value = v;
1081
- }
1082
- function ve() {
1083
- y.value = !1;
1084
- }
1085
- function Oe() {
1086
- ve();
1087
- }
1088
- function ze(v, b) {
1089
- let L = {};
1090
- function D(M, E) {
1091
- if (L[M.name] = E, M.children)
1092
- for (let X = 0; X < M.children.length; X++)
1093
- D(M.children[X], M);
1094
- }
1095
- for (let M = 0; M < v.length; M++)
1096
- D(v[M], null);
1097
- let W = L[b];
1098
- for (; W; ) {
1099
- if (!L[W.name])
1100
- return W;
1101
- W = L[W.name];
1102
- }
1103
- return null;
1104
- }
1105
- const Fe = (v) => {
1106
- if (d.value !== "mix") return;
1107
- const b = ze(s.routes, v);
1108
- a.activeTopMenu !== b.path && a.activeTopMenu(b.path);
1109
- };
1110
- return ne(
1111
- () => n.name,
1112
- (v) => {
1113
- v && Fe(v);
1114
- },
1115
- {
1116
- deep: !0
1117
- }
1118
- ), Ae(() => {
1119
- S();
1120
- }), (v, b) => {
1121
- const L = xn, D = V("router-link"), W = V("el-scrollbar"), M = ae;
1122
- return u(), x("div", wn, [
1123
- _(W, {
1124
- class: "scroll-container",
1125
- vertical: !1,
1126
- onWheel: re(Oe, ["prevent"])
1127
- }, {
1128
- default: g(() => [
1129
- (u(!0), x(K, null, le(l(r), (E) => (u(), k(D, {
1130
- ref_for: !0,
1131
- ref: "tagRef",
1132
- key: E.fullPath,
1133
- class: H("tags-item " + (C(E) ? "active" : "")),
1134
- to: { path: E.path, query: E.query },
1135
- onMouseup: re((X) => U(E) ? "" : ee(E), ["middle"]),
1136
- onContextmenu: re((X) => Ne(E, X), ["prevent"])
1137
- }, {
1138
- default: g(() => [
1139
- B(P(l(Vt)(E)) + " ", 1),
1140
- U(E) ? T("", !0) : (u(), k(L, {
1141
- key: 0,
1142
- class: "close-icon",
1143
- size: "12px",
1144
- onClick: re((X) => ee(E), ["prevent", "stop"])
1145
- }, null, 8, ["onClick"]))
1146
- ]),
1147
- _: 2
1148
- }, 1032, ["class", "to", "onMouseup", "onContextmenu"]))), 128))
1149
- ]),
1150
- _: 1
1151
- }),
1152
- at(w("ul", {
1153
- class: "contextmenu",
1154
- style: lt({ left: l(p) + "px", top: l(h) + "px" })
1155
- }, [
1156
- w("li", {
1157
- onClick: b[0] || (b[0] = (E) => O(l(m)))
1158
- }, [
1159
- _(M, { "icon-class": "refresh" }),
1160
- B(" 刷新 ")
1161
- ]),
1162
- U(l(m)) ? T("", !0) : (u(), x("li", {
1163
- key: 0,
1164
- onClick: b[1] || (b[1] = (E) => ee(l(m)))
1165
- }, [
1166
- _(M, { "icon-class": "close" }),
1167
- B(" 关闭 ")
1168
- ])),
1169
- w("li", { onClick: De }, [
1170
- _(M, { "icon-class": "close_other" }),
1171
- B(" 关闭其它 ")
1172
- ]),
1173
- Z() ? T("", !0) : (u(), x("li", {
1174
- key: 1,
1175
- onClick: Y
1176
- }, [
1177
- _(M, { "icon-class": "close_left" }),
1178
- B(" 关闭左侧 ")
1179
- ])),
1180
- q() ? T("", !0) : (u(), x("li", {
1181
- key: 2,
1182
- onClick: Re
1183
- }, [
1184
- _(M, { "icon-class": "close_right" }),
1185
- B(" 关闭右侧 ")
1186
- ])),
1187
- w("li", {
1188
- onClick: b[2] || (b[2] = (E) => Be(l(m)))
1189
- }, [
1190
- _(M, { "icon-class": "close_all" }),
1191
- B(" 关闭所有 ")
1192
- ])
1193
- ], 4), [
1194
- [st, l(y)]
1195
- ])
1196
- ]);
1197
- };
1198
- }
1199
- }), Sn = /* @__PURE__ */ F(kn, [["__scopeId", "data-v-1331aac4"]]), Cn = /* @__PURE__ */ I({
1200
- name: "AppLink",
1201
- inheritAttrs: !1,
1202
- __name: "index",
1203
- props: {
1204
- to: {
1205
- type: String,
1206
- required: !0
1207
- }
1208
- },
1209
- setup(i) {
1210
- const e = i, t = R(() => ue(e.to)), n = R(() => t.value ? "a" : "router-link"), s = (o) => t.value ? { href: o, target: "_blank", rel: "noopener noreferrer" } : { to: o };
1211
- return (o, a) => (u(), k(xe(l(n)), rt(ct(s(i.to))), {
1212
- default: g(() => [
1213
- ut(o.$slots, "default")
1214
- ]),
1215
- _: 3
1216
- }, 16));
1217
- }
1218
- }), $n = {
1219
- key: 3,
1220
- class: "ml-1"
1221
- }, Vn = /* @__PURE__ */ I({
1222
- __name: "SidebarMenuItemTitle",
1223
- props: {
1224
- icon: {
1225
- type: String,
1226
- default: ""
1227
- },
1228
- name: {
1229
- type: String,
1230
- default: ""
1231
- },
1232
- title: {
1233
- type: String,
1234
- default: ""
1235
- }
1236
- },
1237
- setup(i) {
1238
- return (e, t) => {
1239
- const n = V("el-icon"), s = ae;
1240
- return u(), x(K, null, [
1241
- i.icon && i.icon.startsWith("el-icon") ? (u(), k(n, {
1242
- key: 0,
1243
- class: "sub-el-icon"
1244
- }, {
1245
- default: g(() => [
1246
- (u(), k(xe(i.icon.replace("el-icon-", ""))))
1247
- ]),
1248
- _: 1
1249
- })) : i.icon ? (u(), k(s, {
1250
- key: 1,
1251
- "icon-class": i.icon
1252
- }, null, 8, ["icon-class"])) : (u(), k(s, {
1253
- key: 2,
1254
- "icon-class": "menu"
1255
- })),
1256
- i.title ? (u(), x("span", $n, P(l(pe)(i.name, i.title)), 1)) : T("", !0)
1257
- ], 64);
1258
- };
1259
- }
1260
- }), Tn = /* @__PURE__ */ F(Vn, [["__scopeId", "data-v-e70291db"]]), An = { key: 0 }, Mn = /* @__PURE__ */ I({
1261
- name: "SidebarMenuItem",
1262
- inheritAttrs: !1,
1263
- __name: "SidebarMenuItem",
1264
- props: {
1265
- /**
1266
- * 路由(eg:user)
1267
- */
1268
- item: {
1269
- type: Object,
1270
- required: !0
1271
- },
1272
- /**
1273
- * 父层级完整路由路径(eg:/system)
1274
- */
1275
- basePath: {
1276
- type: String,
1277
- required: !0
1278
- },
1279
- isNest: {
1280
- type: Boolean,
1281
- default: !1
1282
- }
1283
- },
1284
- setup(i) {
1285
- const e = i, t = z();
1286
- function n(o = [], a) {
1287
- const r = o.filter((c) => {
1288
- var d;
1289
- return (d = c.meta) != null && d.hidden ? !1 : (c.meta.hidden = !1, t.value = c, !0);
1290
- });
1291
- return r.length === 1 ? !0 : r.length === 0 ? (t.value = { ...a, path: "", noShowingChildren: !0 }, !0) : !1;
1292
- }
1293
- function s(o) {
1294
- return ue(o) ? o : ue(e.basePath) ? e.basePath : Le.resolve(e.basePath, o);
1295
- }
1296
- return (o, a) => {
1297
- var p;
1298
- const r = Tn, c = V("el-menu-item"), d = Cn, m = V("SidebarMenuItem", !0), f = V("el-sub-menu");
1299
- return !i.item.meta || !i.item.meta.hidden ? (u(), x("div", An, [
1300
- n(i.item.children, i.item) && (!l(t).children || l(t).noShowingChildren) && !((p = i.item.meta) != null && p.alwaysShow) ? (u(), x(K, { key: 0 }, [
1301
- l(t).meta ? (u(), k(d, {
1302
- key: 0,
1303
- to: s(l(t).path)
1304
- }, {
1305
- default: g(() => [
1306
- _(c, {
1307
- index: s(l(t).path),
1308
- class: H({ "submenu-title-noDropdown": !i.isNest })
1309
- }, {
1310
- default: g(() => [
1311
- _(r, {
1312
- icon: l(t).meta.icon || i.item.meta && i.item.meta.icon,
1313
- title: l(t).meta.title,
1314
- name: l(t).name
1315
- }, null, 8, ["icon", "title", "name"])
1316
- ]),
1317
- _: 1
1318
- }, 8, ["index", "class"])
1319
- ]),
1320
- _: 1
1321
- }, 8, ["to"])) : T("", !0)
1322
- ], 64)) : (u(), k(f, {
1323
- key: 1,
1324
- index: s(i.item.path),
1325
- teleported: ""
1326
- }, {
1327
- title: g(() => [
1328
- i.item.meta ? (u(), k(r, {
1329
- key: 0,
1330
- icon: i.item.meta && i.item.meta.icon,
1331
- title: i.item.meta.title,
1332
- name: i.item.name
1333
- }, null, 8, ["icon", "title", "name"])) : T("", !0)
1334
- ]),
1335
- default: g(() => [
1336
- (u(!0), x(K, null, le(i.item.children, (h) => (u(), k(m, {
1337
- key: h.path,
1338
- "is-nest": !0,
1339
- item: h,
1340
- "base-path": s(h.path)
1341
- }, null, 8, ["item", "base-path"]))), 128))
1342
- ]),
1343
- _: 1
1344
- }, 8, ["index"]))
1345
- ])) : T("", !0);
1346
- };
1347
- }
1348
- }), Pn = "_dark_168i3_12", ie = {
1349
- "sidebar-width": "210px",
1350
- "navbar-height": "50px",
1351
- "menu-background": "var(--menu-background)",
1352
- "menu-text": "var(--menu-text)",
1353
- "menu-active-text": "var(--menu-active-text)",
1354
- "menu-hover": "var(--menu-hover)",
1355
- dark: Pn
1356
- }, Ie = /* @__PURE__ */ I({
1357
- __name: "SidebarMenu",
1358
- props: {
1359
- menuList: {
1360
- required: !0,
1361
- default: () => [],
1362
- type: Array
1363
- },
1364
- basePath: {
1365
- type: String,
1366
- required: !0
1367
- }
1368
- },
1369
- setup(i) {
1370
- const e = te(), t = Q(), n = fe(), s = R(() => e.layout), o = i;
1371
- function a(r) {
1372
- return ue(r) ? r : ue(o.basePath) ? o.basePath : Le.resolve(o.basePath, r);
1373
- }
1374
- return (r, c) => {
1375
- const d = Mn, m = V("el-menu");
1376
- return u(), k(m, {
1377
- "default-active": l(n).path,
1378
- collapse: !l(t).sidebar.opened,
1379
- "background-color": l(ie)["menu-background"],
1380
- "text-color": l(ie)["menu-text"],
1381
- "active-text-color": l(ie)["menu-active-text"],
1382
- "unique-opened": !1,
1383
- "collapse-transition": !1,
1384
- mode: l(s) === "top" ? "horizontal" : "vertical"
1385
- }, {
1386
- default: g(() => [
1387
- (u(!0), x(K, null, le(i.menuList, (f) => (u(), k(d, {
1388
- key: f.path,
1389
- item: f,
1390
- "base-path": a(f.path),
1391
- "is-collapse": !l(t).sidebar.opened
1392
- }, null, 8, ["item", "base-path", "is-collapse"]))), 128))
1393
- ]),
1394
- _: 1
1395
- }, 8, ["default-active", "collapse", "background-color", "text-color", "active-text-color", "mode"]);
1396
- };
1397
- }
1398
- }), En = { key: 1 }, Ln = {
1399
- key: 0,
1400
- class: "ml-1"
1401
- }, In = /* @__PURE__ */ I({
1402
- __name: "SidebarMixTopMenu",
1403
- setup(i) {
1404
- const e = Q(), t = de(), n = ye(), s = R(() => e.activeTopMenuPath), o = z([]), a = (c) => {
1405
- e.activeTopMenu(c), t.setMixLeftMenus(c);
1406
- const d = t.mixLeftMenus;
1407
- r(d);
1408
- }, r = (c) => {
1409
- if (c.length === 0) return;
1410
- const [d] = c;
1411
- d.children && d.children.length > 0 ? r(d.children) : d.name && n.push({
1412
- name: d.name
1413
- });
1414
- };
1415
- return Ae(() => {
1416
- o.value = t.routes.filter(
1417
- (c) => !c.meta || !c.meta.hidden
1418
- );
1419
- }), (c, d) => {
1420
- const m = ae, f = V("el-menu-item"), p = V("el-menu"), h = V("el-scrollbar");
1421
- return u(), k(h, null, {
1422
- default: g(() => [
1423
- _(p, {
1424
- mode: "horizontal",
1425
- "default-active": l(s),
1426
- "background-color": l(ie)["menu-background"],
1427
- "text-color": l(ie)["menu-text"],
1428
- "active-text-color": l(ie)["menu-active-text"],
1429
- onSelect: a
1430
- }, {
1431
- default: g(() => [
1432
- (u(!0), x(K, null, le(l(o), (y) => (u(), k(f, {
1433
- key: y.path,
1434
- index: y.path
1435
- }, {
1436
- title: g(() => [
1437
- y.meta && y.meta.icon ? (u(), k(m, {
1438
- key: 0,
1439
- "icon-class": y.meta.icon
1440
- }, null, 8, ["icon-class"])) : T("", !0),
1441
- y.path === "/" ? (u(), x("span", En, P(l(pe)("Dashboard", "首页")), 1)) : (u(), x(K, { key: 2 }, [
1442
- y.meta && y.meta.title ? (u(), x("span", Ln, P(l(ge)(y)), 1)) : T("", !0)
1443
- ], 64))
1444
- ]),
1445
- _: 2
1446
- }, 1032, ["index"]))), 128))
1447
- ]),
1448
- _: 1
1449
- }, 8, ["default-active", "background-color", "text-color", "active-text-color"])
1450
- ]),
1451
- _: 1
1452
- });
1453
- };
1454
- }
1455
- }), Rn = { class: "logo-container" }, Dn = ["src"], Bn = ["src"], Nn = { class: "logo-title" }, On = /* @__PURE__ */ I({
1456
- __name: "SidebarLogo",
1457
- props: {
1458
- collapse: {
1459
- type: Boolean,
1460
- required: !0
1461
- }
1462
- },
1463
- setup(i) {
1464
- const e = te(), t = ce.logo;
1465
- return (n, s) => {
1466
- const o = V("router-link");
1467
- return u(), x("div", Rn, [
1468
- _(Te, { "enter-active-class": "animate__animated animate__fadeInLeft" }, {
1469
- default: g(() => [
1470
- i.collapse ? (u(), k(o, {
1471
- key: 0,
1472
- class: "wh-full flex-center",
1473
- to: "/"
1474
- }, {
1475
- default: g(() => [
1476
- l(e).sidebarLogo ? (u(), x("img", {
1477
- key: 0,
1478
- src: l(t),
1479
- class: "logo-image"
1480
- }, null, 8, Dn)) : T("", !0)
1481
- ]),
1482
- _: 1
1483
- })) : (u(), k(o, {
1484
- key: 1,
1485
- class: "wh-full flex-center",
1486
- to: "/"
1487
- }, {
1488
- default: g(() => [
1489
- l(e).sidebarLogo ? (u(), x("img", {
1490
- key: 0,
1491
- src: l(t),
1492
- class: "logo-image"
1493
- }, null, 8, Bn)) : T("", !0),
1494
- w("span", Nn, P(l(ce).title), 1)
1495
- ]),
1496
- _: 1
1497
- }))
1498
- ]),
1499
- _: 1
1500
- })
1501
- ]);
1502
- };
1503
- }
1504
- }), zn = /* @__PURE__ */ F(On, [["__scopeId", "data-v-c6f65ed6"]]), Fn = {
1505
- key: 0,
1506
- class: "flex w-full"
1507
- }, Un = /* @__PURE__ */ I({
1508
- __name: "index",
1509
- setup(i) {
1510
- const e = Q(), t = te(), n = de(), s = R(() => t.sidebarLogo), o = R(() => t.layout);
1511
- return (a, r) => {
1512
- const c = zn, d = In, m = Me, f = Ie, p = V("el-scrollbar");
1513
- return u(), x("div", {
1514
- class: H({ "has-logo": l(s) })
1515
- }, [
1516
- l(o) == "mix" ? (u(), x("div", Fn, [
1517
- l(s) ? (u(), k(c, {
1518
- key: 0,
1519
- collapse: !l(e).sidebar.opened
1520
- }, null, 8, ["collapse"])) : T("", !0),
1521
- _(d, { class: "flex-1" }),
1522
- _(m)
1523
- ])) : (u(), x(K, { key: 1 }, [
1524
- l(s) ? (u(), k(c, {
1525
- key: 0,
1526
- collapse: !l(e).sidebar.opened
1527
- }, null, 8, ["collapse"])) : T("", !0),
1528
- _(p, null, {
1529
- default: g(() => [
1530
- _(f, {
1531
- "menu-list": l(n).routes,
1532
- "base-path": ""
1533
- }, null, 8, ["menu-list"])
1534
- ]),
1535
- _: 1
1536
- }),
1537
- l(o) === "top" ? (u(), k(m, { key: 1 })) : T("", !0)
1538
- ], 64))
1539
- ], 2);
1540
- };
1541
- }
1542
- }), qn = /* @__PURE__ */ F(Un, [["__scopeId", "data-v-64d75c6a"]]), Hn = {
1543
- key: 1,
1544
- class: "mix-container"
1545
- }, Wn = { class: "mix-container__left" }, Kn = { class: "sidebar-toggle" }, Xn = 992, jn = /* @__PURE__ */ I({
1546
- __name: "index",
1547
- setup(i) {
1548
- const e = Q(), t = te(), n = de(), s = R(() => t.fixedHeader), o = R(() => t.tagsView), a = R(() => t.layout), r = R(() => e.activeTopMenuPath), c = R(() => n.mixLeftMenus);
1549
- ne(
1550
- () => r.value,
1551
- (h) => {
1552
- n.setMixLeftMenus(h);
1553
- },
1554
- {
1555
- deep: !0,
1556
- immediate: !0
1557
- }
1558
- );
1559
- const d = R(() => ({
1560
- hideSidebar: !e.sidebar.opened,
1561
- openSidebar: e.sidebar.opened,
1562
- mobile: e.device === me.MOBILE,
1563
- "layout-left": a.value === "left",
1564
- "layout-top": a.value === "top",
1565
- "layout-mix": a.value === "mix"
1566
- })), m = Qe().width;
1567
- dt(() => {
1568
- m.value < Xn ? (e.toggleDevice(me.MOBILE), e.closeSideBar()) : (e.toggleDevice(me.DESKTOP), m.value >= 1200 ? e.openSideBar() : e.closeSideBar());
1569
- });
1570
- function f() {
1571
- e.closeSideBar();
1572
- }
1573
- function p() {
1574
- e.toggleSidebar();
1575
- }
1576
- return (h, y) => {
1577
- const A = qn, S = Ie, $ = Pe, N = Sn, C = pn, U = fn, Z = Nt;
1578
- return u(), x("div", {
1579
- class: H(["wh-full", l(d)])
1580
- }, [
1581
- l(d).mobile && l(d).openSidebar ? (u(), x("div", {
1582
- key: 0,
1583
- class: "wh-full fixed-lt z-999 bg-black bg-opacity-30",
1584
- onClick: f
1585
- })) : T("", !0),
1586
- _(A, { class: "sidebar-container" }),
1587
- l(a) === "mix" ? (u(), x("div", Hn, [
1588
- w("div", Wn, [
1589
- _(S, {
1590
- "menu-list": l(c),
1591
- "base-path": l(r)
1592
- }, null, 8, ["menu-list", "base-path"]),
1593
- w("div", Kn, [
1594
- _($, {
1595
- "is-active": l(e).sidebar.opened,
1596
- onToggleClick: p
1597
- }, null, 8, ["is-active"])
1598
- ])
1599
- ]),
1600
- w("div", {
1601
- class: H([{ hasTagsView: l(o) }, "main-container"])
1602
- }, [
1603
- w("div", {
1604
- class: H({ "fixed-header": l(s) })
1605
- }, [
1606
- l(o) ? (u(), k(N, { key: 0 })) : T("", !0)
1607
- ], 2),
1608
- _(C),
1609
- l(ce).showSettings ? (u(), k(U, { key: 0 })) : T("", !0)
1610
- ], 2)
1611
- ])) : (u(), x("div", {
1612
- key: 2,
1613
- class: H([{ hasTagsView: l(o) }, "main-container"])
1614
- }, [
1615
- w("div", {
1616
- class: H({ "fixed-header": l(s) })
1617
- }, [
1618
- l(a) === "left" ? (u(), k(Z, { key: 0 })) : T("", !0),
1619
- l(o) ? (u(), k(N, { key: 1 })) : T("", !0)
1620
- ], 2),
1621
- _(C),
1622
- l(ce).showSettings ? (u(), k(U, { key: 0 })) : T("", !0)
1623
- ], 2))
1624
- ], 2);
1625
- };
1626
- }
1627
- }), to = /* @__PURE__ */ F(jn, [["__scopeId", "data-v-12059947"]]);
1628
- export {
1629
- to as default
1630
- };