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
+9 -3
View File
@@ -1,4 +1,10 @@
import { ref, PropType, defineComponent, ExtractPropTypes } from 'vue';
import {
ref,
PropType,
InjectionKey,
defineComponent,
ExtractPropTypes,
} from 'vue';
// Utils
import { truthProp, createNamespace, getZIndexStyle } from '../utils';
@@ -11,8 +17,6 @@ import { usePlaceholder } from '../composables/use-placeholder';
const [name, bem] = createNamespace('tabbar');
export const TABBAR_KEY = Symbol(name);
const props = {
route: Boolean,
fixed: truthProp,
@@ -37,6 +41,8 @@ export type TabbarProvide = {
setActive: (active: number | string) => void;
};
export const TABBAR_KEY: InjectionKey<TabbarProvide> = Symbol(name);
export default defineComponent({
name,