@jdcfe/yep-react
Version:
一套移动端的React组件库
30 lines (29 loc) • 781 B
TypeScript
import * as React from 'react';
export interface TabProps {
prefixCls?: string;
style?: React.CSSProperties;
className?: string;
tintColor?: string;
unselectedTintColor?: string;
dot?: boolean;
badge?: string | number;
selected?: boolean;
selectedIcon: React.ReactNode | string;
icon: React.ReactNode | string;
title: string;
onClick?: () => void;
}
export default class Tab extends React.PureComponent<TabProps> {
static defaultProps: {
prefixCls: string;
tintColor: string;
unselectedTintColor: string;
selected: boolean;
dot: boolean;
onClick: () => null;
};
constructor(props: TabProps);
onClick(): void;
renderIcon(): JSX.Element;
render(): JSX.Element;
}