diff --git a/src/rate/Rate.tsx b/src/rate/Rate.tsx index 67f2209fb..63813044e 100644 --- a/src/rate/Rate.tsx +++ b/src/rate/Rate.tsx @@ -13,7 +13,7 @@ export interface RateProps extends TdRateProps, StyledProps {} // 评分图标 // fix: 2550 -const RateIcon = ({ props, icon }) => { +const RateIcon = ({ icon, ...props }) => { const { StarFilledIcon } = useGlobalIcon({ StarFilledIcon: TdStarFilledIcon }); if (React.isValidElement(icon)) { return React.cloneElement(icon, props); @@ -88,19 +88,19 @@ const Rate = forwardRef((props: RateProps, ref: React.Ref) => { {showText ? (
- +
- +
) : ( <>
- +
- +
)}