bmp-layout 0.0.8 → 0.0.10

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/bmp-layout.es.js CHANGED
@@ -1,10 +1,9 @@
1
- import { openBlock, createBlock, unref as unref$1, normalizeClass, nextTick as nextTick$1, resolveComponent, withCtx, createElementBlock, createElementVNode, normalizeStyle, createVNode, Fragment, isVNode, ref as ref$1, computed as computed$1, watch as watch$1, Teleport, Transition, withModifiers, toDisplayString, renderList, createCommentVNode, resolveDynamicComponent, defineComponent as defineComponent$1, TransitionGroup, createTextVNode, mergeProps, isRef, withDirectives, resolveDirective, provide as provide$1, onMounted as onMounted$1, renderSlot, render, useCssVars, createSlots, watchEffect, vShow, onBeforeUnmount } from "vue";
1
+ import { openBlock, createBlock, unref, normalizeClass, nextTick, ref, computed, watch, withCtx, createElementBlock, createElementVNode, normalizeStyle, createVNode, Fragment, defineComponent, isVNode, Teleport, Transition, withModifiers, toDisplayString, renderList, createCommentVNode, resolveComponent, provide, resolveDynamicComponent, onMounted, TransitionGroup, createTextVNode, mergeProps, isRef, onUnmounted, withDirectives, resolveDirective, renderSlot, render, useCssVars, createSlots, watchEffect, vShow, useSlots, useAttrs, inject, onBeforeUnmount, reactive, onUpdated } from "vue";
2
2
  import { createPinia, defineStore } from "pinia";
3
3
  import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
4
4
  import { cloneDeep, omit } from "lodash-es";
5
- import { ElBacktop, ElMenuItem, ElSubMenu, ElScrollbar, ElMenu, ElInput, ElMessageBox, ElBreadcrumb, ElBreadcrumbItem, ElMessage, ElConfigProvider, ElNotification, ElAffix } from "element-plus";
6
- import { createRouter, createWebHashHistory, useRouter as useRouter$1 } from "vue-router";
7
- import "dayjs";
5
+ import { ElBacktop, ElIcon, ElMenuItem, ElSubMenu, ElScrollbar, ElMenu, ElInput, ElBadge, ElDropdown, ElDropdownMenu, ElDropdownItem, ElAvatar, ElMessageBox, ElBreadcrumb, ElBreadcrumbItem, ElDrawer, ElMessage, ElConfigProvider, ElNotification, ElAffix } from "element-plus";
6
+ import { createRouter, createWebHashHistory, useRoute, useRouter } from "vue-router";
8
7
  import "vue-i18n";
9
8
  import { useClipboard, useWindowSize } from "@vueuse/core";
10
9
  let store = createPinia();
@@ -959,9 +958,9 @@ const _sfc_main$w = /* @__PURE__ */ Object.assign({ name: "BackTop" }, {
959
958
  const { getPrefixCls: getPrefixCls2, variables: variables2 } = useDesign();
960
959
  const prefixCls2 = getPrefixCls2("backtop");
961
960
  return (_ctx, _cache) => {
962
- return openBlock(), createBlock(unref$1(ElBacktop), {
963
- class: normalizeClass(`${unref$1(prefixCls2)}-backtop`),
964
- target: `.${unref$1(variables2).namespace}-layout-content-scrollbar .${unref$1(variables2).elNamespace}-scrollbar__wrap`
961
+ return openBlock(), createBlock(unref(ElBacktop), {
962
+ class: normalizeClass(`${unref(prefixCls2)}-backtop`),
963
+ target: `.${unref(variables2).namespace}-layout-content-scrollbar .${unref(variables2).elNamespace}-scrollbar__wrap`
965
964
  }, null, 8, ["class", "target"]);
966
965
  };
967
966
  }
@@ -1050,7 +1049,8 @@ const usePermissionStore = defineStore("layout-permission", {
1050
1049
  addRouters: [],
1051
1050
  menuTabRouters: [],
1052
1051
  leftMenuRouters: [],
1053
- moduleRouters: []
1052
+ moduleRouters: [],
1053
+ moduleId: void 0
1054
1054
  }),
1055
1055
  getters: {
1056
1056
  getRouters() {
@@ -1074,6 +1074,9 @@ const usePermissionStore = defineStore("layout-permission", {
1074
1074
  },
1075
1075
  getModuleRouters() {
1076
1076
  return this.moduleRouters;
1077
+ },
1078
+ getModuleId() {
1079
+ return this.moduleId;
1077
1080
  }
1078
1081
  },
1079
1082
  actions: {
@@ -1094,12 +1097,13 @@ const usePermissionStore = defineStore("layout-permission", {
1094
1097
  return { ...child, path: `${basePath}${childPath}` };
1095
1098
  });
1096
1099
  this.leftMenuRouters = [];
1097
- nextTick$1(() => {
1100
+ nextTick(() => {
1098
1101
  this.leftMenuRouters = routers;
1099
1102
  });
1100
1103
  },
1101
1104
  // 处理模块对应菜单
1102
1105
  setModuleRouters(menuId) {
1106
+ this.moduleId = menuId;
1103
1107
  const findRouter = this.getRoleRouters.find((router) => router.id === menuId);
1104
1108
  if (findRouter) {
1105
1109
  const children = findRouter.children || [];
@@ -3530,28 +3534,27 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({ name: "Icon" }, {
3530
3534
  }
3531
3535
  );
3532
3536
  return (_ctx, _cache) => {
3533
- const _component_ElIcon = resolveComponent("ElIcon");
3534
- return openBlock(), createBlock(_component_ElIcon, {
3535
- class: normalizeClass(unref$1(prefixCls2)),
3537
+ return openBlock(), createBlock(unref(ElIcon), {
3538
+ class: normalizeClass(unref(prefixCls2)),
3536
3539
  color: __props.color,
3537
3540
  size: __props.size
3538
3541
  }, {
3539
3542
  default: withCtx(() => [
3540
- unref$1(isLocal) ? (openBlock(), createElementBlock("svg", {
3543
+ unref(isLocal) ? (openBlock(), createElementBlock("svg", {
3541
3544
  key: 0,
3542
- class: normalizeClass(unref$1(getSvgClass))
3545
+ class: normalizeClass(unref(getSvgClass))
3543
3546
  }, [
3544
- createElementVNode("use", { "xlink:href": unref$1(symbolId) }, null, 8, _hoisted_1$e)
3547
+ createElementVNode("use", { "xlink:href": unref(symbolId) }, null, 8, _hoisted_1$e)
3545
3548
  ], 2)) : (openBlock(), createElementBlock("span", {
3546
3549
  key: 1,
3547
3550
  ref_key: "elRef",
3548
3551
  ref: elRef,
3549
3552
  class: normalizeClass(_ctx.$attrs.class),
3550
- style: normalizeStyle(unref$1(getIconifyStyle))
3553
+ style: normalizeStyle(unref(getIconifyStyle))
3551
3554
  }, [
3552
3555
  createElementVNode("span", {
3553
- class: normalizeClass(unref$1(getSvgClass)),
3554
- "data-icon": unref$1(symbolId)
3556
+ class: normalizeClass(unref(getSvgClass)),
3557
+ "data-icon": unref(symbolId)
3555
3558
  }, null, 10, _hoisted_2$b)
3556
3559
  ], 6))
3557
3560
  ]),
@@ -3818,11 +3821,11 @@ const _sfc_main$t = /* @__PURE__ */ Object.assign({ name: "MenuTrigger" }, {
3818
3821
  };
3819
3822
  return (_ctx, _cache) => {
3820
3823
  return openBlock(), createElementBlock("div", {
3821
- class: normalizeClass([unref$1(prefixCls2), "flex items-center justify-center cursor-pointer", { "is-active": props.active }]),
3824
+ class: normalizeClass([unref(prefixCls2), "flex items-center justify-center cursor-pointer", { "is-active": props.active }]),
3822
3825
  onClick: handleClick
3823
3826
  }, [
3824
3827
  createElementVNode("div", {
3825
- class: normalizeClass(`${unref$1(prefixCls2)}__hamburger-icon`)
3828
+ class: normalizeClass(`${unref(prefixCls2)}__hamburger-icon`)
3826
3829
  }, _cache[0] || (_cache[0] = [
3827
3830
  createElementVNode("span", { class: "line" }, null, -1),
3828
3831
  createElementVNode("span", { class: "line" }, null, -1),
@@ -3852,12 +3855,12 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3852
3855
  const { t: t2 } = useI18n$1("layout");
3853
3856
  const props = __props;
3854
3857
  const emit = __emit;
3855
- useRouter$1();
3858
+ const router = useRouter();
3856
3859
  const permissionStore = usePermissionStore();
3857
- const searchKeyword = ref$1("");
3858
- const activeCategory = ref$1(0);
3859
- const routers = computed$1(() => permissionStore.getRoleRouters);
3860
- const filteredMenus = computed$1(() => {
3860
+ const searchKeyword = ref("");
3861
+ const activeCategory = ref(0);
3862
+ const routers = computed(() => permissionStore.getRoleRouters);
3863
+ const filteredMenus = computed(() => {
3861
3864
  const keyword = searchKeyword.value.toLowerCase().trim();
3862
3865
  const filterHiddenMenus = (items) => {
3863
3866
  if (!items || !Array.isArray(items))
@@ -3891,10 +3894,11 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3891
3894
  };
3892
3895
  return filterFn(baseMenus);
3893
3896
  });
3894
- const groupedMenus = computed$1(() => {
3897
+ const groupedMenus = computed(() => {
3895
3898
  return filteredMenus.value.map((menu) => {
3896
3899
  var _a2, _b;
3897
3900
  return {
3901
+ id: menu.id,
3898
3902
  title: ((_a2 = menu.meta) == null ? void 0 : _a2.title) || menu.name,
3899
3903
  icon: (_b = menu.meta) == null ? void 0 : _b.icon,
3900
3904
  path: menu.path,
@@ -3906,7 +3910,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3906
3910
  };
3907
3911
  });
3908
3912
  });
3909
- const currentCategoryMenus = computed$1(() => {
3913
+ const currentCategoryMenus = computed(() => {
3910
3914
  if (groupedMenus.value.length === 0)
3911
3915
  return [];
3912
3916
  const group = groupedMenus.value[activeCategory.value];
@@ -3931,18 +3935,25 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3931
3935
  activeCategory.value = 0;
3932
3936
  };
3933
3937
  const handleSelect = (item, parentPath = "") => {
3938
+ var _a2;
3934
3939
  const fullPath = getAccessiblePath(item, parentPath);
3935
3940
  if (fullPath) {
3936
- const currentOrigin = window.location.origin;
3937
- const targetUrl = `${currentOrigin}${fullPath.startsWith("/") ? fullPath : `/${fullPath}`}`;
3938
- window.location.href = targetUrl;
3941
+ const currentModuleId = permissionStore.getModuleId;
3942
+ const selectedModuleId = (_a2 = groupedMenus.value[activeCategory.value]) == null ? void 0 : _a2.id;
3943
+ if (selectedModuleId === currentModuleId) {
3944
+ router.push(fullPath.startsWith("/") ? fullPath : `/${fullPath}`);
3945
+ } else {
3946
+ const currentOrigin = window.location.origin;
3947
+ const targetUrl = `${currentOrigin}${fullPath.startsWith("/") ? fullPath : `/${fullPath}`}`;
3948
+ window.location.href = targetUrl;
3949
+ }
3939
3950
  closePanel();
3940
3951
  }
3941
3952
  };
3942
3953
  const handleCategorySelect = (index) => {
3943
3954
  activeCategory.value = index;
3944
3955
  };
3945
- watch$1(() => props.visible, (val) => {
3956
+ watch(() => props.visible, (val) => {
3946
3957
  if (val) {
3947
3958
  searchKeyword.value = "";
3948
3959
  activeCategory.value = 0;
@@ -3954,36 +3965,36 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3954
3965
  default: withCtx(() => [
3955
3966
  __props.visible ? (openBlock(), createElementBlock("div", {
3956
3967
  key: 0,
3957
- class: normalizeClass([unref$1(prefixCls2) + "__overlay"]),
3968
+ class: normalizeClass([unref(prefixCls2) + "__overlay"]),
3958
3969
  onClick: closePanel
3959
3970
  }, [
3960
3971
  createVNode(Transition, { name: "slide-down" }, {
3961
3972
  default: withCtx(() => [
3962
3973
  __props.visible ? (openBlock(), createElementBlock("div", {
3963
3974
  key: 0,
3964
- class: normalizeClass([unref$1(prefixCls2)]),
3975
+ class: normalizeClass([unref(prefixCls2)]),
3965
3976
  onClick: _cache[1] || (_cache[1] = withModifiers(() => {
3966
3977
  }, ["stop"]))
3967
3978
  }, [
3968
3979
  createElementVNode("div", {
3969
- class: normalizeClass([unref$1(prefixCls2) + "__body"])
3980
+ class: normalizeClass([unref(prefixCls2) + "__body"])
3970
3981
  }, [
3971
3982
  createElementVNode("div", {
3972
- class: normalizeClass([unref$1(prefixCls2) + "__sidebar"])
3983
+ class: normalizeClass([unref(prefixCls2) + "__sidebar"])
3973
3984
  }, [
3974
3985
  createElementVNode("div", {
3975
- class: normalizeClass([unref$1(prefixCls2) + "__sidebar-title"])
3986
+ class: normalizeClass([unref(prefixCls2) + "__sidebar-title"])
3976
3987
  }, [
3977
- createElementVNode("span", null, toDisplayString(unref$1(t2)("common.allProducts")), 1)
3988
+ createElementVNode("span", null, toDisplayString(unref(t2)("common.allProducts")), 1)
3978
3989
  ], 2),
3979
- createVNode(unref$1(ElScrollbar), null, {
3990
+ createVNode(unref(ElScrollbar), null, {
3980
3991
  default: withCtx(() => [
3981
3992
  createElementVNode("div", _hoisted_1$d, [
3982
3993
  (openBlock(true), createElementBlock(Fragment, null, renderList(groupedMenus.value, (group, index) => {
3983
3994
  return openBlock(), createElementBlock("div", {
3984
3995
  key: index,
3985
3996
  class: normalizeClass([
3986
- unref$1(prefixCls2) + "__category",
3997
+ unref(prefixCls2) + "__category",
3987
3998
  { "is-active": activeCategory.value === index }
3988
3999
  ]),
3989
4000
  onClick: ($event) => handleCategorySelect(index)
@@ -3997,20 +4008,20 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3997
4008
  })
3998
4009
  ], 2),
3999
4010
  createElementVNode("div", {
4000
- class: normalizeClass([unref$1(prefixCls2) + "__content"])
4011
+ class: normalizeClass([unref(prefixCls2) + "__content"])
4001
4012
  }, [
4002
4013
  createElementVNode("div", {
4003
- class: normalizeClass([unref$1(prefixCls2) + "__header"])
4014
+ class: normalizeClass([unref(prefixCls2) + "__header"])
4004
4015
  }, [
4005
- createVNode(unref$1(ElInput), {
4016
+ createVNode(unref(ElInput), {
4006
4017
  modelValue: searchKeyword.value,
4007
4018
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKeyword.value = $event),
4008
- placeholder: unref$1(t2)("common.searchMenu"),
4019
+ placeholder: unref(t2)("common.searchMenu"),
4009
4020
  clearable: "",
4010
4021
  size: "default"
4011
4022
  }, {
4012
4023
  prefix: withCtx(() => [
4013
- createVNode(unref$1(_sfc_main$v), {
4024
+ createVNode(unref(_sfc_main$v), {
4014
4025
  icon: "ep:search",
4015
4026
  size: 16
4016
4027
  })
@@ -4018,33 +4029,33 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4018
4029
  _: 1
4019
4030
  }, 8, ["modelValue", "placeholder"]),
4020
4031
  createElementVNode("div", {
4021
- class: normalizeClass([unref$1(prefixCls2) + "__close"]),
4032
+ class: normalizeClass([unref(prefixCls2) + "__close"]),
4022
4033
  onClick: closePanel
4023
4034
  }, [
4024
- createVNode(unref$1(_sfc_main$v), {
4035
+ createVNode(unref(_sfc_main$v), {
4025
4036
  icon: "ep:close",
4026
4037
  size: 18
4027
4038
  })
4028
4039
  ], 2)
4029
4040
  ], 2),
4030
- createVNode(unref$1(ElScrollbar), null, {
4041
+ createVNode(unref(ElScrollbar), null, {
4031
4042
  default: withCtx(() => [
4032
4043
  createElementVNode("div", {
4033
- class: normalizeClass([unref$1(prefixCls2) + "__grid-container"])
4044
+ class: normalizeClass([unref(prefixCls2) + "__grid-container"])
4034
4045
  }, [
4035
4046
  currentCategoryMenus.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(currentCategoryMenus.value, (secondMenu, index) => {
4036
4047
  var _a2, _b;
4037
4048
  return openBlock(), createElementBlock("div", {
4038
4049
  key: index,
4039
- class: normalizeClass([unref$1(prefixCls2) + "__column"])
4050
+ class: normalizeClass([unref(prefixCls2) + "__column"])
4040
4051
  }, [
4041
4052
  createElementVNode("div", {
4042
- class: normalizeClass([unref$1(prefixCls2) + "__column-title"])
4053
+ class: normalizeClass([unref(prefixCls2) + "__column-title"])
4043
4054
  }, [
4044
4055
  createElementVNode("span", null, toDisplayString(((_a2 = secondMenu.meta) == null ? void 0 : _a2.title) || secondMenu.name), 1)
4045
4056
  ], 2),
4046
4057
  createElementVNode("div", {
4047
- class: normalizeClass([unref$1(prefixCls2) + "__column-list"])
4058
+ class: normalizeClass([unref(prefixCls2) + "__column-list"])
4048
4059
  }, [
4049
4060
  secondMenu.children && secondMenu.children.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(secondMenu.children.filter((c) => {
4050
4061
  var _a3;
@@ -4053,7 +4064,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4053
4064
  var _a3;
4054
4065
  return openBlock(), createElementBlock("div", {
4055
4066
  key: thirdMenu.path,
4056
- class: normalizeClass([unref$1(prefixCls2) + "__column-item"]),
4067
+ class: normalizeClass([unref(prefixCls2) + "__column-item"]),
4057
4068
  onClick: ($event) => {
4058
4069
  var _a4;
4059
4070
  return handleSelect(thirdMenu, `${(_a4 = groupedMenus.value[activeCategory.value]) == null ? void 0 : _a4.path}/${secondMenu.path}`);
@@ -4064,40 +4075,40 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4064
4075
  }), 128)) : (openBlock(), createElementBlock("div", {
4065
4076
  key: 1,
4066
4077
  class: normalizeClass([
4067
- unref$1(prefixCls2) + "__column-item",
4068
- { [unref$1(prefixCls2) + "__column-item--disabled"]: secondMenu.type === 1 }
4078
+ unref(prefixCls2) + "__column-item",
4079
+ { [unref(prefixCls2) + "__column-item--disabled"]: secondMenu.type === 1 }
4069
4080
  ]),
4070
4081
  onClick: ($event) => {
4071
4082
  var _a3;
4072
4083
  return secondMenu.type === 2 && handleSelect(secondMenu, (_a3 = groupedMenus.value[activeCategory.value]) == null ? void 0 : _a3.path);
4073
4084
  }
4074
4085
  }, [
4075
- createElementVNode("span", null, toDisplayString(secondMenu.type === 1 ? unref$1(t2)("common.noData") || "暂无" : ((_b = secondMenu.meta) == null ? void 0 : _b.title) || secondMenu.name), 1)
4086
+ createElementVNode("span", null, toDisplayString(secondMenu.type === 1 ? unref(t2)("common.noData") || "暂无" : ((_b = secondMenu.meta) == null ? void 0 : _b.title) || secondMenu.name), 1)
4076
4087
  ], 10, _hoisted_4$7))
4077
4088
  ], 2)
4078
4089
  ], 2);
4079
4090
  }), 128)) : groupedMenus.value[activeCategory.value] ? (openBlock(), createElementBlock("div", {
4080
4091
  key: 1,
4081
- class: normalizeClass([unref$1(prefixCls2) + "__column"])
4092
+ class: normalizeClass([unref(prefixCls2) + "__column"])
4082
4093
  }, [
4083
4094
  createElementVNode("div", {
4084
- class: normalizeClass([unref$1(prefixCls2) + "__column-list"])
4095
+ class: normalizeClass([unref(prefixCls2) + "__column-list"])
4085
4096
  }, [
4086
4097
  createElementVNode("div", {
4087
- class: normalizeClass([unref$1(prefixCls2) + "__column-item", unref$1(prefixCls2) + "__column-item--disabled"])
4098
+ class: normalizeClass([unref(prefixCls2) + "__column-item", unref(prefixCls2) + "__column-item--disabled"])
4088
4099
  }, [
4089
- createElementVNode("span", null, toDisplayString(unref$1(t2)("common.noData") || "暂无"), 1)
4100
+ createElementVNode("span", null, toDisplayString(unref(t2)("common.noData") || "暂无"), 1)
4090
4101
  ], 2)
4091
4102
  ], 2)
4092
4103
  ], 2)) : (openBlock(), createElementBlock("div", {
4093
4104
  key: 2,
4094
- class: normalizeClass([unref$1(prefixCls2) + "__empty"])
4105
+ class: normalizeClass([unref(prefixCls2) + "__empty"])
4095
4106
  }, [
4096
- createVNode(unref$1(_sfc_main$v), {
4107
+ createVNode(unref(_sfc_main$v), {
4097
4108
  icon: "ant-design:inbox-outlined",
4098
4109
  size: 48
4099
4110
  }),
4100
- createElementVNode("span", null, toDisplayString(unref$1(t2)("common.noDataTitle")), 1)
4111
+ createElementVNode("span", null, toDisplayString(unref(t2)("common.noDataTitle")), 1)
4101
4112
  ], 2))
4102
4113
  ], 2)
4103
4114
  ]),
@@ -4117,21 +4128,21 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4117
4128
  };
4118
4129
  }
4119
4130
  });
4120
- const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-097e210a"]]);
4131
+ const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-b7114eec"]]);
4121
4132
  const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
4122
4133
  __name: "Logo",
4123
4134
  setup(__props) {
4124
4135
  const { getPrefixCls: getPrefixCls2 } = useDesign();
4125
4136
  const prefixCls2 = getPrefixCls2("logo");
4126
4137
  const appStore = useAppStore();
4127
- const title = computed$1(() => appStore.getTitle);
4128
- const layout = computed$1(() => appStore.getLayout);
4129
- const theme = computed$1(() => appStore.getTheme);
4130
- const panelVisible = ref$1(false);
4138
+ const title = computed(() => appStore.getTitle);
4139
+ const layout = computed(() => appStore.getLayout);
4140
+ const theme = computed(() => appStore.getTheme);
4141
+ const panelVisible = ref(false);
4131
4142
  const togglePanel = (isActive) => {
4132
4143
  panelVisible.value = isActive;
4133
4144
  };
4134
- const fontColor = computed$1(() => {
4145
+ const fontColor = computed(() => {
4135
4146
  return theme.value === "whiteLight" ? "var(--el-color-primary)" : "#fff";
4136
4147
  });
4137
4148
  return (_ctx, _cache) => {
@@ -4139,12 +4150,12 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
4139
4150
  return openBlock(), createElementBlock("div", null, [
4140
4151
  createElementVNode("div", {
4141
4152
  class: normalizeClass([
4142
- unref$1(prefixCls2),
4143
- `${unref$1(prefixCls2)}__Top`,
4153
+ unref(prefixCls2),
4154
+ `${unref(prefixCls2)}__Top`,
4144
4155
  "flex !h-[var(--top-tool-height)] items-center cursor-default relative decoration-none overflow-hidden"
4145
4156
  ])
4146
4157
  }, [
4147
- createVNode(unref$1(MenuTrigger), {
4158
+ createVNode(unref(MenuTrigger), {
4148
4159
  class: "mr-12px",
4149
4160
  active: panelVisible.value,
4150
4161
  onToggle: togglePanel
@@ -4165,7 +4176,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
4165
4176
  style: normalizeStyle({ color: fontColor.value })
4166
4177
  }, toDisplayString(title.value), 7)
4167
4178
  ], 2),
4168
- createVNode(unref$1(ProductServicePanel), {
4179
+ createVNode(unref(ProductServicePanel), {
4169
4180
  visible: panelVisible.value,
4170
4181
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => panelVisible.value = $event)
4171
4182
  }, null, 8, ["visible"])
@@ -4186,7 +4197,7 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign({ name: "AppView" }, {
4186
4197
  return (_ctx, _cache) => {
4187
4198
  const _component_router_view = resolveComponent("router-view");
4188
4199
  return openBlock(), createElementBlock("section", _hoisted_1$c, [
4189
- unref$1(routerAlive) ? (openBlock(), createBlock(_component_router_view, { key: 0 }, {
4200
+ unref(routerAlive) ? (openBlock(), createBlock(_component_router_view, { key: 0 }, {
4190
4201
  default: withCtx(({ Component, route }) => [
4191
4202
  (openBlock(), createBlock(resolveDynamicComponent(Component), {
4192
4203
  key: route.fullPath
@@ -7971,10 +7982,9 @@ const _sfc_main$p = /* @__PURE__ */ Object.assign({ name: "Message" }, {
7971
7982
  });
7972
7983
  return (_ctx, _cache) => {
7973
7984
  const _component_Icon = resolveComponent("Icon");
7974
- const _component_ElBadge = resolveComponent("ElBadge");
7975
7985
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
7976
- createVNode(_component_ElBadge, {
7977
- "is-dot": unref$1(unreadCount) > 0,
7986
+ createVNode(unref(ElBadge), {
7987
+ "is-dot": unref(unreadCount) > 0,
7978
7988
  class: "message-badge"
7979
7989
  }, {
7980
7990
  default: withCtx(() => [
@@ -7990,7 +8000,7 @@ const _sfc_main$p = /* @__PURE__ */ Object.assign({ name: "Message" }, {
7990
8000
  };
7991
8001
  }
7992
8002
  });
7993
- const Message = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-a31cde48"]]);
8003
+ const Message = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-f707ca24"]]);
7994
8004
  const _sfc_main$o = /* @__PURE__ */ Object.assign({ name: "Collapse" }, {
7995
8005
  __name: "Collapse",
7996
8006
  props: {
@@ -8011,12 +8021,12 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign({ name: "Collapse" }, {
8011
8021
  return (_ctx, _cache) => {
8012
8022
  const _component_Icon = resolveComponent("Icon");
8013
8023
  return openBlock(), createElementBlock("div", {
8014
- class: normalizeClass(unref$1(prefixCls2)),
8024
+ class: normalizeClass(unref(prefixCls2)),
8015
8025
  onClick: toggleCollapse
8016
8026
  }, [
8017
8027
  createVNode(_component_Icon, {
8018
8028
  color: __props.color,
8019
- icon: unref$1(collapse) ? "ant-design:menu-unfold-outlined" : "ant-design:menu-fold-outlined",
8029
+ icon: unref(collapse) ? "ant-design:menu-unfold-outlined" : "ant-design:menu-fold-outlined",
8020
8030
  class: "cursor-pointer"
8021
8031
  }, null, 8, ["color", "icon"])
8022
8032
  ], 2);
@@ -8051,21 +8061,17 @@ const _sfc_main$n = /* @__PURE__ */ Object.assign({ name: "UserInfo" }, {
8051
8061
  };
8052
8062
  return (_ctx, _cache) => {
8053
8063
  const _component_Icon = resolveComponent("Icon");
8054
- const _component_ElAvatar = resolveComponent("ElAvatar");
8055
- const _component_ElDropdownItem = resolveComponent("ElDropdownItem");
8056
- const _component_ElDropdownMenu = resolveComponent("ElDropdownMenu");
8057
- const _component_ElDropdown = resolveComponent("ElDropdown");
8058
- return openBlock(), createBlock(_component_ElDropdown, {
8059
- class: normalizeClass(["custom-hover cursor-pointer", unref$1(prefixCls2)]),
8064
+ return openBlock(), createBlock(unref(ElDropdown), {
8065
+ class: normalizeClass(["custom-hover cursor-pointer", unref(prefixCls2)]),
8060
8066
  trigger: "click"
8061
8067
  }, {
8062
8068
  dropdown: withCtx(() => [
8063
- createVNode(_component_ElDropdownMenu, null, {
8069
+ createVNode(unref(ElDropdownMenu), null, {
8064
8070
  default: withCtx(() => [
8065
- createVNode(_component_ElDropdownItem, { onClick: loginOut }, {
8071
+ createVNode(unref(ElDropdownItem), { onClick: loginOut }, {
8066
8072
  default: withCtx(() => [
8067
8073
  createVNode(_component_Icon, { icon: "ep:switch-button" }),
8068
- createElementVNode("div", null, toDisplayString(unref$1(t2)("common.loginOut")), 1)
8074
+ createElementVNode("div", null, toDisplayString(unref(t2)("common.loginOut")), 1)
8069
8075
  ]),
8070
8076
  _: 1
8071
8077
  })
@@ -8075,8 +8081,8 @@ const _sfc_main$n = /* @__PURE__ */ Object.assign({ name: "UserInfo" }, {
8075
8081
  ]),
8076
8082
  default: withCtx(() => [
8077
8083
  createElementVNode("div", _hoisted_1$a, [
8078
- createVNode(_component_ElAvatar, {
8079
- src: unref$1(avatar),
8084
+ createVNode(unref(ElAvatar), {
8085
+ src: unref(avatar),
8080
8086
  size: 32,
8081
8087
  class: "!bg-transparent"
8082
8088
  }, {
@@ -8088,7 +8094,7 @@ const _sfc_main$n = /* @__PURE__ */ Object.assign({ name: "UserInfo" }, {
8088
8094
  ]),
8089
8095
  _: 1
8090
8096
  }, 8, ["src"]),
8091
- createElementVNode("span", _hoisted_2$9, toDisplayString(unref$1(userName)), 1),
8097
+ createElementVNode("span", _hoisted_2$9, toDisplayString(unref(userName)), 1),
8092
8098
  createElementVNode("span", _hoisted_3$8, [
8093
8099
  createVNode(_component_Icon, { icon: "ant-design:caret-down-outlined" })
8094
8100
  ])
@@ -8099,7 +8105,7 @@ const _sfc_main$n = /* @__PURE__ */ Object.assign({ name: "UserInfo" }, {
8099
8105
  };
8100
8106
  }
8101
8107
  });
8102
- const UserInfo = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-cead2987"]]);
8108
+ const UserInfo = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-36e09d56"]]);
8103
8109
  const filterBreadcrumb = (routes, parentPath = "") => {
8104
8110
  var _a2;
8105
8111
  const res = [];
@@ -8126,31 +8132,31 @@ const {
8126
8132
  getPrefixCls: getPrefixCls$3
8127
8133
  } = useDesign();
8128
8134
  const prefixCls$3 = getPrefixCls$3("breadcrumb");
8129
- const _sfc_main$m = /* @__PURE__ */ defineComponent$1({
8135
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
8130
8136
  name: "Breadcrumb",
8131
8137
  setup() {
8132
8138
  const appStore = useAppStore();
8133
- const breadcrumbIcon = computed$1(() => appStore.getBreadcrumbIcon);
8139
+ const breadcrumbIcon = computed(() => appStore.getBreadcrumbIcon);
8134
8140
  const {
8135
8141
  currentRoute
8136
- } = useRouter$1();
8142
+ } = useRouter();
8137
8143
  const {
8138
8144
  t: t2
8139
8145
  } = useI18n("layout");
8140
- const levelList = ref$1([]);
8146
+ const levelList = ref([]);
8141
8147
  const permissionStore = usePermissionStore();
8142
- const menuRouters = computed$1(() => {
8148
+ const menuRouters = computed(() => {
8143
8149
  const routers = permissionStore.getRouters;
8144
8150
  return filterBreadcrumb(routers);
8145
8151
  });
8146
8152
  const getBreadcrumb = () => {
8147
8153
  const currentPath = currentRoute.value.matched.slice(-1)[0].path;
8148
- levelList.value = filter(unref$1(menuRouters), (node) => {
8154
+ levelList.value = filter(unref(menuRouters), (node) => {
8149
8155
  return node.path === currentPath;
8150
8156
  });
8151
8157
  };
8152
8158
  const renderBreadcrumb = () => {
8153
- const breadcrumbList = treeToList(unref$1(levelList));
8159
+ const breadcrumbList = treeToList(unref(levelList));
8154
8160
  return breadcrumbList.map((v) => {
8155
8161
  const disabled = !v.redirect || v.redirect === "noredirect";
8156
8162
  const meta = v.meta;
@@ -8173,7 +8179,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent$1({
8173
8179
  });
8174
8180
  });
8175
8181
  };
8176
- watch$1(() => currentRoute.value, (route) => {
8182
+ watch(() => currentRoute.value, (route) => {
8177
8183
  if (route.path.startsWith("/redirect/")) {
8178
8184
  return;
8179
8185
  }
@@ -8662,19 +8668,16 @@ const _sfc_main$l = /* @__PURE__ */ Object.assign({ name: "LocaleDropdown" }, {
8662
8668
  };
8663
8669
  return (_ctx, _cache) => {
8664
8670
  const _component_Icon = resolveComponent("Icon");
8665
- const _component_ElDropdownItem = resolveComponent("ElDropdownItem");
8666
- const _component_ElDropdownMenu = resolveComponent("ElDropdownMenu");
8667
- const _component_ElDropdown = resolveComponent("ElDropdown");
8668
- return openBlock(), createBlock(_component_ElDropdown, {
8669
- class: normalizeClass(unref$1(prefixCls2)),
8671
+ return openBlock(), createBlock(unref(ElDropdown), {
8672
+ class: normalizeClass(unref(prefixCls2)),
8670
8673
  trigger: "click",
8671
8674
  onCommand: setLang
8672
8675
  }, {
8673
8676
  dropdown: withCtx(() => [
8674
- createVNode(_component_ElDropdownMenu, null, {
8677
+ createVNode(unref(ElDropdownMenu), null, {
8675
8678
  default: withCtx(() => [
8676
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(langMap), (item) => {
8677
- return openBlock(), createBlock(_component_ElDropdownItem, {
8679
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(langMap), (item) => {
8680
+ return openBlock(), createBlock(unref(ElDropdownItem), {
8678
8681
  key: item.lang,
8679
8682
  command: item.lang
8680
8683
  }, {
@@ -8741,17 +8744,17 @@ const _sfc_main$k = {
8741
8744
  };
8742
8745
  return (_ctx, _cache) => {
8743
8746
  return openBlock(), createElementBlock(Fragment, null, [
8744
- createElementVNode("div", null, toDisplayString(unref$1(t2)("setting.theme")), 1),
8747
+ createElementVNode("div", null, toDisplayString(unref(t2)("setting.theme")), 1),
8745
8748
  createElementVNode("div", _hoisted_1$9, [
8746
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(themeList), (item) => {
8749
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(themeList), (item) => {
8747
8750
  return openBlock(), createElementBlock("div", {
8748
- class: normalizeClass(["item", { "active": unref$1(theme) === item.key }]),
8751
+ class: normalizeClass(["item", { "active": unref(theme) === item.key }]),
8749
8752
  key: item.key,
8750
8753
  onClick: ($event) => handleClick(item)
8751
8754
  }, [
8752
8755
  createElementVNode("div", {
8753
8756
  class: "border",
8754
- style: normalizeStyle({ borderColor: unref$1(theme) === item.key ? "var(--el-color-primary)" : "#d2d5e4" })
8757
+ style: normalizeStyle({ borderColor: unref(theme) === item.key ? "var(--el-color-primary)" : "#d2d5e4" })
8755
8758
  }, [
8756
8759
  createElementVNode("div", {
8757
8760
  class: "square",
@@ -8793,55 +8796,55 @@ const _sfc_main$j = {
8793
8796
  };
8794
8797
  return (_ctx, _cache) => {
8795
8798
  return openBlock(), createElementBlock(Fragment, null, [
8796
- createElementVNode("div", _hoisted_1$8, toDisplayString(unref$1(t2)("setting.festivalTheme")), 1),
8799
+ createElementVNode("div", _hoisted_1$8, toDisplayString(unref(t2)("setting.festivalTheme")), 1),
8797
8800
  createElementVNode("div", _hoisted_2$7, [
8798
8801
  createElementVNode("div", {
8799
- class: normalizeClass(["item", { "active": unref$1(theme) === "springFestival" }]),
8802
+ class: normalizeClass(["item", { "active": unref(theme) === "springFestival" }]),
8800
8803
  onClick: _cache[0] || (_cache[0] = ($event) => handleClick("springFestival"))
8801
8804
  }, [
8802
8805
  createElementVNode("div", {
8803
8806
  class: "border",
8804
- style: normalizeStyle({ borderColor: unref$1(theme) === "springFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8807
+ style: normalizeStyle({ borderColor: unref(theme) === "springFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8805
8808
  }, [
8806
- createElementVNode("img", { src: unref$1(Chunjie) }, null, 8, _hoisted_3$6)
8809
+ createElementVNode("img", { src: unref(Chunjie) }, null, 8, _hoisted_3$6)
8807
8810
  ], 4),
8808
8811
  _cache[4] || (_cache[4] = createElementVNode("div", { class: "name" }, "春节", -1))
8809
8812
  ], 2),
8810
8813
  createElementVNode("div", {
8811
- class: normalizeClass(["item", { "active": unref$1(theme) === "dragonBoatFestival" }]),
8814
+ class: normalizeClass(["item", { "active": unref(theme) === "dragonBoatFestival" }]),
8812
8815
  onClick: _cache[1] || (_cache[1] = ($event) => handleClick("dragonBoatFestival"))
8813
8816
  }, [
8814
8817
  createElementVNode("div", {
8815
8818
  class: "border",
8816
- style: normalizeStyle({ borderColor: unref$1(theme) === "dragonBoatFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8819
+ style: normalizeStyle({ borderColor: unref(theme) === "dragonBoatFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8817
8820
  }, [
8818
- createElementVNode("img", { src: unref$1(Duanwu) }, null, 8, _hoisted_4$6)
8821
+ createElementVNode("img", { src: unref(Duanwu) }, null, 8, _hoisted_4$6)
8819
8822
  ], 4),
8820
8823
  _cache[5] || (_cache[5] = createElementVNode("div", { class: "name" }, "端午", -1))
8821
8824
  ], 2),
8822
8825
  createElementVNode("div", {
8823
- class: normalizeClass(["item", { "active": unref$1(theme) === "midAutumnFestival" }]),
8826
+ class: normalizeClass(["item", { "active": unref(theme) === "midAutumnFestival" }]),
8824
8827
  onClick: _cache[2] || (_cache[2] = ($event) => handleClick("midAutumnFestival"))
8825
8828
  }, [
8826
8829
  createElementVNode("div", {
8827
8830
  class: "border",
8828
- style: normalizeStyle({ borderColor: unref$1(theme) === "midAutumnFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8831
+ style: normalizeStyle({ borderColor: unref(theme) === "midAutumnFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8829
8832
  }, [
8830
- createElementVNode("img", { src: unref$1(Zhongqiu) }, null, 8, _hoisted_5$4)
8833
+ createElementVNode("img", { src: unref(Zhongqiu) }, null, 8, _hoisted_5$4)
8831
8834
  ], 4),
8832
8835
  _cache[6] || (_cache[6] = createElementVNode("div", { class: "name" }, "中秋", -1))
8833
8836
  ], 2)
8834
8837
  ]),
8835
8838
  createElementVNode("div", _hoisted_6$3, [
8836
8839
  createElementVNode("div", {
8837
- class: normalizeClass(["item", { "active": unref$1(theme) === "newYearsDay" }]),
8840
+ class: normalizeClass(["item", { "active": unref(theme) === "newYearsDay" }]),
8838
8841
  onClick: _cache[3] || (_cache[3] = ($event) => handleClick("newYearsDay"))
8839
8842
  }, [
8840
8843
  createElementVNode("div", {
8841
8844
  class: "border",
8842
- style: normalizeStyle({ borderColor: unref$1(theme) === "newYearsDay" ? "var(--el-color-primary)" : "#d2d5e4" })
8845
+ style: normalizeStyle({ borderColor: unref(theme) === "newYearsDay" ? "var(--el-color-primary)" : "#d2d5e4" })
8843
8846
  }, [
8844
- createElementVNode("img", { src: unref$1(Yuandan) }, null, 8, _hoisted_7$1)
8847
+ createElementVNode("img", { src: unref(Yuandan) }, null, 8, _hoisted_7$1)
8845
8848
  ], 4),
8846
8849
  _cache[7] || (_cache[7] = createElementVNode("div", { class: "name" }, "元旦", -1))
8847
8850
  ], 2),
@@ -8890,9 +8893,9 @@ const _sfc_main$i = {
8890
8893
  return (_ctx, _cache) => {
8891
8894
  const _component_Icon = resolveComponent("Icon");
8892
8895
  return openBlock(), createElementBlock(Fragment, null, [
8893
- createElementVNode("div", _hoisted_1$7, toDisplayString(unref$1(t2)("setting.layout")), 1),
8896
+ createElementVNode("div", _hoisted_1$7, toDisplayString(unref(t2)("setting.layout")), 1),
8894
8897
  createElementVNode("div", _hoisted_2$6, [
8895
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(layoutItems), (item) => {
8898
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(layoutItems), (item) => {
8896
8899
  return openBlock(), createElementBlock("div", {
8897
8900
  class: "item",
8898
8901
  key: item.key,
@@ -8900,7 +8903,7 @@ const _sfc_main$i = {
8900
8903
  }, [
8901
8904
  createElementVNode("div", {
8902
8905
  class: "border",
8903
- style: normalizeStyle({ borderColor: unref$1(layout) === item.key ? "var(--el-color-primary)" : "#d2d5e4" })
8906
+ style: normalizeStyle({ borderColor: unref(layout) === item.key ? "var(--el-color-primary)" : "#d2d5e4" })
8904
8907
  }, [
8905
8908
  createVNode(_component_Icon, {
8906
8909
  icon: item.icon,
@@ -8982,10 +8985,9 @@ const _sfc_main$h = /* @__PURE__ */ Object.assign({ name: "Setting" }, {
8982
8985
  return (_ctx, _cache) => {
8983
8986
  const _component_Icon = resolveComponent("Icon");
8984
8987
  const _component_el_button = resolveComponent("el-button");
8985
- const _component_ElDrawer = resolveComponent("ElDrawer");
8986
8988
  return openBlock(), createElementBlock(Fragment, null, [
8987
8989
  createElementVNode("div", mergeProps(_ctx.$attrs, {
8988
- class: unref$1(prefixCls2),
8990
+ class: unref(prefixCls2),
8989
8991
  onClick: _cache[0] || (_cache[0] = ($event) => drawer.value = true)
8990
8992
  }), [
8991
8993
  createVNode(_component_Icon, {
@@ -8994,17 +8996,17 @@ const _sfc_main$h = /* @__PURE__ */ Object.assign({ name: "Setting" }, {
8994
8996
  size: 18
8995
8997
  }, null, 8, ["color"])
8996
8998
  ], 16),
8997
- createVNode(_component_ElDrawer, {
8998
- modelValue: unref$1(drawer),
8999
+ createVNode(unref(ElDrawer), {
9000
+ modelValue: unref(drawer),
8999
9001
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(drawer) ? drawer.value = $event : null),
9000
9002
  "z-index": 4e3,
9001
9003
  size: "400px",
9002
- class: normalizeClass(unref$1(drawerCls)),
9003
- "modal-class": unref$1(overlayCls),
9004
+ class: normalizeClass(unref(drawerCls)),
9005
+ "modal-class": unref(overlayCls),
9004
9006
  "show-close": false
9005
9007
  }, {
9006
9008
  header: withCtx(() => [
9007
- createElementVNode("span", _hoisted_1$6, toDisplayString(unref$1(t2)("setting.projectSetting")), 1)
9009
+ createElementVNode("span", _hoisted_1$6, toDisplayString(unref(t2)("setting.projectSetting")), 1)
9008
9010
  ]),
9009
9011
  footer: withCtx(() => [
9010
9012
  createVNode(_component_el_button, { onClick: clearCache }, {
@@ -9039,7 +9041,7 @@ const _sfc_main$h = /* @__PURE__ */ Object.assign({ name: "Setting" }, {
9039
9041
  };
9040
9042
  }
9041
9043
  });
9042
- const Setting = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d708135e"]]);
9044
+ const Setting = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-81f39a2a"]]);
9043
9045
  const _sfc_main$g = {
9044
9046
  __name: "index",
9045
9047
  props: {
@@ -9111,7 +9113,7 @@ const _sfc_main$g = {
9111
9113
  const _component_Icon = resolveComponent("Icon");
9112
9114
  return __props.isModal ? (openBlock(), createBlock(_component_ElDialog, {
9113
9115
  key: 0,
9114
- modelValue: unref$1(showSearch),
9116
+ modelValue: unref(showSearch),
9115
9117
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(showSearch) ? showSearch.value = $event : null),
9116
9118
  "show-close": false,
9117
9119
  title: "菜单搜索"
@@ -9127,7 +9129,7 @@ const _sfc_main$g = {
9127
9129
  onChange: handleChange
9128
9130
  }, {
9129
9131
  default: withCtx(() => [
9130
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(options), (item) => {
9132
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (item) => {
9131
9133
  return openBlock(), createBlock(_component_el_option, {
9132
9134
  key: item.value,
9133
9135
  label: item.label,
@@ -9142,7 +9144,7 @@ const _sfc_main$g = {
9142
9144
  }, 8, ["modelValue"])) : (openBlock(), createElementBlock("div", {
9143
9145
  key: 1,
9144
9146
  class: "custom-hover",
9145
- onClick: _cache[2] || (_cache[2] = withModifiers(($event) => showTopSearch.value = !unref$1(showTopSearch), ["stop"]))
9147
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => showTopSearch.value = !unref(showTopSearch), ["stop"]))
9146
9148
  }, [
9147
9149
  createVNode(_component_Icon, { icon: "ep:search" }),
9148
9150
  createVNode(_component_el_select, {
@@ -9153,11 +9155,11 @@ const _sfc_main$g = {
9153
9155
  remote: "",
9154
9156
  placeholder: "请输入菜单内容",
9155
9157
  "remote-method": remoteMethod,
9156
- class: normalizeClass(["overflow-hidden transition-all-600", unref$1(showTopSearch) ? "!w-220px ml2" : "!w-0"]),
9158
+ class: normalizeClass(["overflow-hidden transition-all-600", unref(showTopSearch) ? "!w-220px ml2" : "!w-0"]),
9157
9159
  onChange: handleChange
9158
9160
  }, {
9159
9161
  default: withCtx(() => [
9160
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(options), (item) => {
9162
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (item) => {
9161
9163
  return openBlock(), createBlock(_component_el_option, {
9162
9164
  key: item.value,
9163
9165
  label: item.label,
@@ -9176,19 +9178,19 @@ const {
9176
9178
  variables
9177
9179
  } = useDesign();
9178
9180
  const prefixCls$2 = getPrefixCls$2("tool-header");
9179
- const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
9181
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
9180
9182
  name: "ToolHeader",
9181
9183
  setup(props, {
9182
9184
  slots
9183
9185
  }) {
9184
9186
  const appStore = useAppStore();
9185
- const breadcrumb = computed$1(() => appStore.getBreadcrumb);
9186
- const hamburger = computed$1(() => appStore.getHamburger);
9187
- const search = computed$1(() => appStore.search);
9188
- const layout = computed$1(() => appStore.getLayout);
9189
- const locale = computed$1(() => appStore.getLocale);
9190
- const message = computed$1(() => appStore.getMessage);
9191
- const setting = computed$1(() => appStore.getSetting);
9187
+ const breadcrumb = computed(() => appStore.getBreadcrumb);
9188
+ const hamburger = computed(() => appStore.getHamburger);
9189
+ const search = computed(() => appStore.search);
9190
+ const layout = computed(() => appStore.getLayout);
9191
+ const locale = computed(() => appStore.getLocale);
9192
+ const message = computed(() => appStore.getMessage);
9193
+ const setting = computed(() => appStore.getSetting);
9192
9194
  return () => {
9193
9195
  var _a2;
9194
9196
  return createVNode("div", {
@@ -9223,16 +9225,16 @@ const {
9223
9225
  getPrefixCls: getPrefixCls$1
9224
9226
  } = useDesign();
9225
9227
  const prefixCls$1 = getPrefixCls$1("layout");
9226
- const scrollRef = ref$1();
9228
+ const scrollRef = ref();
9227
9229
  const useRenderLayout = () => {
9228
9230
  const appStore = useAppStore();
9229
9231
  const permissionStore = usePermissionStore();
9230
- const pageLoading = computed$1(() => appStore.getPageLoading);
9231
- const collapse = computed$1(() => appStore.getCollapse);
9232
- const logo = computed$1(() => appStore.logo);
9233
- const leftMenuRouters = computed$1(() => permissionStore.getLeftMenuRouters);
9234
- const theme = computed$1(() => appStore.getTheme);
9235
- const festivalTopClass = computed$1(() => {
9232
+ const pageLoading = computed(() => appStore.getPageLoading);
9233
+ const collapse = computed(() => appStore.getCollapse);
9234
+ const logo = computed(() => appStore.logo);
9235
+ const leftMenuRouters = computed(() => permissionStore.getLeftMenuRouters);
9236
+ const theme = computed(() => appStore.getTheme);
9237
+ const festivalTopClass = computed(() => {
9236
9238
  return {
9237
9239
  "layout-top": true,
9238
9240
  "spring": theme.value === "springFestival",
@@ -9241,7 +9243,7 @@ const useRenderLayout = () => {
9241
9243
  "new-years": theme.value === "newYearsDay"
9242
9244
  };
9243
9245
  });
9244
- const festivalMenuClass = computed$1(() => {
9246
+ const festivalMenuClass = computed(() => {
9245
9247
  return {
9246
9248
  "layout-menu": true,
9247
9249
  "spring": theme.value === "springFestival",
@@ -9250,7 +9252,7 @@ const useRenderLayout = () => {
9250
9252
  "new-years": theme.value === "newYearsDay"
9251
9253
  };
9252
9254
  });
9253
- const zIndexClass = computed$1(() => {
9255
+ const zIndexClass = computed(() => {
9254
9256
  return {
9255
9257
  "z-100": theme.value === "whiteLight"
9256
9258
  };
@@ -9345,7 +9347,7 @@ const {
9345
9347
  getPrefixCls
9346
9348
  } = useDesign();
9347
9349
  const prefixCls = getPrefixCls("layout");
9348
- const layoutScrollRef = ref$1();
9350
+ const layoutScrollRef = ref();
9349
9351
  const renderLayout = (layout) => {
9350
9352
  const {
9351
9353
  renderLeft,
@@ -9354,7 +9356,7 @@ const renderLayout = (layout) => {
9354
9356
  scrollRef: scrollRef2
9355
9357
  } = useRenderLayout();
9356
9358
  layoutScrollRef.value = scrollRef2.value;
9357
- switch (unref$1(layout)) {
9359
+ switch (unref(layout)) {
9358
9360
  case "left":
9359
9361
  return renderLeft();
9360
9362
  case "top":
@@ -9363,13 +9365,13 @@ const renderLayout = (layout) => {
9363
9365
  return renderTopLeft();
9364
9366
  }
9365
9367
  };
9366
- const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
9368
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
9367
9369
  name: "Layout",
9368
9370
  setup() {
9369
9371
  const appStore = useAppStore();
9370
9372
  provide("layoutScrollRef", layoutScrollRef);
9371
- const theme = computed$1(() => appStore.getTheme);
9372
- const layout = computed$1(() => appStore.getLayout);
9373
+ const theme = computed(() => appStore.getTheme);
9374
+ const layout = computed(() => appStore.getLayout);
9373
9375
  return () => createVNode("section", {
9374
9376
  "class": [prefixCls, `${prefixCls}__${layout.value}`, "w-[100%] h-[100%] relative", `${prefixCls}__${theme.value}`]
9375
9377
  }, [renderLayout(layout), createVNode(_sfc_main$w, null, null)]);
@@ -9391,14 +9393,14 @@ const _sfc_main$d = {
9391
9393
  const { variables: variables2 } = useDesign();
9392
9394
  const appStore = useAppStore();
9393
9395
  const props = __props;
9394
- provide$1("configGlobal", props);
9395
- onMounted$1(() => {
9396
+ provide("configGlobal", props);
9397
+ onMounted(() => {
9396
9398
  if (!appStore.getIsSetTheme) {
9397
9399
  appStore.setCssVarTheme();
9398
9400
  }
9399
9401
  });
9400
9402
  const { width } = useWindowSize();
9401
- watch$1(
9403
+ watch(
9402
9404
  () => width.value,
9403
9405
  (width2) => {
9404
9406
  if (width2 < 768) {
@@ -9413,10 +9415,10 @@ const _sfc_main$d = {
9413
9415
  }
9414
9416
  );
9415
9417
  const localeStore = useLocaleStore();
9416
- const currentLocale = computed$1(() => localeStore.currentLocale);
9418
+ const currentLocale = computed(() => localeStore.currentLocale);
9417
9419
  return (_ctx, _cache) => {
9418
- return openBlock(), createBlock(unref$1(ElConfigProvider), {
9419
- namespace: unref$1(variables2).elNamespace,
9420
+ return openBlock(), createBlock(unref(ElConfigProvider), {
9421
+ namespace: unref(variables2).elNamespace,
9420
9422
  locale: currentLocale.value.elLocale,
9421
9423
  message: { max: 5 },
9422
9424
  size: __props.size
@@ -9457,7 +9459,7 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "PageCard" }, {
9457
9459
  return openBlock(), createBlock(_component_ElCard, {
9458
9460
  "body-style": __props.bodyStyle,
9459
9461
  header: __props.title,
9460
- class: normalizeClass([unref$1(prefixCls2), "m-16px"])
9462
+ class: normalizeClass([unref(prefixCls2), "m-16px"])
9461
9463
  }, {
9462
9464
  default: withCtx(() => [
9463
9465
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -9497,34 +9499,34 @@ const _sfc_main$b = /* @__PURE__ */ Object.assign({ name: "PageHeader" }, {
9497
9499
  const _component_Icon = resolveComponent("Icon");
9498
9500
  return openBlock(), createElementBlock("div", {
9499
9501
  ref: "pageHeader",
9500
- class: normalizeClass([`${unref$1(prefixCls2)}`])
9502
+ class: normalizeClass([`${unref(prefixCls2)}`])
9501
9503
  }, [
9502
9504
  createElementVNode("div", {
9503
- class: normalizeClass([`${unref$1(prefixCls2)}-sticky`, "h-[var(--top-tool-height)] flex items-center justify-between bg-white pl-20px pr-20px"])
9505
+ class: normalizeClass([`${unref(prefixCls2)}-sticky`, "h-[var(--top-tool-height)] flex items-center justify-between bg-white pl-20px pr-20px"])
9504
9506
  }, [
9505
9507
  createElementVNode("div", {
9506
- class: normalizeClass([`${unref$1(prefixCls2)}-sticky__left`, "flex items-center text-16px font-500 c-[var(--text-color)]"])
9508
+ class: normalizeClass([`${unref(prefixCls2)}-sticky__left`, "flex items-center text-16px font-500 c-[var(--text-color)]"])
9507
9509
  }, [
9508
9510
  __props.backAble ? (openBlock(), createElementBlock("div", {
9509
9511
  key: 0,
9510
- class: normalizeClass([`${unref$1(prefixCls2)}-sticky__back`, "flex items-center text-14px font-normal"])
9512
+ class: normalizeClass([`${unref(prefixCls2)}-sticky__back`, "flex items-center text-14px font-normal"])
9511
9513
  }, [
9512
9514
  createElementVNode("div", {
9513
- class: normalizeClass([`${unref$1(prefixCls2)}-sticky__back-btn`, "flex items-center"]),
9515
+ class: normalizeClass([`${unref(prefixCls2)}-sticky__back-btn`, "flex items-center"]),
9514
9516
  onClick: handleClick
9515
9517
  }, [
9516
9518
  createVNode(_component_Icon, {
9517
9519
  icon: "ant-design:left-outlined",
9518
9520
  size: 12
9519
9521
  }),
9520
- createElementVNode("span", _hoisted_1$5, toDisplayString(unref$1(t2)("layout.common.back")), 1)
9522
+ createElementVNode("span", _hoisted_1$5, toDisplayString(unref(t2)("layout.common.back")), 1)
9521
9523
  ], 2),
9522
9524
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "flex items-center ml-4px mr-4px" }, "/", -1))
9523
9525
  ], 2)) : createCommentVNode("", true),
9524
- createElementVNode("div", _hoisted_2$5, toDisplayString(__props.title || unref$1(t2)(unref$1(route).meta.title)), 1)
9526
+ createElementVNode("div", _hoisted_2$5, toDisplayString(__props.title || unref(t2)(unref(route).meta.title)), 1)
9525
9527
  ], 2),
9526
9528
  createElementVNode("div", {
9527
- class: normalizeClass([`${unref$1(prefixCls2)}-sticky__right`])
9529
+ class: normalizeClass([`${unref(prefixCls2)}-sticky__right`])
9528
9530
  }, [
9529
9531
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
9530
9532
  ], 2)
@@ -9579,7 +9581,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({ name: "ImageViewer" }, {
9579
9581
  };
9580
9582
  return (_ctx, _cache) => {
9581
9583
  const _component_ElImageViewer = resolveComponent("ElImageViewer");
9582
- return unref$1(show) ? (openBlock(), createBlock(_component_ElImageViewer, mergeProps({ key: 0 }, unref$1(getBindValue), { onClose: close }), null, 16)) : createCommentVNode("", true);
9584
+ return unref(show) ? (openBlock(), createBlock(_component_ElImageViewer, mergeProps({ key: 0 }, unref(getBindValue), { onClose: close }), null, 16)) : createCommentVNode("", true);
9583
9585
  };
9584
9586
  }
9585
9587
  });
@@ -9734,7 +9736,7 @@ const _sfc_main$9 = /* @__PURE__ */ Object.assign({ name: "UploadImg", inheritAt
9734
9736
  const _component_el_upload = resolveComponent("el-upload");
9735
9737
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
9736
9738
  createVNode(_component_el_upload, {
9737
- id: unref$1(uuid),
9739
+ id: unref(uuid),
9738
9740
  accept: __props.fileType.join(","),
9739
9741
  "before-upload": beforeUpload,
9740
9742
  class: normalizeClass(["upload", __props.drag ? "no-border" : ""]),
@@ -9762,7 +9764,7 @@ const _sfc_main$9 = /* @__PURE__ */ Object.assign({ name: "UploadImg", inheritAt
9762
9764
  onClick: _cache[0] || (_cache[0] = ($event) => imagePreview(__props.modelValue))
9763
9765
  }, [
9764
9766
  createVNode(_component_Icon, { icon: "ant-design:zoom-in-outlined" }),
9765
- __props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(unref$1(t2)("action.detail")), 1)) : createCommentVNode("", true)
9767
+ __props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(unref(t2)("action.detail")), 1)) : createCommentVNode("", true)
9766
9768
  ]),
9767
9769
  __props.showDelete && !__props.disabled ? (openBlock(), createElementBlock("div", {
9768
9770
  key: 0,
@@ -9770,7 +9772,7 @@ const _sfc_main$9 = /* @__PURE__ */ Object.assign({ name: "UploadImg", inheritAt
9770
9772
  onClick: deleteImg
9771
9773
  }, [
9772
9774
  createVNode(_component_Icon, { icon: "ant-design:delete-outlined" }),
9773
- __props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(unref$1(t2)("action.del")), 1)) : createCommentVNode("", true)
9775
+ __props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(unref(t2)("action.del")), 1)) : createCommentVNode("", true)
9774
9776
  ])) : createCommentVNode("", true)
9775
9777
  ])
9776
9778
  ], 64)) : (openBlock(), createElementBlock("div", _hoisted_5$3, [
@@ -9973,7 +9975,7 @@ const _sfc_main$8 = /* @__PURE__ */ Object.assign({ name: "UploadImgs", inheritA
9973
9975
  const _component_el_upload = resolveComponent("el-upload");
9974
9976
  return openBlock(), createElementBlock("div", _hoisted_1$3, [
9975
9977
  createVNode(_component_el_upload, {
9976
- "file-list": unref$1(fileList),
9978
+ "file-list": unref(fileList),
9977
9979
  "onUpdate:fileList": _cache[1] || (_cache[1] = ($event) => isRef(fileList) ? fileList.value = $event : null),
9978
9980
  accept: __props.fileType.join(","),
9979
9981
  "before-upload": beforeUpload,
@@ -10210,7 +10212,7 @@ const _sfc_main$7 = /* @__PURE__ */ Object.assign({ name: "UploadFile", inheritA
10210
10212
  key: 0,
10211
10213
  ref_key: "uploadRef",
10212
10214
  ref: uploadRef,
10213
- "file-list": unref$1(fileList),
10215
+ "file-list": unref(fileList),
10214
10216
  "onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => isRef(fileList) ? fileList.value = $event : null),
10215
10217
  "auto-upload": __props.autoUpload,
10216
10218
  "before-upload": beforeUpload,
@@ -10282,7 +10284,7 @@ const _sfc_main$7 = /* @__PURE__ */ Object.assign({ name: "UploadFile", inheritA
10282
10284
  ]),
10283
10285
  key: "0"
10284
10286
  } : void 0
10285
- ]), 1032, ["file-list", "auto-upload", "disabled", "drag", "limit", "multiple"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref$1(fileList), (file, index) => {
10287
+ ]), 1032, ["file-list", "auto-upload", "disabled", "drag", "limit", "multiple"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(fileList), (file, index) => {
10286
10288
  return openBlock(), createElementBlock("div", {
10287
10289
  key: index,
10288
10290
  class: "flex items-center file-list-item"
@@ -10343,7 +10345,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({ name: "Badge" }, {
10343
10345
  const prefixCls2 = getPrefixCls2("badge");
10344
10346
  return (_ctx, _cache) => {
10345
10347
  const _component_el_badge = resolveComponent("el-badge");
10346
- return openBlock(), createBlock(_component_el_badge, mergeProps(props, { class: unref$1(prefixCls2) }), {
10348
+ return openBlock(), createBlock(_component_el_badge, mergeProps(props, { class: unref(prefixCls2) }), {
10347
10349
  default: withCtx(() => [
10348
10350
  renderSlot(_ctx.$slots, "default")
10349
10351
  ]),
@@ -10380,14 +10382,14 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "Pagination" }, {
10380
10382
  emits: ["update:page", "update:limit", "pagination"],
10381
10383
  setup(__props, { emit: __emit }) {
10382
10384
  const appStore = useAppStore();
10383
- const layoutCurrentSize = computed$1(() => appStore.currentSize);
10385
+ const layoutCurrentSize = computed(() => appStore.currentSize);
10384
10386
  const isSmall = ref(layoutCurrentSize.value === "small");
10385
10387
  watchEffect(() => {
10386
10388
  isSmall.value = layoutCurrentSize.value === "small";
10387
10389
  });
10388
10390
  const props = __props;
10389
10391
  const emit = __emit;
10390
- const currentPage = computed$1({
10392
+ const currentPage = computed({
10391
10393
  get() {
10392
10394
  return props.page;
10393
10395
  },
@@ -10395,7 +10397,7 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "Pagination" }, {
10395
10397
  emit("update:page", val);
10396
10398
  }
10397
10399
  });
10398
- const pageSize = computed$1({
10400
+ const pageSize = computed({
10399
10401
  get() {
10400
10402
  return props.limit;
10401
10403
  },
@@ -10421,7 +10423,7 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "Pagination" }, {
10421
10423
  "onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => pageSize.value = $event),
10422
10424
  "pager-count": __props.pagerCount,
10423
10425
  total: __props.total,
10424
- small: unref$1(isSmall),
10426
+ small: unref(isSmall),
10425
10427
  class: "m-t-16px",
10426
10428
  layout: "prev, pager, next, sizes",
10427
10429
  onSizeChange: handleSizeChange,
@@ -10516,10 +10518,10 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign({ name: "Dialog" }, {
10516
10518
  const _component_Icon = resolveComponent("Icon");
10517
10519
  const _component_ElScrollbar = resolveComponent("ElScrollbar");
10518
10520
  const _component_ElDialog = resolveComponent("ElDialog");
10519
- return openBlock(), createBlock(_component_ElDialog, mergeProps(unref$1(getBindValue), {
10521
+ return openBlock(), createBlock(_component_ElDialog, mergeProps(unref(getBindValue), {
10520
10522
  "close-on-click-modal": true,
10521
10523
  fullscreen: __props.fullscreen,
10522
- width: unref$1(dialogWidth),
10524
+ width: unref(dialogWidth),
10523
10525
  top: __props.top,
10524
10526
  "destroy-on-close": "",
10525
10527
  "lock-scroll": "",
@@ -10548,7 +10550,7 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign({ name: "Dialog" }, {
10548
10550
  default: withCtx(() => [
10549
10551
  __props.scroll ? (openBlock(), createBlock(_component_ElScrollbar, {
10550
10552
  key: 0,
10551
- style: normalizeStyle(unref$1(dialogStyle)),
10553
+ style: normalizeStyle(unref(dialogStyle)),
10552
10554
  always: __props.scrollbarAlways
10553
10555
  }, {
10554
10556
  default: withCtx(() => [
@@ -10563,7 +10565,7 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign({ name: "Dialog" }, {
10563
10565
  ]),
10564
10566
  _: 2
10565
10567
  }, [
10566
- unref$1(slots).footer ? {
10568
+ unref(slots).footer ? {
10567
10569
  name: "footer",
10568
10570
  fn: withCtx(() => [
10569
10571
  renderSlot(_ctx.$slots, "footer")
@@ -10606,7 +10608,7 @@ const _sfc_main$3 = /* @__PURE__ */ Object.assign({ name: "Alert" }, {
10606
10608
  const props = __props;
10607
10609
  return (_ctx, _cache) => {
10608
10610
  const _component_el_alert = resolveComponent("el-alert");
10609
- return openBlock(), createBlock(_component_el_alert, mergeProps(props, { class: unref$1(prefixCls2) }), null, 16, ["class"]);
10611
+ return openBlock(), createBlock(_component_el_alert, mergeProps(props, { class: unref(prefixCls2) }), null, 16, ["class"]);
10610
10612
  };
10611
10613
  }
10612
10614
  });
@@ -10813,7 +10815,7 @@ const addEventListener = (target, eventType, cb, option) => {
10813
10815
  }
10814
10816
  };
10815
10817
  };
10816
- const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
10818
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
10817
10819
  name: "AnchorLink",
10818
10820
  props: {
10819
10821
  prefixCls: String,
@@ -10848,13 +10850,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
10848
10850
  });
10849
10851
  scrollTo2(href);
10850
10852
  };
10851
- watch$1(() => props.href, (val, oldVal) => {
10852
- nextTick$1(() => {
10853
+ watch(() => props.href, (val, oldVal) => {
10854
+ nextTick(() => {
10853
10855
  unregisterLink(oldVal);
10854
10856
  registerLink(val);
10855
10857
  });
10856
10858
  });
10857
- onMounted$1(() => {
10859
+ onMounted(() => {
10858
10860
  registerLink(props.href);
10859
10861
  });
10860
10862
  onBeforeUnmount(() => {
@@ -10892,7 +10894,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
10892
10894
  function _isSlot(s) {
10893
10895
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
10894
10896
  }
10895
- const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
10897
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10896
10898
  name: "Anchor",
10897
10899
  props: {
10898
10900
  offsetTop: Number,
@@ -11063,8 +11065,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
11063
11065
  },
11064
11066
  direction: anchorDirection
11065
11067
  });
11066
- onMounted$1(() => {
11067
- nextTick$1(() => {
11068
+ onMounted(() => {
11069
+ nextTick(() => {
11068
11070
  const container = getContainer.value();
11069
11071
  state.scrollContainer = container;
11070
11072
  state.scrollEvent = addEventListener(state.scrollContainer, "scroll", handleScroll);
@@ -11207,7 +11209,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ name: "Steps" }, {
11207
11209
  });
11208
11210
  const Steps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7d66ca39"]]);
11209
11211
  function useLayout() {
11210
- const collapsed = ref$1(false);
11212
+ const collapsed = ref(false);
11211
11213
  const toggleCollapsed = () => {
11212
11214
  collapsed.value = !collapsed.value;
11213
11215
  };