UNPKG

@oceanbase-odc/ob-react-data-grid

Version:

Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like

20 lines 760 B
import React from "react"; interface CustomScrollbarProps { /** 内容当前的垂直滚动位置 */ scrollTop: number; /** 可滚动内容的总高度 */ scrollHeight: number; /** 容器的可见高度 */ clientHeight: number; /** 当发生滚动时触发的回调函数。 */ onScroll: (scrollTop: number) => void; /** 表头的高度,用于在垂直方向上偏移滚动条的起始位置。 */ headerHeight: number; /** 是否在选择拖动中 */ isSelectDragging?: boolean; /** 滚动事件 */ onwheel: (event: React.WheelEvent<HTMLDivElement>) => void; } declare const CustomScrollbar: React.FC<CustomScrollbarProps>; export default CustomScrollbar; //# sourceMappingURL=CustomScrollbar.d.ts.map