Skip to content

Commit

Permalink
fix(rate): 修复rate组件鼠标快速移动,会出现多个text显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Millent committed Oct 17, 2023
1 parent edde625 commit ef89e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rate/Rate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import useGlobalIcon from '../hooks/useGlobalIcon';
import useControlled from '../hooks/useControlled';
import { rateDefaultProps } from './defaultProps';

export interface RateProps extends TdRateProps, StyledProps {}

// 评分图标
// fix: 2550
const RateIcon = ({ props, icon }) => {
Expand All @@ -19,8 +21,6 @@ const RateIcon = ({ props, icon }) => {
return <StarFilledIcon {...props} />;
};

export interface RateProps extends TdRateProps, StyledProps {}

const Rate = forwardRef((props: RateProps, ref: React.Ref<HTMLDivElement>) => {
const { allowHalf, color, count, disabled, gap, showText, size, texts, icon, className, style, onChange } = props;

Expand Down

0 comments on commit ef89e84

Please sign in to comment.