import React from 'react'; export type TabItemValue = string | number; export type TabItem = { /** * @description 显示值 */ label: string; /** * @description 选中值 */ value: TabItemValue; /** * @description 图标 */ icon?: React.ReactNode; }; export interface TabProps extends React.HTMLAttributes { /** * @description 当前值 */ value?: TabItemValue; /** * @description tab item项 */ items: TabItem[]; /** * @description 列数 */ columns?: number; /** * @description 间距 */ margin?: number; /** * @description 字号 */ fontSize?: number; /** * @description 字体颜色 */ fontColor?: string; /** * @description 背景颜色 */ backgroundColor?: string; /** * @description 动画持续时间 */ duration?: number; /** * @description 边框渐变颜色 */ borderColors?: string[]; /** * @description 选中值改变事件 */ onTabChange: (value: TabItemValue) => void; } declare const Tab: React.FC; export default Tab;