import { TabPaneItem, TabSize, TabType, TabEventOption, ContextMenus } from './types'; import { default as TabTitle } from "./components/tab-title"; import { EleDropdownProps, EleDropdownInstance } from '../ele-app/plus'; import { tabsProps as elTabsProps } from 'element-plus'; import { PropType, ExtractPropTypes } from 'vue'; /** * 属性 */ export declare const tabsProps: { /** 标签页数据 */ items: { type: PropType; required: boolean; }; /** 尺寸 */ size: PropType; /** 风格类型 */ type: PropType; /** 标签是否居中显示 */ center: BooleanConstructor; /** 是否支持右键菜单 */ contextMenu: PropType; /** 右键菜单 */ contextMenus: PropType; /** 是否支持拖动排序 */ sortable: BooleanConstructor; /** 是否支持鼠标滚轮滑动 */ mousewheel: BooleanConstructor; /** 是否自己处理页签点击事件 */ handleClick: BooleanConstructor; closable: BooleanConstructor; addable: BooleanConstructor; modelValue: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; editable: BooleanConstructor; tabPosition: import('element-plus/es/utils').EpPropFinalized; beforeLeave: import('element-plus/es/utils').EpPropFinalized<(new (...args: any[]) => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils').Awaitable) | (() => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils').Awaitable) | { (): (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils').Awaitable; new (): any; readonly prototype: any; } | ((new (...args: any[]) => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils').Awaitable) | (() => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils').Awaitable) | { (): (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils').Awaitable; new (): any; readonly prototype: any; })[], unknown, unknown, () => true, boolean>; stretch: BooleanConstructor; }; export type TabsProps = ExtractPropTypes; /** * 事件 */ export declare const tabsEmits: { /** 页签点击事件 */ tabItemClick: (_opt: TabEventOption) => boolean; /** 页签右键菜单项点击事件 */ tabContextMenu: (_opt: TabEventOption) => boolean; /** 页签右键菜单打开事件 */ tabContextOpen: (_ref: EleDropdownInstance) => boolean; /** 拖动排序改变事件 */ tabSortChange: (_data: TabPaneItem[]) => boolean; "update:modelValue": (name: import('element-plus').TabPaneName) => boolean; tabClick: (pane: { uid: number; slots: Readonly<{ [name: string]: import('vue').Slot | undefined; }>; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import('element-plus/es/utils').EpPropMergeType | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }, ev: Event) => boolean; tabChange: (name: import('element-plus').TabPaneName) => boolean; edit: (paneName: import('element-plus').TabPaneName | undefined, action: "add" | "remove") => boolean; tabRemove: (name: import('element-plus').TabPaneName) => boolean; tabAdd: () => boolean; }; export type TabPropKeys = Array; /** * 标签页组件属性名 */ export declare const tabPropKeys: TabPropKeys; /** * 页签标题实例 */ export type TabTitleInstance = InstanceType | null;