press-ui
Version:
简单、易用的跨端组件库,兼容 Vue2 和 Vue3,同时支持 uni-app和普通 Vue 项目
12 lines (11 loc) • 345 B
TypeScript
export function getScrollDurationAndWidth({ contentSelect, wrapSelector, context, speed, scrollable }: {
contentSelect?: string | undefined;
wrapSelector?: string | undefined;
context: any;
speed?: number | undefined;
scrollable?: boolean | undefined;
}): Promise<{
wrapWidth: number;
contentWidth: number;
duration: number;
}>;