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

35 lines
563 B
Markdown

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