@aplus-frontend/ui
Version:
45 lines (44 loc) • 1.8 kB
TypeScript
import { ApFieldTextProps } from '../interface';
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
import { FieldMode } from '..';
type ApFieldTextSlots = {
addonAfter?: any;
addonBefore?: any;
prefix?: any;
suffix?: any;
clearIcon?: any;
};
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Readonly<ApFieldTextSlots> & ApFieldTextSlots;
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: DefineComponent<ApFieldTextProps, {
focus: (options?: InputFocusOptions) => void;
blur: () => void;
input: any;
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
select: () => void;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
"update:value": (...args: any[]) => void;
}, string, PublicProps, Readonly<ApFieldTextProps> & Readonly<{
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
}>, {
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;
disabled: boolean;
bordered: boolean;
emptyText: string;
lazy: boolean;
allowClear: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};