first commit
This commit is contained in:
32
frontend/node_modules/rc-rate/lib/Rate.d.ts
generated
vendored
Normal file
32
frontend/node_modules/rc-rate/lib/Rate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import React from 'react';
|
||||
import type { StarProps } from './Star';
|
||||
export interface RateProps extends Pick<StarProps, 'count' | 'character' | 'characterRender' | 'allowHalf' | 'disabled'> {
|
||||
value?: number;
|
||||
defaultValue?: number;
|
||||
allowClear?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
prefixCls?: string;
|
||||
onChange?: (value: number) => void;
|
||||
onHoverChange?: (value: number) => void;
|
||||
className?: string;
|
||||
tabIndex?: number;
|
||||
onFocus?: () => void;
|
||||
onBlur?: () => void;
|
||||
onKeyDown?: React.KeyboardEventHandler<HTMLUListElement>;
|
||||
onMouseEnter?: React.MouseEventHandler<HTMLUListElement>;
|
||||
onMouseLeave?: React.MouseEventHandler<HTMLUListElement>;
|
||||
id?: string;
|
||||
autoFocus?: boolean;
|
||||
direction?: string;
|
||||
/**
|
||||
* Is keyboard control enabled.
|
||||
* @default true
|
||||
*/
|
||||
keyboard?: boolean;
|
||||
}
|
||||
export interface RateRef {
|
||||
focus: VoidFunction;
|
||||
blur: VoidFunction;
|
||||
}
|
||||
declare const _default: React.ForwardRefExoticComponent<RateProps & React.RefAttributes<RateRef>>;
|
||||
export default _default;
|
||||
Reference in New Issue
Block a user