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.

18 lines
419 B

---
order: 1
title: 四种样式
---
9 years ago
共有四种样式 `success`、`info`、`warning`、`error`。
9 years ago
````jsx
import { Alert } from 'antd';
9 years ago
9 years ago
ReactDOM.render(<div>
<Alert message="成功提示的文案" type="success" />
<Alert message="消息提示的文案" type="info" />
<Alert message="警告提示的文案" type="warning" />
<Alert message="错误提示的文案" type="error" />
</div>, mountNode);
9 years ago
````