import React, { useState } from 'react';
import Checkbox from 'components/checkbox';
const CheckboxGroup = Checkbox.Group;
type IProps = {};
const Component = function(props: IProps) {
    const [v, setV] = useState([]);
    return (
        <div>
            <CheckboxGroup
                values={v}
                defaultValues={[1]}
                onChange={(e: any) => {
                    console.log(e);
                    setV(e);
                }}
                options={[{ label: '香蕉', value: 1 }, { label: '苹果', value: 2 }, { label: '葡萄', value: 3 }]}
            />
        </div>
    );
};
Component.defaultProps = {};
export default Component;
