vue-devui
Version:
DevUI components based on Vite and Vue3
14 lines (13 loc) • 570 B
TypeScript
import type { Ref, SetupContext } from 'vue';
import { InputProps } from '../input-types';
export declare function useInputEvent(isFocus: Ref<boolean>, props: InputProps, ctx: SetupContext, focus: () => void): {
onFocus: (e: FocusEvent) => void;
onBlur: (e: FocusEvent) => void;
onInput: (e: Event) => void;
onChange: (e: Event) => void;
onKeydown: (e: KeyboardEvent) => void;
onClear: () => void;
onCompositionStart: () => void;
onCompositionUpdate: (e: CompositionEvent) => void;
onCompositionEnd: (e: CompositionEvent) => void;
};