2015-07-27 20:53:08 +08:00
|
|
|
# 四种样式
|
|
|
|
|
2015-11-29 18:42:57 +08:00
|
|
|
- order: 1
|
2015-07-27 20:53:08 +08:00
|
|
|
|
2016-03-28 14:38:25 +08:00
|
|
|
共有四种样式 `success`、`info`、`warning`、`error`。
|
2015-07-27 20:53:08 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Alert } from 'antd';
|
2015-07-27 20:53:08 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(<div>
|
2015-07-30 11:20:14 +08:00
|
|
|
<Alert message="成功提示的文案" type="success" />
|
|
|
|
<Alert message="消息提示的文案" type="info" />
|
2016-03-28 14:38:25 +08:00
|
|
|
<Alert message="警告提示的文案" type="warning" />
|
2015-07-30 11:20:14 +08:00
|
|
|
<Alert message="错误提示的文案" type="error" />
|
2016-03-28 14:38:25 +08:00
|
|
|
</div>, mountNode);
|
2015-07-27 20:53:08 +08:00
|
|
|
````
|