mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 00:29:12 +08:00
16 lines
268 B
Markdown
16 lines
268 B
Markdown
# 自定义关闭
|
|
|
|
- order: 5
|
|
|
|
可以自定义关闭,自定义的文字会替换原先的关闭 `Icon`。
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { Alert } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Alert message="消息提示的文案" type="info" closeText="不再提醒" />
|
|
, mountNode);
|
|
````
|