mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
517 B
517 B
order | title | ||||
---|---|---|---|---|---|
9 |
|
zh-CN
在 4.0 之后,危险成为一种按钮属性而不是按钮类型。
en-US
danger
is a property of button after antd 4.0.
import { Button } from 'antd';
ReactDOM.render(
<>
<Button type="primary" danger>
Primary
</Button>
<Button danger>Default</Button>
<Button type="dashed" danger>
link
</Button>
<Button type="link" danger>
link
</Button>
</>,
mountNode,
);