tsp-component
Version:
提供多端和react版本的UI组件
25 lines (24 loc) • 403 B
TypeScript
interface tspComponentTabProps {
/**
* 选中的tab
*/
selectedIndex?: number;
className?: string;
/**
* 头部element
*/
tabs: any[];
/**
* 切换tab后触发
*
*
* @memberOf tspComponentTabProps
*/
onChange?: (selectedIndex: number) => void;
}
interface tspComponentTabState {
/**
* 选中的tab
*/
selectedIndex: number;
}