vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
18 lines (17 loc) • 628 B
TypeScript
import { StyleValue, Ref } from 'vue';
import { Emits, Props } from '../types';
/**
* hook
*
* @param props 组件属性
* @param sliderRef 实例
* @param emits 组件事件
*/
export declare const useSlider: (props: Props, sliderRef: Ref<HTMLDivElement | null>, emits: Emits) => {
classNames: import('vue').ComputedRef<Record<string, boolean>>;
styles: import('vue').ComputedRef<Record<string, string>>;
fillStyle: import('vue').ComputedRef<StyleValue>;
thumbStyle: import('vue').ComputedRef<StyleValue>;
onClickTrack: (e: MouseEvent) => void;
startDrag: (e: MouseEvent | TouchEvent) => void;
};