ScrollBar.d.ts 724 B

12345678910111213141516171819202122
  1. import * as React from 'react';
  2. export type ScrollBarDirectionType = 'ltr' | 'rtl';
  3. export interface ScrollBarProps {
  4. prefixCls: string;
  5. scrollOffset: number;
  6. scrollRange: number;
  7. rtl: boolean;
  8. onScroll: (scrollOffset: number, horizontal?: boolean) => void;
  9. onStartMove: () => void;
  10. onStopMove: () => void;
  11. horizontal?: boolean;
  12. style?: React.CSSProperties;
  13. thumbStyle?: React.CSSProperties;
  14. spinSize: number;
  15. containerSize: number;
  16. showScrollBar?: boolean | 'optional';
  17. }
  18. export interface ScrollBarRef {
  19. delayHidden: () => void;
  20. }
  21. declare const ScrollBar: React.ForwardRefExoticComponent<ScrollBarProps & React.RefAttributes<ScrollBarRef>>;
  22. export default ScrollBar;