types: improve relation types (#9016)

This commit is contained in:
neverland
2021-07-12 20:54:19 +08:00
committed by GitHub
parent aedb8543e6
commit 0e05d8c908
28 changed files with 146 additions and 108 deletions
+2 -5
View File
@@ -2,10 +2,7 @@ import { computed, watch, defineComponent } from 'vue';
// Utils
import { createNamespace, extend, pick, truthProp } from '../utils';
import {
CHECKBOX_GROUP_KEY,
CheckboxGroupProvide,
} from '../checkbox-group/CheckboxGroup';
import { CHECKBOX_GROUP_KEY } from '../checkbox-group/CheckboxGroup';
// Composables
import { useParent } from '@vant/use';
@@ -27,7 +24,7 @@ export default defineComponent({
emits: ['change', 'update:modelValue'],
setup(props, { emit, slots }) {
const { parent } = useParent<CheckboxGroupProvide>(CHECKBOX_GROUP_KEY);
const { parent } = useParent(CHECKBOX_GROUP_KEY);
const setParentValue = (checked: boolean) => {
const { name } = props;