2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 5
|
2016-07-04 10:49:26 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 自定义关闭
|
|
|
|
en-US: Customized Close Text
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-07-27 20:53:08 +08:00
|
|
|
|
2016-07-04 10:49:26 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-07-29 17:22:36 +08:00
|
|
|
可以自定义关闭,自定义的文字会替换原先的关闭 `Icon`。
|
2015-07-27 20:53:08 +08:00
|
|
|
|
2016-07-04 10:49:26 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
Replace the default icon with customized text.
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Alert } from 'antd';
|
2015-07-27 20:53:08 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(
|
2016-07-04 10:49:26 +08:00
|
|
|
<Alert message="Info Text" type="info" closeText="Close Now" />
|
2015-12-29 12:08:58 +08:00
|
|
|
, mountNode);
|
2015-07-27 20:53:08 +08:00
|
|
|
````
|