ant-design/components/checkbox/demo/group.md
2015-12-25 11:48:59 +08:00

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'));