layui/.svn/pristine/c9/c937bb6a42cde79eca17d316d01987fa0b79ffcd.svn-base
2022-12-09 16:41:41 +08:00

16 lines
448 B
Plaintext

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";