This commit is contained in:
乐仪 2017-08-06 12:44:15 +08:00
parent fdb943e887
commit 1dd3e001c5
2 changed files with 7 additions and 1 deletions

View File

@ -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} />}

View File

@ -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()
包括: 包括: