vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
21 lines (20 loc) • 636 B
TypeScript
import { Ref } from 'vue';
import { Emits, Props } from '../types';
/**
* hook
*
* @param props 组件属性
* @param inputRef 实例
* @param emits 组件事件
*/
export declare const useInputTag: (props: Props, inputRef: Ref<HTMLInputElement | null>, emits: Emits) => {
onFocus: Ref<boolean, boolean>;
tagValue: Ref<string, string>;
show: Ref<boolean, boolean>;
classNames: import('vue').ComputedRef<Record<string, boolean>>;
values: import('vue').ComputedRef<string[]>;
handleRemove: (index: number) => void;
onDelete: (event: Event) => void;
onEnter: () => boolean;
onBlur: () => void;
};