import type { PropType, ExtractPropTypes, InjectionKey } from 'vue'; import type { StyleValues } from '../ele-app/types'; import type { EleDropdownProps } from '../ele-app/plus'; import type { TabBarItem, TabBarType, TabBarSize, TabBarContextMenus, TabBarEventOption, TabBarProvide } from './types'; /** * 属性 */ export declare const tabBarProps: { /** 页签选中 */ modelValue: (BooleanConstructor | NumberConstructor | StringConstructor | ObjectConstructor)[]; /** 页签数据 */ items: PropType; /** 统一设置每个页签项样式 */ itemStyle: PropType; /** 页签项容器样式 */ navStyle: PropType; /** 风格类型 */ type: PropType; /** 统一设置每个页签项是否可关闭 */ closable: BooleanConstructor; /** 页签的宽度是否自撑开 */ stretch: BooleanConstructor; /** 尺寸 */ size: PropType; /** 页签是否居中显示 */ center: BooleanConstructor; /** 是否支持右键菜单 */ contextMenu: PropType; /** 右键菜单 */ contextMenus: PropType; /** 是否支持拖动排序 */ sortable: PropType>; /** 是否自动滚动到选中位置 */ scrollToActive: BooleanConstructor; }; export type TabBarProps = ExtractPropTypes; /** * 事件 */ export declare const tabBarEmits: { /** 更新页签选中 */ 'update:modelValue': (_name?: string | number) => boolean; /** 选中改变事件 */ change: (_active?: string | number) => boolean; /** 页签移除事件 */ tabItemRemove: (_opt: TabBarEventOption) => boolean; /** 页签点击事件 */ tabItemClick: (_opt: TabBarEventOption) => boolean; /** 页签右键菜单项点击事件 */ tabContextMenu: (_opt: TabBarEventOption) => boolean; /** 拖动排序改变事件 */ tabSortChange: (_items: TabBarItem[]) => boolean; }; /** * 页签栏依赖注入 key */ export declare const TAB_BAR_KEY: InjectionKey;