UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

17 lines (16 loc) 532 B
import { Ref, StyleValue } from 'vue'; import { Emit, Props } from '../types'; /** * hook * * @param props 组件属性 * @param wheelRef 实例 * @param emit 组件事件 */ export declare const useWheelPicker: (props: Props, wheelRef: Ref<HTMLDivElement | null>, emit: Emit) => { styles: import('vue').ComputedRef<StyleValue>; selectedIndex: Ref<number, number>; flattenedItems: import('vue').ComputedRef<any[]>; listStyles: import('vue').ComputedRef<StyleValue>; getItemLabel: (item: any) => string; };