Handle.d.ts
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import React from 'react';
export interface HandleProps {
prefixCls?: string;
className?: string;
vertical?: boolean;
reverse?: boolean;
offset?: number;
style?: React.CSSProperties;
disabled?: boolean;
min?: number;
max?: number;
value?: number;
tabIndex?: number;
ariaLabel?: string;
ariaLabelledBy?: string;
ariaValueTextFormatter?: (val: number) => string;
onMouseEnter?: React.MouseEventHandler;
onMouseLeave?: React.MouseEventHandler;
}
export default class Handle extends React.Component<HandleProps> {
state: {
clickFocused: boolean;
};
onMouseUpListener: {
remove: () => void;
};
handle: HTMLElement;
componentDidMount(): void;
componentWillUnmount(): void;
setHandleRef: (node: any) => void;
setClickFocus(focused: any): void;
handleMouseUp: () => void;
handleMouseDown: (e: any) => void;
handleBlur: () => void;
handleKeyDown: () => void;
clickFocus(): void;
focus(): void;
blur(): void;
render(): JSX.Element;
}