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,11 +1,9 @@
import { PropType, defineComponent, ExtractPropTypes } from 'vue';
import { PropType, defineComponent, ExtractPropTypes, InjectionKey } from 'vue';
import { createNamespace } from '../utils';
import { useChildren } from '@vant/use';
const [name, bem] = createNamespace('steps');
export const STEPS_KEY = Symbol(name);
export type StepsDirection = 'horizontal' | 'vertical';
const props = {
@@ -33,6 +31,8 @@ export type StepsProvide = {
onClickStep: (index: number) => void;
};
export const STEPS_KEY: InjectionKey<StepsProvide> = Symbol(name);
export default defineComponent({
name,