Skip to content

Commit

Permalink
feat: update Rate character type
Browse files Browse the repository at this point in the history
  • Loading branch information
madocto committed May 18, 2022
1 parent 50700ec commit 7a754d9
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions components/rate/index.tsx
@@ -1,25 +1,13 @@
import * as React from 'react';
import RcRate from 'rc-rate';
import StarFilled from '@ant-design/icons/StarFilled';
import type { StarProps } from 'rc-rate/lib/Star';
import type { RateProps as RcRateProps } from 'rc-rate/lib/Rate';

import Tooltip from '../tooltip';
import { ConfigContext } from '../config-provider';

export interface RateProps {
prefixCls?: string;
count?: number;
value?: number;
defaultValue?: number;
allowHalf?: boolean;
allowClear?: boolean;
disabled?: boolean;
export interface RateProps extends RcRateProps {
tooltips?: Array<string>;
onChange?: (value: number) => void;
onHoverChange?: (value: number) => void;
character?: StarProps['character'];
className?: string;
style?: React.CSSProperties;
}

interface RateNodeProps {
Expand Down

0 comments on commit 7a754d9

Please sign in to comment.