bmp-layout 0.0.2 → 0.0.3
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/{403-Byd0D29G.mjs → 403-DYgT5iKa.mjs} +1 -1
- package/{404-D29DIIzd.mjs → 404-CnkhuPaP.mjs} +1 -1
- package/{500-DKTm4EMR.mjs → 500-DluI2QaR.mjs} +1 -1
- package/bmp-layout.es.js +1 -1
- package/bmp-layout.umd.js +7 -7
- package/{index-CwRd3B9B.mjs → index-D3muoTnk.mjs} +1 -1
- package/{index-FZpI32h3.mjs → index-DlR_1Fbm.mjs} +298 -318
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -842,7 +842,7 @@ const useAppStore = defineStore("app", {
|
|
|
842
842
|
isDark: false,
|
|
843
843
|
currentSize: wsCache$4.get("default") || "default",
|
|
844
844
|
// 组件尺寸
|
|
845
|
-
theme: wsCache$4.get(CACHE_KEY.THEME) || "
|
|
845
|
+
theme: wsCache$4.get(CACHE_KEY.THEME) || "whiteLight",
|
|
846
846
|
isSetTheme: false,
|
|
847
847
|
//初始化主题色
|
|
848
848
|
isShowApprover: false
|
|
@@ -942,35 +942,35 @@ const useAppStore = defineStore("app", {
|
|
|
942
942
|
}
|
|
943
943
|
},
|
|
944
944
|
actions: {
|
|
945
|
-
setBreadcrumb(
|
|
946
|
-
this.breadcrumb =
|
|
945
|
+
setBreadcrumb(breadcrumb) {
|
|
946
|
+
this.breadcrumb = breadcrumb;
|
|
947
947
|
},
|
|
948
|
-
setBreadcrumbIcon(
|
|
949
|
-
this.breadcrumbIcon =
|
|
948
|
+
setBreadcrumbIcon(breadcrumbIcon) {
|
|
949
|
+
this.breadcrumbIcon = breadcrumbIcon;
|
|
950
950
|
},
|
|
951
|
-
setCollapse(
|
|
952
|
-
this.collapse =
|
|
951
|
+
setCollapse(collapse) {
|
|
952
|
+
this.collapse = collapse;
|
|
953
953
|
},
|
|
954
954
|
setUniqueOpened(uniqueOpened) {
|
|
955
955
|
this.uniqueOpened = uniqueOpened;
|
|
956
956
|
},
|
|
957
|
-
setHamburger(
|
|
958
|
-
this.hamburger =
|
|
957
|
+
setHamburger(hamburger) {
|
|
958
|
+
this.hamburger = hamburger;
|
|
959
959
|
},
|
|
960
|
-
setScreenfull(
|
|
961
|
-
this.screenfull =
|
|
960
|
+
setScreenfull(screenfull) {
|
|
961
|
+
this.screenfull = screenfull;
|
|
962
962
|
},
|
|
963
|
-
setSize(
|
|
964
|
-
this.size =
|
|
963
|
+
setSize(size) {
|
|
964
|
+
this.size = size;
|
|
965
965
|
},
|
|
966
|
-
setLocale(
|
|
967
|
-
this.locale =
|
|
966
|
+
setLocale(locale) {
|
|
967
|
+
this.locale = locale;
|
|
968
968
|
},
|
|
969
|
-
setMessage(
|
|
970
|
-
this.message =
|
|
969
|
+
setMessage(message) {
|
|
970
|
+
this.message = message;
|
|
971
971
|
},
|
|
972
|
-
setTagsView(
|
|
973
|
-
this.tagsView =
|
|
972
|
+
setTagsView(tagsView) {
|
|
973
|
+
this.tagsView = tagsView;
|
|
974
974
|
},
|
|
975
975
|
setTagsViewImmerse(tagsViewImmerse) {
|
|
976
976
|
this.tagsViewImmerse = tagsViewImmerse;
|
|
@@ -978,11 +978,11 @@ const useAppStore = defineStore("app", {
|
|
|
978
978
|
setTagsViewIcon(tagsViewIcon) {
|
|
979
979
|
this.tagsViewIcon = tagsViewIcon;
|
|
980
980
|
},
|
|
981
|
-
setLogo(
|
|
982
|
-
this.logo =
|
|
981
|
+
setLogo(logo) {
|
|
982
|
+
this.logo = logo;
|
|
983
983
|
},
|
|
984
|
-
setFixedHeader(
|
|
985
|
-
this.fixedHeader =
|
|
984
|
+
setFixedHeader(fixedHeader) {
|
|
985
|
+
this.fixedHeader = fixedHeader;
|
|
986
986
|
},
|
|
987
987
|
setGreyMode(greyMode) {
|
|
988
988
|
this.greyMode = greyMode;
|
|
@@ -991,15 +991,15 @@ const useAppStore = defineStore("app", {
|
|
|
991
991
|
wsCache$4.set("fixedMenu", fixedMenu);
|
|
992
992
|
this.fixedMenu = fixedMenu;
|
|
993
993
|
},
|
|
994
|
-
setPageLoading(
|
|
995
|
-
this.pageLoading =
|
|
994
|
+
setPageLoading(pageLoading) {
|
|
995
|
+
this.pageLoading = pageLoading;
|
|
996
996
|
},
|
|
997
|
-
setLayout(
|
|
997
|
+
setLayout(layout) {
|
|
998
998
|
if (this.mobile) {
|
|
999
999
|
ElMessage.warning("移动端模式下不支持切换其他布局");
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
1002
|
-
this.layout =
|
|
1002
|
+
this.layout = layout;
|
|
1003
1003
|
wsCache$4.set(CACHE_KEY.LAYOUT, this.layout);
|
|
1004
1004
|
},
|
|
1005
1005
|
setTitle(title) {
|
|
@@ -1020,19 +1020,19 @@ const useAppStore = defineStore("app", {
|
|
|
1020
1020
|
this.currentSize = currentSize;
|
|
1021
1021
|
wsCache$4.set("currentSize", this.currentSize);
|
|
1022
1022
|
},
|
|
1023
|
-
setMobile(
|
|
1024
|
-
this.mobile =
|
|
1023
|
+
setMobile(mobile) {
|
|
1024
|
+
this.mobile = mobile;
|
|
1025
1025
|
},
|
|
1026
|
-
setTheme(
|
|
1027
|
-
this.theme =
|
|
1028
|
-
wsCache$4.set(CACHE_KEY.THEME,
|
|
1026
|
+
setTheme(theme) {
|
|
1027
|
+
this.theme = theme;
|
|
1028
|
+
wsCache$4.set(CACHE_KEY.THEME, theme);
|
|
1029
1029
|
},
|
|
1030
1030
|
setCssVarTheme() {
|
|
1031
1031
|
this.isSetTheme = true;
|
|
1032
|
-
const
|
|
1033
|
-
console.log("theme",
|
|
1034
|
-
for (const key in
|
|
1035
|
-
setCssVar(`--${humpToUnderline(key)}`,
|
|
1032
|
+
const theme = systemTheme[this.theme];
|
|
1033
|
+
console.log("theme", theme);
|
|
1034
|
+
for (const key in theme) {
|
|
1035
|
+
setCssVar(`--${humpToUnderline(key)}`, theme[key]);
|
|
1036
1036
|
}
|
|
1037
1037
|
},
|
|
1038
1038
|
setFooter(footer) {
|
|
@@ -1150,7 +1150,7 @@ const remainingRouter = [
|
|
|
1150
1150
|
},
|
|
1151
1151
|
{
|
|
1152
1152
|
path: "/403",
|
|
1153
|
-
component: () => import("./403-
|
|
1153
|
+
component: () => import("./403-DYgT5iKa.mjs"),
|
|
1154
1154
|
name: "NoAccess",
|
|
1155
1155
|
meta: {
|
|
1156
1156
|
hidden: true,
|
|
@@ -1160,7 +1160,7 @@ const remainingRouter = [
|
|
|
1160
1160
|
},
|
|
1161
1161
|
{
|
|
1162
1162
|
path: "/404",
|
|
1163
|
-
component: () => import("./404-
|
|
1163
|
+
component: () => import("./404-CnkhuPaP.mjs"),
|
|
1164
1164
|
name: "NoFound",
|
|
1165
1165
|
meta: {
|
|
1166
1166
|
hidden: true,
|
|
@@ -1170,7 +1170,7 @@ const remainingRouter = [
|
|
|
1170
1170
|
},
|
|
1171
1171
|
{
|
|
1172
1172
|
path: "/500",
|
|
1173
|
-
component: () => import("./500-
|
|
1173
|
+
component: () => import("./500-DluI2QaR.mjs"),
|
|
1174
1174
|
name: "Error",
|
|
1175
1175
|
meta: {
|
|
1176
1176
|
hidden: true,
|
|
@@ -1180,33 +1180,13 @@ const remainingRouter = [
|
|
|
1180
1180
|
},
|
|
1181
1181
|
{
|
|
1182
1182
|
path: "/:pathMatch(.*)*",
|
|
1183
|
-
component: () => import("./404-
|
|
1183
|
+
component: () => import("./404-CnkhuPaP.mjs"),
|
|
1184
1184
|
name: "",
|
|
1185
1185
|
meta: {
|
|
1186
1186
|
title: "404",
|
|
1187
1187
|
hidden: true,
|
|
1188
1188
|
breadcrumb: false
|
|
1189
1189
|
}
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
path: "/",
|
|
1193
|
-
component: () => Promise.resolve().then(() => Layout$1),
|
|
1194
|
-
name: "",
|
|
1195
|
-
meta: {
|
|
1196
|
-
hidden: true,
|
|
1197
|
-
noTagsView: true
|
|
1198
|
-
},
|
|
1199
|
-
children: [
|
|
1200
|
-
{
|
|
1201
|
-
path: "/home",
|
|
1202
|
-
component: () => import("./index-CwRd3B9B.mjs"),
|
|
1203
|
-
name: "Home",
|
|
1204
|
-
meta: {
|
|
1205
|
-
hidden: true,
|
|
1206
|
-
noTagsView: true
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
]
|
|
1210
1190
|
}
|
|
1211
1191
|
];
|
|
1212
1192
|
const isUrl = (path) => {
|
|
@@ -2459,9 +2439,9 @@ function markBoxed(str) {
|
|
|
2459
2439
|
function weakCollectionOf(type4) {
|
|
2460
2440
|
return type4 + " { ? }";
|
|
2461
2441
|
}
|
|
2462
|
-
function collectionOf(type4,
|
|
2442
|
+
function collectionOf(type4, size, entries, indent) {
|
|
2463
2443
|
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
|
|
2464
|
-
return type4 + " (" +
|
|
2444
|
+
return type4 + " (" + size + ") {" + joinedEntries + "}";
|
|
2465
2445
|
}
|
|
2466
2446
|
function singleLineValues(xs) {
|
|
2467
2447
|
for (var i = 0; i < xs.length; i++) {
|
|
@@ -3364,7 +3344,7 @@ var lib = {
|
|
|
3364
3344
|
stringify: stringify2
|
|
3365
3345
|
};
|
|
3366
3346
|
const qs = /* @__PURE__ */ getDefaultExportFromCjs(lib);
|
|
3367
|
-
const modules = /* @__PURE__ */ Object.assign({ "../views/Error/403.vue": () => import("./403-
|
|
3347
|
+
const modules = /* @__PURE__ */ Object.assign({ "../views/Error/403.vue": () => import("./403-DYgT5iKa.mjs"), "../views/Error/404.vue": () => import("./404-CnkhuPaP.mjs"), "../views/Error/500.vue": () => import("./500-DluI2QaR.mjs"), "../views/Home/index.vue": () => import("./index-D3muoTnk.mjs"), "../views/Login/Login.vue": () => Promise.resolve().then(() => Login$1), "../views/Login/components/ForgetPasswordForm.vue": () => Promise.resolve().then(() => ForgetPasswordForm$1), "../views/Login/components/LoginForm.vue": () => Promise.resolve().then(() => LoginForm$1), "../views/Login/components/LoginFormTitle.vue": () => Promise.resolve().then(() => LoginFormTitle), "../views/Login/components/MobileForm.vue": () => Promise.resolve().then(() => MobileForm$1), "../views/Login/components/RegisterForm.vue": () => Promise.resolve().then(() => RegisterForm$1), "../views/Redirect/Redirect.vue": () => import("./Redirect-CRTyBnlH.mjs") });
|
|
3368
3348
|
const Layout$2 = () => Promise.resolve().then(() => Layout$1);
|
|
3369
3349
|
const getRawRoute = (route) => {
|
|
3370
3350
|
if (!route)
|
|
@@ -3574,7 +3554,7 @@ const usePermissionStore = defineStore("permission", {
|
|
|
3574
3554
|
{
|
|
3575
3555
|
path: "/:path(.*)*",
|
|
3576
3556
|
// redirect: '/404',
|
|
3577
|
-
component: () => import("./404-
|
|
3557
|
+
component: () => import("./404-CnkhuPaP.mjs"),
|
|
3578
3558
|
name: "404Page",
|
|
3579
3559
|
meta: {
|
|
3580
3560
|
hidden: true,
|
|
@@ -3664,18 +3644,18 @@ const hasOneShowingChild = (children = [], parent) => {
|
|
|
3664
3644
|
onlyOneChild: unref(onlyOneChild)
|
|
3665
3645
|
};
|
|
3666
3646
|
};
|
|
3667
|
-
const permissionStore
|
|
3647
|
+
const permissionStore = usePermissionStoreWithOut();
|
|
3668
3648
|
const getLeftMenuRouters = (path, push2) => {
|
|
3669
|
-
const routers = computed(() => permissionStore
|
|
3649
|
+
const routers = computed(() => permissionStore.getRouters);
|
|
3670
3650
|
const _router = routers.value.find((router2) => router2.path == path);
|
|
3671
3651
|
if (_router) {
|
|
3672
3652
|
const meta = _router.meta ?? {};
|
|
3673
3653
|
const { oneShowingChild, onlyOneChild } = hasOneShowingChild(_router.children, _router);
|
|
3674
3654
|
if (oneShowingChild && (!(onlyOneChild == null ? void 0 : onlyOneChild.children) || (onlyOneChild == null ? void 0 : onlyOneChild.noShowingChildren)) && !(meta == null ? void 0 : meta.alwaysShow)) {
|
|
3675
|
-
permissionStore
|
|
3655
|
+
permissionStore.setLeftMenuRouters();
|
|
3676
3656
|
push2 && push2(path);
|
|
3677
3657
|
} else {
|
|
3678
|
-
permissionStore
|
|
3658
|
+
permissionStore.setLeftMenuRouters(_router.path, _router.children);
|
|
3679
3659
|
const childPath = getChildPath(_router.path, _router.children);
|
|
3680
3660
|
push2 && push2(childPath);
|
|
3681
3661
|
}
|
|
@@ -4018,24 +3998,24 @@ var English = {
|
|
|
4018
3998
|
}
|
|
4019
3999
|
}
|
|
4020
4000
|
};
|
|
4021
|
-
const buildTranslator = (
|
|
4022
|
-
const translate = (path, option,
|
|
4001
|
+
const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
|
|
4002
|
+
const translate = (path, option, locale) => get$1(locale, path, path).replace(/\{(\w+)\}/g, (_2, key) => {
|
|
4023
4003
|
var _a2;
|
|
4024
4004
|
return `${(_a2 = option == null ? void 0 : option[key]) != null ? _a2 : `{${key}}`}`;
|
|
4025
4005
|
});
|
|
4026
|
-
const buildLocaleContext = (
|
|
4027
|
-
const lang = computed(() => unref(
|
|
4028
|
-
const localeRef = isRef(
|
|
4006
|
+
const buildLocaleContext = (locale) => {
|
|
4007
|
+
const lang = computed(() => unref(locale).name);
|
|
4008
|
+
const localeRef = isRef(locale) ? locale : ref$1(locale);
|
|
4029
4009
|
return {
|
|
4030
4010
|
lang,
|
|
4031
4011
|
locale: localeRef,
|
|
4032
|
-
t: buildTranslator(
|
|
4012
|
+
t: buildTranslator(locale)
|
|
4033
4013
|
};
|
|
4034
4014
|
};
|
|
4035
4015
|
const localeContextKey = Symbol("localeContextKey");
|
|
4036
4016
|
const useLocale$1 = (localeOverrides) => {
|
|
4037
|
-
const
|
|
4038
|
-
return buildLocaleContext(computed(() =>
|
|
4017
|
+
const locale = inject(localeContextKey, ref$1());
|
|
4018
|
+
return buildLocaleContext(computed(() => locale.value || English));
|
|
4039
4019
|
};
|
|
4040
4020
|
const epPropKey = "__epPropKey";
|
|
4041
4021
|
const definePropType = (val) => val;
|
|
@@ -4263,7 +4243,7 @@ class ElementPlusError extends Error {
|
|
|
4263
4243
|
function throwError(scope, m) {
|
|
4264
4244
|
throw new ElementPlusError(`[${scope}] ${m}`);
|
|
4265
4245
|
}
|
|
4266
|
-
function debugWarn(scope,
|
|
4246
|
+
function debugWarn(scope, message) {
|
|
4267
4247
|
}
|
|
4268
4248
|
const withInstall = (main2, extra) => {
|
|
4269
4249
|
main2.install = (app) => {
|
|
@@ -4301,11 +4281,11 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
4301
4281
|
const props = __props;
|
|
4302
4282
|
const ns = useNamespace("icon");
|
|
4303
4283
|
const style = computed(() => {
|
|
4304
|
-
const { size
|
|
4305
|
-
if (!
|
|
4284
|
+
const { size, color } = props;
|
|
4285
|
+
if (!size && !color)
|
|
4306
4286
|
return {};
|
|
4307
4287
|
return {
|
|
4308
|
-
fontSize: isUndefined(
|
|
4288
|
+
fontSize: isUndefined(size) ? void 0 : addUnit(size),
|
|
4309
4289
|
"--color": color
|
|
4310
4290
|
};
|
|
4311
4291
|
});
|
|
@@ -4691,11 +4671,11 @@ const useProp = (name) => {
|
|
|
4691
4671
|
};
|
|
4692
4672
|
const useFormSize = (fallback, ignore = {}) => {
|
|
4693
4673
|
const emptyRef = ref$1(void 0);
|
|
4694
|
-
const
|
|
4674
|
+
const size = ignore.prop ? emptyRef : useProp("size");
|
|
4695
4675
|
const globalConfig2 = ignore.global ? emptyRef : useGlobalSize();
|
|
4696
4676
|
const form = ignore.form ? { size: void 0 } : inject(formContextKey, void 0);
|
|
4697
4677
|
const formItem = ignore.formItem ? { size: void 0 } : inject(formItemContextKey, void 0);
|
|
4698
|
-
return computed(() =>
|
|
4678
|
+
return computed(() => size.value || unref(fallback) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || globalConfig2.value || "");
|
|
4699
4679
|
};
|
|
4700
4680
|
const useFormDisabled = (fallback) => {
|
|
4701
4681
|
const disabled = useProp("disabled");
|
|
@@ -5298,10 +5278,10 @@ const BAR_MAP = {
|
|
|
5298
5278
|
};
|
|
5299
5279
|
const renderThumbStyle = ({
|
|
5300
5280
|
move: move2,
|
|
5301
|
-
size
|
|
5281
|
+
size,
|
|
5302
5282
|
bar
|
|
5303
5283
|
}) => ({
|
|
5304
|
-
[bar.size]:
|
|
5284
|
+
[bar.size]: size,
|
|
5305
5285
|
transform: `translate${bar.axis}(${move2}%)`
|
|
5306
5286
|
});
|
|
5307
5287
|
const scrollbarContextKey = Symbol("scrollbarContextKey");
|
|
@@ -8265,10 +8245,10 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8265
8245
|
const ns = useNamespace("avatar");
|
|
8266
8246
|
const hasLoadError = ref$1(false);
|
|
8267
8247
|
const avatarClass = computed(() => {
|
|
8268
|
-
const { size
|
|
8248
|
+
const { size, icon, shape } = props;
|
|
8269
8249
|
const classList = [ns.b()];
|
|
8270
|
-
if (isString(
|
|
8271
|
-
classList.push(ns.m(
|
|
8250
|
+
if (isString(size))
|
|
8251
|
+
classList.push(ns.m(size));
|
|
8272
8252
|
if (icon)
|
|
8273
8253
|
classList.push(ns.m("icon"));
|
|
8274
8254
|
if (shape)
|
|
@@ -8276,9 +8256,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8276
8256
|
return classList;
|
|
8277
8257
|
});
|
|
8278
8258
|
const sizeStyle = computed(() => {
|
|
8279
|
-
const { size
|
|
8280
|
-
return isNumber(
|
|
8281
|
-
size: addUnit(
|
|
8259
|
+
const { size } = props;
|
|
8260
|
+
return isNumber(size) ? ns.cssVarBlock({
|
|
8261
|
+
size: addUnit(size) || ""
|
|
8282
8262
|
}) : void 0;
|
|
8283
8263
|
});
|
|
8284
8264
|
const fitStyle = computed(() => ({
|
|
@@ -9891,21 +9871,21 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
9891
9871
|
const classes = [];
|
|
9892
9872
|
const pos = ["span", "offset", "pull", "push"];
|
|
9893
9873
|
pos.forEach((prop) => {
|
|
9894
|
-
const
|
|
9895
|
-
if (isNumber(
|
|
9874
|
+
const size = props[prop];
|
|
9875
|
+
if (isNumber(size)) {
|
|
9896
9876
|
if (prop === "span")
|
|
9897
9877
|
classes.push(ns.b(`${props[prop]}`));
|
|
9898
|
-
else if (
|
|
9878
|
+
else if (size > 0)
|
|
9899
9879
|
classes.push(ns.b(`${prop}-${props[prop]}`));
|
|
9900
9880
|
}
|
|
9901
9881
|
});
|
|
9902
9882
|
const sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
9903
|
-
sizes.forEach((
|
|
9904
|
-
if (isNumber(props[
|
|
9905
|
-
classes.push(ns.b(`${
|
|
9906
|
-
} else if (isObject(props[
|
|
9907
|
-
Object.entries(props[
|
|
9908
|
-
classes.push(prop !== "span" ? ns.b(`${
|
|
9883
|
+
sizes.forEach((size) => {
|
|
9884
|
+
if (isNumber(props[size])) {
|
|
9885
|
+
classes.push(ns.b(`${size}-${props[size]}`));
|
|
9886
|
+
} else if (isObject(props[size])) {
|
|
9887
|
+
Object.entries(props[size]).forEach(([prop, sizeProp]) => {
|
|
9888
|
+
classes.push(prop !== "span" ? ns.b(`${size}-${prop}-${sizeProp}`) : ns.b(`${size}-${sizeProp}`));
|
|
9909
9889
|
});
|
|
9910
9890
|
}
|
|
9911
9891
|
});
|
|
@@ -11844,7 +11824,7 @@ const _sfc_main$J = defineComponent({
|
|
|
11844
11824
|
setup(props) {
|
|
11845
11825
|
const ns = useNamespace("dropdown");
|
|
11846
11826
|
const { _elDropdownSize } = useDropdown();
|
|
11847
|
-
const
|
|
11827
|
+
const size = _elDropdownSize.value;
|
|
11848
11828
|
const { focusTrapRef, onKeydown } = inject(FOCUS_TRAP_INJECTION_KEY, void 0);
|
|
11849
11829
|
const { contentRef, role, triggerId } = inject(DROPDOWN_INJECTION_KEY, void 0);
|
|
11850
11830
|
const { collectionRef: dropdownCollectionRef, getItems } = inject(COLLECTION_INJECTION_KEY, void 0);
|
|
@@ -11858,7 +11838,7 @@ const _sfc_main$J = defineComponent({
|
|
|
11858
11838
|
} = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);
|
|
11859
11839
|
const { collectionRef: rovingFocusGroupCollectionRef } = inject(COLLECTION_INJECTION_KEY$1, void 0);
|
|
11860
11840
|
const dropdownKls = computed(() => {
|
|
11861
|
-
return [ns.b("menu"), ns.bm("menu",
|
|
11841
|
+
return [ns.b("menu"), ns.bm("menu", size == null ? void 0 : size.value)];
|
|
11862
11842
|
});
|
|
11863
11843
|
const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
|
|
11864
11844
|
const composedKeydown = composeEventHandlers((e) => {
|
|
@@ -11885,7 +11865,7 @@ const _sfc_main$J = defineComponent({
|
|
|
11885
11865
|
onKeydown(e);
|
|
11886
11866
|
};
|
|
11887
11867
|
return {
|
|
11888
|
-
size
|
|
11868
|
+
size,
|
|
11889
11869
|
rovingFocusGroupRootStyle,
|
|
11890
11870
|
tabIndex,
|
|
11891
11871
|
dropdownKls,
|
|
@@ -11972,7 +11952,7 @@ const formProps = buildProps({
|
|
|
11972
11952
|
}
|
|
11973
11953
|
});
|
|
11974
11954
|
const formEmits = {
|
|
11975
|
-
validate: (prop, isValid,
|
|
11955
|
+
validate: (prop, isValid, message) => (isArray(prop) || isString(prop)) && isBoolean(isValid) && isString(message)
|
|
11976
11956
|
};
|
|
11977
11957
|
function useFormLabelWidth() {
|
|
11978
11958
|
const potentialLabelWidthArr = ref$1([]);
|
|
@@ -15752,20 +15732,20 @@ const defaultIconCustomisations = Object.freeze({
|
|
|
15752
15732
|
});
|
|
15753
15733
|
const unitsSplit = /(-?[0-9.]*[0-9]+[0-9.]*)/g;
|
|
15754
15734
|
const unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
15755
|
-
function calculateSize(
|
|
15735
|
+
function calculateSize(size, ratio, precision) {
|
|
15756
15736
|
if (ratio === 1) {
|
|
15757
|
-
return
|
|
15737
|
+
return size;
|
|
15758
15738
|
}
|
|
15759
15739
|
precision = precision || 100;
|
|
15760
|
-
if (typeof
|
|
15761
|
-
return Math.ceil(
|
|
15740
|
+
if (typeof size === "number") {
|
|
15741
|
+
return Math.ceil(size * ratio * precision) / precision;
|
|
15762
15742
|
}
|
|
15763
|
-
if (typeof
|
|
15764
|
-
return
|
|
15743
|
+
if (typeof size !== "string") {
|
|
15744
|
+
return size;
|
|
15765
15745
|
}
|
|
15766
|
-
const oldParts =
|
|
15746
|
+
const oldParts = size.split(unitsSplit);
|
|
15767
15747
|
if (oldParts === null || !oldParts.length) {
|
|
15768
|
-
return
|
|
15748
|
+
return size;
|
|
15769
15749
|
}
|
|
15770
15750
|
const newParts = [];
|
|
15771
15751
|
let code = oldParts.shift();
|
|
@@ -17715,9 +17695,9 @@ const _sfc_main$A = /* @__PURE__ */ Object.assign({ name: "Icon" }, {
|
|
|
17715
17695
|
return unref(isLocal) ? `#icon-${props.icon.split("svg-icon:")[1]}` : props.icon;
|
|
17716
17696
|
});
|
|
17717
17697
|
const getIconifyStyle = computed(() => {
|
|
17718
|
-
const { color, size
|
|
17698
|
+
const { color, size } = props;
|
|
17719
17699
|
return {
|
|
17720
|
-
fontSize: `${
|
|
17700
|
+
fontSize: `${size}px`,
|
|
17721
17701
|
height: "1em",
|
|
17722
17702
|
color
|
|
17723
17703
|
};
|
|
@@ -17795,9 +17775,9 @@ const {
|
|
|
17795
17775
|
getPrefixCls: getPrefixCls$5
|
|
17796
17776
|
} = useDesign();
|
|
17797
17777
|
const prefixCls$5 = getPrefixCls$5("menu");
|
|
17798
|
-
const appStore$5 = useAppStore();
|
|
17799
|
-
const layout$3 = computed(() => appStore$5.getLayout);
|
|
17800
17778
|
const useRenderMenuTitle = () => {
|
|
17779
|
+
const appStore = useAppStore();
|
|
17780
|
+
const layout = computed(() => appStore.getLayout);
|
|
17801
17781
|
const renderMenuTitle2 = (meta, level, mode) => {
|
|
17802
17782
|
const {
|
|
17803
17783
|
t: t2
|
|
@@ -17807,7 +17787,7 @@ const useRenderMenuTitle = () => {
|
|
|
17807
17787
|
icon
|
|
17808
17788
|
} = meta;
|
|
17809
17789
|
const isIcon = computed(() => {
|
|
17810
|
-
switch (layout
|
|
17790
|
+
switch (layout.value) {
|
|
17811
17791
|
case "left":
|
|
17812
17792
|
return level == 0;
|
|
17813
17793
|
case "top":
|
|
@@ -17829,9 +17809,9 @@ const useRenderMenuTitle = () => {
|
|
|
17829
17809
|
const {
|
|
17830
17810
|
renderMenuTitle
|
|
17831
17811
|
} = useRenderMenuTitle();
|
|
17832
|
-
const appStore$4 = useAppStore();
|
|
17833
|
-
const layout$2 = computed(() => appStore$4.getLayout);
|
|
17834
17812
|
const useRenderMenuItem = () => {
|
|
17813
|
+
const appStore = useAppStore();
|
|
17814
|
+
const layout = computed(() => appStore.getLayout);
|
|
17835
17815
|
const renderMenuItem = (routers, mode, parentPath = "/", level = 0) => {
|
|
17836
17816
|
const route = useRoute();
|
|
17837
17817
|
return routers.filter((v) => {
|
|
@@ -17851,7 +17831,7 @@ const useRenderMenuItem = () => {
|
|
|
17851
17831
|
default: () => renderMenuTitle(onlyOneChild ? onlyOneChild == null ? void 0 : onlyOneChild.meta : meta, level, mode)
|
|
17852
17832
|
});
|
|
17853
17833
|
} else {
|
|
17854
|
-
if (layout
|
|
17834
|
+
if (layout.value == "topLeft" && mode == "horizontal") {
|
|
17855
17835
|
const isActive = route.path.includes(fullPath);
|
|
17856
17836
|
isActive && getLeftMenuRouters(fullPath);
|
|
17857
17837
|
return createVNode(ElMenuItem, {
|
|
@@ -17896,15 +17876,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17896
17876
|
}
|
|
17897
17877
|
},
|
|
17898
17878
|
setup(props) {
|
|
17899
|
-
const
|
|
17900
|
-
const
|
|
17879
|
+
const appStore = useAppStore();
|
|
17880
|
+
const layout = computed(() => appStore.getLayout);
|
|
17901
17881
|
const {
|
|
17902
17882
|
push: push2,
|
|
17903
17883
|
currentRoute
|
|
17904
17884
|
} = useRouter();
|
|
17905
17885
|
const permissionStore2 = usePermissionStore();
|
|
17906
17886
|
const menuMode = computed(() => {
|
|
17907
|
-
switch (unref(
|
|
17887
|
+
switch (unref(layout)) {
|
|
17908
17888
|
case "left":
|
|
17909
17889
|
return "vertical";
|
|
17910
17890
|
case "top":
|
|
@@ -17914,14 +17894,14 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17914
17894
|
}
|
|
17915
17895
|
});
|
|
17916
17896
|
const routers = computed(() => {
|
|
17917
|
-
if (
|
|
17897
|
+
if (layout.value == "topLeft" && props.mode == "vertical") {
|
|
17918
17898
|
return permissionStore2.getLeftMenuRouters;
|
|
17919
17899
|
} else {
|
|
17920
17900
|
return permissionStore2.getRouters;
|
|
17921
17901
|
}
|
|
17922
17902
|
});
|
|
17923
|
-
const
|
|
17924
|
-
const uniqueOpened = computed(() =>
|
|
17903
|
+
const collapse = computed(() => appStore.getCollapse);
|
|
17904
|
+
const uniqueOpened = computed(() => appStore.getUniqueOpened);
|
|
17925
17905
|
const activeMenu = computed(() => {
|
|
17926
17906
|
const {
|
|
17927
17907
|
meta,
|
|
@@ -17939,7 +17919,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17939
17919
|
if (isUrl(index)) {
|
|
17940
17920
|
window.open(index);
|
|
17941
17921
|
} else {
|
|
17942
|
-
if (
|
|
17922
|
+
if (layout.value == "topLeft" && props.mode == "horizontal") {
|
|
17943
17923
|
getLeftMenuRouters(index, push2);
|
|
17944
17924
|
} else {
|
|
17945
17925
|
push2(index);
|
|
@@ -17947,7 +17927,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17947
17927
|
}
|
|
17948
17928
|
};
|
|
17949
17929
|
const renderMenuWrap = () => {
|
|
17950
|
-
if (unref(
|
|
17930
|
+
if (unref(layout) === "top") {
|
|
17951
17931
|
return renderMenu();
|
|
17952
17932
|
} else {
|
|
17953
17933
|
let _slot;
|
|
@@ -17960,8 +17940,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17960
17940
|
return createVNode(ElMenu, {
|
|
17961
17941
|
"defaultActive": unref(activeMenu),
|
|
17962
17942
|
"mode": unref(menuMode),
|
|
17963
|
-
"collapse": unref(
|
|
17964
|
-
"uniqueOpened": unref(
|
|
17943
|
+
"collapse": unref(layout) === "top" || unref(layout) === "topLeft" && props.mode === "horizontal" ? false : unref(collapse),
|
|
17944
|
+
"uniqueOpened": unref(layout) === "top" ? false : unref(uniqueOpened),
|
|
17965
17945
|
"backgroundColor": "transparent",
|
|
17966
17946
|
"textColor": "var(--left-menu-text-color)",
|
|
17967
17947
|
"activeTextColor": "var(--left-menu-text-active-color)",
|
|
@@ -17979,9 +17959,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17979
17959
|
return () => createVNode("div", {
|
|
17980
17960
|
"id": prefixCls$4,
|
|
17981
17961
|
"class": [`${prefixCls$4} ${prefixCls$4}__${unref(menuMode)}`, "h-[100%] overflow-hidden flex-col", {
|
|
17982
|
-
"w-[var(--left-menu-min-width)]": unref(
|
|
17983
|
-
"w-[var(--left-menu-max-width)]": !unref(
|
|
17984
|
-
"bg-[linear-gradient(var(--left-menu-bg-color))]": unref(
|
|
17962
|
+
"w-[var(--left-menu-min-width)]": unref(collapse),
|
|
17963
|
+
"w-[var(--left-menu-max-width)]": !unref(collapse),
|
|
17964
|
+
"bg-[linear-gradient(var(--left-menu-bg-color))]": unref(layout) == "left" || unref(layout) == "topLeft" && props.mode == "vertical"
|
|
17985
17965
|
}]
|
|
17986
17966
|
}, [renderMenuWrap()]);
|
|
17987
17967
|
}
|
|
@@ -21856,16 +21836,16 @@ service.interceptors.response.use(
|
|
|
21856
21836
|
},
|
|
21857
21837
|
(error) => {
|
|
21858
21838
|
console.log("err" + error);
|
|
21859
|
-
let { message
|
|
21839
|
+
let { message } = error;
|
|
21860
21840
|
const { t: t2 } = useI18n();
|
|
21861
|
-
if (
|
|
21862
|
-
|
|
21863
|
-
} else if (
|
|
21864
|
-
|
|
21865
|
-
} else if (
|
|
21866
|
-
|
|
21867
|
-
}
|
|
21868
|
-
ElMessage.error(
|
|
21841
|
+
if (message === "Network Error") {
|
|
21842
|
+
message = t2("sys.api.errorMessage");
|
|
21843
|
+
} else if (message.includes("timeout")) {
|
|
21844
|
+
message = t2("sys.api.apiTimeoutMessage");
|
|
21845
|
+
} else if (message.includes("Request failed with status code")) {
|
|
21846
|
+
message = t2("sys.api.apiRequestFailed") + message.substr(message.length - 3);
|
|
21847
|
+
}
|
|
21848
|
+
ElMessage.error(message);
|
|
21869
21849
|
return Promise.reject(error);
|
|
21870
21850
|
}
|
|
21871
21851
|
);
|
|
@@ -22454,10 +22434,10 @@ const _sfc_main$x = /* @__PURE__ */ Object.assign({ name: "TagsView" }, {
|
|
|
22454
22434
|
const affixTagArr = ref$1([]);
|
|
22455
22435
|
const selectedTag = computed(() => tagsViewStore.getSelectedTag);
|
|
22456
22436
|
const setSelectTag = tagsViewStore.setSelectedTag;
|
|
22457
|
-
const
|
|
22458
|
-
const tagsViewImmerse = computed(() =>
|
|
22459
|
-
const tagsViewIcon = computed(() =>
|
|
22460
|
-
const isDark = computed(() =>
|
|
22437
|
+
const appStore = useAppStore();
|
|
22438
|
+
const tagsViewImmerse = computed(() => appStore.getTagsViewImmerse);
|
|
22439
|
+
const tagsViewIcon = computed(() => appStore.getTagsViewIcon);
|
|
22440
|
+
const isDark = computed(() => appStore.getIsDark);
|
|
22461
22441
|
const initTags = () => {
|
|
22462
22442
|
affixTagArr.value = filterAffixTags(unref(routers));
|
|
22463
22443
|
for (const tag of unref(affixTagArr)) {
|
|
@@ -23181,16 +23161,16 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
|
|
|
23181
23161
|
setup(__props) {
|
|
23182
23162
|
const { getPrefixCls: getPrefixCls2 } = useDesign();
|
|
23183
23163
|
const prefixCls2 = getPrefixCls2("logo");
|
|
23184
|
-
const
|
|
23185
|
-
const title = computed(() =>
|
|
23186
|
-
const
|
|
23187
|
-
const
|
|
23164
|
+
const appStore = useAppStore();
|
|
23165
|
+
const title = computed(() => appStore.getTitle);
|
|
23166
|
+
const layout = computed(() => appStore.getLayout);
|
|
23167
|
+
const theme = computed(() => appStore.getTheme);
|
|
23188
23168
|
const panelVisible = ref$1(false);
|
|
23189
23169
|
const togglePanel = (isActive) => {
|
|
23190
23170
|
panelVisible.value = isActive;
|
|
23191
23171
|
};
|
|
23192
23172
|
const fontColor = computed(() => {
|
|
23193
|
-
return
|
|
23173
|
+
return theme.value === "whiteLight" ? "var(--el-color-primary)" : "#fff";
|
|
23194
23174
|
});
|
|
23195
23175
|
return (_ctx, _cache) => {
|
|
23196
23176
|
const _component_Icon = _sfc_main$A;
|
|
@@ -23217,7 +23197,7 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
|
|
|
23217
23197
|
class: normalizeClass([
|
|
23218
23198
|
"ml-10px text-16px font-700",
|
|
23219
23199
|
{
|
|
23220
|
-
"text-[var(--top-header-text-color)]": ["left", "top", "topLeft"].includes(
|
|
23200
|
+
"text-[var(--top-header-text-color)]": ["left", "top", "topLeft"].includes(layout.value)
|
|
23221
23201
|
}
|
|
23222
23202
|
]),
|
|
23223
23203
|
style: normalizeStyle({ color: fontColor.value })
|
|
@@ -23235,13 +23215,13 @@ const _hoisted_1$h = { class: "w-full min-w-1000px" };
|
|
|
23235
23215
|
const _sfc_main$t = /* @__PURE__ */ Object.assign({ name: "AppView" }, {
|
|
23236
23216
|
__name: "AppView",
|
|
23237
23217
|
setup(__props) {
|
|
23238
|
-
const
|
|
23239
|
-
computed(() =>
|
|
23218
|
+
const appStore = useAppStore();
|
|
23219
|
+
computed(() => appStore.getFooter);
|
|
23240
23220
|
const tagsViewStore = useTagsViewStore();
|
|
23241
23221
|
const getCaches = computed(() => {
|
|
23242
23222
|
return tagsViewStore.getCachedViews;
|
|
23243
23223
|
});
|
|
23244
|
-
computed(() =>
|
|
23224
|
+
computed(() => appStore.getTagsView);
|
|
23245
23225
|
const routerAlive = ref$1(true);
|
|
23246
23226
|
const reload = () => {
|
|
23247
23227
|
routerAlive.value = false;
|
|
@@ -23325,11 +23305,11 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Collapse" }, {
|
|
|
23325
23305
|
setup(__props) {
|
|
23326
23306
|
const { getPrefixCls: getPrefixCls2 } = useDesign();
|
|
23327
23307
|
const prefixCls2 = getPrefixCls2("collapse");
|
|
23328
|
-
const
|
|
23329
|
-
const
|
|
23308
|
+
const appStore = useAppStore();
|
|
23309
|
+
const collapse = computed(() => appStore.getCollapse);
|
|
23330
23310
|
const toggleCollapse = () => {
|
|
23331
|
-
const collapsed = unref(
|
|
23332
|
-
|
|
23311
|
+
const collapsed = unref(collapse);
|
|
23312
|
+
appStore.setCollapse(!collapsed);
|
|
23333
23313
|
};
|
|
23334
23314
|
return (_ctx, _cache) => {
|
|
23335
23315
|
const _component_Icon = _sfc_main$A;
|
|
@@ -23339,7 +23319,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Collapse" }, {
|
|
|
23339
23319
|
}, [
|
|
23340
23320
|
createVNode(_component_Icon, {
|
|
23341
23321
|
color: __props.color,
|
|
23342
|
-
icon: unref(
|
|
23322
|
+
icon: unref(collapse) ? "ant-design:menu-unfold-outlined" : "ant-design:menu-fold-outlined",
|
|
23343
23323
|
class: "cursor-pointer"
|
|
23344
23324
|
}, null, 8, ["color", "icon"])
|
|
23345
23325
|
], 2);
|
|
@@ -23349,36 +23329,36 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Collapse" }, {
|
|
|
23349
23329
|
const avatarImg = "data:image/gif;base64,R0lGODlhUABQAPYAAGTZ1v+Yy/7+/gAAAFS3tc/S0v/S6DuAfwoWFXfd2+j5+Nj19On5+Zjl4xo6OcLu7afp57jt7A4gH8zy8YDf3ajp51/X1Mvy8YXh3ozi4FjBvtnZ2VdXVyRQ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zmigq7CoQYPQCiYSlTD1q2BAQAAIfkEBQQAAQAsDwAXAB4AGgAAB/SAAYKDhIWCGIUJhouGCRALAgILjpCSAJcAjIQJD5GRhZ5amJmaWAqemgoJo5oQqIwLERSjpIYYr4UKEau0mgGVAgoKggIBD72+h54KD8QBWKzJgxGeF4UXGLXSgp3FjBDa0tTe3+G+ruTC6uoJLu4uyQnkVhz1DgP4DvUcA3bmhFrIBfB0YoCgE1e4cFlB498gV4sUFJGwQgCbLVesuHAoCCIjVJFEJQu4LYACc9FMlgwgQgYhWqSorTQEM9OCmYVqAlC0CMk2AFqw8HI0rJAVB4w8+BmEBRdOQxc8SRVYUoOgplM/PR3k6MOCCx8gQCBkpWQgACH5BAUEAAYALBEAFAAZACEAAAf7gAaCg4QGFAmCCRSFjI0XAgINEJARjZYGH5ACDJoMl4wNmqICF4MAnwacoqYAra2Xk5CEDAmutpYLsp6CELa3jQKCDLsMvq6Wi4ILgxe+qA3MwQYRr6gGANAGAh+DEYjW19mkhJuVqAAZn5vJlgDslpvfjdVIN/b39isvMTsxp4WtdhlIkuTGAEE4UCh8IeMfoVbLCCGZYsBDgSsBvCAR4ZCVwEFIUCQJxmZTtYcAPn56x6qUNQEQ2mWzdkKGEkYBwX0C4NKSynnmdF6r1mrmoAIOGk0x1iqdUKbohA71lSCoTlsZckmTOkjVVgMFpHqVKDXrAm5crYW9FAgAOw==";
|
|
23350
23330
|
const { t: t$1 } = useI18n();
|
|
23351
23331
|
const useValidator = () => {
|
|
23352
|
-
const required4 = (
|
|
23332
|
+
const required4 = (message) => {
|
|
23353
23333
|
return {
|
|
23354
23334
|
required: true,
|
|
23355
|
-
message:
|
|
23335
|
+
message: message || t$1("common.required")
|
|
23356
23336
|
};
|
|
23357
23337
|
};
|
|
23358
23338
|
const lengthRange = (options) => {
|
|
23359
|
-
const { min: min2, max: max2, message
|
|
23339
|
+
const { min: min2, max: max2, message } = options;
|
|
23360
23340
|
return {
|
|
23361
23341
|
min: min2,
|
|
23362
23342
|
max: max2,
|
|
23363
|
-
message:
|
|
23343
|
+
message: message || t$1("common.lengthRange", { min: min2, max: max2 })
|
|
23364
23344
|
};
|
|
23365
23345
|
};
|
|
23366
|
-
const notSpace = (
|
|
23346
|
+
const notSpace = (message) => {
|
|
23367
23347
|
return {
|
|
23368
23348
|
validator: (_2, val, callback2) => {
|
|
23369
23349
|
if ((val == null ? void 0 : val.indexOf(" ")) !== -1) {
|
|
23370
|
-
callback2(new Error(
|
|
23350
|
+
callback2(new Error(message || t$1("common.notSpace")));
|
|
23371
23351
|
} else {
|
|
23372
23352
|
callback2();
|
|
23373
23353
|
}
|
|
23374
23354
|
}
|
|
23375
23355
|
};
|
|
23376
23356
|
};
|
|
23377
|
-
const notSpecialCharacters = (
|
|
23357
|
+
const notSpecialCharacters = (message) => {
|
|
23378
23358
|
return {
|
|
23379
23359
|
validator: (_2, val, callback2) => {
|
|
23380
23360
|
if (/[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/gi.test(val)) {
|
|
23381
|
-
callback2(new Error(
|
|
23361
|
+
callback2(new Error(message || t$1("common.notSpecialCharacters")));
|
|
23382
23362
|
} else {
|
|
23383
23363
|
callback2();
|
|
23384
23364
|
}
|
|
@@ -23930,11 +23910,11 @@ const {
|
|
|
23930
23910
|
getPrefixCls: getPrefixCls$3
|
|
23931
23911
|
} = useDesign();
|
|
23932
23912
|
const prefixCls$3 = getPrefixCls$3("breadcrumb");
|
|
23933
|
-
const appStore$3 = useAppStore();
|
|
23934
|
-
const breadcrumbIcon = computed(() => appStore$3.getBreadcrumbIcon);
|
|
23935
23913
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
23936
23914
|
name: "Breadcrumb",
|
|
23937
23915
|
setup() {
|
|
23916
|
+
const appStore = useAppStore();
|
|
23917
|
+
const breadcrumbIcon = computed(() => appStore.getBreadcrumbIcon);
|
|
23938
23918
|
const {
|
|
23939
23919
|
currentRoute
|
|
23940
23920
|
} = useRouter();
|
|
@@ -24001,7 +23981,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
24001
23981
|
};
|
|
24002
23982
|
}
|
|
24003
23983
|
});
|
|
24004
|
-
const Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
23984
|
+
const Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ae72fbd3"]]);
|
|
24005
23985
|
const _sfc_main$l = /* @__PURE__ */ Object.assign({ name: "SizeDropdown" }, {
|
|
24006
23986
|
__name: "SizeDropdown",
|
|
24007
23987
|
props: {
|
|
@@ -24014,10 +23994,10 @@ const _sfc_main$l = /* @__PURE__ */ Object.assign({ name: "SizeDropdown" }, {
|
|
|
24014
23994
|
const { getPrefixCls: getPrefixCls2 } = useDesign();
|
|
24015
23995
|
const prefixCls2 = getPrefixCls2("size-dropdown");
|
|
24016
23996
|
const { t: t2 } = useI18n();
|
|
24017
|
-
const
|
|
24018
|
-
const sizeMap = computed(() =>
|
|
24019
|
-
const setCurrentSize = (
|
|
24020
|
-
|
|
23997
|
+
const appStore = useAppStore();
|
|
23998
|
+
const sizeMap = computed(() => appStore.sizeMap);
|
|
23999
|
+
const setCurrentSize = (size) => {
|
|
24000
|
+
appStore.setCurrentSize(size);
|
|
24021
24001
|
};
|
|
24022
24002
|
return (_ctx, _cache) => {
|
|
24023
24003
|
const _component_Icon = _sfc_main$A;
|
|
@@ -24291,29 +24271,29 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
24291
24271
|
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
|
|
24292
24272
|
});
|
|
24293
24273
|
};
|
|
24294
|
-
const setHtmlPageLang = (
|
|
24274
|
+
const setHtmlPageLang = (locale) => {
|
|
24295
24275
|
var _a2;
|
|
24296
|
-
(_a2 = document.querySelector("html")) == null ? void 0 : _a2.setAttribute("lang",
|
|
24276
|
+
(_a2 = document.querySelector("html")) == null ? void 0 : _a2.setAttribute("lang", locale);
|
|
24297
24277
|
};
|
|
24298
24278
|
let i18n;
|
|
24299
|
-
const setI18nLanguage = (
|
|
24279
|
+
const setI18nLanguage = (locale) => {
|
|
24300
24280
|
const localeStore = useLocaleStoreWithOut();
|
|
24301
24281
|
if (i18n.mode === "legacy")
|
|
24302
24282
|
;
|
|
24303
24283
|
else {
|
|
24304
|
-
i18n.global.locale.value =
|
|
24284
|
+
i18n.global.locale.value = locale;
|
|
24305
24285
|
}
|
|
24306
24286
|
localeStore.setCurrentLocale({
|
|
24307
|
-
lang:
|
|
24287
|
+
lang: locale
|
|
24308
24288
|
});
|
|
24309
|
-
setHtmlPageLang(
|
|
24289
|
+
setHtmlPageLang(locale);
|
|
24310
24290
|
};
|
|
24311
24291
|
const useLocale = () => {
|
|
24312
|
-
const changeLocale = async (
|
|
24292
|
+
const changeLocale = async (locale) => {
|
|
24313
24293
|
const globalI18n = i18n.global;
|
|
24314
|
-
const langModule = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../locales/en.js": () => import("./en-BZsoY3yy.mjs"), "../../locales/zh-CN.js": () => import("./zh-CN-DzBYGIAl.mjs") }), `../../locales/${
|
|
24315
|
-
globalI18n.setLocaleMessage(
|
|
24316
|
-
setI18nLanguage(
|
|
24294
|
+
const langModule = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../locales/en.js": () => import("./en-BZsoY3yy.mjs"), "../../locales/zh-CN.js": () => import("./zh-CN-DzBYGIAl.mjs") }), `../../locales/${locale}.js`);
|
|
24295
|
+
globalI18n.setLocaleMessage(locale, langModule.default);
|
|
24296
|
+
setI18nLanguage(locale);
|
|
24317
24297
|
};
|
|
24318
24298
|
return {
|
|
24319
24299
|
changeLocale
|
|
@@ -24415,10 +24395,10 @@ const _sfc_main$j = {
|
|
|
24415
24395
|
]);
|
|
24416
24396
|
const emits = __emit;
|
|
24417
24397
|
const { t: t2 } = useI18n();
|
|
24418
|
-
const
|
|
24419
|
-
const
|
|
24398
|
+
const appStore = useAppStore();
|
|
24399
|
+
const theme = computed(() => appStore.getTheme);
|
|
24420
24400
|
const handleClick = (item) => {
|
|
24421
|
-
if (
|
|
24401
|
+
if (theme.value === item.key)
|
|
24422
24402
|
return;
|
|
24423
24403
|
emits("change", item.key);
|
|
24424
24404
|
};
|
|
@@ -24428,13 +24408,13 @@ const _sfc_main$j = {
|
|
|
24428
24408
|
createElementVNode("div", _hoisted_1$c, [
|
|
24429
24409
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(themeList), (item) => {
|
|
24430
24410
|
return openBlock(), createElementBlock("div", {
|
|
24431
|
-
class: normalizeClass(["item", { "active": unref(
|
|
24411
|
+
class: normalizeClass(["item", { "active": unref(theme) === item.key }]),
|
|
24432
24412
|
key: item.key,
|
|
24433
24413
|
onClick: ($event) => handleClick(item)
|
|
24434
24414
|
}, [
|
|
24435
24415
|
createElementVNode("div", {
|
|
24436
24416
|
class: "border",
|
|
24437
|
-
style: normalizeStyle({ borderColor: unref(
|
|
24417
|
+
style: normalizeStyle({ borderColor: unref(theme) === item.key ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
24438
24418
|
}, [
|
|
24439
24419
|
createElementVNode("div", {
|
|
24440
24420
|
class: "square",
|
|
@@ -24467,10 +24447,10 @@ const _sfc_main$i = {
|
|
|
24467
24447
|
setup(__props, { emit: __emit }) {
|
|
24468
24448
|
const emits = __emit;
|
|
24469
24449
|
const { t: t2 } = useI18n();
|
|
24470
|
-
const
|
|
24471
|
-
const
|
|
24450
|
+
const appStore = useAppStore();
|
|
24451
|
+
const theme = computed(() => appStore.getTheme);
|
|
24472
24452
|
const handleClick = (key) => {
|
|
24473
|
-
if (
|
|
24453
|
+
if (theme.value === key)
|
|
24474
24454
|
return;
|
|
24475
24455
|
emits("change", key);
|
|
24476
24456
|
};
|
|
@@ -24479,36 +24459,36 @@ const _sfc_main$i = {
|
|
|
24479
24459
|
createElementVNode("div", _hoisted_1$b, toDisplayString(unref(t2)("setting.festivalTheme")), 1),
|
|
24480
24460
|
createElementVNode("div", _hoisted_2$5, [
|
|
24481
24461
|
createElementVNode("div", {
|
|
24482
|
-
class: normalizeClass(["item", { "active": unref(
|
|
24462
|
+
class: normalizeClass(["item", { "active": unref(theme) === "springFestival" }]),
|
|
24483
24463
|
onClick: _cache[0] || (_cache[0] = ($event) => handleClick("springFestival"))
|
|
24484
24464
|
}, [
|
|
24485
24465
|
createElementVNode("div", {
|
|
24486
24466
|
class: "border",
|
|
24487
|
-
style: normalizeStyle({ borderColor: unref(
|
|
24467
|
+
style: normalizeStyle({ borderColor: unref(theme) === "springFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
24488
24468
|
}, [
|
|
24489
24469
|
createElementVNode("img", { src: unref(Chunjie) }, null, 8, _hoisted_3$5)
|
|
24490
24470
|
], 4),
|
|
24491
24471
|
_cache[4] || (_cache[4] = createElementVNode("div", { class: "name" }, "春节", -1))
|
|
24492
24472
|
], 2),
|
|
24493
24473
|
createElementVNode("div", {
|
|
24494
|
-
class: normalizeClass(["item", { "active": unref(
|
|
24474
|
+
class: normalizeClass(["item", { "active": unref(theme) === "dragonBoatFestival" }]),
|
|
24495
24475
|
onClick: _cache[1] || (_cache[1] = ($event) => handleClick("dragonBoatFestival"))
|
|
24496
24476
|
}, [
|
|
24497
24477
|
createElementVNode("div", {
|
|
24498
24478
|
class: "border",
|
|
24499
|
-
style: normalizeStyle({ borderColor: unref(
|
|
24479
|
+
style: normalizeStyle({ borderColor: unref(theme) === "dragonBoatFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
24500
24480
|
}, [
|
|
24501
24481
|
createElementVNode("img", { src: unref(Duanwu) }, null, 8, _hoisted_4$5)
|
|
24502
24482
|
], 4),
|
|
24503
24483
|
_cache[5] || (_cache[5] = createElementVNode("div", { class: "name" }, "端午", -1))
|
|
24504
24484
|
], 2),
|
|
24505
24485
|
createElementVNode("div", {
|
|
24506
|
-
class: normalizeClass(["item", { "active": unref(
|
|
24486
|
+
class: normalizeClass(["item", { "active": unref(theme) === "midAutumnFestival" }]),
|
|
24507
24487
|
onClick: _cache[2] || (_cache[2] = ($event) => handleClick("midAutumnFestival"))
|
|
24508
24488
|
}, [
|
|
24509
24489
|
createElementVNode("div", {
|
|
24510
24490
|
class: "border",
|
|
24511
|
-
style: normalizeStyle({ borderColor: unref(
|
|
24491
|
+
style: normalizeStyle({ borderColor: unref(theme) === "midAutumnFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
24512
24492
|
}, [
|
|
24513
24493
|
createElementVNode("img", { src: unref(Zhongqiu) }, null, 8, _hoisted_5$3)
|
|
24514
24494
|
], 4),
|
|
@@ -24517,12 +24497,12 @@ const _sfc_main$i = {
|
|
|
24517
24497
|
]),
|
|
24518
24498
|
createElementVNode("div", _hoisted_6$1, [
|
|
24519
24499
|
createElementVNode("div", {
|
|
24520
|
-
class: normalizeClass(["item", { "active": unref(
|
|
24500
|
+
class: normalizeClass(["item", { "active": unref(theme) === "newYearsDay" }]),
|
|
24521
24501
|
onClick: _cache[3] || (_cache[3] = ($event) => handleClick("newYearsDay"))
|
|
24522
24502
|
}, [
|
|
24523
24503
|
createElementVNode("div", {
|
|
24524
24504
|
class: "border",
|
|
24525
|
-
style: normalizeStyle({ borderColor: unref(
|
|
24505
|
+
style: normalizeStyle({ borderColor: unref(theme) === "newYearsDay" ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
24526
24506
|
}, [
|
|
24527
24507
|
createElementVNode("img", { src: unref(Yuandan) }, null, 8, _hoisted_7$1)
|
|
24528
24508
|
], 4),
|
|
@@ -24546,8 +24526,8 @@ const _sfc_main$h = {
|
|
|
24546
24526
|
setup(__props, { emit: __emit }) {
|
|
24547
24527
|
const emits = __emit;
|
|
24548
24528
|
const { t: t2 } = useI18n();
|
|
24549
|
-
const
|
|
24550
|
-
const
|
|
24529
|
+
const appStore = useAppStore();
|
|
24530
|
+
const layout = computed(() => appStore.getLayout);
|
|
24551
24531
|
const layoutItems = ref$1([
|
|
24552
24532
|
{
|
|
24553
24533
|
key: "left",
|
|
@@ -24566,7 +24546,7 @@ const _sfc_main$h = {
|
|
|
24566
24546
|
}
|
|
24567
24547
|
]);
|
|
24568
24548
|
const handleClick = (item) => {
|
|
24569
|
-
if (
|
|
24549
|
+
if (layout.value === item.key)
|
|
24570
24550
|
return;
|
|
24571
24551
|
emits("change", item.key);
|
|
24572
24552
|
};
|
|
@@ -24583,7 +24563,7 @@ const _sfc_main$h = {
|
|
|
24583
24563
|
}, [
|
|
24584
24564
|
createElementVNode("div", {
|
|
24585
24565
|
class: "border",
|
|
24586
|
-
style: normalizeStyle({ borderColor: unref(
|
|
24566
|
+
style: normalizeStyle({ borderColor: unref(layout) === item.key ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
24587
24567
|
}, [
|
|
24588
24568
|
createVNode(_component_Icon, {
|
|
24589
24569
|
icon: item.icon,
|
|
@@ -24612,23 +24592,23 @@ const _sfc_main$g = /* @__PURE__ */ Object.assign({ name: "Setting" }, {
|
|
|
24612
24592
|
},
|
|
24613
24593
|
setup(__props) {
|
|
24614
24594
|
const { t: t2 } = useI18n();
|
|
24615
|
-
const
|
|
24595
|
+
const appStore = useAppStore();
|
|
24616
24596
|
const userStore = useUserStore();
|
|
24617
24597
|
const tagsViewStore = useTagsViewStore();
|
|
24618
24598
|
const { getPrefixCls: getPrefixCls2 } = useDesign();
|
|
24619
24599
|
const prefixCls2 = getPrefixCls2("setting");
|
|
24620
24600
|
const drawerCls = getPrefixCls2("setting-drawer");
|
|
24621
24601
|
const overlayCls = getPrefixCls2("setting-drawer-overlay");
|
|
24622
|
-
computed(() =>
|
|
24623
|
-
computed(() =>
|
|
24602
|
+
computed(() => appStore.getLayout);
|
|
24603
|
+
computed(() => appStore.getCurrentTheme);
|
|
24624
24604
|
const drawer = ref$1(false);
|
|
24625
24605
|
const copyConfig = async () => {
|
|
24626
24606
|
const { copy, copied, isSupported } = useClipboard({
|
|
24627
24607
|
source: `
|
|
24628
24608
|
// 主题相关
|
|
24629
|
-
theme: '${
|
|
24609
|
+
theme: '${appStore.getTheme}',
|
|
24630
24610
|
// 布局相关
|
|
24631
|
-
layout: '${
|
|
24611
|
+
layout: '${appStore.getLayout}'
|
|
24632
24612
|
`
|
|
24633
24613
|
});
|
|
24634
24614
|
if (!isSupported) {
|
|
@@ -24641,7 +24621,7 @@ const _sfc_main$g = /* @__PURE__ */ Object.assign({ name: "Setting" }, {
|
|
|
24641
24621
|
}
|
|
24642
24622
|
};
|
|
24643
24623
|
const clearCache = async () => {
|
|
24644
|
-
await saveTheme({ theme: "
|
|
24624
|
+
await saveTheme({ theme: "whiteLight", layout: "left" });
|
|
24645
24625
|
const { wsCache: wsCache2 } = useCache();
|
|
24646
24626
|
wsCache2.delete(CACHE_KEY.THEME);
|
|
24647
24627
|
wsCache2.delete(CACHE_KEY.LAYOUT);
|
|
@@ -24649,16 +24629,16 @@ const _sfc_main$g = /* @__PURE__ */ Object.assign({ name: "Setting" }, {
|
|
|
24649
24629
|
tagsViewStore.delAllViews();
|
|
24650
24630
|
window.location.reload();
|
|
24651
24631
|
};
|
|
24652
|
-
const themeChange = async (
|
|
24653
|
-
await saveTheme({ theme
|
|
24654
|
-
|
|
24655
|
-
|
|
24632
|
+
const themeChange = async (theme) => {
|
|
24633
|
+
await saveTheme({ theme, layout: appStore.getLayout });
|
|
24634
|
+
appStore.setTheme(theme);
|
|
24635
|
+
appStore.setCssVarTheme();
|
|
24656
24636
|
};
|
|
24657
|
-
const layoutChange = async (
|
|
24658
|
-
await saveTheme({ theme:
|
|
24659
|
-
|
|
24637
|
+
const layoutChange = async (layout) => {
|
|
24638
|
+
await saveTheme({ theme: appStore.getTheme, layout });
|
|
24639
|
+
appStore.setLayout(layout);
|
|
24660
24640
|
};
|
|
24661
|
-
const saveTheme = async ({ theme
|
|
24641
|
+
const saveTheme = async ({ theme, layout }) => {
|
|
24662
24642
|
ElMessage({
|
|
24663
24643
|
type: "success",
|
|
24664
24644
|
message: t2("common.updateSuccess"),
|
|
@@ -24726,7 +24706,7 @@ const _sfc_main$g = /* @__PURE__ */ Object.assign({ name: "Setting" }, {
|
|
|
24726
24706
|
};
|
|
24727
24707
|
}
|
|
24728
24708
|
});
|
|
24729
|
-
const Setting = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
24709
|
+
const Setting = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ecc4cd42"]]);
|
|
24730
24710
|
const _sfc_main$f = {
|
|
24731
24711
|
__name: "index",
|
|
24732
24712
|
props: {
|
|
@@ -24863,27 +24843,27 @@ const {
|
|
|
24863
24843
|
variables
|
|
24864
24844
|
} = useDesign();
|
|
24865
24845
|
const prefixCls$2 = getPrefixCls$2("tool-header");
|
|
24866
|
-
const appStore$2 = useAppStore();
|
|
24867
|
-
const breadcrumb = computed(() => appStore$2.getBreadcrumb);
|
|
24868
|
-
const hamburger = computed(() => appStore$2.getHamburger);
|
|
24869
|
-
const screenfull = computed(() => appStore$2.getScreenfull);
|
|
24870
|
-
const search = computed(() => appStore$2.search);
|
|
24871
|
-
const size = computed(() => appStore$2.getSize);
|
|
24872
|
-
const layout$1 = computed(() => appStore$2.getLayout);
|
|
24873
|
-
const locale = computed(() => appStore$2.getLocale);
|
|
24874
|
-
const message = computed(() => appStore$2.getMessage);
|
|
24875
|
-
const setting = computed(() => appStore$2.getSetting);
|
|
24876
24846
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
24877
24847
|
name: "ToolHeader",
|
|
24878
24848
|
setup(props, {
|
|
24879
24849
|
slots
|
|
24880
24850
|
}) {
|
|
24851
|
+
const appStore = useAppStore();
|
|
24852
|
+
const breadcrumb = computed(() => appStore.getBreadcrumb);
|
|
24853
|
+
const hamburger = computed(() => appStore.getHamburger);
|
|
24854
|
+
const screenfull = computed(() => appStore.getScreenfull);
|
|
24855
|
+
const search = computed(() => appStore.search);
|
|
24856
|
+
const size = computed(() => appStore.getSize);
|
|
24857
|
+
const layout = computed(() => appStore.getLayout);
|
|
24858
|
+
const locale = computed(() => appStore.getLocale);
|
|
24859
|
+
const message = computed(() => appStore.getMessage);
|
|
24860
|
+
const setting = computed(() => appStore.getSetting);
|
|
24881
24861
|
return () => {
|
|
24882
24862
|
var _a2;
|
|
24883
24863
|
return createVNode("div", {
|
|
24884
24864
|
"id": `${variables.namespace}-tool-header`,
|
|
24885
24865
|
"class": [prefixCls$2, "h-[var(--top-tool-height)] relative px-[var(--top-tool-p-x)] flex items-center justify-between", "dark:bg-[var(--el-bg-color)]"]
|
|
24886
|
-
}, [layout
|
|
24866
|
+
}, [layout.value !== "top" ? createVNode("div", {
|
|
24887
24867
|
"class": "h-full flex items-center"
|
|
24888
24868
|
}, [hamburger.value ? createVNode(_sfc_main$r, {
|
|
24889
24869
|
"class": "custom-hover",
|
|
@@ -24913,54 +24893,54 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24913
24893
|
};
|
|
24914
24894
|
}
|
|
24915
24895
|
});
|
|
24916
|
-
const ToolHeader = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
24896
|
+
const ToolHeader = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-94b4a179"]]);
|
|
24917
24897
|
const {
|
|
24918
24898
|
getPrefixCls: getPrefixCls$1
|
|
24919
24899
|
} = useDesign();
|
|
24920
24900
|
const prefixCls$1 = getPrefixCls$1("layout");
|
|
24921
|
-
const appStore$1 = useAppStore();
|
|
24922
|
-
const pageLoading = computed(() => appStore$1.getPageLoading);
|
|
24923
|
-
const tagsView = computed(() => appStore$1.getTagsView);
|
|
24924
|
-
const collapse$1 = computed(() => appStore$1.getCollapse);
|
|
24925
|
-
const logo = computed(() => appStore$1.logo);
|
|
24926
|
-
const fixedHeader = computed(() => appStore$1.getFixedHeader);
|
|
24927
|
-
computed(() => appStore$1.getMobile);
|
|
24928
|
-
computed(() => appStore$1.getFixedMenu);
|
|
24929
|
-
const permissionStore = usePermissionStore();
|
|
24930
|
-
const leftMenuRouters = computed(() => permissionStore.getLeftMenuRouters);
|
|
24931
|
-
const theme = computed(() => appStore$1.getTheme);
|
|
24932
|
-
const festivalTopClass = computed(() => {
|
|
24933
|
-
return {
|
|
24934
|
-
"layout-top": true,
|
|
24935
|
-
"spring": theme.value === "springFestival",
|
|
24936
|
-
"dragon-boat": theme.value === "dragonBoatFestival",
|
|
24937
|
-
"mid-autumn": theme.value === "midAutumnFestival",
|
|
24938
|
-
"new-years": theme.value === "newYearsDay"
|
|
24939
|
-
};
|
|
24940
|
-
});
|
|
24941
|
-
const festivalMenuClass = computed(() => {
|
|
24942
|
-
return {
|
|
24943
|
-
"layout-menu": true,
|
|
24944
|
-
"spring": theme.value === "springFestival",
|
|
24945
|
-
"dragon-boat": theme.value === "dragonBoatFestival",
|
|
24946
|
-
"mid-autumn": theme.value === "midAutumnFestival",
|
|
24947
|
-
"new-years": theme.value === "newYearsDay"
|
|
24948
|
-
};
|
|
24949
|
-
});
|
|
24950
|
-
const zIndexClass = computed(() => {
|
|
24951
|
-
return {
|
|
24952
|
-
"z-10": theme.value === "whiteLight"
|
|
24953
|
-
};
|
|
24954
|
-
});
|
|
24955
24901
|
const scrollRef = ref$1();
|
|
24956
24902
|
const useRenderLayout = () => {
|
|
24903
|
+
const appStore = useAppStore();
|
|
24904
|
+
const permissionStore2 = usePermissionStore();
|
|
24905
|
+
const pageLoading = computed(() => appStore.getPageLoading);
|
|
24906
|
+
const tagsView = computed(() => appStore.getTagsView);
|
|
24907
|
+
const collapse = computed(() => appStore.getCollapse);
|
|
24908
|
+
const logo = computed(() => appStore.logo);
|
|
24909
|
+
const fixedHeader = computed(() => appStore.getFixedHeader);
|
|
24910
|
+
computed(() => appStore.getMobile);
|
|
24911
|
+
computed(() => appStore.getFixedMenu);
|
|
24912
|
+
const leftMenuRouters = computed(() => permissionStore2.getLeftMenuRouters);
|
|
24913
|
+
const theme = computed(() => appStore.getTheme);
|
|
24914
|
+
const festivalTopClass = computed(() => {
|
|
24915
|
+
return {
|
|
24916
|
+
"layout-top": true,
|
|
24917
|
+
"spring": theme.value === "springFestival",
|
|
24918
|
+
"dragon-boat": theme.value === "dragonBoatFestival",
|
|
24919
|
+
"mid-autumn": theme.value === "midAutumnFestival",
|
|
24920
|
+
"new-years": theme.value === "newYearsDay"
|
|
24921
|
+
};
|
|
24922
|
+
});
|
|
24923
|
+
const festivalMenuClass = computed(() => {
|
|
24924
|
+
return {
|
|
24925
|
+
"layout-menu": true,
|
|
24926
|
+
"spring": theme.value === "springFestival",
|
|
24927
|
+
"dragon-boat": theme.value === "dragonBoatFestival",
|
|
24928
|
+
"mid-autumn": theme.value === "midAutumnFestival",
|
|
24929
|
+
"new-years": theme.value === "newYearsDay"
|
|
24930
|
+
};
|
|
24931
|
+
});
|
|
24932
|
+
const zIndexClass = computed(() => {
|
|
24933
|
+
return {
|
|
24934
|
+
"z-10": theme.value === "whiteLight"
|
|
24935
|
+
};
|
|
24936
|
+
});
|
|
24957
24937
|
const renderLeft = () => {
|
|
24958
24938
|
return createVNode(Fragment, null, [createVNode("div", {
|
|
24959
24939
|
"class": ["relative flex items-center bg-[linear-gradient(var(--top-header-bg-color))] layout-border__bottom dark:bg-[var(--el-bg-color)] shadow-[0px_2px_6px_0px_rgba(197,206,225,0.35)]", festivalTopClass.value, zIndexClass.value]
|
|
24960
24940
|
}, [logo.value ? createVNode(_sfc_main$u, {
|
|
24961
24941
|
"class": [{
|
|
24962
|
-
"w-[var(--left-menu-min-width)]": appStore
|
|
24963
|
-
"w-[var(--left-menu-max-width)]": !appStore
|
|
24942
|
+
"w-[var(--left-menu-min-width)]": appStore.getCollapse,
|
|
24943
|
+
"w-[var(--left-menu-max-width)]": !appStore.getCollapse
|
|
24964
24944
|
}]
|
|
24965
24945
|
}, null) : void 0, createVNode(ToolHeader, {
|
|
24966
24946
|
"class": "flex-1"
|
|
@@ -24970,8 +24950,8 @@ const useRenderLayout = () => {
|
|
|
24970
24950
|
"class": ["relative layout-border__right !h-full", festivalMenuClass.value]
|
|
24971
24951
|
}, null), createVNode("div", {
|
|
24972
24952
|
"class": [`${prefixCls$1}-content`, "h-[100%]", {
|
|
24973
|
-
"w-[calc(100%-var(--left-menu-min-width))] left-[var(--left-menu-min-width)]": collapse
|
|
24974
|
-
"w-[calc(100%-var(--left-menu-max-width))] left-[var(--left-menu-max-width)]": !collapse
|
|
24953
|
+
"w-[calc(100%-var(--left-menu-min-width))] left-[var(--left-menu-min-width)]": collapse.value,
|
|
24954
|
+
"w-[calc(100%-var(--left-menu-max-width))] left-[var(--left-menu-max-width)]": !collapse.value
|
|
24975
24955
|
}],
|
|
24976
24956
|
"style": "transition: all var(--transition-time-02);"
|
|
24977
24957
|
}, [withDirectives(createVNode(ElScrollbar$1, {
|
|
@@ -24983,8 +24963,8 @@ const useRenderLayout = () => {
|
|
|
24983
24963
|
default: () => [tagsView.value ? createVNode(TagsView, {
|
|
24984
24964
|
"class": ["layout-border__bottom absolute", {
|
|
24985
24965
|
"!fixed top-0 left-0 z-10": fixedHeader.value,
|
|
24986
|
-
"w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[var(--top-header-height)]": collapse
|
|
24987
|
-
"w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[var(--top-header-height)]": !collapse
|
|
24966
|
+
"w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[var(--top-header-height)]": collapse.value && fixedHeader.value,
|
|
24967
|
+
"w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[var(--top-header-height)]": !collapse.value && fixedHeader.value
|
|
24988
24968
|
}],
|
|
24989
24969
|
"style": "transition: width var(--transition-time-02), left var(--transition-time-02);"
|
|
24990
24970
|
}, null) : void 0, createVNode(_sfc_main$t, null, null)]
|
|
@@ -25022,8 +25002,8 @@ const useRenderLayout = () => {
|
|
|
25022
25002
|
}, festivalTopClass.value, zIndexClass.value]
|
|
25023
25003
|
}, [logo.value ? createVNode(_sfc_main$u, {
|
|
25024
25004
|
"class": [{
|
|
25025
|
-
"w-[var(--left-menu-min-width)]": appStore
|
|
25026
|
-
"w-[var(--left-menu-max-width)]": !appStore
|
|
25005
|
+
"w-[var(--left-menu-min-width)]": appStore.getCollapse,
|
|
25006
|
+
"w-[var(--left-menu-max-width)]": !appStore.getCollapse
|
|
25027
25007
|
}]
|
|
25028
25008
|
}, null) : void 0, createVNode(ToolHeader, {
|
|
25029
25009
|
"class": "flex-1"
|
|
@@ -25042,8 +25022,8 @@ const useRenderLayout = () => {
|
|
|
25042
25022
|
}, null), createVNode("div", {
|
|
25043
25023
|
"class": [`${prefixCls$1}-content`, "h-[100%]", {
|
|
25044
25024
|
"w-full": leftMenuRouters.value.length == 0,
|
|
25045
|
-
"w-[calc(100%-var(--left-menu-min-width))] left-[var(--left-menu-min-width)]": leftMenuRouters.value.length > 0 && collapse
|
|
25046
|
-
"w-[calc(100%-var(--left-menu-max-width))] left-[var(--left-menu-max-width)]": leftMenuRouters.value.length > 0 && !collapse
|
|
25025
|
+
"w-[calc(100%-var(--left-menu-min-width))] left-[var(--left-menu-min-width)]": leftMenuRouters.value.length > 0 && collapse.value,
|
|
25026
|
+
"w-[calc(100%-var(--left-menu-max-width))] left-[var(--left-menu-max-width)]": leftMenuRouters.value.length > 0 && !collapse.value
|
|
25047
25027
|
}],
|
|
25048
25028
|
"style": "transition: all var(--transition-time-02);"
|
|
25049
25029
|
}, [withDirectives(createVNode(ElScrollbar$1, {
|
|
@@ -25055,8 +25035,8 @@ const useRenderLayout = () => {
|
|
|
25055
25035
|
default: () => [tagsView.value ? createVNode(TagsView, {
|
|
25056
25036
|
"class": ["layout-border__bottom absolute", {
|
|
25057
25037
|
"!fixed top-0 left-0 z-10": fixedHeader.value,
|
|
25058
|
-
"w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[var(--top-header-height)]": collapse
|
|
25059
|
-
"w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[var(--top-header-height)]": !collapse
|
|
25038
|
+
"w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[var(--top-header-height)]": collapse.value && fixedHeader.value,
|
|
25039
|
+
"w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[var(--top-header-height)]": !collapse.value && fixedHeader.value
|
|
25060
25040
|
}],
|
|
25061
25041
|
"style": "transition: width var(--transition-time-02), left var(--transition-time-02);"
|
|
25062
25042
|
}, null) : void 0, createVNode(_sfc_main$t, null, null)]
|
|
@@ -25073,15 +25053,11 @@ const {
|
|
|
25073
25053
|
getPrefixCls
|
|
25074
25054
|
} = useDesign();
|
|
25075
25055
|
const prefixCls = getPrefixCls("layout");
|
|
25076
|
-
const
|
|
25077
|
-
|
|
25078
|
-
const collapse = computed(() => appStore.getCollapse);
|
|
25079
|
-
const layout = computed(() => appStore.getLayout);
|
|
25080
|
-
const handleClickOutside = () => {
|
|
25081
|
-
appStore.setCollapse(true);
|
|
25056
|
+
const handleClickOutside = (store2) => {
|
|
25057
|
+
store2.setCollapse(true);
|
|
25082
25058
|
};
|
|
25083
25059
|
const layoutScrollRef = ref$1();
|
|
25084
|
-
const renderLayout = () => {
|
|
25060
|
+
const renderLayout = (layout) => {
|
|
25085
25061
|
const {
|
|
25086
25062
|
renderLeft,
|
|
25087
25063
|
renderTop,
|
|
@@ -25101,16 +25077,21 @@ const renderLayout = () => {
|
|
|
25101
25077
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
25102
25078
|
name: "Layout",
|
|
25103
25079
|
setup() {
|
|
25080
|
+
const appStore = useAppStore();
|
|
25104
25081
|
provide("layoutScrollRef", layoutScrollRef);
|
|
25082
|
+
const theme = computed(() => appStore.getTheme);
|
|
25083
|
+
const mobile = computed(() => appStore.getMobile);
|
|
25084
|
+
const collapse = computed(() => appStore.getCollapse);
|
|
25085
|
+
const layout = computed(() => appStore.getLayout);
|
|
25105
25086
|
return () => createVNode("section", {
|
|
25106
|
-
"class": [prefixCls, `${prefixCls}__${layout.value}`, "w-[100%] h-[100%] relative"]
|
|
25087
|
+
"class": [prefixCls, `${prefixCls}__${layout.value}`, "w-[100%] h-[100%] relative", `${prefixCls}__${theme.value}`]
|
|
25107
25088
|
}, [mobile.value && !collapse.value ? createVNode("div", {
|
|
25108
25089
|
"class": "absolute left-0 top-0 z-99 h-full w-full bg-[var(--el-color-black)] opacity-30",
|
|
25109
|
-
"onClick": handleClickOutside
|
|
25110
|
-
}, null) : void 0, renderLayout(), createVNode(_sfc_main$1d, null, null)]);
|
|
25090
|
+
"onClick": () => handleClickOutside(appStore)
|
|
25091
|
+
}, null) : void 0, renderLayout(layout), createVNode(_sfc_main$1d, null, null)]);
|
|
25111
25092
|
}
|
|
25112
25093
|
});
|
|
25113
|
-
const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
25094
|
+
const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-da967123"]]);
|
|
25114
25095
|
const Layout$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25115
25096
|
__proto__: null,
|
|
25116
25097
|
default: Layout
|
|
@@ -25769,8 +25750,8 @@ function requireCore() {
|
|
|
25769
25750
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
25770
25751
|
*/
|
|
25771
25752
|
_createHelper: function(hasher) {
|
|
25772
|
-
return function(
|
|
25773
|
-
return new hasher.init(cfg).finalize(
|
|
25753
|
+
return function(message, cfg) {
|
|
25754
|
+
return new hasher.init(cfg).finalize(message);
|
|
25774
25755
|
};
|
|
25775
25756
|
},
|
|
25776
25757
|
/**
|
|
@@ -25787,8 +25768,8 @@ function requireCore() {
|
|
|
25787
25768
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
25788
25769
|
*/
|
|
25789
25770
|
_createHmacHelper: function(hasher) {
|
|
25790
|
-
return function(
|
|
25791
|
-
return new C_algo.HMAC.init(hasher, key).finalize(
|
|
25771
|
+
return function(message, key) {
|
|
25772
|
+
return new C_algo.HMAC.init(hasher, key).finalize(message);
|
|
25792
25773
|
};
|
|
25793
25774
|
}
|
|
25794
25775
|
});
|
|
@@ -28346,8 +28327,8 @@ function requireCipherCore() {
|
|
|
28346
28327
|
}
|
|
28347
28328
|
return function(cipher) {
|
|
28348
28329
|
return {
|
|
28349
|
-
encrypt: function(
|
|
28350
|
-
return selectCipherStrategy(key).encrypt(cipher,
|
|
28330
|
+
encrypt: function(message, key, cfg) {
|
|
28331
|
+
return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
|
|
28351
28332
|
},
|
|
28352
28333
|
decrypt: function(ciphertext, key, cfg) {
|
|
28353
28334
|
return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
|
|
@@ -28674,10 +28655,10 @@ function requireCipherCore() {
|
|
|
28674
28655
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
28675
28656
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
28676
28657
|
*/
|
|
28677
|
-
encrypt: function(cipher,
|
|
28658
|
+
encrypt: function(cipher, message, key, cfg) {
|
|
28678
28659
|
cfg = this.cfg.extend(cfg);
|
|
28679
28660
|
var encryptor = cipher.createEncryptor(key, cfg);
|
|
28680
|
-
var ciphertext = encryptor.finalize(
|
|
28661
|
+
var ciphertext = encryptor.finalize(message);
|
|
28681
28662
|
var cipherCfg = encryptor.cfg;
|
|
28682
28663
|
return CipherParams.create({
|
|
28683
28664
|
ciphertext,
|
|
@@ -28795,11 +28776,11 @@ function requireCipherCore() {
|
|
|
28795
28776
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
28796
28777
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
28797
28778
|
*/
|
|
28798
|
-
encrypt: function(cipher,
|
|
28779
|
+
encrypt: function(cipher, message, password, cfg) {
|
|
28799
28780
|
cfg = this.cfg.extend(cfg);
|
|
28800
28781
|
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
|
|
28801
28782
|
cfg.iv = derivedParams.iv;
|
|
28802
|
-
var ciphertext = SerializableCipher.encrypt.call(this, cipher,
|
|
28783
|
+
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
28803
28784
|
ciphertext.mixIn(derivedParams);
|
|
28804
28785
|
return ciphertext;
|
|
28805
28786
|
},
|
|
@@ -35647,7 +35628,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({ name: "LoginForm" }, {
|
|
|
35647
35628
|
__name: "LoginForm",
|
|
35648
35629
|
setup(__props) {
|
|
35649
35630
|
const { t: t2 } = useI18n();
|
|
35650
|
-
const
|
|
35631
|
+
const message = useMessage();
|
|
35651
35632
|
useIcon({ icon: "ep:house" });
|
|
35652
35633
|
const iconAvatar = useIcon({ icon: "ep:avatar" });
|
|
35653
35634
|
const iconLock = useIcon({ icon: "ep:lock" });
|
|
@@ -35655,7 +35636,6 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({ name: "LoginForm" }, {
|
|
|
35655
35636
|
const { validForm } = useFormValid(formLogin);
|
|
35656
35637
|
const { setLoginState, getLoginState } = useLoginState();
|
|
35657
35638
|
const { currentRoute, push: push2 } = useRouter();
|
|
35658
|
-
const permissionStore2 = usePermissionStore();
|
|
35659
35639
|
const redirect = ref$1("");
|
|
35660
35640
|
const loginLoading = ref$1(false);
|
|
35661
35641
|
const verify = ref$1();
|
|
@@ -35715,7 +35695,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({ name: "LoginForm" }, {
|
|
|
35715
35695
|
publicKey = await getPublic();
|
|
35716
35696
|
loginDataLoginForm.password = sm2Encrypt(loginDataLoginForm.password, publicKey);
|
|
35717
35697
|
} catch (err) {
|
|
35718
|
-
|
|
35698
|
+
message.error("密码加密失败");
|
|
35719
35699
|
return;
|
|
35720
35700
|
}
|
|
35721
35701
|
loginDataLoginForm.captchaVerification = params.captchaVerification;
|
|
@@ -35740,7 +35720,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({ name: "LoginForm" }, {
|
|
|
35740
35720
|
if (redirect.value.indexOf("sso") !== -1) {
|
|
35741
35721
|
window.location.href = window.location.href.replace("/login?redirect=", "");
|
|
35742
35722
|
} else {
|
|
35743
|
-
await push2({ path: redirect.value
|
|
35723
|
+
await push2({ path: redirect.value });
|
|
35744
35724
|
}
|
|
35745
35725
|
} finally {
|
|
35746
35726
|
loginLoading.value = false;
|
|
@@ -35918,7 +35898,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({ name: "LoginForm" }, {
|
|
|
35918
35898
|
};
|
|
35919
35899
|
}
|
|
35920
35900
|
});
|
|
35921
|
-
const LoginForm = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
35901
|
+
const LoginForm = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5df644c8"]]);
|
|
35922
35902
|
const LoginForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
35923
35903
|
__proto__: null,
|
|
35924
35904
|
default: LoginForm
|
|
@@ -35932,7 +35912,7 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "MobileForm" }, {
|
|
|
35932
35912
|
__name: "MobileForm",
|
|
35933
35913
|
setup(__props) {
|
|
35934
35914
|
const { t: t2 } = useI18n();
|
|
35935
|
-
const
|
|
35915
|
+
const message = useMessage();
|
|
35936
35916
|
const permissionStore2 = usePermissionStore();
|
|
35937
35917
|
const { currentRoute, push: push2 } = useRouter();
|
|
35938
35918
|
const formSmsLogin = ref$1();
|
|
@@ -35978,7 +35958,7 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "MobileForm" }, {
|
|
|
35978
35958
|
await getTenantId2();
|
|
35979
35959
|
smsVO.smsCode.mobile = loginData.loginForm.mobileNumber;
|
|
35980
35960
|
await sendSmsCode(smsVO.smsCode).then(async () => {
|
|
35981
|
-
|
|
35961
|
+
message.success(t2("login.SmsSendMsg"));
|
|
35982
35962
|
mobileCodeTimer.value = 60;
|
|
35983
35963
|
let msgTimer = setInterval(() => {
|
|
35984
35964
|
mobileCodeTimer.value = mobileCodeTimer.value - 1;
|
|
@@ -37869,9 +37849,9 @@ const scoringHelper = {
|
|
|
37869
37849
|
optimal: {},
|
|
37870
37850
|
excludeAdditive: false,
|
|
37871
37851
|
separatorRegex: void 0,
|
|
37872
|
-
fillArray(
|
|
37852
|
+
fillArray(size, valueType) {
|
|
37873
37853
|
const result = [];
|
|
37874
|
-
for (let i = 0; i <
|
|
37854
|
+
for (let i = 0; i < size; i += 1) {
|
|
37875
37855
|
let value = [];
|
|
37876
37856
|
if (valueType === "object") {
|
|
37877
37857
|
value = {};
|
|
@@ -38793,7 +38773,7 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({ name: "ForgetPasswordForm" }
|
|
|
38793
38773
|
setup(__props) {
|
|
38794
38774
|
const verify = ref$1();
|
|
38795
38775
|
const { t: t2 } = useI18n();
|
|
38796
|
-
const
|
|
38776
|
+
const message = useMessage();
|
|
38797
38777
|
const { currentRoute, push: push2 } = useRouter();
|
|
38798
38778
|
const formSmsResetPassword = ref$1();
|
|
38799
38779
|
const loginLoading = ref$1(false);
|
|
@@ -38861,7 +38841,7 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({ name: "ForgetPasswordForm" }
|
|
|
38861
38841
|
smsVO.captchaVerification = params.captchaVerification;
|
|
38862
38842
|
smsVO.mobile = resetPasswordData.mobile;
|
|
38863
38843
|
await sendSmsCode(smsVO).then(async () => {
|
|
38864
|
-
|
|
38844
|
+
message.success(t2("login.SmsSendMsg"));
|
|
38865
38845
|
mobileCodeTimer.value = 60;
|
|
38866
38846
|
let msgTimer = setInterval(() => {
|
|
38867
38847
|
mobileCodeTimer.value = mobileCodeTimer.value - 1;
|
|
@@ -38885,7 +38865,7 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({ name: "ForgetPasswordForm" }
|
|
|
38885
38865
|
if (resetPasswordData.tenantEnable === "true") {
|
|
38886
38866
|
const res = await getTenantIdByName(resetPasswordData.tenantName);
|
|
38887
38867
|
if (res == null) {
|
|
38888
|
-
|
|
38868
|
+
message.error(t2("login.invalidTenantName"));
|
|
38889
38869
|
throw t2("login.invalidTenantName");
|
|
38890
38870
|
}
|
|
38891
38871
|
setTenantId(res);
|
|
@@ -38898,7 +38878,7 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({ name: "ForgetPasswordForm" }
|
|
|
38898
38878
|
await getTenantId2();
|
|
38899
38879
|
loginLoading.value = true;
|
|
38900
38880
|
await smsResetPassword(resetPasswordData).then(async () => {
|
|
38901
|
-
|
|
38881
|
+
message.success(t2("login.resetPasswordSuccess"));
|
|
38902
38882
|
setLoginState(LoginStateEnum.LOGIN);
|
|
38903
38883
|
}).catch(() => {
|
|
38904
38884
|
}).finally(() => {
|
|
@@ -39159,7 +39139,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ name: "Login" }, {
|
|
|
39159
39139
|
__name: "Login",
|
|
39160
39140
|
setup(__props) {
|
|
39161
39141
|
const { t: t2 } = useI18n();
|
|
39162
|
-
const
|
|
39142
|
+
const appStore = useAppStore();
|
|
39163
39143
|
const { getPrefixCls: getPrefixCls2 } = useDesign();
|
|
39164
39144
|
const prefixCls2 = getPrefixCls2("login");
|
|
39165
39145
|
return (_ctx, _cache) => {
|
|
@@ -39176,7 +39156,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ name: "Login" }, {
|
|
|
39176
39156
|
class: "mr-10px h-26px w-26px",
|
|
39177
39157
|
src: _imports_0
|
|
39178
39158
|
}, null, -1)),
|
|
39179
|
-
createElementVNode("span", _hoisted_3, toDisplayString(unref(underlineToHump)(unref(
|
|
39159
|
+
createElementVNode("span", _hoisted_3, toDisplayString(unref(underlineToHump)(unref(appStore).getTitle)), 1)
|
|
39180
39160
|
]),
|
|
39181
39161
|
createElementVNode("div", _hoisted_4, [
|
|
39182
39162
|
createVNode(TransitionGroup, {
|
|
@@ -39207,7 +39187,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ name: "Login" }, {
|
|
|
39207
39187
|
class: "mr-10px h-48px w-48px",
|
|
39208
39188
|
src: _imports_2
|
|
39209
39189
|
}, null, -1)),
|
|
39210
|
-
createElementVNode("span", _hoisted_10, toDisplayString(unref(underlineToHump)(unref(
|
|
39190
|
+
createElementVNode("span", _hoisted_10, toDisplayString(unref(underlineToHump)(unref(appStore).getTitle)), 1)
|
|
39211
39191
|
]),
|
|
39212
39192
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "flex items-center justify-end space-x-10px h-48px" }, null, -1))
|
|
39213
39193
|
]),
|
|
@@ -39249,12 +39229,12 @@ const _sfc_main = {
|
|
|
39249
39229
|
},
|
|
39250
39230
|
setup(__props) {
|
|
39251
39231
|
const { variables: variables2 } = useDesign();
|
|
39252
|
-
const
|
|
39232
|
+
const appStore = useAppStore();
|
|
39253
39233
|
const props = __props;
|
|
39254
39234
|
provide("configGlobal", props);
|
|
39255
39235
|
onMounted(() => {
|
|
39256
|
-
if (!
|
|
39257
|
-
|
|
39236
|
+
if (!appStore.getIsSetTheme) {
|
|
39237
|
+
appStore.setCssVarTheme();
|
|
39258
39238
|
}
|
|
39259
39239
|
});
|
|
39260
39240
|
const { width } = useWindowSize();
|
|
@@ -39263,7 +39243,7 @@ const _sfc_main = {
|
|
|
39263
39243
|
(width2) => {
|
|
39264
39244
|
if (width2 < 768) {
|
|
39265
39245
|
setCssVar("--left-menu-min-width", "0");
|
|
39266
|
-
|
|
39246
|
+
appStore.setCollapse(true);
|
|
39267
39247
|
} else {
|
|
39268
39248
|
setCssVar("--left-menu-min-width", "50px");
|
|
39269
39249
|
}
|