bmp-layout 0.0.9 → 0.0.11

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,9 +1,9 @@
1
- import { openBlock, createBlock, unref as unref$1, normalizeClass, nextTick as nextTick$1, 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, resolveComponent, 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
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, useRouter as useRouter$1 } from "vue-router";
6
+ import { createRouter, createWebHashHistory, useRoute, useRouter } from "vue-router";
7
7
  import "vue-i18n";
8
8
  import { useClipboard, useWindowSize } from "@vueuse/core";
9
9
  let store = createPinia();
@@ -958,9 +958,9 @@ const _sfc_main$w = /* @__PURE__ */ Object.assign({ name: "BackTop" }, {
958
958
  const { getPrefixCls: getPrefixCls2, variables: variables2 } = useDesign();
959
959
  const prefixCls2 = getPrefixCls2("backtop");
960
960
  return (_ctx, _cache) => {
961
- return openBlock(), createBlock(unref$1(ElBacktop), {
962
- class: normalizeClass(`${unref$1(prefixCls2)}-backtop`),
963
- 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`
964
964
  }, null, 8, ["class", "target"]);
965
965
  };
966
966
  }
@@ -1097,7 +1097,7 @@ const usePermissionStore = defineStore("layout-permission", {
1097
1097
  return { ...child, path: `${basePath}${childPath}` };
1098
1098
  });
1099
1099
  this.leftMenuRouters = [];
1100
- nextTick$1(() => {
1100
+ nextTick(() => {
1101
1101
  this.leftMenuRouters = routers;
1102
1102
  });
1103
1103
  },
@@ -3534,27 +3534,27 @@ const _sfc_main$v = /* @__PURE__ */ Object.assign({ name: "Icon" }, {
3534
3534
  }
3535
3535
  );
3536
3536
  return (_ctx, _cache) => {
3537
- return openBlock(), createBlock(unref$1(ElIcon), {
3538
- class: normalizeClass(unref$1(prefixCls2)),
3537
+ return openBlock(), createBlock(unref(ElIcon), {
3538
+ class: normalizeClass(unref(prefixCls2)),
3539
3539
  color: __props.color,
3540
3540
  size: __props.size
3541
3541
  }, {
3542
3542
  default: withCtx(() => [
3543
- unref$1(isLocal) ? (openBlock(), createElementBlock("svg", {
3543
+ unref(isLocal) ? (openBlock(), createElementBlock("svg", {
3544
3544
  key: 0,
3545
- class: normalizeClass(unref$1(getSvgClass))
3545
+ class: normalizeClass(unref(getSvgClass))
3546
3546
  }, [
3547
- createElementVNode("use", { "xlink:href": unref$1(symbolId) }, null, 8, _hoisted_1$e)
3547
+ createElementVNode("use", { "xlink:href": unref(symbolId) }, null, 8, _hoisted_1$e)
3548
3548
  ], 2)) : (openBlock(), createElementBlock("span", {
3549
3549
  key: 1,
3550
3550
  ref_key: "elRef",
3551
3551
  ref: elRef,
3552
3552
  class: normalizeClass(_ctx.$attrs.class),
3553
- style: normalizeStyle(unref$1(getIconifyStyle))
3553
+ style: normalizeStyle(unref(getIconifyStyle))
3554
3554
  }, [
3555
3555
  createElementVNode("span", {
3556
- class: normalizeClass(unref$1(getSvgClass)),
3557
- "data-icon": unref$1(symbolId)
3556
+ class: normalizeClass(unref(getSvgClass)),
3557
+ "data-icon": unref(symbolId)
3558
3558
  }, null, 10, _hoisted_2$b)
3559
3559
  ], 6))
3560
3560
  ]),
@@ -3583,7 +3583,7 @@ const getKey = (namespace2, key) => {
3583
3583
  }
3584
3584
  return `${namespace2}.${key}`;
3585
3585
  };
3586
- const useI18n$1 = (namespace2) => {
3586
+ const useI18n = (namespace2) => {
3587
3587
  const normalFn = {
3588
3588
  t: (key) => {
3589
3589
  return getKey(namespace2, key);
@@ -3615,7 +3615,7 @@ const useRenderMenuTitle = () => {
3615
3615
  const renderMenuTitle2 = (meta, level, mode) => {
3616
3616
  const {
3617
3617
  t: t2
3618
- } = useI18n$1();
3618
+ } = useI18n();
3619
3619
  const {
3620
3620
  title = "Please set title",
3621
3621
  icon
@@ -3821,11 +3821,11 @@ const _sfc_main$t = /* @__PURE__ */ Object.assign({ name: "MenuTrigger" }, {
3821
3821
  };
3822
3822
  return (_ctx, _cache) => {
3823
3823
  return openBlock(), createElementBlock("div", {
3824
- 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 }]),
3825
3825
  onClick: handleClick
3826
3826
  }, [
3827
3827
  createElementVNode("div", {
3828
- class: normalizeClass(`${unref$1(prefixCls2)}__hamburger-icon`)
3828
+ class: normalizeClass(`${unref(prefixCls2)}__hamburger-icon`)
3829
3829
  }, _cache[0] || (_cache[0] = [
3830
3830
  createElementVNode("span", { class: "line" }, null, -1),
3831
3831
  createElementVNode("span", { class: "line" }, null, -1),
@@ -3852,15 +3852,15 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3852
3852
  setup(__props, { emit: __emit }) {
3853
3853
  const { getPrefixCls: getPrefixCls2 } = useDesign();
3854
3854
  const prefixCls2 = getPrefixCls2("product-service-panel");
3855
- const { t: t2 } = useI18n$1("layout");
3855
+ const { t: t2 } = useI18n("layout");
3856
3856
  const props = __props;
3857
3857
  const emit = __emit;
3858
- const router = useRouter$1();
3858
+ const router = useRouter();
3859
3859
  const permissionStore = usePermissionStore();
3860
- const searchKeyword = ref$1("");
3861
- const activeCategory = ref$1(0);
3862
- const routers = computed$1(() => permissionStore.getRoleRouters);
3863
- const filteredMenus = computed$1(() => {
3860
+ const searchKeyword = ref("");
3861
+ const activeCategory = ref(0);
3862
+ const routers = computed(() => permissionStore.getRoleRouters);
3863
+ const filteredMenus = computed(() => {
3864
3864
  const keyword = searchKeyword.value.toLowerCase().trim();
3865
3865
  const filterHiddenMenus = (items) => {
3866
3866
  if (!items || !Array.isArray(items))
@@ -3894,7 +3894,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3894
3894
  };
3895
3895
  return filterFn(baseMenus);
3896
3896
  });
3897
- const groupedMenus = computed$1(() => {
3897
+ const groupedMenus = computed(() => {
3898
3898
  return filteredMenus.value.map((menu) => {
3899
3899
  var _a2, _b;
3900
3900
  return {
@@ -3910,7 +3910,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3910
3910
  };
3911
3911
  });
3912
3912
  });
3913
- const currentCategoryMenus = computed$1(() => {
3913
+ const currentCategoryMenus = computed(() => {
3914
3914
  if (groupedMenus.value.length === 0)
3915
3915
  return [];
3916
3916
  const group = groupedMenus.value[activeCategory.value];
@@ -3953,7 +3953,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3953
3953
  const handleCategorySelect = (index) => {
3954
3954
  activeCategory.value = index;
3955
3955
  };
3956
- watch$1(() => props.visible, (val) => {
3956
+ watch(() => props.visible, (val) => {
3957
3957
  if (val) {
3958
3958
  searchKeyword.value = "";
3959
3959
  activeCategory.value = 0;
@@ -3965,36 +3965,36 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
3965
3965
  default: withCtx(() => [
3966
3966
  __props.visible ? (openBlock(), createElementBlock("div", {
3967
3967
  key: 0,
3968
- class: normalizeClass([unref$1(prefixCls2) + "__overlay"]),
3968
+ class: normalizeClass([unref(prefixCls2) + "__overlay"]),
3969
3969
  onClick: closePanel
3970
3970
  }, [
3971
3971
  createVNode(Transition, { name: "slide-down" }, {
3972
3972
  default: withCtx(() => [
3973
3973
  __props.visible ? (openBlock(), createElementBlock("div", {
3974
3974
  key: 0,
3975
- class: normalizeClass([unref$1(prefixCls2)]),
3975
+ class: normalizeClass([unref(prefixCls2)]),
3976
3976
  onClick: _cache[1] || (_cache[1] = withModifiers(() => {
3977
3977
  }, ["stop"]))
3978
3978
  }, [
3979
3979
  createElementVNode("div", {
3980
- class: normalizeClass([unref$1(prefixCls2) + "__body"])
3980
+ class: normalizeClass([unref(prefixCls2) + "__body"])
3981
3981
  }, [
3982
3982
  createElementVNode("div", {
3983
- class: normalizeClass([unref$1(prefixCls2) + "__sidebar"])
3983
+ class: normalizeClass([unref(prefixCls2) + "__sidebar"])
3984
3984
  }, [
3985
3985
  createElementVNode("div", {
3986
- class: normalizeClass([unref$1(prefixCls2) + "__sidebar-title"])
3986
+ class: normalizeClass([unref(prefixCls2) + "__sidebar-title"])
3987
3987
  }, [
3988
- createElementVNode("span", null, toDisplayString(unref$1(t2)("common.allProducts")), 1)
3988
+ createElementVNode("span", null, toDisplayString(unref(t2)("common.allProducts")), 1)
3989
3989
  ], 2),
3990
- createVNode(unref$1(ElScrollbar), null, {
3990
+ createVNode(unref(ElScrollbar), null, {
3991
3991
  default: withCtx(() => [
3992
3992
  createElementVNode("div", _hoisted_1$d, [
3993
3993
  (openBlock(true), createElementBlock(Fragment, null, renderList(groupedMenus.value, (group, index) => {
3994
3994
  return openBlock(), createElementBlock("div", {
3995
3995
  key: index,
3996
3996
  class: normalizeClass([
3997
- unref$1(prefixCls2) + "__category",
3997
+ unref(prefixCls2) + "__category",
3998
3998
  { "is-active": activeCategory.value === index }
3999
3999
  ]),
4000
4000
  onClick: ($event) => handleCategorySelect(index)
@@ -4008,20 +4008,20 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4008
4008
  })
4009
4009
  ], 2),
4010
4010
  createElementVNode("div", {
4011
- class: normalizeClass([unref$1(prefixCls2) + "__content"])
4011
+ class: normalizeClass([unref(prefixCls2) + "__content"])
4012
4012
  }, [
4013
4013
  createElementVNode("div", {
4014
- class: normalizeClass([unref$1(prefixCls2) + "__header"])
4014
+ class: normalizeClass([unref(prefixCls2) + "__header"])
4015
4015
  }, [
4016
- createVNode(unref$1(ElInput), {
4016
+ createVNode(unref(ElInput), {
4017
4017
  modelValue: searchKeyword.value,
4018
4018
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKeyword.value = $event),
4019
- placeholder: unref$1(t2)("common.searchMenu"),
4019
+ placeholder: unref(t2)("common.searchMenu"),
4020
4020
  clearable: "",
4021
4021
  size: "default"
4022
4022
  }, {
4023
4023
  prefix: withCtx(() => [
4024
- createVNode(unref$1(_sfc_main$v), {
4024
+ createVNode(unref(_sfc_main$v), {
4025
4025
  icon: "ep:search",
4026
4026
  size: 16
4027
4027
  })
@@ -4029,33 +4029,33 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4029
4029
  _: 1
4030
4030
  }, 8, ["modelValue", "placeholder"]),
4031
4031
  createElementVNode("div", {
4032
- class: normalizeClass([unref$1(prefixCls2) + "__close"]),
4032
+ class: normalizeClass([unref(prefixCls2) + "__close"]),
4033
4033
  onClick: closePanel
4034
4034
  }, [
4035
- createVNode(unref$1(_sfc_main$v), {
4035
+ createVNode(unref(_sfc_main$v), {
4036
4036
  icon: "ep:close",
4037
4037
  size: 18
4038
4038
  })
4039
4039
  ], 2)
4040
4040
  ], 2),
4041
- createVNode(unref$1(ElScrollbar), null, {
4041
+ createVNode(unref(ElScrollbar), null, {
4042
4042
  default: withCtx(() => [
4043
4043
  createElementVNode("div", {
4044
- class: normalizeClass([unref$1(prefixCls2) + "__grid-container"])
4044
+ class: normalizeClass([unref(prefixCls2) + "__grid-container"])
4045
4045
  }, [
4046
4046
  currentCategoryMenus.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(currentCategoryMenus.value, (secondMenu, index) => {
4047
4047
  var _a2, _b;
4048
4048
  return openBlock(), createElementBlock("div", {
4049
4049
  key: index,
4050
- class: normalizeClass([unref$1(prefixCls2) + "__column"])
4050
+ class: normalizeClass([unref(prefixCls2) + "__column"])
4051
4051
  }, [
4052
4052
  createElementVNode("div", {
4053
- class: normalizeClass([unref$1(prefixCls2) + "__column-title"])
4053
+ class: normalizeClass([unref(prefixCls2) + "__column-title"])
4054
4054
  }, [
4055
4055
  createElementVNode("span", null, toDisplayString(((_a2 = secondMenu.meta) == null ? void 0 : _a2.title) || secondMenu.name), 1)
4056
4056
  ], 2),
4057
4057
  createElementVNode("div", {
4058
- class: normalizeClass([unref$1(prefixCls2) + "__column-list"])
4058
+ class: normalizeClass([unref(prefixCls2) + "__column-list"])
4059
4059
  }, [
4060
4060
  secondMenu.children && secondMenu.children.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(secondMenu.children.filter((c) => {
4061
4061
  var _a3;
@@ -4064,7 +4064,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4064
4064
  var _a3;
4065
4065
  return openBlock(), createElementBlock("div", {
4066
4066
  key: thirdMenu.path,
4067
- class: normalizeClass([unref$1(prefixCls2) + "__column-item"]),
4067
+ class: normalizeClass([unref(prefixCls2) + "__column-item"]),
4068
4068
  onClick: ($event) => {
4069
4069
  var _a4;
4070
4070
  return handleSelect(thirdMenu, `${(_a4 = groupedMenus.value[activeCategory.value]) == null ? void 0 : _a4.path}/${secondMenu.path}`);
@@ -4075,40 +4075,40 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
4075
4075
  }), 128)) : (openBlock(), createElementBlock("div", {
4076
4076
  key: 1,
4077
4077
  class: normalizeClass([
4078
- unref$1(prefixCls2) + "__column-item",
4079
- { [unref$1(prefixCls2) + "__column-item--disabled"]: secondMenu.type === 1 }
4078
+ unref(prefixCls2) + "__column-item",
4079
+ { [unref(prefixCls2) + "__column-item--disabled"]: secondMenu.type === 1 }
4080
4080
  ]),
4081
4081
  onClick: ($event) => {
4082
4082
  var _a3;
4083
4083
  return secondMenu.type === 2 && handleSelect(secondMenu, (_a3 = groupedMenus.value[activeCategory.value]) == null ? void 0 : _a3.path);
4084
4084
  }
4085
4085
  }, [
4086
- 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)
4087
4087
  ], 10, _hoisted_4$7))
4088
4088
  ], 2)
4089
4089
  ], 2);
4090
4090
  }), 128)) : groupedMenus.value[activeCategory.value] ? (openBlock(), createElementBlock("div", {
4091
4091
  key: 1,
4092
- class: normalizeClass([unref$1(prefixCls2) + "__column"])
4092
+ class: normalizeClass([unref(prefixCls2) + "__column"])
4093
4093
  }, [
4094
4094
  createElementVNode("div", {
4095
- class: normalizeClass([unref$1(prefixCls2) + "__column-list"])
4095
+ class: normalizeClass([unref(prefixCls2) + "__column-list"])
4096
4096
  }, [
4097
4097
  createElementVNode("div", {
4098
- 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"])
4099
4099
  }, [
4100
- createElementVNode("span", null, toDisplayString(unref$1(t2)("common.noData") || "暂无"), 1)
4100
+ createElementVNode("span", null, toDisplayString(unref(t2)("common.noData") || "暂无"), 1)
4101
4101
  ], 2)
4102
4102
  ], 2)
4103
4103
  ], 2)) : (openBlock(), createElementBlock("div", {
4104
4104
  key: 2,
4105
- class: normalizeClass([unref$1(prefixCls2) + "__empty"])
4105
+ class: normalizeClass([unref(prefixCls2) + "__empty"])
4106
4106
  }, [
4107
- createVNode(unref$1(_sfc_main$v), {
4107
+ createVNode(unref(_sfc_main$v), {
4108
4108
  icon: "ant-design:inbox-outlined",
4109
4109
  size: 48
4110
4110
  }),
4111
- createElementVNode("span", null, toDisplayString(unref$1(t2)("common.noDataTitle")), 1)
4111
+ createElementVNode("span", null, toDisplayString(unref(t2)("common.noDataTitle")), 1)
4112
4112
  ], 2))
4113
4113
  ], 2)
4114
4114
  ]),
@@ -4135,14 +4135,14 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
4135
4135
  const { getPrefixCls: getPrefixCls2 } = useDesign();
4136
4136
  const prefixCls2 = getPrefixCls2("logo");
4137
4137
  const appStore = useAppStore();
4138
- const title = computed$1(() => appStore.getTitle);
4139
- const layout = computed$1(() => appStore.getLayout);
4140
- const theme = computed$1(() => appStore.getTheme);
4141
- 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);
4142
4142
  const togglePanel = (isActive) => {
4143
4143
  panelVisible.value = isActive;
4144
4144
  };
4145
- const fontColor = computed$1(() => {
4145
+ const fontColor = computed(() => {
4146
4146
  return theme.value === "whiteLight" ? "var(--el-color-primary)" : "#fff";
4147
4147
  });
4148
4148
  return (_ctx, _cache) => {
@@ -4150,12 +4150,12 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
4150
4150
  return openBlock(), createElementBlock("div", null, [
4151
4151
  createElementVNode("div", {
4152
4152
  class: normalizeClass([
4153
- unref$1(prefixCls2),
4154
- `${unref$1(prefixCls2)}__Top`,
4153
+ unref(prefixCls2),
4154
+ `${unref(prefixCls2)}__Top`,
4155
4155
  "flex !h-[var(--top-tool-height)] items-center cursor-default relative decoration-none overflow-hidden"
4156
4156
  ])
4157
4157
  }, [
4158
- createVNode(unref$1(MenuTrigger), {
4158
+ createVNode(unref(MenuTrigger), {
4159
4159
  class: "mr-12px",
4160
4160
  active: panelVisible.value,
4161
4161
  onToggle: togglePanel
@@ -4176,7 +4176,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
4176
4176
  style: normalizeStyle({ color: fontColor.value })
4177
4177
  }, toDisplayString(title.value), 7)
4178
4178
  ], 2),
4179
- createVNode(unref$1(ProductServicePanel), {
4179
+ createVNode(unref(ProductServicePanel), {
4180
4180
  visible: panelVisible.value,
4181
4181
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => panelVisible.value = $event)
4182
4182
  }, null, 8, ["visible"])
@@ -4197,7 +4197,7 @@ const _sfc_main$q = /* @__PURE__ */ Object.assign({ name: "AppView" }, {
4197
4197
  return (_ctx, _cache) => {
4198
4198
  const _component_router_view = resolveComponent("router-view");
4199
4199
  return openBlock(), createElementBlock("section", _hoisted_1$c, [
4200
- unref$1(routerAlive) ? (openBlock(), createBlock(_component_router_view, { key: 0 }, {
4200
+ unref(routerAlive) ? (openBlock(), createBlock(_component_router_view, { key: 0 }, {
4201
4201
  default: withCtx(({ Component, route }) => [
4202
4202
  (openBlock(), createBlock(resolveDynamicComponent(Component), {
4203
4203
  key: route.fullPath
@@ -7983,8 +7983,8 @@ const _sfc_main$p = /* @__PURE__ */ Object.assign({ name: "Message" }, {
7983
7983
  return (_ctx, _cache) => {
7984
7984
  const _component_Icon = resolveComponent("Icon");
7985
7985
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
7986
- createVNode(unref$1(ElBadge), {
7987
- "is-dot": unref$1(unreadCount) > 0,
7986
+ createVNode(unref(ElBadge), {
7987
+ "is-dot": unref(unreadCount) > 0,
7988
7988
  class: "message-badge"
7989
7989
  }, {
7990
7990
  default: withCtx(() => [
@@ -8021,12 +8021,12 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign({ name: "Collapse" }, {
8021
8021
  return (_ctx, _cache) => {
8022
8022
  const _component_Icon = resolveComponent("Icon");
8023
8023
  return openBlock(), createElementBlock("div", {
8024
- class: normalizeClass(unref$1(prefixCls2)),
8024
+ class: normalizeClass(unref(prefixCls2)),
8025
8025
  onClick: toggleCollapse
8026
8026
  }, [
8027
8027
  createVNode(_component_Icon, {
8028
8028
  color: __props.color,
8029
- 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",
8030
8030
  class: "cursor-pointer"
8031
8031
  }, null, 8, ["color", "icon"])
8032
8032
  ], 2);
@@ -8061,17 +8061,17 @@ const _sfc_main$n = /* @__PURE__ */ Object.assign({ name: "UserInfo" }, {
8061
8061
  };
8062
8062
  return (_ctx, _cache) => {
8063
8063
  const _component_Icon = resolveComponent("Icon");
8064
- return openBlock(), createBlock(unref$1(ElDropdown), {
8065
- class: normalizeClass(["custom-hover cursor-pointer", unref$1(prefixCls2)]),
8064
+ return openBlock(), createBlock(unref(ElDropdown), {
8065
+ class: normalizeClass(["custom-hover cursor-pointer", unref(prefixCls2)]),
8066
8066
  trigger: "click"
8067
8067
  }, {
8068
8068
  dropdown: withCtx(() => [
8069
- createVNode(unref$1(ElDropdownMenu), null, {
8069
+ createVNode(unref(ElDropdownMenu), null, {
8070
8070
  default: withCtx(() => [
8071
- createVNode(unref$1(ElDropdownItem), { onClick: loginOut }, {
8071
+ createVNode(unref(ElDropdownItem), { onClick: loginOut }, {
8072
8072
  default: withCtx(() => [
8073
8073
  createVNode(_component_Icon, { icon: "ep:switch-button" }),
8074
- createElementVNode("div", null, toDisplayString(unref$1(t2)("common.loginOut")), 1)
8074
+ createElementVNode("div", null, toDisplayString(unref(t2)("common.loginOut")), 1)
8075
8075
  ]),
8076
8076
  _: 1
8077
8077
  })
@@ -8081,8 +8081,8 @@ const _sfc_main$n = /* @__PURE__ */ Object.assign({ name: "UserInfo" }, {
8081
8081
  ]),
8082
8082
  default: withCtx(() => [
8083
8083
  createElementVNode("div", _hoisted_1$a, [
8084
- createVNode(unref$1(ElAvatar), {
8085
- src: unref$1(avatar),
8084
+ createVNode(unref(ElAvatar), {
8085
+ src: unref(avatar),
8086
8086
  size: 32,
8087
8087
  class: "!bg-transparent"
8088
8088
  }, {
@@ -8094,7 +8094,7 @@ const _sfc_main$n = /* @__PURE__ */ Object.assign({ name: "UserInfo" }, {
8094
8094
  ]),
8095
8095
  _: 1
8096
8096
  }, 8, ["src"]),
8097
- createElementVNode("span", _hoisted_2$9, toDisplayString(unref$1(userName)), 1),
8097
+ createElementVNode("span", _hoisted_2$9, toDisplayString(unref(userName)), 1),
8098
8098
  createElementVNode("span", _hoisted_3$8, [
8099
8099
  createVNode(_component_Icon, { icon: "ant-design:caret-down-outlined" })
8100
8100
  ])
@@ -8132,31 +8132,31 @@ const {
8132
8132
  getPrefixCls: getPrefixCls$3
8133
8133
  } = useDesign();
8134
8134
  const prefixCls$3 = getPrefixCls$3("breadcrumb");
8135
- const _sfc_main$m = /* @__PURE__ */ defineComponent$1({
8135
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
8136
8136
  name: "Breadcrumb",
8137
8137
  setup() {
8138
8138
  const appStore = useAppStore();
8139
- const breadcrumbIcon = computed$1(() => appStore.getBreadcrumbIcon);
8139
+ const breadcrumbIcon = computed(() => appStore.getBreadcrumbIcon);
8140
8140
  const {
8141
8141
  currentRoute
8142
- } = useRouter$1();
8142
+ } = useRouter();
8143
8143
  const {
8144
8144
  t: t2
8145
8145
  } = useI18n("layout");
8146
- const levelList = ref$1([]);
8146
+ const levelList = ref([]);
8147
8147
  const permissionStore = usePermissionStore();
8148
- const menuRouters = computed$1(() => {
8148
+ const menuRouters = computed(() => {
8149
8149
  const routers = permissionStore.getRouters;
8150
8150
  return filterBreadcrumb(routers);
8151
8151
  });
8152
8152
  const getBreadcrumb = () => {
8153
8153
  const currentPath = currentRoute.value.matched.slice(-1)[0].path;
8154
- levelList.value = filter(unref$1(menuRouters), (node) => {
8154
+ levelList.value = filter(unref(menuRouters), (node) => {
8155
8155
  return node.path === currentPath;
8156
8156
  });
8157
8157
  };
8158
8158
  const renderBreadcrumb = () => {
8159
- const breadcrumbList = treeToList(unref$1(levelList));
8159
+ const breadcrumbList = treeToList(unref(levelList));
8160
8160
  return breadcrumbList.map((v) => {
8161
8161
  const disabled = !v.redirect || v.redirect === "noredirect";
8162
8162
  const meta = v.meta;
@@ -8179,7 +8179,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent$1({
8179
8179
  });
8180
8180
  });
8181
8181
  };
8182
- watch$1(() => currentRoute.value, (route) => {
8182
+ watch(() => currentRoute.value, (route) => {
8183
8183
  if (route.path.startsWith("/redirect/")) {
8184
8184
  return;
8185
8185
  }
@@ -8668,16 +8668,16 @@ const _sfc_main$l = /* @__PURE__ */ Object.assign({ name: "LocaleDropdown" }, {
8668
8668
  };
8669
8669
  return (_ctx, _cache) => {
8670
8670
  const _component_Icon = resolveComponent("Icon");
8671
- return openBlock(), createBlock(unref$1(ElDropdown), {
8672
- class: normalizeClass(unref$1(prefixCls2)),
8671
+ return openBlock(), createBlock(unref(ElDropdown), {
8672
+ class: normalizeClass(unref(prefixCls2)),
8673
8673
  trigger: "click",
8674
8674
  onCommand: setLang
8675
8675
  }, {
8676
8676
  dropdown: withCtx(() => [
8677
- createVNode(unref$1(ElDropdownMenu), null, {
8677
+ createVNode(unref(ElDropdownMenu), null, {
8678
8678
  default: withCtx(() => [
8679
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(langMap), (item) => {
8680
- return openBlock(), createBlock(unref$1(ElDropdownItem), {
8679
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(langMap), (item) => {
8680
+ return openBlock(), createBlock(unref(ElDropdownItem), {
8681
8681
  key: item.lang,
8682
8682
  command: item.lang
8683
8683
  }, {
@@ -8744,17 +8744,17 @@ const _sfc_main$k = {
8744
8744
  };
8745
8745
  return (_ctx, _cache) => {
8746
8746
  return openBlock(), createElementBlock(Fragment, null, [
8747
- createElementVNode("div", null, toDisplayString(unref$1(t2)("setting.theme")), 1),
8747
+ createElementVNode("div", null, toDisplayString(unref(t2)("setting.theme")), 1),
8748
8748
  createElementVNode("div", _hoisted_1$9, [
8749
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(themeList), (item) => {
8749
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(themeList), (item) => {
8750
8750
  return openBlock(), createElementBlock("div", {
8751
- class: normalizeClass(["item", { "active": unref$1(theme) === item.key }]),
8751
+ class: normalizeClass(["item", { "active": unref(theme) === item.key }]),
8752
8752
  key: item.key,
8753
8753
  onClick: ($event) => handleClick(item)
8754
8754
  }, [
8755
8755
  createElementVNode("div", {
8756
8756
  class: "border",
8757
- 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" })
8758
8758
  }, [
8759
8759
  createElementVNode("div", {
8760
8760
  class: "square",
@@ -8796,55 +8796,55 @@ const _sfc_main$j = {
8796
8796
  };
8797
8797
  return (_ctx, _cache) => {
8798
8798
  return openBlock(), createElementBlock(Fragment, null, [
8799
- createElementVNode("div", _hoisted_1$8, toDisplayString(unref$1(t2)("setting.festivalTheme")), 1),
8799
+ createElementVNode("div", _hoisted_1$8, toDisplayString(unref(t2)("setting.festivalTheme")), 1),
8800
8800
  createElementVNode("div", _hoisted_2$7, [
8801
8801
  createElementVNode("div", {
8802
- class: normalizeClass(["item", { "active": unref$1(theme) === "springFestival" }]),
8802
+ class: normalizeClass(["item", { "active": unref(theme) === "springFestival" }]),
8803
8803
  onClick: _cache[0] || (_cache[0] = ($event) => handleClick("springFestival"))
8804
8804
  }, [
8805
8805
  createElementVNode("div", {
8806
8806
  class: "border",
8807
- style: normalizeStyle({ borderColor: unref$1(theme) === "springFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8807
+ style: normalizeStyle({ borderColor: unref(theme) === "springFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8808
8808
  }, [
8809
- createElementVNode("img", { src: unref$1(Chunjie) }, null, 8, _hoisted_3$6)
8809
+ createElementVNode("img", { src: unref(Chunjie) }, null, 8, _hoisted_3$6)
8810
8810
  ], 4),
8811
8811
  _cache[4] || (_cache[4] = createElementVNode("div", { class: "name" }, "春节", -1))
8812
8812
  ], 2),
8813
8813
  createElementVNode("div", {
8814
- class: normalizeClass(["item", { "active": unref$1(theme) === "dragonBoatFestival" }]),
8814
+ class: normalizeClass(["item", { "active": unref(theme) === "dragonBoatFestival" }]),
8815
8815
  onClick: _cache[1] || (_cache[1] = ($event) => handleClick("dragonBoatFestival"))
8816
8816
  }, [
8817
8817
  createElementVNode("div", {
8818
8818
  class: "border",
8819
- style: normalizeStyle({ borderColor: unref$1(theme) === "dragonBoatFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8819
+ style: normalizeStyle({ borderColor: unref(theme) === "dragonBoatFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8820
8820
  }, [
8821
- createElementVNode("img", { src: unref$1(Duanwu) }, null, 8, _hoisted_4$6)
8821
+ createElementVNode("img", { src: unref(Duanwu) }, null, 8, _hoisted_4$6)
8822
8822
  ], 4),
8823
8823
  _cache[5] || (_cache[5] = createElementVNode("div", { class: "name" }, "端午", -1))
8824
8824
  ], 2),
8825
8825
  createElementVNode("div", {
8826
- class: normalizeClass(["item", { "active": unref$1(theme) === "midAutumnFestival" }]),
8826
+ class: normalizeClass(["item", { "active": unref(theme) === "midAutumnFestival" }]),
8827
8827
  onClick: _cache[2] || (_cache[2] = ($event) => handleClick("midAutumnFestival"))
8828
8828
  }, [
8829
8829
  createElementVNode("div", {
8830
8830
  class: "border",
8831
- style: normalizeStyle({ borderColor: unref$1(theme) === "midAutumnFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8831
+ style: normalizeStyle({ borderColor: unref(theme) === "midAutumnFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
8832
8832
  }, [
8833
- createElementVNode("img", { src: unref$1(Zhongqiu) }, null, 8, _hoisted_5$4)
8833
+ createElementVNode("img", { src: unref(Zhongqiu) }, null, 8, _hoisted_5$4)
8834
8834
  ], 4),
8835
8835
  _cache[6] || (_cache[6] = createElementVNode("div", { class: "name" }, "中秋", -1))
8836
8836
  ], 2)
8837
8837
  ]),
8838
8838
  createElementVNode("div", _hoisted_6$3, [
8839
8839
  createElementVNode("div", {
8840
- class: normalizeClass(["item", { "active": unref$1(theme) === "newYearsDay" }]),
8840
+ class: normalizeClass(["item", { "active": unref(theme) === "newYearsDay" }]),
8841
8841
  onClick: _cache[3] || (_cache[3] = ($event) => handleClick("newYearsDay"))
8842
8842
  }, [
8843
8843
  createElementVNode("div", {
8844
8844
  class: "border",
8845
- style: normalizeStyle({ borderColor: unref$1(theme) === "newYearsDay" ? "var(--el-color-primary)" : "#d2d5e4" })
8845
+ style: normalizeStyle({ borderColor: unref(theme) === "newYearsDay" ? "var(--el-color-primary)" : "#d2d5e4" })
8846
8846
  }, [
8847
- createElementVNode("img", { src: unref$1(Yuandan) }, null, 8, _hoisted_7$1)
8847
+ createElementVNode("img", { src: unref(Yuandan) }, null, 8, _hoisted_7$1)
8848
8848
  ], 4),
8849
8849
  _cache[7] || (_cache[7] = createElementVNode("div", { class: "name" }, "元旦", -1))
8850
8850
  ], 2),
@@ -8893,9 +8893,9 @@ const _sfc_main$i = {
8893
8893
  return (_ctx, _cache) => {
8894
8894
  const _component_Icon = resolveComponent("Icon");
8895
8895
  return openBlock(), createElementBlock(Fragment, null, [
8896
- createElementVNode("div", _hoisted_1$7, toDisplayString(unref$1(t2)("setting.layout")), 1),
8896
+ createElementVNode("div", _hoisted_1$7, toDisplayString(unref(t2)("setting.layout")), 1),
8897
8897
  createElementVNode("div", _hoisted_2$6, [
8898
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(layoutItems), (item) => {
8898
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(layoutItems), (item) => {
8899
8899
  return openBlock(), createElementBlock("div", {
8900
8900
  class: "item",
8901
8901
  key: item.key,
@@ -8903,7 +8903,7 @@ const _sfc_main$i = {
8903
8903
  }, [
8904
8904
  createElementVNode("div", {
8905
8905
  class: "border",
8906
- 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" })
8907
8907
  }, [
8908
8908
  createVNode(_component_Icon, {
8909
8909
  icon: item.icon,
@@ -8987,7 +8987,7 @@ const _sfc_main$h = /* @__PURE__ */ Object.assign({ name: "Setting" }, {
8987
8987
  const _component_el_button = resolveComponent("el-button");
8988
8988
  return openBlock(), createElementBlock(Fragment, null, [
8989
8989
  createElementVNode("div", mergeProps(_ctx.$attrs, {
8990
- class: unref$1(prefixCls2),
8990
+ class: unref(prefixCls2),
8991
8991
  onClick: _cache[0] || (_cache[0] = ($event) => drawer.value = true)
8992
8992
  }), [
8993
8993
  createVNode(_component_Icon, {
@@ -8996,17 +8996,17 @@ const _sfc_main$h = /* @__PURE__ */ Object.assign({ name: "Setting" }, {
8996
8996
  size: 18
8997
8997
  }, null, 8, ["color"])
8998
8998
  ], 16),
8999
- createVNode(unref$1(ElDrawer), {
9000
- modelValue: unref$1(drawer),
8999
+ createVNode(unref(ElDrawer), {
9000
+ modelValue: unref(drawer),
9001
9001
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(drawer) ? drawer.value = $event : null),
9002
9002
  "z-index": 4e3,
9003
9003
  size: "400px",
9004
- class: normalizeClass(unref$1(drawerCls)),
9005
- "modal-class": unref$1(overlayCls),
9004
+ class: normalizeClass(unref(drawerCls)),
9005
+ "modal-class": unref(overlayCls),
9006
9006
  "show-close": false
9007
9007
  }, {
9008
9008
  header: withCtx(() => [
9009
- createElementVNode("span", _hoisted_1$6, toDisplayString(unref$1(t2)("setting.projectSetting")), 1)
9009
+ createElementVNode("span", _hoisted_1$6, toDisplayString(unref(t2)("setting.projectSetting")), 1)
9010
9010
  ]),
9011
9011
  footer: withCtx(() => [
9012
9012
  createVNode(_component_el_button, { onClick: clearCache }, {
@@ -9113,7 +9113,7 @@ const _sfc_main$g = {
9113
9113
  const _component_Icon = resolveComponent("Icon");
9114
9114
  return __props.isModal ? (openBlock(), createBlock(_component_ElDialog, {
9115
9115
  key: 0,
9116
- modelValue: unref$1(showSearch),
9116
+ modelValue: unref(showSearch),
9117
9117
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(showSearch) ? showSearch.value = $event : null),
9118
9118
  "show-close": false,
9119
9119
  title: "菜单搜索"
@@ -9129,7 +9129,7 @@ const _sfc_main$g = {
9129
9129
  onChange: handleChange
9130
9130
  }, {
9131
9131
  default: withCtx(() => [
9132
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(options), (item) => {
9132
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (item) => {
9133
9133
  return openBlock(), createBlock(_component_el_option, {
9134
9134
  key: item.value,
9135
9135
  label: item.label,
@@ -9144,7 +9144,7 @@ const _sfc_main$g = {
9144
9144
  }, 8, ["modelValue"])) : (openBlock(), createElementBlock("div", {
9145
9145
  key: 1,
9146
9146
  class: "custom-hover",
9147
- 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"]))
9148
9148
  }, [
9149
9149
  createVNode(_component_Icon, { icon: "ep:search" }),
9150
9150
  createVNode(_component_el_select, {
@@ -9155,11 +9155,11 @@ const _sfc_main$g = {
9155
9155
  remote: "",
9156
9156
  placeholder: "请输入菜单内容",
9157
9157
  "remote-method": remoteMethod,
9158
- 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"]),
9159
9159
  onChange: handleChange
9160
9160
  }, {
9161
9161
  default: withCtx(() => [
9162
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(options), (item) => {
9162
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (item) => {
9163
9163
  return openBlock(), createBlock(_component_el_option, {
9164
9164
  key: item.value,
9165
9165
  label: item.label,
@@ -9178,19 +9178,19 @@ const {
9178
9178
  variables
9179
9179
  } = useDesign();
9180
9180
  const prefixCls$2 = getPrefixCls$2("tool-header");
9181
- const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
9181
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
9182
9182
  name: "ToolHeader",
9183
9183
  setup(props, {
9184
9184
  slots
9185
9185
  }) {
9186
9186
  const appStore = useAppStore();
9187
- const breadcrumb = computed$1(() => appStore.getBreadcrumb);
9188
- const hamburger = computed$1(() => appStore.getHamburger);
9189
- const search = computed$1(() => appStore.search);
9190
- const layout = computed$1(() => appStore.getLayout);
9191
- const locale = computed$1(() => appStore.getLocale);
9192
- const message = computed$1(() => appStore.getMessage);
9193
- 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);
9194
9194
  return () => {
9195
9195
  var _a2;
9196
9196
  return createVNode("div", {
@@ -9225,16 +9225,16 @@ const {
9225
9225
  getPrefixCls: getPrefixCls$1
9226
9226
  } = useDesign();
9227
9227
  const prefixCls$1 = getPrefixCls$1("layout");
9228
- const scrollRef = ref$1();
9228
+ const scrollRef = ref();
9229
9229
  const useRenderLayout = () => {
9230
9230
  const appStore = useAppStore();
9231
9231
  const permissionStore = usePermissionStore();
9232
- const pageLoading = computed$1(() => appStore.getPageLoading);
9233
- const collapse = computed$1(() => appStore.getCollapse);
9234
- const logo = computed$1(() => appStore.logo);
9235
- const leftMenuRouters = computed$1(() => permissionStore.getLeftMenuRouters);
9236
- const theme = computed$1(() => appStore.getTheme);
9237
- 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(() => {
9238
9238
  return {
9239
9239
  "layout-top": true,
9240
9240
  "spring": theme.value === "springFestival",
@@ -9243,7 +9243,7 @@ const useRenderLayout = () => {
9243
9243
  "new-years": theme.value === "newYearsDay"
9244
9244
  };
9245
9245
  });
9246
- const festivalMenuClass = computed$1(() => {
9246
+ const festivalMenuClass = computed(() => {
9247
9247
  return {
9248
9248
  "layout-menu": true,
9249
9249
  "spring": theme.value === "springFestival",
@@ -9252,7 +9252,7 @@ const useRenderLayout = () => {
9252
9252
  "new-years": theme.value === "newYearsDay"
9253
9253
  };
9254
9254
  });
9255
- const zIndexClass = computed$1(() => {
9255
+ const zIndexClass = computed(() => {
9256
9256
  return {
9257
9257
  "z-100": theme.value === "whiteLight"
9258
9258
  };
@@ -9347,7 +9347,7 @@ const {
9347
9347
  getPrefixCls
9348
9348
  } = useDesign();
9349
9349
  const prefixCls = getPrefixCls("layout");
9350
- const layoutScrollRef = ref$1();
9350
+ const layoutScrollRef = ref();
9351
9351
  const renderLayout = (layout) => {
9352
9352
  const {
9353
9353
  renderLeft,
@@ -9356,7 +9356,7 @@ const renderLayout = (layout) => {
9356
9356
  scrollRef: scrollRef2
9357
9357
  } = useRenderLayout();
9358
9358
  layoutScrollRef.value = scrollRef2.value;
9359
- switch (unref$1(layout)) {
9359
+ switch (unref(layout)) {
9360
9360
  case "left":
9361
9361
  return renderLeft();
9362
9362
  case "top":
@@ -9365,13 +9365,13 @@ const renderLayout = (layout) => {
9365
9365
  return renderTopLeft();
9366
9366
  }
9367
9367
  };
9368
- const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
9368
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
9369
9369
  name: "Layout",
9370
9370
  setup() {
9371
9371
  const appStore = useAppStore();
9372
9372
  provide("layoutScrollRef", layoutScrollRef);
9373
- const theme = computed$1(() => appStore.getTheme);
9374
- const layout = computed$1(() => appStore.getLayout);
9373
+ const theme = computed(() => appStore.getTheme);
9374
+ const layout = computed(() => appStore.getLayout);
9375
9375
  return () => createVNode("section", {
9376
9376
  "class": [prefixCls, `${prefixCls}__${layout.value}`, "w-[100%] h-[100%] relative", `${prefixCls}__${theme.value}`]
9377
9377
  }, [renderLayout(layout), createVNode(_sfc_main$w, null, null)]);
@@ -9393,14 +9393,14 @@ const _sfc_main$d = {
9393
9393
  const { variables: variables2 } = useDesign();
9394
9394
  const appStore = useAppStore();
9395
9395
  const props = __props;
9396
- provide$1("configGlobal", props);
9397
- onMounted$1(() => {
9396
+ provide("configGlobal", props);
9397
+ onMounted(() => {
9398
9398
  if (!appStore.getIsSetTheme) {
9399
9399
  appStore.setCssVarTheme();
9400
9400
  }
9401
9401
  });
9402
9402
  const { width } = useWindowSize();
9403
- watch$1(
9403
+ watch(
9404
9404
  () => width.value,
9405
9405
  (width2) => {
9406
9406
  if (width2 < 768) {
@@ -9415,10 +9415,10 @@ const _sfc_main$d = {
9415
9415
  }
9416
9416
  );
9417
9417
  const localeStore = useLocaleStore();
9418
- const currentLocale = computed$1(() => localeStore.currentLocale);
9418
+ const currentLocale = computed(() => localeStore.currentLocale);
9419
9419
  return (_ctx, _cache) => {
9420
- return openBlock(), createBlock(unref$1(ElConfigProvider), {
9421
- namespace: unref$1(variables2).elNamespace,
9420
+ return openBlock(), createBlock(unref(ElConfigProvider), {
9421
+ namespace: unref(variables2).elNamespace,
9422
9422
  locale: currentLocale.value.elLocale,
9423
9423
  message: { max: 5 },
9424
9424
  size: __props.size
@@ -9459,7 +9459,7 @@ const _sfc_main$c = /* @__PURE__ */ Object.assign({ name: "PageCard" }, {
9459
9459
  return openBlock(), createBlock(_component_ElCard, {
9460
9460
  "body-style": __props.bodyStyle,
9461
9461
  header: __props.title,
9462
- class: normalizeClass([unref$1(prefixCls2), "m-16px"])
9462
+ class: normalizeClass([unref(prefixCls2), "m-16px"])
9463
9463
  }, {
9464
9464
  default: withCtx(() => [
9465
9465
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -9487,7 +9487,7 @@ const _sfc_main$b = /* @__PURE__ */ Object.assign({ name: "PageHeader" }, {
9487
9487
  emits: ["back"],
9488
9488
  setup(__props, { emit: __emit }) {
9489
9489
  const route = useRoute();
9490
- const { t: t2 } = useI18n$1();
9490
+ const { t: t2 } = useI18n();
9491
9491
  const { getPrefixCls: getPrefixCls2 } = useDesign();
9492
9492
  const prefixCls2 = getPrefixCls2("page-header");
9493
9493
  const emit = __emit;
@@ -9499,34 +9499,34 @@ const _sfc_main$b = /* @__PURE__ */ Object.assign({ name: "PageHeader" }, {
9499
9499
  const _component_Icon = resolveComponent("Icon");
9500
9500
  return openBlock(), createElementBlock("div", {
9501
9501
  ref: "pageHeader",
9502
- class: normalizeClass([`${unref$1(prefixCls2)}`])
9502
+ class: normalizeClass([`${unref(prefixCls2)}`])
9503
9503
  }, [
9504
9504
  createElementVNode("div", {
9505
- 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"])
9506
9506
  }, [
9507
9507
  createElementVNode("div", {
9508
- 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)]"])
9509
9509
  }, [
9510
9510
  __props.backAble ? (openBlock(), createElementBlock("div", {
9511
9511
  key: 0,
9512
- 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"])
9513
9513
  }, [
9514
9514
  createElementVNode("div", {
9515
- class: normalizeClass([`${unref$1(prefixCls2)}-sticky__back-btn`, "flex items-center"]),
9515
+ class: normalizeClass([`${unref(prefixCls2)}-sticky__back-btn`, "flex items-center"]),
9516
9516
  onClick: handleClick
9517
9517
  }, [
9518
9518
  createVNode(_component_Icon, {
9519
9519
  icon: "ant-design:left-outlined",
9520
9520
  size: 12
9521
9521
  }),
9522
- 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)
9523
9523
  ], 2),
9524
9524
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "flex items-center ml-4px mr-4px" }, "/", -1))
9525
9525
  ], 2)) : createCommentVNode("", true),
9526
- 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)
9527
9527
  ], 2),
9528
9528
  createElementVNode("div", {
9529
- class: normalizeClass([`${unref$1(prefixCls2)}-sticky__right`])
9529
+ class: normalizeClass([`${unref(prefixCls2)}-sticky__right`])
9530
9530
  }, [
9531
9531
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
9532
9532
  ], 2)
@@ -9581,7 +9581,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({ name: "ImageViewer" }, {
9581
9581
  };
9582
9582
  return (_ctx, _cache) => {
9583
9583
  const _component_ElImageViewer = resolveComponent("ElImageViewer");
9584
- 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);
9585
9585
  };
9586
9586
  }
9587
9587
  });
@@ -9611,6 +9611,106 @@ function createImageViewer(options) {
9611
9611
  instance = createVNode(_sfc_main$a, propsData);
9612
9612
  render(instance, container);
9613
9613
  }
9614
+ const useMessage = () => {
9615
+ const { t: t2 } = useI18n("layout");
9616
+ const scssVariables = variables$1;
9617
+ return {
9618
+ // 消息提示
9619
+ info(content) {
9620
+ ElMessage.info(content);
9621
+ },
9622
+ // 错误消息
9623
+ error(content) {
9624
+ ElMessage.error(content);
9625
+ },
9626
+ // 成功消息
9627
+ success(content) {
9628
+ ElMessage.success(content);
9629
+ },
9630
+ // 警告消息
9631
+ warning(content) {
9632
+ ElMessage.warning(content);
9633
+ },
9634
+ // 弹出提示
9635
+ alert(content) {
9636
+ ElMessageBox.alert(content, t2("common.confirmTitle"));
9637
+ },
9638
+ // 错误提示
9639
+ alertError(content) {
9640
+ ElMessageBox.alert(content, t2("common.confirmTitle"), { type: "error" });
9641
+ },
9642
+ // 成功提示
9643
+ alertSuccess(content) {
9644
+ ElMessageBox.alert(content, t2("common.confirmTitle"), { type: "success" });
9645
+ },
9646
+ // 警告提示
9647
+ alertWarning(content) {
9648
+ ElMessageBox.alert(content, t2("common.confirmTitle"), { type: "warning" });
9649
+ },
9650
+ // 通知提示
9651
+ notify(content) {
9652
+ ElNotification.info(content);
9653
+ },
9654
+ // 错误通知
9655
+ notifyError(content) {
9656
+ ElNotification.error(content);
9657
+ },
9658
+ // 成功通知
9659
+ notifySuccess(content) {
9660
+ ElNotification.success(content);
9661
+ },
9662
+ // 警告通知
9663
+ notifyWarning(content) {
9664
+ ElNotification.warning(content);
9665
+ },
9666
+ // 确认窗体
9667
+ confirm(content, tip, options = {}) {
9668
+ return ElMessageBox.confirm(content, tip ? tip : t2("common.confirmTitle"), {
9669
+ ...options,
9670
+ customClass: `${options.customClass} ${scssVariables.namespace}-message-box`,
9671
+ confirmButtonText: options.confirmButtonText ?? t2("common.ok"),
9672
+ cancelButtonText: options.cancelButtonText ?? t2("common.cancel"),
9673
+ buttonSize: "default",
9674
+ center: true
9675
+ });
9676
+ },
9677
+ // 删除窗体
9678
+ delConfirm(content, tip) {
9679
+ return ElMessageBox.confirm(
9680
+ content ? content : t2("common.delMessage"),
9681
+ tip ? tip : t2("common.confirmTitle"),
9682
+ {
9683
+ customClass: `${scssVariables.namespace}-message-box`,
9684
+ confirmButtonText: t2("common.ok"),
9685
+ cancelButtonText: t2("common.cancel"),
9686
+ buttonSize: "default",
9687
+ center: true,
9688
+ type: "warning"
9689
+ }
9690
+ );
9691
+ },
9692
+ // 导出窗体
9693
+ exportConfirm(content, tip) {
9694
+ return ElMessageBox.confirm(
9695
+ content ? content : t2("common.exportMessage"),
9696
+ tip ? tip : t2("common.confirmTitle"),
9697
+ {
9698
+ confirmButtonText: t2("common.ok"),
9699
+ cancelButtonText: t2("common.cancel"),
9700
+ type: "warning"
9701
+ }
9702
+ );
9703
+ },
9704
+ // 提交内容
9705
+ prompt(content, tip, options = {}) {
9706
+ return ElMessageBox.prompt(content, tip, {
9707
+ confirmButtonText: t2("common.ok"),
9708
+ cancelButtonText: t2("common.cancel"),
9709
+ ...options
9710
+ });
9711
+ }
9712
+ };
9713
+ };
9614
9714
  const _hoisted_1$4 = { class: "upload-box" };
9615
9715
  const _hoisted_2$4 = ["src"];
9616
9716
  const _hoisted_3$4 = { key: 0 };
@@ -9736,7 +9836,7 @@ const _sfc_main$9 = /* @__PURE__ */ Object.assign({ name: "UploadImg", inheritAt
9736
9836
  const _component_el_upload = resolveComponent("el-upload");
9737
9837
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
9738
9838
  createVNode(_component_el_upload, {
9739
- id: unref$1(uuid),
9839
+ id: unref(uuid),
9740
9840
  accept: __props.fileType.join(","),
9741
9841
  "before-upload": beforeUpload,
9742
9842
  class: normalizeClass(["upload", __props.drag ? "no-border" : ""]),
@@ -9764,7 +9864,7 @@ const _sfc_main$9 = /* @__PURE__ */ Object.assign({ name: "UploadImg", inheritAt
9764
9864
  onClick: _cache[0] || (_cache[0] = ($event) => imagePreview(__props.modelValue))
9765
9865
  }, [
9766
9866
  createVNode(_component_Icon, { icon: "ant-design:zoom-in-outlined" }),
9767
- __props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(unref$1(t2)("action.detail")), 1)) : createCommentVNode("", true)
9867
+ __props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(unref(t2)("action.detail")), 1)) : createCommentVNode("", true)
9768
9868
  ]),
9769
9869
  __props.showDelete && !__props.disabled ? (openBlock(), createElementBlock("div", {
9770
9870
  key: 0,
@@ -9772,7 +9872,7 @@ const _sfc_main$9 = /* @__PURE__ */ Object.assign({ name: "UploadImg", inheritAt
9772
9872
  onClick: deleteImg
9773
9873
  }, [
9774
9874
  createVNode(_component_Icon, { icon: "ant-design:delete-outlined" }),
9775
- __props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(unref$1(t2)("action.del")), 1)) : createCommentVNode("", true)
9875
+ __props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(unref(t2)("action.del")), 1)) : createCommentVNode("", true)
9776
9876
  ])) : createCommentVNode("", true)
9777
9877
  ])
9778
9878
  ], 64)) : (openBlock(), createElementBlock("div", _hoisted_5$3, [
@@ -9975,7 +10075,7 @@ const _sfc_main$8 = /* @__PURE__ */ Object.assign({ name: "UploadImgs", inheritA
9975
10075
  const _component_el_upload = resolveComponent("el-upload");
9976
10076
  return openBlock(), createElementBlock("div", _hoisted_1$3, [
9977
10077
  createVNode(_component_el_upload, {
9978
- "file-list": unref$1(fileList),
10078
+ "file-list": unref(fileList),
9979
10079
  "onUpdate:fileList": _cache[1] || (_cache[1] = ($event) => isRef(fileList) ? fileList.value = $event : null),
9980
10080
  accept: __props.fileType.join(","),
9981
10081
  "before-upload": beforeUpload,
@@ -10212,7 +10312,7 @@ const _sfc_main$7 = /* @__PURE__ */ Object.assign({ name: "UploadFile", inheritA
10212
10312
  key: 0,
10213
10313
  ref_key: "uploadRef",
10214
10314
  ref: uploadRef,
10215
- "file-list": unref$1(fileList),
10315
+ "file-list": unref(fileList),
10216
10316
  "onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => isRef(fileList) ? fileList.value = $event : null),
10217
10317
  "auto-upload": __props.autoUpload,
10218
10318
  "before-upload": beforeUpload,
@@ -10284,7 +10384,7 @@ const _sfc_main$7 = /* @__PURE__ */ Object.assign({ name: "UploadFile", inheritA
10284
10384
  ]),
10285
10385
  key: "0"
10286
10386
  } : void 0
10287
- ]), 1032, ["file-list", "auto-upload", "disabled", "drag", "limit", "multiple"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref$1(fileList), (file, index) => {
10387
+ ]), 1032, ["file-list", "auto-upload", "disabled", "drag", "limit", "multiple"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(fileList), (file, index) => {
10288
10388
  return openBlock(), createElementBlock("div", {
10289
10389
  key: index,
10290
10390
  class: "flex items-center file-list-item"
@@ -10345,7 +10445,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({ name: "Badge" }, {
10345
10445
  const prefixCls2 = getPrefixCls2("badge");
10346
10446
  return (_ctx, _cache) => {
10347
10447
  const _component_el_badge = resolveComponent("el-badge");
10348
- return openBlock(), createBlock(_component_el_badge, mergeProps(props, { class: unref$1(prefixCls2) }), {
10448
+ return openBlock(), createBlock(_component_el_badge, mergeProps(props, { class: unref(prefixCls2) }), {
10349
10449
  default: withCtx(() => [
10350
10450
  renderSlot(_ctx.$slots, "default")
10351
10451
  ]),
@@ -10382,14 +10482,14 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "Pagination" }, {
10382
10482
  emits: ["update:page", "update:limit", "pagination"],
10383
10483
  setup(__props, { emit: __emit }) {
10384
10484
  const appStore = useAppStore();
10385
- const layoutCurrentSize = computed$1(() => appStore.currentSize);
10485
+ const layoutCurrentSize = computed(() => appStore.currentSize);
10386
10486
  const isSmall = ref(layoutCurrentSize.value === "small");
10387
10487
  watchEffect(() => {
10388
10488
  isSmall.value = layoutCurrentSize.value === "small";
10389
10489
  });
10390
10490
  const props = __props;
10391
10491
  const emit = __emit;
10392
- const currentPage = computed$1({
10492
+ const currentPage = computed({
10393
10493
  get() {
10394
10494
  return props.page;
10395
10495
  },
@@ -10397,7 +10497,7 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "Pagination" }, {
10397
10497
  emit("update:page", val);
10398
10498
  }
10399
10499
  });
10400
- const pageSize = computed$1({
10500
+ const pageSize = computed({
10401
10501
  get() {
10402
10502
  return props.limit;
10403
10503
  },
@@ -10423,7 +10523,7 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "Pagination" }, {
10423
10523
  "onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => pageSize.value = $event),
10424
10524
  "pager-count": __props.pagerCount,
10425
10525
  total: __props.total,
10426
- small: unref$1(isSmall),
10526
+ small: unref(isSmall),
10427
10527
  class: "m-t-16px",
10428
10528
  layout: "prev, pager, next, sizes",
10429
10529
  onSizeChange: handleSizeChange,
@@ -10518,10 +10618,10 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign({ name: "Dialog" }, {
10518
10618
  const _component_Icon = resolveComponent("Icon");
10519
10619
  const _component_ElScrollbar = resolveComponent("ElScrollbar");
10520
10620
  const _component_ElDialog = resolveComponent("ElDialog");
10521
- return openBlock(), createBlock(_component_ElDialog, mergeProps(unref$1(getBindValue), {
10621
+ return openBlock(), createBlock(_component_ElDialog, mergeProps(unref(getBindValue), {
10522
10622
  "close-on-click-modal": true,
10523
10623
  fullscreen: __props.fullscreen,
10524
- width: unref$1(dialogWidth),
10624
+ width: unref(dialogWidth),
10525
10625
  top: __props.top,
10526
10626
  "destroy-on-close": "",
10527
10627
  "lock-scroll": "",
@@ -10550,7 +10650,7 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign({ name: "Dialog" }, {
10550
10650
  default: withCtx(() => [
10551
10651
  __props.scroll ? (openBlock(), createBlock(_component_ElScrollbar, {
10552
10652
  key: 0,
10553
- style: normalizeStyle(unref$1(dialogStyle)),
10653
+ style: normalizeStyle(unref(dialogStyle)),
10554
10654
  always: __props.scrollbarAlways
10555
10655
  }, {
10556
10656
  default: withCtx(() => [
@@ -10565,7 +10665,7 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign({ name: "Dialog" }, {
10565
10665
  ]),
10566
10666
  _: 2
10567
10667
  }, [
10568
- unref$1(slots).footer ? {
10668
+ unref(slots).footer ? {
10569
10669
  name: "footer",
10570
10670
  fn: withCtx(() => [
10571
10671
  renderSlot(_ctx.$slots, "footer")
@@ -10608,7 +10708,7 @@ const _sfc_main$3 = /* @__PURE__ */ Object.assign({ name: "Alert" }, {
10608
10708
  const props = __props;
10609
10709
  return (_ctx, _cache) => {
10610
10710
  const _component_el_alert = resolveComponent("el-alert");
10611
- return openBlock(), createBlock(_component_el_alert, mergeProps(props, { class: unref$1(prefixCls2) }), null, 16, ["class"]);
10711
+ return openBlock(), createBlock(_component_el_alert, mergeProps(props, { class: unref(prefixCls2) }), null, 16, ["class"]);
10612
10712
  };
10613
10713
  }
10614
10714
  });
@@ -10815,7 +10915,7 @@ const addEventListener = (target, eventType, cb, option) => {
10815
10915
  }
10816
10916
  };
10817
10917
  };
10818
- const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
10918
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
10819
10919
  name: "AnchorLink",
10820
10920
  props: {
10821
10921
  prefixCls: String,
@@ -10850,13 +10950,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
10850
10950
  });
10851
10951
  scrollTo2(href);
10852
10952
  };
10853
- watch$1(() => props.href, (val, oldVal) => {
10854
- nextTick$1(() => {
10953
+ watch(() => props.href, (val, oldVal) => {
10954
+ nextTick(() => {
10855
10955
  unregisterLink(oldVal);
10856
10956
  registerLink(val);
10857
10957
  });
10858
10958
  });
10859
- onMounted$1(() => {
10959
+ onMounted(() => {
10860
10960
  registerLink(props.href);
10861
10961
  });
10862
10962
  onBeforeUnmount(() => {
@@ -10894,7 +10994,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
10894
10994
  function _isSlot(s) {
10895
10995
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
10896
10996
  }
10897
- const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
10997
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10898
10998
  name: "Anchor",
10899
10999
  props: {
10900
11000
  offsetTop: Number,
@@ -11065,8 +11165,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
11065
11165
  },
11066
11166
  direction: anchorDirection
11067
11167
  });
11068
- onMounted$1(() => {
11069
- nextTick$1(() => {
11168
+ onMounted(() => {
11169
+ nextTick(() => {
11070
11170
  const container = getContainer.value();
11071
11171
  state.scrollContainer = container;
11072
11172
  state.scrollEvent = addEventListener(state.scrollContainer, "scroll", handleScroll);
@@ -11209,7 +11309,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ name: "Steps" }, {
11209
11309
  });
11210
11310
  const Steps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7d66ca39"]]);
11211
11311
  function useLayout() {
11212
- const collapsed = ref$1(false);
11312
+ const collapsed = ref(false);
11213
11313
  const toggleCollapsed = () => {
11214
11314
  collapsed.value = !collapsed.value;
11215
11315
  };