mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Update modal documentation (#7085)
Add another way to destroy state on close modal
This commit is contained in:
parent
cb8f6a6ef5
commit
1651682020
@ -43,6 +43,12 @@ and so on.
|
||||
> <Modal key={this.state.newKey} visible={this.state.visible} />
|
||||
> ```
|
||||
|
||||
> Another way is to conditionally mount modal
|
||||
|
||||
> ```jsx
|
||||
> {this.state.visible && <Modal visible={true} />}
|
||||
> ```
|
||||
|
||||
### Modal.method()
|
||||
|
||||
There are five ways to display the information based on the content's nature:
|
||||
|
Loading…
Reference in New Issue
Block a user