Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ae3f7cb9
authored
Dec 01, 2024
by
Netfan
Committed by
GitHub
Dec 01, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: mixed menu layout in full content mode (#4990)
1 parent
32117b73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue
packages/@core/ui-kit/layout-ui/src/vben-layout.vue
packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue
View file @
ae3f7cb
...
...
@@ -191,7 +191,10 @@ watchEffect(() => {
function
calcMenuWidthStyle
(
isHiddenDom
:
boolean
):
CSSProperties
{
const
{
extraWidth
,
fixedExtra
,
isSidebarMixed
,
show
,
width
}
=
props
;
let
widthValue
=
`
${
width
+
(
isSidebarMixed
&&
fixedExtra
&&
extraVisible
.
value
?
extraWidth
:
0
)}
px`
;
let
widthValue
=
width
===
0
?
'0px'
:
`
${
width
+
(
isSidebarMixed
&&
fixedExtra
&&
extraVisible
.
value
?
extraWidth
:
0
)}
px`
;
const
{
collapseWidth
}
=
props
;
...
...
packages/@core/ui-kit/layout-ui/src/vben-layout.vue
View file @
ae3f7cb
...
...
@@ -192,7 +192,7 @@ const headerFixed = computed(() => {
});
const
showSidebar
=
computed
(()
=>
{
return
isSideMode
.
value
&&
sidebarEnable
.
value
;
return
isSideMode
.
value
&&
sidebarEnable
.
value
&&
!
props
.
sidebarHidden
;
});
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment