-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: export base editor layout components
- Loading branch information
1 parent
4328b89
commit 5e0a200
Showing
5 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { BaseEditorLayout, Button, Input } from '@ant-design/pro-editor'; | ||
import { Space } from 'antd'; | ||
import { DefaultLayoutProps } from './_defaultProps'; | ||
|
||
export default () => { | ||
return ( | ||
<BaseEditorLayout | ||
style={{ | ||
maxWidth: '100%', | ||
height: '600px', | ||
}} | ||
header={{ | ||
...DefaultLayoutProps.header, | ||
children: ( | ||
<Input | ||
addonBefore="Options" | ||
placeholder="Search For Some Little Options" | ||
style={{ width: 250 }} | ||
/> | ||
), | ||
extra: ( | ||
<Space> | ||
<Button type="primary">Save</Button> | ||
<Button type="dashed">Export</Button> | ||
</Space> | ||
), | ||
}} | ||
footer={{ | ||
...DefaultLayoutProps.footer, | ||
}} | ||
leftPannel={{ | ||
children: <div>Left Pannel</div>, | ||
}} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters