2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 1
|
2016-07-04 10:49:26 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 四种样式
|
|
|
|
en-US: More types
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-07-27 20:53:08 +08:00
|
|
|
|
2016-07-04 10:49:26 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-03-28 14:38:25 +08:00
|
|
|
共有四种样式 `success`、`info`、`warning`、`error`。
|
2015-07-27 20:53:08 +08:00
|
|
|
|
2016-07-04 10:49:26 +08:00
|
|
|
## en-US
|
|
|
|
|
2016-09-14 09:52:14 +08:00
|
|
|
There are 4 types of Alert: `success`, `info`, `warning`, `error`.
|
2016-07-04 10:49:26 +08:00
|
|
|
|
2017-02-13 10:55:53 +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>
|
2016-07-04 10:49:26 +08:00
|
|
|
<Alert message="Success Text" type="success" />
|
|
|
|
<Alert message="Info Text" type="info" />
|
|
|
|
<Alert message="Warning Text" type="warning" />
|
|
|
|
<Alert message="Error Text" type="error" />
|
2016-03-28 14:38:25 +08:00
|
|
|
</div>, mountNode);
|
2015-07-27 20:53:08 +08:00
|
|
|
````
|