UNPKG

@aplus-frontend/ui

Version:

345 lines (344 loc) 18.6 kB
import { ApFormItemTextPasswordProps } from '../interface'; import { ApFormItemSlots } from '../../interface'; import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue'; import { FieldMode, ApFieldTextPasswordProps } from '../../..'; import { ButtonSize } from '@aplus-frontend/antdv/es/button'; import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface'; import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps'; import { OnCleanup } from '@vue/reactivity'; declare function __VLS_template(): { attrs: Partial<{}>; slots: Readonly<{ addonAfter: any; addonBefore: any; prefix: any; suffix: any; clearIcon: any; iconRender: any; } & Omit<ApFormItemSlots, "default">> & { addonAfter: any; addonBefore: any; prefix: any; suffix: any; clearIcon: any; iconRender: any; } & Omit<ApFormItemSlots, "default">; refs: { inputRef: ({ $: ComponentInternalInstance; $data: {}; $props: { readonly mode?: FieldMode | undefined; readonly class?: unknown; readonly style?: unknown; readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined; readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined; readonly lazy?: boolean | undefined; readonly size?: ButtonSize; readonly hidden?: boolean | undefined; readonly onBlur?: FocusEventHandler | undefined; readonly onChange?: ChangeEventHandler | undefined; readonly onCompositionend?: CompositionEventHandler | undefined; readonly onCompositionstart?: CompositionEventHandler | undefined; readonly onFocus?: FocusEventHandler | undefined; readonly onInput?: ChangeEventHandler | undefined; readonly onKeydown?: KeyboardEventHandler | undefined; readonly onKeyup?: KeyboardEventHandler | undefined; readonly onMousedown?: MouseEventHandler | undefined; readonly value?: string | number | undefined; readonly disabled?: boolean | undefined; readonly prefixCls?: string | undefined; readonly name?: string | undefined; readonly loading?: boolean | undefined; readonly autofocus?: boolean | undefined; readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined; readonly bordered?: boolean | undefined; readonly id?: string | undefined; readonly focused?: boolean | undefined; readonly readonly?: boolean | undefined; readonly autocomplete?: string | undefined; readonly placeholder?: string | number | undefined; readonly maxlength?: number | undefined; readonly showCount?: boolean | ShowCountProps | undefined; readonly htmlSize?: number | undefined; readonly onPressEnter?: KeyboardEventHandler | undefined; readonly onMouseUp?: MouseEventHandler | undefined; readonly onRawInput?: ChangeEventHandler | undefined; readonly valueModifiers?: Record<string, any> | undefined; readonly status?: "" | "error" | "warning" | undefined; readonly defaultValue?: string | number | undefined; readonly inputElement?: any; readonly triggerFocus?: (() => void) | undefined; readonly handleReset?: MouseEventHandler | undefined; readonly addonBefore?: any; readonly addonAfter?: any; readonly prefix?: any; readonly suffix?: any; readonly clearIcon?: any; readonly allowClear?: boolean | undefined; readonly inputPrefixCls?: string | undefined; readonly action?: string | undefined; readonly visibilityToggle?: boolean | undefined; readonly visible?: boolean | undefined; readonly 'onUpdate:visible'?: (((visible: boolean) => void) & ((...args: any[]) => any)) | undefined; readonly emptyText?: string | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps; $attrs: { [x: string]: unknown; }; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: Slot<any> | undefined; }>; $root: ComponentPublicInstance | null; $parent: ComponentPublicInstance | null; $host: Element | null; $emit: ((event: "update:value", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void); $el: any; $options: ComponentOptionsBase<Readonly< ApFieldTextPasswordProps> & Readonly<{ "onUpdate:value"?: ((...args: any[]) => any) | undefined; "onUpdate:visible"?: ((...args: any[]) => any) | undefined; }>, { focus: () => void; blur: () => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:value": (...args: any[]) => void; "update:visible": (...args: any[]) => void; }, string, { type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password"; mode: FieldMode; visible: boolean; disabled: boolean; bordered: boolean; emptyText: string; lazy: boolean; allowClear: boolean; action: string; visibilityToggle: boolean; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: nextTick; $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle; } & Readonly<{ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password"; mode: FieldMode; visible: boolean; disabled: boolean; bordered: boolean; emptyText: string; lazy: boolean; allowClear: boolean; action: string; visibilityToggle: boolean; }> & Omit<Readonly< ApFieldTextPasswordProps> & Readonly<{ "onUpdate:value"?: ((...args: any[]) => any) | undefined; "onUpdate:visible"?: ((...args: any[]) => any) | undefined; }>, "blur" | "focus" | ("type" | "mode" | "visible" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear" | "action" | "visibilityToggle")> & ShallowUnwrapRef<{ focus: () => void; blur: () => void; }> & {} & ComponentCustomProperties & {} & { $slots: Readonly<{ addonAfter: any; addonBefore: any; prefix: any; suffix: any; clearIcon: any; iconRender: any; }> & { addonAfter: any; addonBefore: any; prefix: any; suffix: any; clearIcon: any; iconRender: any; }; }) | null; }; rootEl: any; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, { focus: () => void; blur: () => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTextPasswordProps> & Readonly<{}>, { disabled: boolean; colon: boolean; required: boolean; hasFeedback: boolean; autoLink: boolean; validateFirst: boolean; field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">; }, {}, {}, {}, string, ComponentProvideOptions, false, { inputRef: ({ $: ComponentInternalInstance; $data: {}; $props: { readonly mode?: FieldMode | undefined; readonly class?: unknown; readonly style?: unknown; readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined; readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined; readonly lazy?: boolean | undefined; readonly size?: ButtonSize; readonly hidden?: boolean | undefined; readonly onBlur?: FocusEventHandler | undefined; readonly onChange?: ChangeEventHandler | undefined; readonly onCompositionend?: CompositionEventHandler | undefined; readonly onCompositionstart?: CompositionEventHandler | undefined; readonly onFocus?: FocusEventHandler | undefined; readonly onInput?: ChangeEventHandler | undefined; readonly onKeydown?: KeyboardEventHandler | undefined; readonly onKeyup?: KeyboardEventHandler | undefined; readonly onMousedown?: MouseEventHandler | undefined; readonly value?: string | number | undefined; readonly disabled?: boolean | undefined; readonly prefixCls?: string | undefined; readonly name?: string | undefined; readonly loading?: boolean | undefined; readonly autofocus?: boolean | undefined; readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined; readonly bordered?: boolean | undefined; readonly id?: string | undefined; readonly focused?: boolean | undefined; readonly readonly?: boolean | undefined; readonly autocomplete?: string | undefined; readonly placeholder?: string | number | undefined; readonly maxlength?: number | undefined; readonly showCount?: boolean | ShowCountProps | undefined; readonly htmlSize?: number | undefined; readonly onPressEnter?: KeyboardEventHandler | undefined; readonly onMouseUp?: MouseEventHandler | undefined; readonly onRawInput?: ChangeEventHandler | undefined; readonly valueModifiers?: Record<string, any> | undefined; readonly status?: "" | "error" | "warning" | undefined; readonly defaultValue?: string | number | undefined; readonly inputElement?: any; readonly triggerFocus?: (() => void) | undefined; readonly handleReset?: MouseEventHandler | undefined; readonly addonBefore?: any; readonly addonAfter?: any; readonly prefix?: any; readonly suffix?: any; readonly clearIcon?: any; readonly allowClear?: boolean | undefined; readonly inputPrefixCls?: string | undefined; readonly action?: string | undefined; readonly visibilityToggle?: boolean | undefined; readonly visible?: boolean | undefined; readonly 'onUpdate:visible'?: (((visible: boolean) => void) & ((...args: any[]) => any)) | undefined; readonly emptyText?: string | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps; $attrs: { [x: string]: unknown; }; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: Slot<any> | undefined; }>; $root: ComponentPublicInstance | null; $parent: ComponentPublicInstance | null; $host: Element | null; $emit: ((event: "update:value", ...args: any[]) => void) & ((event: "update:visible", ...args: any[]) => void); $el: any; $options: ComponentOptionsBase<Readonly< ApFieldTextPasswordProps> & Readonly<{ "onUpdate:value"?: ((...args: any[]) => any) | undefined; "onUpdate:visible"?: ((...args: any[]) => any) | undefined; }>, { focus: () => void; blur: () => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:value": (...args: any[]) => void; "update:visible": (...args: any[]) => void; }, string, { type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password"; mode: FieldMode; visible: boolean; disabled: boolean; bordered: boolean; emptyText: string; lazy: boolean; allowClear: boolean; action: string; visibilityToggle: boolean; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: nextTick; $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle; } & Readonly<{ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password"; mode: FieldMode; visible: boolean; disabled: boolean; bordered: boolean; emptyText: string; lazy: boolean; allowClear: boolean; action: string; visibilityToggle: boolean; }> & Omit<Readonly< ApFieldTextPasswordProps> & Readonly<{ "onUpdate:value"?: ((...args: any[]) => any) | undefined; "onUpdate:visible"?: ((...args: any[]) => any) | undefined; }>, "blur" | "focus" | ("type" | "mode" | "visible" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear" | "action" | "visibilityToggle")> & ShallowUnwrapRef<{ focus: () => void; blur: () => void; }> & {} & ComponentCustomProperties & {} & { $slots: Readonly<{ addonAfter: any; addonBefore: any; prefix: any; suffix: any; clearIcon: any; iconRender: any; }> & { addonAfter: any; addonBefore: any; prefix: any; suffix: any; clearIcon: any; iconRender: any; }; }) | null; }, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };