amis-rpc-design/node_modules/rc-slider/lib/Handles/index.d.ts
2023-10-07 19:42:30 +08:00

20 lines
759 B
TypeScript

import * as React from 'react';
import type { HandleProps } from './Handle';
import type { OnStartMove } from '../interface';
export interface HandlesProps {
prefixCls: string;
style?: React.CSSProperties | React.CSSProperties[];
values: number[];
onStartMove: OnStartMove;
onOffsetChange: (value: number | 'min' | 'max', valueIndex: number) => void;
onFocus?: (e: React.FocusEvent<HTMLDivElement>) => void;
onBlur?: (e: React.FocusEvent<HTMLDivElement>) => void;
handleRender?: HandleProps['render'];
draggingIndex: number;
}
export interface HandlesRef {
focus: (index: number) => void;
}
declare const Handles: React.ForwardRefExoticComponent<HandlesProps & React.RefAttributes<HandlesRef>>;
export default Handles;