UNPKG

element-plus

Version:

A Component Library for Vue 3

108 lines (107 loc) 3.61 kB
import type { InputTagProps } from './input-tag'; declare var __VLS_1: {}, __VLS_15: { value: string; index: number; }, __VLS_39: { value: string; index: number; }, __VLS_41: {}; type __VLS_Slots = {} & { prefix?: (props: typeof __VLS_1) => any; } & { tag?: (props: typeof __VLS_15) => any; } & { tag?: (props: typeof __VLS_39) => any; } & { suffix?: (props: typeof __VLS_41) => any; }; declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<InputTagProps>, { tagType: string; tagEffect: string; effect: string; trigger: string; delimiter: string; clearIcon: any; disabled: undefined; validateEvent: boolean; id: undefined; tabindex: number; autocomplete: string; saveOnBlur: boolean; maxCollapseTags: number; }>, { focus: () => void; blur: () => void; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { focus: (evt: FocusEvent) => void; "update:modelValue": (value?: string[] | undefined) => void; change: (value?: string[] | undefined) => void; input: (value: string) => void; clear: () => void; blur: (evt: FocusEvent) => void; "remove-tag": (value: string, index: number) => void; "add-tag": (value: string | string[]) => void; "drag-tag": (oldIndex: number, newIndex: number, value: string) => void; }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<InputTagProps>, { tagType: string; tagEffect: string; effect: string; trigger: string; delimiter: string; clearIcon: any; disabled: undefined; validateEvent: boolean; id: undefined; tabindex: number; autocomplete: string; saveOnBlur: boolean; maxCollapseTags: number; }>>> & { "onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined; onInput?: ((value: string) => any) | undefined; onFocus?: ((evt: FocusEvent) => any) | undefined; onChange?: ((value?: string[] | undefined) => any) | undefined; onBlur?: ((evt: FocusEvent) => any) | undefined; onClear?: (() => any) | undefined; "onRemove-tag"?: ((value: string, index: number) => any) | undefined; "onAdd-tag"?: ((value: string | string[]) => any) | undefined; "onDrag-tag"?: ((oldIndex: number, newIndex: number, value: string) => any) | undefined; }, { disabled: boolean; tabindex: string | number; id: string; effect: import("element-plus").PopperEffect; trigger: "Enter" | "Space"; autocomplete: string; clearIcon: string | import("vue").Component; validateEvent: boolean; maxCollapseTags: number; tagType: "primary" | "success" | "warning" | "info" | "danger"; tagEffect: "dark" | "light" | "plain"; delimiter: string | RegExp; saveOnBlur: boolean; }, {}>; declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>; declare const _default: typeof __VLS_export; export default _default; type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<Required<T>[K]>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaultsLocal<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; }; type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K]; } & {};