@oceanbase-odc/ob-react-data-grid
Version:
Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like
7 lines • 770 B
TypeScript
/**
* 选择拖动时,自动滚动
*/
import { CalculatedColumn, DataGridRef, ISelectRange, Position } from "../types";
import { ISelectorEvent } from "../types";
export declare function useSelectScroll(isMouseInElement: boolean, mouseLeaveEvent: MouseEvent | null, isMouseDown: boolean, gridRef: React.RefObject<HTMLDivElement>, selectedRange: ISelectRange, colVisibleStartIdx: number, colVisibleEndIdx: number, gridWidth: number, gridHeight: number, handleSelect: (event: ISelectorEvent) => void, refContext: DataGridRef, rowVisibleStartIdx: number, rowVisibleEndIdx: number, rows: DataGridRef["rows"], columns: CalculatedColumn<any, any>[], scrollToCell: (position: Partial<Position>, force?: boolean) => void): void;
//# sourceMappingURL=useSelectScroll.d.ts.map