Skip to content

Commit

Permalink
fix: CheckboxGroup.vue runtime error
Browse files Browse the repository at this point in the history
Detailed description see: #365
  • Loading branch information
qiqingfu committed Nov 16, 2020
1 parent 0f99051 commit 81355d7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/checkbox-group/CheckboxGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,13 @@ export default {
setup(props, { emit }) {
const elForm = inject('elForm', { props: {}, ctx: {} })
const elFormItem = inject('elFormItem', {
props: {},
ctx: {},
emit: () => {}
})
const elFormItem = inject('elFormItem', {})
provide('elCheckboxGroup', getCurrentInstance())
const { dispatch, on } = useEmitter()
const checkboxGroupSize = computed(() => {
return props.size || elFormItem.ctx.elFormItemSize
return props.size || elFormItem.elFormItemSize
})
const checkboxGroupDisabled = computed(() => {
Expand Down

0 comments on commit 81355d7

Please sign in to comment.