mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
376 B
376 B
基本用法
- order: 3
checkbox 组。
import { Checkbox } from 'antd';
const CheckboxGroup = Checkbox.Group
function onChange(checkedValues) {
console.log('checked = ', checkedValues);
}
ReactDOM.render(<label>
<CheckboxGroup options={['apple','pear']}onChange={onChange} />
</label>, document.getElementById('components-checkbox-demo-group'));