refactor(Checker): refactor with composition api

This commit is contained in:
chenjiahan
2020-09-24 19:49:00 +08:00
parent eb68632e50
commit dffa6eb083
3 changed files with 143 additions and 148 deletions
+7 -1
View File
@@ -8,7 +8,13 @@ const [createComponent, bem] = createNamespace('checkbox');
export default createComponent({
mixins: [FieldMixin, ChildrenMixin('vanCheckbox')],
props: checkerProps,
props: {
...checkerProps,
bindGroup: {
type: Boolean,
default: true,
},
},
emits: ['change', 'update:modelValue'],