init
This commit is contained in:
4
types/component/tab/index.d.ts
vendored
Normal file
4
types/component/tab/index.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
declare const component: WithInstallType<typeof Component>;
|
||||
export default component;
|
||||
15
types/component/tab/interface.d.ts
vendored
Normal file
15
types/component/tab/interface.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Slots } from "vue";
|
||||
export declare const TabInjectKey: unique symbol;
|
||||
export interface TabData {
|
||||
id: string;
|
||||
title?: string | Function;
|
||||
icon?: string | Function;
|
||||
closable?: string | boolean;
|
||||
slots: Slots;
|
||||
}
|
||||
export interface TabsContext {
|
||||
active: string;
|
||||
addItem: (id: string, data: TabData) => void;
|
||||
removeItem: (id: string) => void;
|
||||
}
|
||||
export declare type TabPosition = "top" | "bottom" | "left" | "right";
|
||||
Reference in New Issue
Block a user