choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
30 lines (29 loc) • 871 B
TypeScript
import { Component, CSSProperties, ReactNode } from 'react';
import ConfigContext, { ConfigContextValue } from '../config-provider/ConfigContext';
export interface RateProps {
prefixCls?: string;
count?: number;
value?: number;
defaultValue?: number;
allowHalf?: boolean;
allowClear?: boolean;
disabled?: boolean;
onChange?: (value: number) => any;
onHoverChange?: (value: number) => any;
character?: ReactNode;
className?: string;
style?: CSSProperties;
}
export default class Rate extends Component<RateProps, any> {
static displayName: string;
static get contextType(): typeof ConfigContext;
static defaultProps: {
character: JSX.Element;
};
context: ConfigContextValue;
private rcRate;
focus(): void;
blur(): void;
saveRate: (node: any) => void;
render(): JSX.Element;
}