minishouyin/node_modules/rc-virtual-list/lib/ScrollBar.d.ts
2025-11-12 11:35:57 +08:00

23 lines
724 B
TypeScript

import * as React from 'react';
export type ScrollBarDirectionType = 'ltr' | 'rtl';
export interface ScrollBarProps {
prefixCls: string;
scrollOffset: number;
scrollRange: number;
rtl: boolean;
onScroll: (scrollOffset: number, horizontal?: boolean) => void;
onStartMove: () => void;
onStopMove: () => void;
horizontal?: boolean;
style?: React.CSSProperties;
thumbStyle?: React.CSSProperties;
spinSize: number;
containerSize: number;
showScrollBar?: boolean | 'optional';
}
export interface ScrollBarRef {
delayHidden: () => void;
}
declare const ScrollBar: React.ForwardRefExoticComponent<ScrollBarProps & React.RefAttributes<ScrollBarRef>>;
export default ScrollBar;