bmp-layout 0.0.9 → 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 +183 -183
- package/bmp-layout.umd.js +2 -2
- package/package.json +1 -1
package/bmp-layout.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { openBlock, createBlock, unref
|
|
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,
|
|
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
|
|
962
|
-
class: normalizeClass(`${unref
|
|
963
|
-
target: `.${unref
|
|
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
|
|
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
|
|
3538
|
-
class: normalizeClass(unref
|
|
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
|
|
3543
|
+
unref(isLocal) ? (openBlock(), createElementBlock("svg", {
|
|
3544
3544
|
key: 0,
|
|
3545
|
-
class: normalizeClass(unref
|
|
3545
|
+
class: normalizeClass(unref(getSvgClass))
|
|
3546
3546
|
}, [
|
|
3547
|
-
createElementVNode("use", { "xlink:href": unref
|
|
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
|
|
3553
|
+
style: normalizeStyle(unref(getIconifyStyle))
|
|
3554
3554
|
}, [
|
|
3555
3555
|
createElementVNode("span", {
|
|
3556
|
-
class: normalizeClass(unref
|
|
3557
|
-
"data-icon": unref
|
|
3556
|
+
class: normalizeClass(unref(getSvgClass)),
|
|
3557
|
+
"data-icon": unref(symbolId)
|
|
3558
3558
|
}, null, 10, _hoisted_2$b)
|
|
3559
3559
|
], 6))
|
|
3560
3560
|
]),
|
|
@@ -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
|
|
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
|
|
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),
|
|
@@ -3855,12 +3855,12 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
3855
3855
|
const { t: t2 } = useI18n$1("layout");
|
|
3856
3856
|
const props = __props;
|
|
3857
3857
|
const emit = __emit;
|
|
3858
|
-
const router = useRouter
|
|
3858
|
+
const router = useRouter();
|
|
3859
3859
|
const permissionStore = usePermissionStore();
|
|
3860
|
-
const searchKeyword = ref
|
|
3861
|
-
const activeCategory = ref
|
|
3862
|
-
const routers = computed
|
|
3863
|
-
const filteredMenus = computed
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3980
|
+
class: normalizeClass([unref(prefixCls2) + "__body"])
|
|
3981
3981
|
}, [
|
|
3982
3982
|
createElementVNode("div", {
|
|
3983
|
-
class: normalizeClass([unref
|
|
3983
|
+
class: normalizeClass([unref(prefixCls2) + "__sidebar"])
|
|
3984
3984
|
}, [
|
|
3985
3985
|
createElementVNode("div", {
|
|
3986
|
-
class: normalizeClass([unref
|
|
3986
|
+
class: normalizeClass([unref(prefixCls2) + "__sidebar-title"])
|
|
3987
3987
|
}, [
|
|
3988
|
-
createElementVNode("span", null, toDisplayString(unref
|
|
3988
|
+
createElementVNode("span", null, toDisplayString(unref(t2)("common.allProducts")), 1)
|
|
3989
3989
|
], 2),
|
|
3990
|
-
createVNode(unref
|
|
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
|
|
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
|
|
4011
|
+
class: normalizeClass([unref(prefixCls2) + "__content"])
|
|
4012
4012
|
}, [
|
|
4013
4013
|
createElementVNode("div", {
|
|
4014
|
-
class: normalizeClass([unref
|
|
4014
|
+
class: normalizeClass([unref(prefixCls2) + "__header"])
|
|
4015
4015
|
}, [
|
|
4016
|
-
createVNode(unref
|
|
4016
|
+
createVNode(unref(ElInput), {
|
|
4017
4017
|
modelValue: searchKeyword.value,
|
|
4018
4018
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKeyword.value = $event),
|
|
4019
|
-
placeholder: unref
|
|
4019
|
+
placeholder: unref(t2)("common.searchMenu"),
|
|
4020
4020
|
clearable: "",
|
|
4021
4021
|
size: "default"
|
|
4022
4022
|
}, {
|
|
4023
4023
|
prefix: withCtx(() => [
|
|
4024
|
-
createVNode(unref
|
|
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
|
|
4032
|
+
class: normalizeClass([unref(prefixCls2) + "__close"]),
|
|
4033
4033
|
onClick: closePanel
|
|
4034
4034
|
}, [
|
|
4035
|
-
createVNode(unref
|
|
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
|
|
4041
|
+
createVNode(unref(ElScrollbar), null, {
|
|
4042
4042
|
default: withCtx(() => [
|
|
4043
4043
|
createElementVNode("div", {
|
|
4044
|
-
class: normalizeClass([unref
|
|
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
|
|
4050
|
+
class: normalizeClass([unref(prefixCls2) + "__column"])
|
|
4051
4051
|
}, [
|
|
4052
4052
|
createElementVNode("div", {
|
|
4053
|
-
class: normalizeClass([unref
|
|
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
|
|
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
|
|
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
|
|
4079
|
-
{ [unref
|
|
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
|
|
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
|
|
4092
|
+
class: normalizeClass([unref(prefixCls2) + "__column"])
|
|
4093
4093
|
}, [
|
|
4094
4094
|
createElementVNode("div", {
|
|
4095
|
-
class: normalizeClass([unref
|
|
4095
|
+
class: normalizeClass([unref(prefixCls2) + "__column-list"])
|
|
4096
4096
|
}, [
|
|
4097
4097
|
createElementVNode("div", {
|
|
4098
|
-
class: normalizeClass([unref
|
|
4098
|
+
class: normalizeClass([unref(prefixCls2) + "__column-item", unref(prefixCls2) + "__column-item--disabled"])
|
|
4099
4099
|
}, [
|
|
4100
|
-
createElementVNode("span", null, toDisplayString(unref
|
|
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
|
|
4105
|
+
class: normalizeClass([unref(prefixCls2) + "__empty"])
|
|
4106
4106
|
}, [
|
|
4107
|
-
createVNode(unref
|
|
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
|
|
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
|
|
4139
|
-
const layout = computed
|
|
4140
|
-
const theme = computed
|
|
4141
|
-
const panelVisible = ref
|
|
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
|
|
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
|
|
4154
|
-
`${unref
|
|
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
|
|
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
|
|
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
|
|
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
|
|
7987
|
-
"is-dot": unref
|
|
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
|
|
8024
|
+
class: normalizeClass(unref(prefixCls2)),
|
|
8025
8025
|
onClick: toggleCollapse
|
|
8026
8026
|
}, [
|
|
8027
8027
|
createVNode(_component_Icon, {
|
|
8028
8028
|
color: __props.color,
|
|
8029
|
-
icon: unref
|
|
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
|
|
8065
|
-
class: normalizeClass(["custom-hover cursor-pointer", unref
|
|
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
|
|
8069
|
+
createVNode(unref(ElDropdownMenu), null, {
|
|
8070
8070
|
default: withCtx(() => [
|
|
8071
|
-
createVNode(unref
|
|
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
|
|
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
|
|
8085
|
-
src: unref
|
|
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
|
|
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
|
|
8135
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
8136
8136
|
name: "Breadcrumb",
|
|
8137
8137
|
setup() {
|
|
8138
8138
|
const appStore = useAppStore();
|
|
8139
|
-
const breadcrumbIcon = computed
|
|
8139
|
+
const breadcrumbIcon = computed(() => appStore.getBreadcrumbIcon);
|
|
8140
8140
|
const {
|
|
8141
8141
|
currentRoute
|
|
8142
|
-
} = useRouter
|
|
8142
|
+
} = useRouter();
|
|
8143
8143
|
const {
|
|
8144
8144
|
t: t2
|
|
8145
8145
|
} = useI18n("layout");
|
|
8146
|
-
const levelList = ref
|
|
8146
|
+
const levelList = ref([]);
|
|
8147
8147
|
const permissionStore = usePermissionStore();
|
|
8148
|
-
const menuRouters = computed
|
|
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
|
|
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
|
|
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
|
|
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
|
|
8672
|
-
class: normalizeClass(unref
|
|
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
|
|
8677
|
+
createVNode(unref(ElDropdownMenu), null, {
|
|
8678
8678
|
default: withCtx(() => [
|
|
8679
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref
|
|
8680
|
-
return openBlock(), createBlock(unref
|
|
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
|
|
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
|
|
8749
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(themeList), (item) => {
|
|
8750
8750
|
return openBlock(), createElementBlock("div", {
|
|
8751
|
-
class: normalizeClass(["item", { "active": unref
|
|
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
|
|
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
|
|
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
|
|
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
|
|
8807
|
+
style: normalizeStyle({ borderColor: unref(theme) === "springFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
8808
8808
|
}, [
|
|
8809
|
-
createElementVNode("img", { src: unref
|
|
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
|
|
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
|
|
8819
|
+
style: normalizeStyle({ borderColor: unref(theme) === "dragonBoatFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
8820
8820
|
}, [
|
|
8821
|
-
createElementVNode("img", { src: unref
|
|
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
|
|
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
|
|
8831
|
+
style: normalizeStyle({ borderColor: unref(theme) === "midAutumnFestival" ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
8832
8832
|
}, [
|
|
8833
|
-
createElementVNode("img", { src: unref
|
|
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
|
|
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
|
|
8845
|
+
style: normalizeStyle({ borderColor: unref(theme) === "newYearsDay" ? "var(--el-color-primary)" : "#d2d5e4" })
|
|
8846
8846
|
}, [
|
|
8847
|
-
createElementVNode("img", { src: unref
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9000
|
-
modelValue: unref
|
|
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
|
|
9005
|
-
"modal-class": unref
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9188
|
-
const hamburger = computed
|
|
9189
|
-
const search = computed
|
|
9190
|
-
const layout = computed
|
|
9191
|
-
const locale = computed
|
|
9192
|
-
const message = computed
|
|
9193
|
-
const setting = computed
|
|
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
|
|
9228
|
+
const scrollRef = ref();
|
|
9229
9229
|
const useRenderLayout = () => {
|
|
9230
9230
|
const appStore = useAppStore();
|
|
9231
9231
|
const permissionStore = usePermissionStore();
|
|
9232
|
-
const pageLoading = computed
|
|
9233
|
-
const collapse = computed
|
|
9234
|
-
const logo = computed
|
|
9235
|
-
const leftMenuRouters = computed
|
|
9236
|
-
const theme = computed
|
|
9237
|
-
const festivalTopClass = computed
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
9374
|
-
const layout = computed
|
|
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
|
|
9397
|
-
onMounted
|
|
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
|
|
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
|
|
9418
|
+
const currentLocale = computed(() => localeStore.currentLocale);
|
|
9419
9419
|
return (_ctx, _cache) => {
|
|
9420
|
-
return openBlock(), createBlock(unref
|
|
9421
|
-
namespace: unref
|
|
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
|
|
9462
|
+
class: normalizeClass([unref(prefixCls2), "m-16px"])
|
|
9463
9463
|
}, {
|
|
9464
9464
|
default: withCtx(() => [
|
|
9465
9465
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -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
|
|
9502
|
+
class: normalizeClass([`${unref(prefixCls2)}`])
|
|
9503
9503
|
}, [
|
|
9504
9504
|
createElementVNode("div", {
|
|
9505
|
-
class: normalizeClass([`${unref
|
|
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
|
|
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
|
|
9512
|
+
class: normalizeClass([`${unref(prefixCls2)}-sticky__back`, "flex items-center text-14px font-normal"])
|
|
9513
9513
|
}, [
|
|
9514
9514
|
createElementVNode("div", {
|
|
9515
|
-
class: normalizeClass([`${unref
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
});
|
|
@@ -9736,7 +9736,7 @@ const _sfc_main$9 = /* @__PURE__ */ Object.assign({ name: "UploadImg", inheritAt
|
|
|
9736
9736
|
const _component_el_upload = resolveComponent("el-upload");
|
|
9737
9737
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
9738
9738
|
createVNode(_component_el_upload, {
|
|
9739
|
-
id: unref
|
|
9739
|
+
id: unref(uuid),
|
|
9740
9740
|
accept: __props.fileType.join(","),
|
|
9741
9741
|
"before-upload": beforeUpload,
|
|
9742
9742
|
class: normalizeClass(["upload", __props.drag ? "no-border" : ""]),
|
|
@@ -9764,7 +9764,7 @@ const _sfc_main$9 = /* @__PURE__ */ Object.assign({ name: "UploadImg", inheritAt
|
|
|
9764
9764
|
onClick: _cache[0] || (_cache[0] = ($event) => imagePreview(__props.modelValue))
|
|
9765
9765
|
}, [
|
|
9766
9766
|
createVNode(_component_Icon, { icon: "ant-design:zoom-in-outlined" }),
|
|
9767
|
-
__props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(unref
|
|
9767
|
+
__props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(unref(t2)("action.detail")), 1)) : createCommentVNode("", true)
|
|
9768
9768
|
]),
|
|
9769
9769
|
__props.showDelete && !__props.disabled ? (openBlock(), createElementBlock("div", {
|
|
9770
9770
|
key: 0,
|
|
@@ -9772,7 +9772,7 @@ const _sfc_main$9 = /* @__PURE__ */ Object.assign({ name: "UploadImg", inheritAt
|
|
|
9772
9772
|
onClick: deleteImg
|
|
9773
9773
|
}, [
|
|
9774
9774
|
createVNode(_component_Icon, { icon: "ant-design:delete-outlined" }),
|
|
9775
|
-
__props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(unref
|
|
9775
|
+
__props.showBtnText ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(unref(t2)("action.del")), 1)) : createCommentVNode("", true)
|
|
9776
9776
|
])) : createCommentVNode("", true)
|
|
9777
9777
|
])
|
|
9778
9778
|
], 64)) : (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
@@ -9975,7 +9975,7 @@ const _sfc_main$8 = /* @__PURE__ */ Object.assign({ name: "UploadImgs", inheritA
|
|
|
9975
9975
|
const _component_el_upload = resolveComponent("el-upload");
|
|
9976
9976
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
9977
9977
|
createVNode(_component_el_upload, {
|
|
9978
|
-
"file-list": unref
|
|
9978
|
+
"file-list": unref(fileList),
|
|
9979
9979
|
"onUpdate:fileList": _cache[1] || (_cache[1] = ($event) => isRef(fileList) ? fileList.value = $event : null),
|
|
9980
9980
|
accept: __props.fileType.join(","),
|
|
9981
9981
|
"before-upload": beforeUpload,
|
|
@@ -10212,7 +10212,7 @@ const _sfc_main$7 = /* @__PURE__ */ Object.assign({ name: "UploadFile", inheritA
|
|
|
10212
10212
|
key: 0,
|
|
10213
10213
|
ref_key: "uploadRef",
|
|
10214
10214
|
ref: uploadRef,
|
|
10215
|
-
"file-list": unref
|
|
10215
|
+
"file-list": unref(fileList),
|
|
10216
10216
|
"onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => isRef(fileList) ? fileList.value = $event : null),
|
|
10217
10217
|
"auto-upload": __props.autoUpload,
|
|
10218
10218
|
"before-upload": beforeUpload,
|
|
@@ -10284,7 +10284,7 @@ const _sfc_main$7 = /* @__PURE__ */ Object.assign({ name: "UploadFile", inheritA
|
|
|
10284
10284
|
]),
|
|
10285
10285
|
key: "0"
|
|
10286
10286
|
} : void 0
|
|
10287
|
-
]), 1032, ["file-list", "auto-upload", "disabled", "drag", "limit", "multiple"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref
|
|
10287
|
+
]), 1032, ["file-list", "auto-upload", "disabled", "drag", "limit", "multiple"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(fileList), (file, index) => {
|
|
10288
10288
|
return openBlock(), createElementBlock("div", {
|
|
10289
10289
|
key: index,
|
|
10290
10290
|
class: "flex items-center file-list-item"
|
|
@@ -10345,7 +10345,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({ name: "Badge" }, {
|
|
|
10345
10345
|
const prefixCls2 = getPrefixCls2("badge");
|
|
10346
10346
|
return (_ctx, _cache) => {
|
|
10347
10347
|
const _component_el_badge = resolveComponent("el-badge");
|
|
10348
|
-
return openBlock(), createBlock(_component_el_badge, mergeProps(props, { class: unref
|
|
10348
|
+
return openBlock(), createBlock(_component_el_badge, mergeProps(props, { class: unref(prefixCls2) }), {
|
|
10349
10349
|
default: withCtx(() => [
|
|
10350
10350
|
renderSlot(_ctx.$slots, "default")
|
|
10351
10351
|
]),
|
|
@@ -10382,14 +10382,14 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "Pagination" }, {
|
|
|
10382
10382
|
emits: ["update:page", "update:limit", "pagination"],
|
|
10383
10383
|
setup(__props, { emit: __emit }) {
|
|
10384
10384
|
const appStore = useAppStore();
|
|
10385
|
-
const layoutCurrentSize = computed
|
|
10385
|
+
const layoutCurrentSize = computed(() => appStore.currentSize);
|
|
10386
10386
|
const isSmall = ref(layoutCurrentSize.value === "small");
|
|
10387
10387
|
watchEffect(() => {
|
|
10388
10388
|
isSmall.value = layoutCurrentSize.value === "small";
|
|
10389
10389
|
});
|
|
10390
10390
|
const props = __props;
|
|
10391
10391
|
const emit = __emit;
|
|
10392
|
-
const currentPage = computed
|
|
10392
|
+
const currentPage = computed({
|
|
10393
10393
|
get() {
|
|
10394
10394
|
return props.page;
|
|
10395
10395
|
},
|
|
@@ -10397,7 +10397,7 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "Pagination" }, {
|
|
|
10397
10397
|
emit("update:page", val);
|
|
10398
10398
|
}
|
|
10399
10399
|
});
|
|
10400
|
-
const pageSize = computed
|
|
10400
|
+
const pageSize = computed({
|
|
10401
10401
|
get() {
|
|
10402
10402
|
return props.limit;
|
|
10403
10403
|
},
|
|
@@ -10423,7 +10423,7 @@ const _sfc_main$5 = /* @__PURE__ */ Object.assign({ name: "Pagination" }, {
|
|
|
10423
10423
|
"onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => pageSize.value = $event),
|
|
10424
10424
|
"pager-count": __props.pagerCount,
|
|
10425
10425
|
total: __props.total,
|
|
10426
|
-
small: unref
|
|
10426
|
+
small: unref(isSmall),
|
|
10427
10427
|
class: "m-t-16px",
|
|
10428
10428
|
layout: "prev, pager, next, sizes",
|
|
10429
10429
|
onSizeChange: handleSizeChange,
|
|
@@ -10518,10 +10518,10 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign({ name: "Dialog" }, {
|
|
|
10518
10518
|
const _component_Icon = resolveComponent("Icon");
|
|
10519
10519
|
const _component_ElScrollbar = resolveComponent("ElScrollbar");
|
|
10520
10520
|
const _component_ElDialog = resolveComponent("ElDialog");
|
|
10521
|
-
return openBlock(), createBlock(_component_ElDialog, mergeProps(unref
|
|
10521
|
+
return openBlock(), createBlock(_component_ElDialog, mergeProps(unref(getBindValue), {
|
|
10522
10522
|
"close-on-click-modal": true,
|
|
10523
10523
|
fullscreen: __props.fullscreen,
|
|
10524
|
-
width: unref
|
|
10524
|
+
width: unref(dialogWidth),
|
|
10525
10525
|
top: __props.top,
|
|
10526
10526
|
"destroy-on-close": "",
|
|
10527
10527
|
"lock-scroll": "",
|
|
@@ -10550,7 +10550,7 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign({ name: "Dialog" }, {
|
|
|
10550
10550
|
default: withCtx(() => [
|
|
10551
10551
|
__props.scroll ? (openBlock(), createBlock(_component_ElScrollbar, {
|
|
10552
10552
|
key: 0,
|
|
10553
|
-
style: normalizeStyle(unref
|
|
10553
|
+
style: normalizeStyle(unref(dialogStyle)),
|
|
10554
10554
|
always: __props.scrollbarAlways
|
|
10555
10555
|
}, {
|
|
10556
10556
|
default: withCtx(() => [
|
|
@@ -10565,7 +10565,7 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign({ name: "Dialog" }, {
|
|
|
10565
10565
|
]),
|
|
10566
10566
|
_: 2
|
|
10567
10567
|
}, [
|
|
10568
|
-
unref
|
|
10568
|
+
unref(slots).footer ? {
|
|
10569
10569
|
name: "footer",
|
|
10570
10570
|
fn: withCtx(() => [
|
|
10571
10571
|
renderSlot(_ctx.$slots, "footer")
|
|
@@ -10608,7 +10608,7 @@ const _sfc_main$3 = /* @__PURE__ */ Object.assign({ name: "Alert" }, {
|
|
|
10608
10608
|
const props = __props;
|
|
10609
10609
|
return (_ctx, _cache) => {
|
|
10610
10610
|
const _component_el_alert = resolveComponent("el-alert");
|
|
10611
|
-
return openBlock(), createBlock(_component_el_alert, mergeProps(props, { class: unref
|
|
10611
|
+
return openBlock(), createBlock(_component_el_alert, mergeProps(props, { class: unref(prefixCls2) }), null, 16, ["class"]);
|
|
10612
10612
|
};
|
|
10613
10613
|
}
|
|
10614
10614
|
});
|
|
@@ -10815,7 +10815,7 @@ const addEventListener = (target, eventType, cb, option) => {
|
|
|
10815
10815
|
}
|
|
10816
10816
|
};
|
|
10817
10817
|
};
|
|
10818
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent
|
|
10818
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
10819
10819
|
name: "AnchorLink",
|
|
10820
10820
|
props: {
|
|
10821
10821
|
prefixCls: String,
|
|
@@ -10850,13 +10850,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
10850
10850
|
});
|
|
10851
10851
|
scrollTo2(href);
|
|
10852
10852
|
};
|
|
10853
|
-
watch
|
|
10854
|
-
nextTick
|
|
10853
|
+
watch(() => props.href, (val, oldVal) => {
|
|
10854
|
+
nextTick(() => {
|
|
10855
10855
|
unregisterLink(oldVal);
|
|
10856
10856
|
registerLink(val);
|
|
10857
10857
|
});
|
|
10858
10858
|
});
|
|
10859
|
-
onMounted
|
|
10859
|
+
onMounted(() => {
|
|
10860
10860
|
registerLink(props.href);
|
|
10861
10861
|
});
|
|
10862
10862
|
onBeforeUnmount(() => {
|
|
@@ -10894,7 +10894,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
10894
10894
|
function _isSlot(s) {
|
|
10895
10895
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
10896
10896
|
}
|
|
10897
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent
|
|
10897
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
10898
10898
|
name: "Anchor",
|
|
10899
10899
|
props: {
|
|
10900
10900
|
offsetTop: Number,
|
|
@@ -11065,8 +11065,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
11065
11065
|
},
|
|
11066
11066
|
direction: anchorDirection
|
|
11067
11067
|
});
|
|
11068
|
-
onMounted
|
|
11069
|
-
nextTick
|
|
11068
|
+
onMounted(() => {
|
|
11069
|
+
nextTick(() => {
|
|
11070
11070
|
const container = getContainer.value();
|
|
11071
11071
|
state.scrollContainer = container;
|
|
11072
11072
|
state.scrollEvent = addEventListener(state.scrollContainer, "scroll", handleScroll);
|
|
@@ -11209,7 +11209,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ name: "Steps" }, {
|
|
|
11209
11209
|
});
|
|
11210
11210
|
const Steps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7d66ca39"]]);
|
|
11211
11211
|
function useLayout() {
|
|
11212
|
-
const collapsed = ref
|
|
11212
|
+
const collapsed = ref(false);
|
|
11213
11213
|
const toggleCollapsed = () => {
|
|
11214
11214
|
collapsed.value = !collapsed.value;
|
|
11215
11215
|
};
|