UNPKG

antd-mobile

Version:

基于 React 的移动设计规范实现

50 lines (49 loc) 1.32 kB
/// <reference types="react" /> import React from 'react'; import TabsProps from './PropsType'; 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; }; }; barStyle: null; }; static TabPane: any; activeIndex: number; constructor(props: any); onTabClick: ({i}: { i: any; }) => void; getContents(): any[]; getKey(index: any): string; renderTabBar: () => JSX.Element; render(): JSX.Element; } export default Tabs;