You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design/components/alert/demo/style.md

33 lines
593 B
Markdown

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