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

20 lines
443 B
Markdown
Raw Normal View History

2015-07-27 20:53:08 +08:00
# 四种样式
2015-07-29 17:22:36 +08:00
- order: 3
2015-07-27 20:53:08 +08:00
共有四种样式`success`、`info`、`warn`、`error`。
---
````jsx
var Alert = antd.Alert;
2015-07-27 20:53:08 +08:00
2015-07-29 18:44:56 +08:00
React.render(<div>
2015-07-30 11:20:14 +08:00
<Alert message="成功提示的文案" type="success" />
<Alert message="消息提示的文案" type="info" />
2015-07-29 18:44:56 +08:00
<Alert message="警告提示的文案" type="warn" />
2015-07-30 11:20:14 +08:00
<Alert message="错误提示的文案" type="error" />
2015-07-29 18:44:56 +08:00
</div>,
2015-07-27 20:53:08 +08:00
document.getElementById('components-alert-demo-style'));
````