ny
昨天 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export type ScrollType = 'default' | 'main';
 
declare type RefType<T> = null | T;
 
export interface CollapseContainerOptions {
  canExpand?: boolean;
  helpMessage?: Array<any> | string;
  title?: string;
}
export interface ScrollContainerOptions {
  enableScroll?: boolean;
  type?: ScrollType;
}
 
export type ScrollActionType = RefType<{
  getScrollWrap: () => Nullable<HTMLElement>;
  scrollBottom: () => void;
  scrollTo: (top: number, duration?: number) => void;
}>;