diff --git a/types/ScrollBar.d.ts b/types/ScrollBar.d.ts new file mode 100644 index 000000000..53c200e27 --- /dev/null +++ b/types/ScrollBar.d.ts @@ -0,0 +1,21 @@ +import { CanvasProps } from './CanvasProps'; + +/** + * 进度条参数。 + */ +export interface ScrollBarParams { + /** + * 用于确定进度条的渲染方向。 + */ + mode?: 'x' | 'y' | 'xy'; + + /** + * 用于设置 x 轴方向进度条的样式。 + */ + xStyle?: CanvasProps; + + /** + * 用于设置 y 轴方向进度条的样式。 + */ + yStyle?: CanvasProps; +} diff --git a/types/index.d.ts b/types/index.d.ts index 3bd42b225..1d63da582 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -79,6 +79,7 @@ import { InteractionParams, } from './Interaction'; import { GestureParams } from './Gesture'; +import { ScrollBarParams } from './ScrollBar'; declare namespace F2 { export { @@ -148,6 +149,7 @@ declare namespace F2 { InteractionSwipeParams, InteractionParams, GestureParams, + ScrollBarParams, }; }