tyh-ui2
Version:
The next generation ui component library of tyh-ui is based on vue3 Version, fully embrace vue3.
99 lines (98 loc) • 3.56 kB
TypeScript
import type { Type, Size } from './interface';
import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
declare const _sfc_main: DefineComponent<{
readonly modelValue: {
readonly type: StringConstructor;
readonly set: () => boolean;
};
readonly placeholder: StringConstructor;
readonly type: {
readonly type: PropType<Type>;
readonly default: () => Type;
readonly validator: (v: Type) => boolean;
};
readonly size: {
readonly type: PropType<Size>;
readonly default: () => Size;
readonly validator: (v: Size) => boolean;
};
readonly max: StringConstructor;
readonly clear: BooleanConstructor;
readonly icon: StringConstructor;
readonly disabled: BooleanConstructor;
readonly autofocus: BooleanConstructor;
readonly name: StringConstructor;
readonly showPassword: BooleanConstructor;
readonly set: () => boolean;
}, {
prop: Readonly<{
type: Type;
disabled: boolean;
icon: string | undefined;
size: Size;
clear: boolean;
"onUpdate:modelValue": ((...args: any[]) => any) | undefined;
onClear: ((...args: any[]) => any) | undefined;
onEnter: ((...args: any[]) => any) | undefined;
onOnblur: ((...args: any[]) => any) | undefined;
onOnfocus: ((...args: any[]) => any) | undefined;
modelValue: string | undefined;
placeholder: string | undefined;
max: string | undefined;
autofocus: boolean;
name: string | undefined;
showPassword: boolean;
set: boolean | undefined;
}>;
emit: (event: "update:modelValue" | "clear" | "enter" | "onblur" | "onfocus", ...args: any[]) => void;
inputType: Ref<string>;
isPass: Ref<boolean>;
input: (e: Event) => void;
clearText: () => void;
isClass: ComputedRef<(string | object)[]>;
showPasswordClick: () => void;
isIcon: ComputedRef<boolean>;
rightIcon: ComputedRef<string>;
rightIconClick: () => void;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "clear" | "enter" | "onblur" | "onfocus")[], "update:modelValue" | "clear" | "enter" | "onblur" | "onfocus", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
readonly modelValue?: unknown;
readonly placeholder?: unknown;
readonly type?: unknown;
readonly size?: unknown;
readonly max?: unknown;
readonly clear?: unknown;
readonly icon?: unknown;
readonly disabled?: unknown;
readonly autofocus?: unknown;
readonly name?: unknown;
readonly showPassword?: unknown;
readonly set?: unknown;
} & {
type: Type;
disabled: boolean;
size: Size;
clear: boolean;
autofocus: boolean;
showPassword: boolean;
} & {
icon?: string | undefined;
modelValue?: string | undefined;
placeholder?: string | undefined;
max?: string | undefined;
name?: string | undefined;
set?: boolean | undefined;
}> & {
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onClear?: ((...args: any[]) => any) | undefined;
onEnter?: ((...args: any[]) => any) | undefined;
onOnblur?: ((...args: any[]) => any) | undefined;
onOnfocus?: ((...args: any[]) => any) | undefined;
}, {
type: Type;
disabled: boolean;
size: Size;
clear: boolean;
autofocus: boolean;
showPassword: boolean;
}>;
export default _sfc_main;