UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

26 lines (25 loc) 784 B
import * as React from 'react'; export interface TabBarProps { prefixCls?: string; className?: string; style?: React.CSSProperties; activeTab: number; renderTab: (t: any) => React.ReactNode; goToTab?: (index: number) => void; onTabClick?: (tab: any, index: number) => void; tabs: any[]; tabBarTextStyle?: React.CSSProperties; tabBarActiveTextColor?: string; tabBarInactiveTextColor?: string; } export default class TabBar extends React.PureComponent<TabBarProps> { static defaultProps: { prefixCls: string; onTabClick: () => null; activeTab: number; }; constructor(props: TabBarProps); onClick: (index: number) => void; renderTab: (t: any, i: number) => JSX.Element; render(): JSX.Element; }