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

28 lines
327 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 1
2016-08-18 11:22:55 +08:00
title:
zh-CN: 不可用
en-US: Disabled
2016-03-31 09:40:55 +08:00
---
2015-07-15 15:19:24 +08:00
2016-08-18 11:22:55 +08:00
## zh-CN
2015-07-16 14:34:42 +08:00
checkbox 不可用。
2015-07-15 15:19:24 +08:00
2016-08-18 11:22:55 +08:00
## en-US
Disabled checkbox.
2017-02-13 10:55:53 +08:00
````jsx
import { Checkbox } from 'antd';
2015-07-15 15:19:24 +08:00
ReactDOM.render(
<div>
<Checkbox defaultChecked={false} disabled />
<br />
<Checkbox defaultChecked disabled />
2018-06-27 15:55:04 +08:00
</div>,
2018-11-28 15:00:03 +08:00
mountNode
);
2015-07-15 15:19:24 +08:00
````