-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
37 lines (33 loc) · 966 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { NComponent } from '@/base/Component/types';
import type { SmoothScroll } from '../SmoothScroll';
import { IBarProps } from './Bar/types';
type TPickedProps =
| 'isDraggable'
| 'shouldAutoSize'
| 'canAutoHide'
| 'minSize'
| 'scrollBehavior';
export namespace NScrollBar {
export interface IStaticProps
extends NComponent.IStaticProps,
Partial<Pick<IBarProps, TPickedProps>> {
/**
* The scrollable element
* @default window
*/
container?: Window | SmoothScroll | Element | string;
/**
* The element that will contain the scrollbar.
* If false, the property 'container' will be taken.
* @default false
*/
domParent?: false | Element;
/**
* Timeout of resize event
* @default 16
*/
resizeDebounce?: number;
}
export interface IChangeableProps extends NComponent.IChangeableProps {}
export interface ICallbacksTypes extends NComponent.ICallbacksTypes {}
}