UNPKG

xdesign-vue-next

Version:

XDesign Component for vue-next

27 lines (26 loc) 852 B
import { TagInputValue, TagInputChangeContext } from './type'; import { TagInputProps } from './interface'; import { InputValue } from '../input'; export declare type ChangeParams = [TagInputChangeContext]; export default function useTagList(props: TagInputProps): { tagValue: import("vue").Ref<TagInputValue>; clearAll: (context: { e: MouseEvent; }) => void; onClose: (p: { e?: MouseEvent; index: number; item: string | number; }) => void; onInnerEnter: (value: InputValue, context: { e: KeyboardEvent; }) => void; onInputBackspaceKeyUp: (value: InputValue) => void; onInputBackspaceKeyDown: (value: InputValue, context: { e: KeyboardEvent; }) => void; renderLabel: ({ displayNode, label }: { displayNode: any; label: any; }) => any[]; };