
export default {
    name: 'regionList',
    props: {
        checkValue: {
            type: Array,
            required: true
        },
        checkList: {
            type: Array,
            required: true
        }

    }, data() {
        return {

            value: []
        }
    },
    methods: {
        onOpenChange(openKeys) {
          
        }
    },
    render(h) {
        const on = {
            select: obj => {
                this.selectedKeys = obj.selectedKeys
                this.$emit('select', obj)
            },
            onchange: this.onOpenChange
        }
        const props = {
            mode: '',
            theme: '',
            openKeys: this.value
        }
        return (
            <a-checkbox-group vModel={this.value} {...{ props, on: on }}>
                <a-checkbox value="huawei">华为</a-checkbox>
                <a-checkbox value="oppo">OPPO</a-checkbox>
                <a-checkbox value="vivo">VIVO</a-checkbox>
                <a-checkbox value="xiaomi">小米</a-checkbox>
                <a-checkbox value="meizu">魅族</a-checkbox>
                <a-checkbox value="smartisan">锤子</a-checkbox>
            </a-checkbox-group>


        )
    }
}