mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-04 07:27:41 +08:00
Merge branch 'main' into pages
This commit is contained in:
commit
de36c33d3c
@ -61,6 +61,21 @@ const getSubMenuIconStyle = computed((): CSSProperties => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const textClass = computed(() => {
|
||||||
|
const item = props.item;
|
||||||
|
const baseClass = "w-full! text-inherit!";
|
||||||
|
if (
|
||||||
|
layout.value !== "horizontal" &&
|
||||||
|
isCollapse.value &&
|
||||||
|
!toRaw(item.meta.icon) &&
|
||||||
|
((layout.value === "vertical" && item.parentId === null) ||
|
||||||
|
(layout.value === "mix" && item.parentId !== 0))
|
||||||
|
) {
|
||||||
|
return `${baseClass} min-w-[54px]! text-center! px-3!`;
|
||||||
|
}
|
||||||
|
return baseClass;
|
||||||
|
});
|
||||||
|
|
||||||
const expandCloseIcon = computed(() => {
|
const expandCloseIcon = computed(() => {
|
||||||
if (!getConfig()?.MenuArrowIconNoTransition) return "";
|
if (!getConfig()?.MenuArrowIconNoTransition) return "";
|
||||||
return {
|
return {
|
||||||
@ -144,7 +159,7 @@ function resolvePath(routePath) {
|
|||||||
item?.pathList?.length === 2)
|
item?.pathList?.length === 2)
|
||||||
"
|
"
|
||||||
truncated
|
truncated
|
||||||
class="w-full! pl-4! text-inherit!"
|
class="w-full! px-3! min-w-[54px]! text-center! text-inherit!"
|
||||||
>
|
>
|
||||||
{{ transformI18n(onlyOneChild.meta.title) }}
|
{{ transformI18n(onlyOneChild.meta.title) }}
|
||||||
</el-text>
|
</el-text>
|
||||||
@ -195,15 +210,7 @@ function resolvePath(routePath) {
|
|||||||
offset: [0, -10],
|
offset: [0, -10],
|
||||||
theme: tooltipEffect
|
theme: tooltipEffect
|
||||||
}"
|
}"
|
||||||
:class="{
|
:class="textClass"
|
||||||
'w-full!': true,
|
|
||||||
'text-inherit!': true,
|
|
||||||
'pl-4!':
|
|
||||||
layout !== 'horizontal' &&
|
|
||||||
isCollapse &&
|
|
||||||
!toRaw(item.meta.icon) &&
|
|
||||||
item.parentId === null
|
|
||||||
}"
|
|
||||||
>
|
>
|
||||||
{{ transformI18n(item.meta.title) }}
|
{{ transformI18n(item.meta.title) }}
|
||||||
</ReText>
|
</ReText>
|
||||||
|
@ -667,6 +667,10 @@ body[layout="horizontal"] {
|
|||||||
|
|
||||||
@include merge-style($sideBarWidth);
|
@include merge-style($sideBarWidth);
|
||||||
|
|
||||||
|
.el-menu {
|
||||||
|
--el-menu-hover-text-color: var(--pure-theme-menu-text) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.fixed-header,
|
.fixed-header,
|
||||||
.main-container {
|
.main-container {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
@ -688,6 +692,7 @@ body[layout="mix"] {
|
|||||||
|
|
||||||
.el-menu {
|
.el-menu {
|
||||||
--el-menu-hover-bg-color: transparent !important;
|
--el-menu-hover-bg-color: transparent !important;
|
||||||
|
--el-menu-hover-text-color: var(--pure-theme-menu-text) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hideSidebar {
|
.hideSidebar {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user