You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
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;
|
|
}
|