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
+3 -3
View File
@@ -1,12 +1,10 @@
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
import { PropType, defineComponent, ExtractPropTypes, InjectionKey } from 'vue';
import { createNamespace, addUnit, truthProp } from '../utils';
import { BORDER_TOP } from '../utils/constant';
import { useChildren } from '@vant/use';
const [name, bem] = createNamespace('grid');
export const GRID_KEY = Symbol(name);
export type GridDirection = 'horizontal' | 'vertical';
const props = {
@@ -28,6 +26,8 @@ export type GridProvide = {
props: ExtractPropTypes<typeof props>;
};
export const GRID_KEY: InjectionKey<GridProvide> = Symbol(name);
export default defineComponent({
name,