Skip to content

Commit

Permalink
fix: make page-container example runable
Browse files Browse the repository at this point in the history
  • Loading branch information
lihxhit authored and sendya committed Feb 9, 2021
1 parent ba87845 commit 33c8c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/page-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 33c8c57

Please sign in to comment.