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

19 lines
330 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-10-20 16:47:55 +08:00
ReactDOM.render(<div>
2015-07-16 14:34:42 +08:00
<Checkbox defaultChecked={false} disabled={true}/>
<br />
<Checkbox defaultChecked={true} disabled={true}/>
</div>, container);
2015-07-15 15:19:24 +08:00
````