2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 4
|
|
|
|
title: 图标
|
|
|
|
---
|
2015-11-29 18:42:57 +08:00
|
|
|
|
|
|
|
可口的图标让信息类型更加醒目。
|
|
|
|
|
|
|
|
````jsx
|
|
|
|
import { Alert } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(<div>
|
|
|
|
<Alert message="成功提示的文案" type="success" showIcon />
|
|
|
|
<Alert message="消息提示的文案" type="info" showIcon />
|
2016-03-28 14:38:25 +08:00
|
|
|
<Alert message="警告提示的文案" type="warning" showIcon />
|
2015-11-29 18:42:57 +08:00
|
|
|
<Alert message="错误提示的文案" type="error" showIcon />
|
|
|
|
<Alert message="成功提示的文案"
|
|
|
|
description="成功提示的辅助性文字介绍成功提示的辅助性文字介绍成功提示的辅助性文字介绍成功提示的辅助性文字介绍"
|
|
|
|
type="success"
|
|
|
|
showIcon />
|
|
|
|
<Alert message="消息提示的文案"
|
|
|
|
description="消息提示的辅助性文字介绍消息提示的辅助性文字介绍消息提示的辅助性文字介绍"
|
|
|
|
type="info"
|
|
|
|
showIcon />
|
|
|
|
<Alert
|
|
|
|
message="警告提示的文案"
|
|
|
|
description="警告提示的辅助性文字介绍警告提示的辅助性文字介绍"
|
2016-03-28 14:38:25 +08:00
|
|
|
type="warning"
|
2015-11-29 18:42:57 +08:00
|
|
|
showIcon />
|
|
|
|
<Alert
|
|
|
|
message="错误提示的文案"
|
|
|
|
description="错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍"
|
|
|
|
type="error"
|
|
|
|
showIcon />
|
2015-12-29 12:08:58 +08:00
|
|
|
</div>, mountNode);
|
2015-11-29 18:42:57 +08:00
|
|
|
````
|