/** * Rating Component - Lynx 版 MUI Rating * 100% 一比一复刻 MUI Rating * * 星级评分组件,支持小数评分和自定义图标 * * 对应 MUI: packages/mui-material/src/Rating/Rating.js */ import './Rating.css'; import ratingClasses, { getRatingUtilityClass } from './ratingClasses'; export { ratingClasses, getRatingUtilityClass }; export type RatingSize = 'small' | 'medium' | 'large'; export interface RatingProps { /** 自定义类名 */ className?: string; /** 样式类覆盖 */ classes?: Partial; /** 默认评分 */ defaultValue?: number; /** 是否禁用 */ disabled?: boolean; /** 空图标 */ emptyIcon?: any; /** 空值标签 */ emptyLabelText?: string; /** 最大评分 */ max?: number; /** 当前评分 */ value?: number; /** 精度 */ precision?: number; /** 是否只读 */ readOnly?: boolean; /** 尺寸 */ size?: RatingSize; /** 获取标签文本 */ getLabelText?: (value: number) => string; /** 高精度图标 */ icon?: any; /** 活动图标 */ activeIcon?: any; /** 内联样式 */ style?: Record; /** sx 属性 */ sx?: Record; /** 点击事件 */ bindtap?: (event?: any) => void; onChange?: (event: any, value: number | null) => void; onChangeActive?: (event: any, value: number) => void; onHover?: (event: any, value: number) => void; } export declare function Rating(props: RatingProps): JSX.Element; export default Rating; //# sourceMappingURL=index.d.ts.map