Skip to content

Commit

Permalink
docs: update demos
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jul 13, 2022
1 parent 5d871ed commit c36289c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .dumi/theme/layouts/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export default ({ children, location, ...rest }) => {
if (location.pathname.startsWith('/~demos/layout')) {
return children;
}
if (location.pathname.startsWith('/~demos/form-layout')) {
return children;
}

return (
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default () => {
return (
<BasicLayout
fixSiderbar
fixedHeader
navTheme="light"
breakpoint={false}
defaultCollapsed
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/form.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ supported in `ProForm`, `SchemaForm`, `ModalForm`, `DrawerForm`, `StepsForm`
### Fixed footer
<code src="./demos/layout-base.tsx" height="500px" iframe="500px" />
<code src="./demos/layout-footer.tsx" height="500px" iframe="500px" />
### Money
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ formRef 内置了几个方法来获取转化之后的值,这也是相比 antd

### 固定页脚

<code src="./demos/layout-base.tsx" height="500px" iframe="874px" title="固定页脚"/>
<code src="./demos/layout-footer.tsx" height="500px" iframe="874px" title="固定页脚"/>

### ProForm 和 EditableTable 同时使用

Expand Down
1 change: 0 additions & 1 deletion packages/layout/src/demos/dynamicMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default () => {
<ProLayout
style={{
height: '100vh',
border: '1px solid #ddd',
}}
actionRef={actionRef}
menu={{
Expand Down

0 comments on commit c36289c

Please sign in to comment.