vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
21 lines (20 loc) • 698 B
TypeScript
import { ModelRef, Ref } from 'vue';
import { Emits, Props } from '../types';
/**
* hook
*
* @param props 组件属性
* @param emits 组件事件
*/
export declare const useInputNumber: (props: Props, inputNumberRef: Ref<HTMLDivElement | null>, inputRef: Ref<HTMLInputElement | null>, modelValue: ModelRef<number | undefined>, emits: Emits) => {
isFocus: Ref<boolean, boolean>;
isClear: Ref<boolean, boolean>;
classNames: import('vue').ComputedRef<Record<string, boolean>>;
onFocus: (e: FocusEvent) => void;
onBlur: () => void;
onInput: (e: Event) => void;
onPlus: () => void;
onMinus: () => void;
handleClear: () => void;
onClearTimer: () => void;
};