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
33c8c579
Commit
33c8c579
authored
Feb 09, 2021
by
lihxhit
Committed by
言肆
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: make page-container example runable
parent
ba87845a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
page-container.tsx
examples/page-container.tsx
+2
-2
No files found.
examples/page-container.tsx
View file @
33c8c579
...
...
@@ -10,7 +10,7 @@ import './index.less';
const
App
=
defineComponent
({
name
:
'App'
,
setup
:
function
()
{
const
[
routeContext
,
RouteContextProvider
]
=
createRouteContext
({
const
[
RouteContextProvider
]
=
createRouteContext
({
hasSideMenu
:
true
,
collapsed
:
true
,
isMobile
:
false
,
...
...
@@ -38,7 +38,7 @@ const App = defineComponent({
return
()
=>
(
<
div
class=
"demo-page-box"
style=
"padding: 20px; background: #ccc;"
>
<
ProProvider
prefixCls=
{
'ant-pro'
}
contentWidth=
{
'Fixed'
}
>
<
RouteContextProvider
>
<
RouteContextProvider
value=
{
{}
}
>
<
div
style=
"background: #fff; height: 500px;"
>
<
PageContainer
title=
"Title"
...
...
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