types: improve relation types (#9016)
This commit is contained in:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user