ant-design/components/alert/demo/close-text.md

23 lines
368 B
Markdown
Raw Normal View History

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