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

16 lines
268 B
Markdown
Raw Normal View History

2015-07-29 15:22:47 +08:00
# 自定义关闭
2015-07-27 20:53:08 +08:00
- order: 5
2015-07-27 20:53:08 +08:00
2015-07-29 17:22:36 +08:00
可以自定义关闭,自定义的文字会替换原先的关闭 `Icon`
2015-07-27 20:53:08 +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="消息提示的文案" type="info" closeText="不再提醒" />
, mountNode);
2015-07-27 20:53:08 +08:00
````