ant-design/components/checkbox/demo/disable.md

17 lines
242 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 1
title: 不可用
---
2015-07-15 15:19:24 +08:00
2015-07-16 14:34:42 +08:00
checkbox 不可用。
2015-07-15 15:19:24 +08:00
````jsx
import { Checkbox } from 'antd';
2015-07-15 15:19:24 +08:00
2015-10-20 16:47:55 +08:00
ReactDOM.render(<div>
2015-11-25 17:47:55 +08:00
<Checkbox defaultChecked={false} disabled />
2015-07-16 14:34:42 +08:00
<br />
2015-11-25 17:47:55 +08:00
<Checkbox defaultChecked disabled />
</div>, mountNode);
2015-07-15 15:19:24 +08:00
````