mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
Update Modal doc, relevant:https://github.com/ant-design/ant-design/pull/7085
This commit is contained in:
parent
fdb943e887
commit
1dd3e001c5
@ -43,7 +43,7 @@ and so on.
|
|||||||
> <Modal key={this.state.newKey} visible={this.state.visible} />
|
> <Modal key={this.state.newKey} visible={this.state.visible} />
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
> Another way is to conditionally mount modal
|
> Another way is to conditionally mount modal.
|
||||||
|
|
||||||
> ```jsx
|
> ```jsx
|
||||||
> {this.state.visible && <Modal visible={true} />}
|
> {this.state.visible && <Modal visible={true} />}
|
||||||
|
@ -42,6 +42,12 @@ title: Modal
|
|||||||
> <Modal key={this.state.newKey} visible={this.state.visible} />
|
> <Modal key={this.state.newKey} visible={this.state.visible} />
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
> 另一种方式是根据条件加载 Modal。
|
||||||
|
|
||||||
|
> ```jsx
|
||||||
|
> {this.state.visible && <Modal visible={true} />}
|
||||||
|
> ```
|
||||||
|
|
||||||
### Modal.method()
|
### Modal.method()
|
||||||
|
|
||||||
包括:
|
包括:
|
||||||
|
Loading…
Reference in New Issue
Block a user