UNPKG

@opensig/opendesign

Version:

252 lines (251 loc) 6.98 kB
declare function __VLS_template(): { attrs: Partial<{}>; slots: Readonly<{ default(): any; prepend(): any; append(): any; prefix(): any; suffix(): any; extra(): any; }> & { default(): any; prepend(): any; append(): any; prefix(): any; suffix(): any; extra(): any; }; refs: {}; rootEl: any; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{ size: { type: import('vue').PropType<import('..').SizeT>; }; round: { type: import('vue').PropType<import('..').RoundT>; }; color: { type: import('vue').PropType<import('..').Color2T>; default: string; }; variant: { type: import('vue').PropType<import('..').VariantT>; default: string; }; modelValue: { type: (NumberConstructor | StringConstructor)[]; }; defaultValue: { type: (NumberConstructor | StringConstructor)[]; }; type: { type: import('vue').PropType<"text" | "password">; default: string; }; placeholder: { type: StringConstructor; }; inputId: { type: StringConstructor; }; disabled: { type: BooleanConstructor; }; readonly: { type: BooleanConstructor; }; noKeyboard: { type: BooleanConstructor; }; clearable: { type: BooleanConstructor; }; minLength: { type: NumberConstructor; }; maxLength: { type: NumberConstructor; }; showLength: { type: import('vue').PropType<"always" | "auto" | "never">; default: string; }; getLength: { type: import('vue').PropType<(val: string) => number>; }; inputOnOutlimit: { type: BooleanConstructor; default: boolean; }; format: { type: import('vue').PropType<(value: string) => string>; }; validate: { type: import('vue').PropType<(value: string) => boolean>; }; valueOnInvalidChange: { type: import('vue').PropType<boolean | ((inputValue: string, lastValidInputValue: string) => string)>; }; showPasswordEvent: { type: import('vue').PropType<"click" | "pointerdown">; default: string; }; autoWidth: { type: BooleanConstructor; }; passwordPlaceholder: { type: StringConstructor; default: string; }; onlyNumericInput: { type: BooleanConstructor; }; }>, { /** * @zh-CN 聚焦输入框 * @en-US Focus the input */ focus: () => void | undefined; /** * @zh-CN 取消输入框聚焦 * @en-US Blur the input */ blur: () => void | undefined; /** * @zh-CN 清空输入内容 * @en-US Clear the input value */ clear: () => void | undefined; /** * @zh-CN 获取原生 input 元素 * @en-US Get the native input element */ inputEl: () => HTMLInputElement | HTMLTextAreaElement | undefined; /** * @zh-CN 切换密码显示/隐藏 * @en-US Toggle password visibility */ togglePassword: () => void | undefined; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & { input: (evt: Event, value: string) => any; clear: (evt?: Event | undefined) => any; blur: (evt: FocusEvent) => any; change: (value: string) => any; focus: (evt: FocusEvent) => any; "update:modelValue": (value: string) => any; pressEnter: (evt: KeyboardEvent) => any; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ size: { type: import('vue').PropType<import('..').SizeT>; }; round: { type: import('vue').PropType<import('..').RoundT>; }; color: { type: import('vue').PropType<import('..').Color2T>; default: string; }; variant: { type: import('vue').PropType<import('..').VariantT>; default: string; }; modelValue: { type: (NumberConstructor | StringConstructor)[]; }; defaultValue: { type: (NumberConstructor | StringConstructor)[]; }; type: { type: import('vue').PropType<"text" | "password">; default: string; }; placeholder: { type: StringConstructor; }; inputId: { type: StringConstructor; }; disabled: { type: BooleanConstructor; }; readonly: { type: BooleanConstructor; }; noKeyboard: { type: BooleanConstructor; }; clearable: { type: BooleanConstructor; }; minLength: { type: NumberConstructor; }; maxLength: { type: NumberConstructor; }; showLength: { type: import('vue').PropType<"always" | "auto" | "never">; default: string; }; getLength: { type: import('vue').PropType<(val: string) => number>; }; inputOnOutlimit: { type: BooleanConstructor; default: boolean; }; format: { type: import('vue').PropType<(value: string) => string>; }; validate: { type: import('vue').PropType<(value: string) => boolean>; }; valueOnInvalidChange: { type: import('vue').PropType<boolean | ((inputValue: string, lastValidInputValue: string) => string)>; }; showPasswordEvent: { type: import('vue').PropType<"click" | "pointerdown">; default: string; }; autoWidth: { type: BooleanConstructor; }; passwordPlaceholder: { type: StringConstructor; default: string; }; onlyNumericInput: { type: BooleanConstructor; }; }>> & Readonly<{ onInput?: ((evt: Event, value: string) => any) | undefined; onClear?: ((evt?: Event | undefined) => any) | undefined; onBlur?: ((evt: FocusEvent) => any) | undefined; onChange?: ((value: string) => any) | undefined; onFocus?: ((evt: FocusEvent) => any) | undefined; "onUpdate:modelValue"?: ((value: string) => any) | undefined; onPressEnter?: ((evt: KeyboardEvent) => any) | undefined; }>, { color: "normal" | "primary" | "success" | "warning" | "danger"; type: "text" | "password"; disabled: boolean; variant: "solid" | "outline" | "text"; clearable: boolean; readonly: boolean; noKeyboard: boolean; showLength: "auto" | "always" | "never"; inputOnOutlimit: boolean; showPasswordEvent: "click" | "pointerdown"; autoWidth: boolean; passwordPlaceholder: string; onlyNumericInput: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };