ant-design/components/alert/demo/style.md

19 lines
414 B
Markdown
Raw Normal View History

2015-07-27 20:53:08 +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
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
````