Commit 33c8c579 authored by lihxhit's avatar lihxhit Committed by 言肆

fix: make page-container example runable

parent ba87845a
...@@ -10,7 +10,7 @@ import './index.less'; ...@@ -10,7 +10,7 @@ import './index.less';
const App = defineComponent({ const App = defineComponent({
name: 'App', name: 'App',
setup: function() { setup: function() {
const [ routeContext, RouteContextProvider ] = createRouteContext({ const [ RouteContextProvider ] = createRouteContext({
hasSideMenu: true, hasSideMenu: true,
collapsed: true, collapsed: true,
isMobile: false, isMobile: false,
...@@ -38,7 +38,7 @@ const App = defineComponent({ ...@@ -38,7 +38,7 @@ const App = defineComponent({
return () => ( return () => (
<div class="demo-page-box" style="padding: 20px; background: #ccc;"> <div class="demo-page-box" style="padding: 20px; background: #ccc;">
<ProProvider prefixCls={'ant-pro'} contentWidth={'Fixed'}> <ProProvider prefixCls={'ant-pro'} contentWidth={'Fixed'}>
<RouteContextProvider> <RouteContextProvider value={{}}>
<div style="background: #fff; height: 500px;"> <div style="background: #fff; height: 500px;">
<PageContainer <PageContainer
title="Title" title="Title"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment