xdesign-vue-next
Version:
XDesign Component for vue-next
12 lines (11 loc) • 494 B
TypeScript
import { Ref } from 'vue';
import { TdInputProps } from './type';
export default function useInputEventHandler(props: TdInputProps, isHover: Ref<Boolean>): {
handleKeydown: (e: KeyboardEvent) => void;
handleKeyUp: (e: KeyboardEvent) => void;
handleKeypress: (e: KeyboardEvent) => void;
onHandlePaste: (e: ClipboardEvent) => void;
onHandleMousewheel: (e: WheelEvent) => void;
onInputMouseenter: (e: MouseEvent) => void;
onInputMouseleave: (e: MouseEvent) => void;
};