import { PropType, ExtractPropTypes, InjectionKey } from 'vue'; import { tabsProps as elTabsProps } from 'element-plus'; import { YDropdownProps, YDropdownInstance } from '../y-app/plus'; import { TabPaneItem, TabSize, TabType, ContextMenus, TabEventOption, TabWrapProvide } from './types'; /** * 属性 */ 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; /** 内部表格是否弹性布局 */ flexTable: PropType; closable: BooleanConstructor; addable: BooleanConstructor; modelValue: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; defaultValue: { readonly type: PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; editable: BooleanConstructor; tabPosition: import('element-plus/es/utils/index').EpPropFinalized; beforeLeave: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable) | (() => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable) | { (): (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable; new (): any; readonly prototype: any; } | (((new (...args: any[]) => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable) | (() => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable) | { (): (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable; new (): any; readonly prototype: any; }) | null)[], unknown, unknown, () => true, boolean>; stretch: BooleanConstructor; tabindex: import('element-plus/es/utils/index').EpPropFinalized; }; export type TabsProps = ExtractPropTypes; /** * 事件 */ export declare const tabsEmits: { /** 页签点击事件 */ tabItemClick: (_opt: TabEventOption) => boolean; /** 页签右键菜单项点击事件 */ tabContextMenu: (_opt: TabEventOption) => boolean; /** 页签右键菜单打开事件 */ tabContextOpen: (_ref: YDropdownInstance, _item?: TabPaneItem | null, _name?: string | number | null) => boolean; /** 拖动排序改变事件 */ tabSortChange: (_data: TabPaneItem[]) => boolean; "update:modelValue": (name: import('element-plus').TabPaneName) => name is string | number; tabClick: (pane: import('element-plus').TabsPaneContext, ev: Event) => boolean; tabChange: (name: import('element-plus').TabPaneName) => name is string | number; edit: (paneName: import('element-plus').TabPaneName | undefined, action: "remove" | "add") => boolean; tabRemove: (name: import('element-plus').TabPaneName) => name is string | number; tabAdd: () => boolean; }; /** * 标签页组件属性名 */ export type TabPropKeys = Array; export declare const tabPropKeys: TabPropKeys; /** * 标签页容器依赖注入key */ export declare const TAB_WRAP_KEY: InjectionKey;