/** * @desc 选项卡容器 * @author 智慧能源事业部-蔡利平 */ import { TabsProps } from 'antd'; import React, { ReactNode } from 'react'; export interface IIconType { icon: string; text: string; disabled?: boolean; } export interface ITabType { text: ReactNode; key: string; forceRender?: boolean; disabled?: boolean; } export interface ITabContainerType extends Omit { /** 选项卡标题 */ titles: ITabType[]; /** 容器宽度 */ width?: string; /** 容器高度是否占满父元素(内容超出容器高度触发垂直滚动) */ fullHeight?: boolean; /** 标题右侧自定义插槽 */ leftSlotsDom?: ReactNode; /** 容器右上角自定义插槽 */ rightSlotsDom?: ReactNode; /** 是否展示返回按钮 */ showBack?: boolean; /** 返回按钮点击回调 */ onBackClick?: () => void; /** 自定义类名 */ className?: string; /** 标题右侧icon按钮合集 */ leftSlots?: IIconType[]; /** 选项卡点击事件 */ /** * 容器右上角自定义插槽 * @deprecated 已废弃,推荐使用 `rightSlotsDom` 代替 */ rightSlots?: ReactNode; /** * @deprecated * 标题右侧icon按钮点击事件 */ onLeftSlotsClick?: (icon: IIconType) => void; } declare const _default: React.NamedExoticComponent; export default _default;