UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

34 lines (33 loc) 1.13 kB
import * as React from 'react'; export interface RateProps { prefixCls?: string; className?: string; style?: React.CSSProperties; name?: string; value: number; editing?: boolean; starCount: number; onStarClick?: (index: number, value: any, name: any, e: any) => void; renderStarIcon?: (index: number, value: any, name: any, id: any) => React.ReactNode; renderStarIconHalf?: (index: number, value: any, name: any, id: any) => React.ReactNode; } interface State { value: number; } export default class Rate extends React.PureComponent<RateProps, State> { static defaultProps: { prefixCls: string; style: {}; starCount: number; editing: boolean; value: number; }; constructor(props: RateProps); componentWillReceiveProps(nextProps: RateProps): void; onChange(inputValue: any): void; onStarClick(index: number, value: any, name?: string, e?: any): void; renderStars(): JSX.Element[] | null; renderIcon(index: number, value: any, name?: string, id?: string): {} | null | undefined; render(): JSX.Element; } export {};