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
|
|
|
|
|
|
|
|
There are 4 kinds of Alert: `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>
|
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
|
|
|
````
|