Files
icehrm/web/node_modules/antd/es/rate/index.d.ts
2020-05-20 18:47:29 +02:00

34 lines
1.1 KiB
TypeScript

import * as React from 'react';
import { ConfigConsumerProps } from '../config-provider';
export interface RateProps {
prefixCls?: string;
count?: number;
value?: number;
defaultValue?: number;
allowHalf?: boolean;
allowClear?: boolean;
disabled?: boolean;
tooltips?: Array<string>;
onChange?: (value: number) => void;
onHoverChange?: (value: number) => void;
character?: React.ReactNode;
className?: string;
style?: React.CSSProperties;
}
interface RateNodeProps {
index: number;
}
export default class Rate extends React.Component<RateProps, any> {
static defaultProps: {
character: JSX.Element;
};
private rcRate;
saveRate: (node: any) => void;
characterRender: (node: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>, { index }: RateNodeProps) => JSX.Element;
focus(): void;
blur(): void;
renderRate: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}
export {};