import { FC, ReactElement, ReactNode } from "react"; import Item from "./TabItem"; /** * Tab切换 * * @param children //子组件 * @param animated //是否开启转场动画 * @param selectIndex //默认选中第几个 * @param lineColor //下划线颜色 * @param titleActiveColor //标题选中态颜色 * @param titleInctiveColor //标题默认态颜色 * @param onChange //切换回调事件 * @param content //item公共节点 * */ export interface TabProps { children: ReactElement[]; animated?: boolean; lineColor?: string; titleActiveColor?: string; titleInctiveColor?: string; onChange?: (index: number) => void; content?: string | ReactNode; selectIndex: number; } export interface TabsComponent
extends FC
{
Item: typeof Item;
}
declare const XHTabs: TabsComponent