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

56 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-12-01 11:56:54 +00:00
import { IBaseProps } from '../_util/base';
import { IBadgeProps } from '../Badge/props';
2024-11-10 07:01:22 +00:00
export interface ITabItem {
2024-12-01 11:56:54 +00:00
/**
* @description Icon
* @default ''
*/
icon?: string;
/**
* @description Icon
* @default ''
*/
activeIcon?: string;
/**
* @description
* @default ''
*/
text: string;
/**
* @description <Badge/>
* @default undefined
*/
badge?: IBadgeProps;
2024-11-10 07:01:22 +00:00
}
/**
* @description TabItem 使
*/
export interface ITabBarProps extends IBaseProps {
2024-12-01 11:56:54 +00:00
/**
* @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;
2024-11-10 07:01:22 +00:00
}
export declare const TabBarDefaultProps: Partial<ITabBarProps>;