UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

35 lines (34 loc) 1.06 kB
import React, { Component, CSSProperties, ReactNode } from 'react'; import PropTypes from 'prop-types'; import { 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(): React.Context<ConfigContextValue>; static propTypes: { prefixCls: PropTypes.Requireable<string>; character: PropTypes.Requireable<PropTypes.ReactNodeLike>; }; static defaultProps: { character: JSX.Element; }; context: ConfigContextValue; private rcRate; focus(): void; blur(): void; saveRate: (node: any) => void; render(): JSX.Element; }