mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
378 B
378 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'));