-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01f6325
commit a5df92a
Showing
7 changed files
with
166 additions
and
69 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,37 @@ | ||
import { TipGuide } from '@ant-design/pro-editor'; | ||
|
||
import { Button, List, Space } from 'antd'; | ||
import { useState } from 'react'; | ||
|
||
export default () => { | ||
const guideKey = 'DEMO_KEY123'; | ||
|
||
const [open, setOpen] = useState(true); | ||
|
||
return ( | ||
<Space> | ||
<Button | ||
onClick={() => { | ||
setOpen(true); | ||
}} | ||
> | ||
Open | ||
</Button> | ||
<Button | ||
onClick={() => { | ||
setOpen(false); | ||
}} | ||
> | ||
Close | ||
</Button> | ||
<TipGuide | ||
guideKey={guideKey} | ||
open={open} | ||
placement="right" | ||
title={'现在这个 List 是一个空数据,需要你添加数据'} | ||
> | ||
<List /> | ||
</TipGuide> | ||
</Space> | ||
); | ||
}; |
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,42 @@ | ||
import { TipGuide } from '@ant-design/pro-editor'; | ||
|
||
import { Button, Space } from 'antd'; | ||
import { useState } from 'react'; | ||
|
||
export default () => { | ||
const guideKey = 'DEMO_KEY'; | ||
const [open, setOpen] = useState(true); | ||
|
||
return ( | ||
<TipGuide | ||
guideKey={guideKey} | ||
open={open} | ||
placement="right" | ||
footerRender={() => { | ||
return ( | ||
<Space> | ||
<Button type="primary" disabled> | ||
Clear | ||
</Button> | ||
<Button | ||
onClick={() => { | ||
setOpen(false); | ||
}} | ||
> | ||
Close | ||
</Button> | ||
</Space> | ||
); | ||
}} | ||
title={'This Is Footer Render Demo !'} | ||
> | ||
<Button | ||
onClick={() => { | ||
setOpen(true); | ||
}} | ||
> | ||
Open | ||
</Button> | ||
</TipGuide> | ||
); | ||
}; |
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
This file was deleted.
Oops, something went wrong.