Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-layout
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
packages
pro-layout
Commits
4d1d8485
Commit
4d1d8485
authored
Nov 26, 2021
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(PageContainer): fixedHeader headerHeight undefined.
parent
34437dd4
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
1 deletion
+7
-1
BasicLayout.vue
examples/layouts/BasicLayout.vue
+1
-0
CustomLayout.vue
examples/layouts/CustomLayout.vue
+1
-0
page1.vue
examples/views/page1.vue
+1
-0
BasicLayout.tsx
src/BasicLayout.tsx
+1
-0
index.tsx
src/PageContainer/index.tsx
+2
-0
SiderMenu.tsx
src/SiderMenu/SiderMenu.tsx
+1
-1
No files found.
examples/layouts/BasicLayout.vue
View file @
4d1d8485
...
...
@@ -151,6 +151,7 @@ export default defineComponent({
navTheme
:
'dark'
,
layout
:
'side'
,
fixSiderbar
:
true
,
fixedHeader
:
true
,
});
const
breadcrumb
=
computed
(()
=>
router
.
currentRoute
.
value
.
matched
.
concat
().
map
(
item
=>
{
...
...
examples/layouts/CustomLayout.vue
View file @
4d1d8485
...
...
@@ -6,6 +6,7 @@
v-bind=
"state"
:loading=
"loading"
:breadcrumb=
"
{ routes: breadcrumb }"
breakpoint="sm"
>
<template
#
menuHeaderRender
>
<a>
...
...
examples/views/page1.vue
View file @
4d1d8485
...
...
@@ -8,6 +8,7 @@
</
template
>
<span>
page-content
</span>
<a-button
@
click=
"handleClick"
>
Button
</a-button>
<p
v-for=
"item in new Array(20)"
:key=
"item"
>
text block...
</p>
</page-container>
</template>
...
...
src/BasicLayout.tsx
View file @
4d1d8485
...
...
@@ -182,6 +182,7 @@ const ProLayout = defineComponent({
'disableMobile'
,
'fixSiderbar'
,
'fixedHeader'
,
'headerHeight'
,
// 'hasSideMenu',
// 'hasHeader',
// 'hasFooter',
...
...
src/PageContainer/index.tsx
View file @
4d1d8485
...
...
@@ -275,6 +275,8 @@ const PageContainer = defineComponent({
return
()
=>
{
const
footer
=
getPropsSlot
(
slots
,
props
,
'footer'
);
//
console
.
log
(
'value.headerHeight'
,
value
.
headerHeight
);
return
(
<
div
class=
{
classNames
.
value
}
>
{
value
.
fixedHeader
?
(
...
...
src/SiderMenu/SiderMenu.tsx
View file @
4d1d8485
...
...
@@ -64,7 +64,7 @@ export const siderMenuProps = {
default
:
()
=>
undefined
,
},
breakpoint
:
{
type
:
[
Object
,
Boolean
]
as
PropType
<
SiderProps
[
'breakpoint'
]
|
false
>
,
type
:
[
Object
,
String
,
Boolean
]
as
PropType
<
SiderProps
[
'breakpoint'
]
|
false
>
,
default
:
()
=>
false
,
},
isMobile
:
PropTypes
.
bool
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment