import React from 'react'; export interface FootbarItem { name: string; text?: string; iconPath: string; selectedIconPath: string; width?: number; height?: number; /** * 图标距离文字距离 */ spacing?: number; style?: React.CSSProperties; styleSelected?: React.CSSProperties; /** * 徽标提示 */ badge?: string; /** * 红点 */ dot?: boolean; } interface FooterBarProps { /** * 文字颜色 */ color?: string; /** * 选中颜色 */ selectedColor?: string; /** * 按钮列表 */ list?: FootbarItem[]; style?: React.CSSProperties; /** * 当前项 */ current?: number | string; onChange?: (index: number, name?: string) => void; } declare const FooterBar: ({ current, list, color, selectedColor, style, onChange }: FooterBarProps) => JSX.Element; export default FooterBar;