bmp-layout 0.0.2 → 0.0.4

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