<!-- webview only -->
<template>
    <input type="checkbox" @input="onChange" @click.capture="$emit('click', $event)" @touchstart.capture="$emit('touchstart', $event)" @touchmove.capture="$emit('touchmove', $event)" @touchend.capture="$emit('touchend', $event)" @touchcancel.capture="$emit('touchcancel', $event)">
</template>
<script>
export default {
    name: 'Bili_Checkbox',
    methods: {
        onChange(e) {
            this.$emit('change', {
                detail: {
                    value: e.target.checked
                }
            });
        }
    }
};
</script>
