lulouis-vant
Version:
Lightweight Mobile UI Components built on Vue
22 lines (17 loc) • 346 B
JavaScript
import { use } from '../utils';
const [sfc, bem] = use('checkbox-group');
export default sfc({
props: {
max: Number,
value: Array,
disabled: Boolean
},
watch: {
value(val) {
this.$emit('change', val);
}
},
render(h) {
return <div class={bem()}>{this.$slots.default}</div>;
}
});