jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/less/TabBar/props.d.ts

56 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-11-15 03:51:28 +00:00
import { IBaseProps } from '../_util/base';
import { IBadgeProps } from '../Badge/props';
export interface ITabItem {
/**
* @description Icon
* @default ''
*/
icon?: string;
/**
* @description Icon
* @default ''
*/
activeIcon?: string;
/**
* @description
* @default ''
*/
text: string;
/**
* @description <Badge/>
* @default undefined
*/
badge?: IBadgeProps;
}
/**
* @description TabItem 使
*/
export interface ITabBarProps extends IBaseProps {
/**
* @description tabbar
* @default []
*/
items: ITabItem[];
/**
* @description
*/
current: number;
/**
* @description
*/
defaultCurrent: number;
/**
* @description className
*/
activeClassName?: string;
/**
* @description style
*/
activeStyle?: string;
/**
* @description tabbar
*/
onChange: (index: number, e: Record<string, any>) => void;
}
export declare const TabBarDefaultProps: Partial<ITabBarProps>;