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

20 lines
452 B
Markdown
Raw Normal View History

2015-07-27 20:53:08 +08:00
# 四种样式
- order: 1
2015-07-27 20:53:08 +08:00
共有四种样式`success`、`info`、`warn`、`error`。
---
````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" />
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'));
````