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

59 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-11-10 07:01:22 +00:00
import { IBaseProps } from '../_base';
import { IBadgeProps } from '../Badge/props.d';
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
*/
activeColor?: string;
/**
* @description tabbar
*/
onChange?: (index: number, e: Record<string, any>) => void;
}
export declare const TabBarDefaultProps: Partial<ITabBarProps>;