element/packages/checkbox/src/checkbox-group.vue

29 lines
425 B
Vue

<script>
import emitter from 'main/mixins/emitter';
export default {
name: 'ElCheckboxGroup',
mixins: [emitter],
props: {
value: {
default: '',
required: true
}
},
watch: {
value(value) {
this.dispatch('form-item', 'el.form.change', value);
}
}
};
</script>
<template>
<div class="el-checkbox-group">
<slot></slot>
</div>
</template>