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 1f63aed6
authored
Jul 03, 2025
by
someone-cool
Committed by
GitHub
Jul 03, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(@vben/common-ui): add page footer's height to calc contentstyle (#6422)
1 parent
253b0da7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
packages/effects/common-ui/src/components/page/page.vue
packages/effects/common-ui/src/components/page/page.vue
View file @
1f63aed
...
@@ -25,7 +25,7 @@ const footerRef = useTemplateRef<HTMLDivElement>('footerRef');
...
@@ -25,7 +25,7 @@ const footerRef = useTemplateRef<HTMLDivElement>('footerRef');
const
contentStyle
=
computed
<
StyleValue
>
(()
=>
{
const
contentStyle
=
computed
<
StyleValue
>
(()
=>
{
if
(
autoContentHeight
)
{
if
(
autoContentHeight
)
{
return
{
return
{
height
:
`calc(var(
${
CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT
}
) -
${
headerHeight
.
value
}
px -
${
typeof
heightOffset
===
'number'
?
`
${
heightOffset
}
px`
:
heightOffset
}
)`
,
height
:
`calc(var(
${
CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT
}
) -
${
headerHeight
.
value
}
px -
${
typeof
heightOffset
===
'number'
?
`
${
heightOffset
}
px`
:
heightOffset
}
)
-
${
footerHeight
.
value
}
px
`
,
overflowY
:
shouldAutoHeight
.
value
?
'auto'
:
'unset'
,
overflowY
:
shouldAutoHeight
.
value
?
'auto'
:
'unset'
,
};
};
}
}
...
...
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