Blame view

天文台pc/tianwentai-ui/node_modules/react-remove-scroll-bar/dist/es2015/component.d.ts 415 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
  import * as React from 'react';
  import { GapMode } from './utils';
  export interface BodyScroll {
      noRelative?: boolean;
      noImportant?: boolean;
      gapMode?: GapMode;
  }
  export declare const lockAttribute = "data-scroll-locked";
  export declare const useLockAttribute: () => void;
  /**
   * Removes page scrollbar and blocks page scroll when mounted
   */
  export declare const RemoveScrollBar: React.FC<BodyScroll>;