You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# 图标
|
|
|
|
|
|
|
|
- order: 4
|
|
|
|
|
|
|
|
可口的图标让信息类型更加醒目。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
|
|
|
import { Alert } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(<div>
|
|
|
|
<Alert message="成功提示的文案" type="success" showIcon />
|
|
|
|
<Alert message="消息提示的文案" type="info" showIcon />
|
|
|
|
<Alert message="警告提示的文案" type="warn" showIcon />
|
|
|
|
<Alert message="错误提示的文案" type="error" showIcon />
|
|
|
|
<Alert message="成功提示的文案"
|
|
|
|
description="成功提示的辅助性文字介绍成功提示的辅助性文字介绍成功提示的辅助性文字介绍成功提示的辅助性文字介绍"
|
|
|
|
type="success"
|
|
|
|
showIcon />
|
|
|
|
<Alert message="消息提示的文案"
|
|
|
|
description="消息提示的辅助性文字介绍消息提示的辅助性文字介绍消息提示的辅助性文字介绍"
|
|
|
|
type="info"
|
|
|
|
showIcon />
|
|
|
|
<Alert
|
|
|
|
message="警告提示的文案"
|
|
|
|
description="警告提示的辅助性文字介绍警告提示的辅助性文字介绍"
|
|
|
|
type="warn"
|
|
|
|
showIcon />
|
|
|
|
<Alert
|
|
|
|
message="错误提示的文案"
|
|
|
|
description="错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍错误提示的辅助性文字介绍"
|
|
|
|
type="error"
|
|
|
|
showIcon />
|
|
|
|
</div>, mountNode);
|
|
|
|
````
|