刘光辉
8 小时以前 0dfe84494048ce27ba8449831782128412d3eb13
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;
}>;