You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
577 B

9 years ago
# 四种样式
- order: 3
9 years ago
共有四种样式`success`、`info`、`warn`、`error`。
---
````jsx
var Alert = require('antd/lib/alert');
React.render(
9 years ago
<div>
<Alert
message="警告提示的文案"
9 years ago
type="success"
/>
<Alert
message="警告提示的文案警告提示的文案"
9 years ago
type="info"
/>
<Alert
message="警告提示的文案"
9 years ago
type="warn"
/>
<Alert
message="警告提示的文案警告提示的文案"
9 years ago
type="error"
/>
</div>,
9 years ago
document.getElementById('components-alert-demo-style'));
````