Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 11:29:20 +08:00

fix: sidebar scroll area is abnormal (#134)

* fix: sidebar scroll area is abnormal

* fix: display value

* fix: 防止顶部模式垂直滚动

* fix: 'div' should be 'block'

---------

Co-authored-by: pany <939630029@qq.com>
This commit is contained in:
_island 2023-10-07 16:29:43 +08:00 committed by GitHub
parent fc9e188572
commit 5d1eeec01f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,10 @@ const sidebarMenuHoverBgColor = computed(() => {
const tipLineWidth = computed(() => {
return layoutMode.value !== "top" ? "2px" : "0px"
})
//
const hiddenScrollbarVerticalBar = computed(() => {
return layoutMode.value === "top" ? "none" : "block"
})
</script>
<template>
@ -97,8 +101,8 @@ const tipLineWidth = computed(() => {
}
.el-scrollbar {
// 5%
height: 105%;
// 1%
height: 101%;
:deep(.scrollbar-wrapper) {
//
overflow-x: hidden !important;
@ -112,6 +116,10 @@ const tipLineWidth = computed(() => {
//
display: none;
}
&.is-vertical {
//
display: v-bind(hiddenScrollbarVerticalBar);
}
}
}