新布局bug修复

This commit is contained in:
XaoLi717 2025-02-14 15:54:31 +08:00
parent 4a05c21035
commit 1ce0dbc8e2

View File

@ -62,8 +62,8 @@ export default defineComponent({
//
const setVisibleNumber = () => {
const width = document.body.getBoundingClientRect().width-600;
visibleNumber.value = Math.floor(width / 110);
const width = document.body.getBoundingClientRect().width-550;
visibleNumber.value = Math.floor(width / 120);
}
//
@ -212,9 +212,10 @@ export default defineComponent({
{filteredRoutes.value.length > 0 && (
<ElMenu
mode="horizontal"
style={['height: 48px']}
style={['height: 47px','max-width: 100px']}
backgroundColor="var(--top-header-bg-color)"
textColor="var(--top-header-text-color)"
class="dark:bg-[var(--el-bg-color)] !important"
>
{() => {
return unref(tabRouters).map((v, index) => {
@ -284,4 +285,7 @@ $prefix-cls: #{$namespace}-tab-menu;
.icon-class.hidden {
opacity: 0;
}
.el-menu--horizontal.el-menu {
border-bottom: none !important;
}
</style>