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 -2
View File
@@ -1,7 +1,7 @@
import { computed, PropType, defineComponent } from 'vue';
import { createNamespace } from '../utils';
import { useParent } from '@vant/use';
import { ROW_KEY, RowProvide } from '../row/Row';
import { ROW_KEY } from '../row/Row';
const [name, bem] = createNamespace('col');
@@ -21,7 +21,7 @@ export default defineComponent({
},
setup(props, { slots }) {
const { parent, index } = useParent<RowProvide>(ROW_KEY);
const { parent, index } = useParent(ROW_KEY);
const style = computed(() => {
if (!parent) {