UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

17 lines (16 loc) 498 B
import { Ref } from 'vue'; import { BarInstance, Emit, Props } from '../types'; /** * hook * * @param props 组件属性 * @param scrollbar 实例 * @param scrollWrapRef 实例 * @param barRef 实例 * @param emit 组件事件 */ export declare const useScrollBar: (props: Props, scrollWrapRef: Ref<HTMLDivElement | null>, barRef: Ref<BarInstance | null>, emit: Emit) => { update: () => void; scroll: () => void; wrapStyle: import('vue').ComputedRef<Record<string, string>>; };