UNPKG

tdesign-vue

Version:
27 lines (26 loc) 965 B
import { SetupContext } from '@vue/composition-api'; import { TagInputValue, TagInputChangeContext, TdTagInputProps } from './type'; import { InputValue } from '../input'; import { DragProps } from './interface'; export declare type ChangeParams = [TagInputChangeContext]; export default function useTagList(props: TdTagInputProps, context: SetupContext, getDragProps: DragProps): { tagValue: import("@vue/composition-api").Ref<TagInputValue>; clearAll: (context: { e: MouseEvent; }) => void; onClose: (p: { e?: MouseEvent; index: number; }) => void; onInnerEnter: (value: string, params: { e: KeyboardEvent; }) => void; onInputBackspaceKeyUp: (value: InputValue) => void; onInputBackspaceKeyDown: (value: InputValue, p: { e: KeyboardEvent; }) => void; renderLabel: ({ displayNode, label }: { displayNode: any; label: any; }, h: Vue.CreateElement) => any[]; };