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

51 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-12-01 11:56:54 +00:00
import { IBaseProps } from '../_util/base';
2024-11-10 07:01:22 +00:00
export interface ITabsProps extends IBaseProps {
2024-12-01 11:56:54 +00:00
/**
* @description basic()capsule()mixin()
* @default "basic"
*/
type: 'basic' | 'capsule' | 'mixin';
/**
* @description tabs方向
*/
direction: 'horizontal' | 'vertical';
/**
* @description tab
*/
onChange: (index: number, e: Record<string, any>) => void;
/**
* @description
*/
current: number;
/**
* @description
*/
items: {
title: string;
content: string;
disabled?: boolean;
subTitle?: string;
}[];
/**
*
*/
defaultCurrent: number;
/**
* direction为horizontal生效
*/
scrollMode: 'edge' | 'center';
/**
* @description tabs bar类名
*/
tabsBarClassName?: string;
/**
* @description tab类名
*/
tabClassName?: string;
/**
*@description tab active类名
*/
tabActiveClassName?: string;
2024-11-10 07:01:22 +00:00
}
export declare const TabsDefaultProps: Partial<ITabsProps>;