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';
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"
......
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