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

19 lines
327 B
Markdown
Raw Normal View History

2015-07-15 15:19:24 +08:00
# 不可用
- order: 1
2015-07-16 14:34:42 +08:00
checkbox 不可用。
2015-07-15 15:19:24 +08:00
---
````jsx
var Checkbox = antd.Checkbox;
var container = document.getElementById('components-checkbox-demo-disable');
2015-07-16 14:34:42 +08:00
React.render(<div>
<Checkbox defaultChecked={false} disabled={true}/>
<br />
<Checkbox defaultChecked={true} disabled={true}/>
</div>, container);
2015-07-15 15:19:24 +08:00
````