antd-mobile
Version:
基于 React 的移动设计规范实现
48 lines (47 loc) • 1.27 kB
TypeScript
import * as React from 'react';
import TabsProps from './TabsProps';
declare class Tabs extends React.Component<TabsProps, any> {
static defaultProps: {
tabBarPosition: string;
animated: boolean;
swipeable: boolean;
onChange(): void;
onTabClick(): void;
underlineColor: string;
activeUnderlineColor: string;
textColor: string;
activeTextColor: string;
styles: {
text: {
fontSize: number;
};
tab: {
paddingBottom: number;
};
barTop: {
height: number;
borderTopWidth: number;
borderBottomWidth: number;
};
barBottom: {
height: number;
borderTopWidth: number;
borderBottomWidth: number;
};
underline: {
height: number;
};
};
};
static TabPane: any;
activeIndex: number;
constructor(props: any);
onTabClick: ({i}: {
i: any;
}) => void;
getContents(): any[];
getKey(index: any): any;
renderTabBar: (props: any) => JSX.Element;
render(): JSX.Element;
}
export default Tabs;