mealcomes
Version:
MealComes 用于学习前端的组件库
226 lines (225 loc) • 8.26 kB
TypeScript
export declare const McInput: import('../../utils').SFCWithInstall<{
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
readonly type: {
readonly type: StringConstructor;
readonly default: "text";
};
readonly modelValue: {
readonly type: import('vue').PropType<string | number>;
readonly default: "";
};
readonly placeholder: {
readonly type: StringConstructor;
readonly default: "";
};
readonly clearable: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly showPassword: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly disabled: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly readonly: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly ariaLabel: {
readonly type: StringConstructor;
readonly default: "";
};
readonly size: {
readonly type: import('vue').PropType<import('../../mealcomes').ComponentSize>;
readonly default: "default";
};
readonly autocomplete: {
readonly type: StringConstructor;
readonly default: "off";
};
}>> & Readonly<{
onClear?: (() => any) | undefined;
onInput?: ((value: string) => any) | undefined;
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
onChange?: ((value: string) => any) | undefined;
onFocus?: ((event: FocusEvent) => any) | undefined;
onBlur?: ((event: FocusEvent) => any) | undefined;
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
clear: () => void;
input: (value: string) => void;
"update:modelValue": (value: string) => void;
change: (value: string) => void;
focus: (event: FocusEvent) => void;
blur: (event: FocusEvent) => void;
keydown: (event: KeyboardEvent) => void;
}, import('vue').PublicProps, {
readonly size: "" | "default" | "small" | "large";
readonly type: string;
readonly disabled: boolean;
readonly modelValue: string | number;
readonly placeholder: string;
readonly clearable: boolean;
readonly showPassword: boolean;
readonly readonly: boolean;
readonly ariaLabel: string;
readonly autocomplete: string;
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
inputRef: HTMLInputElement;
}, any, import('vue').ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('vue').ExtractPropTypes<{
readonly type: {
readonly type: StringConstructor;
readonly default: "text";
};
readonly modelValue: {
readonly type: import('vue').PropType<string | number>;
readonly default: "";
};
readonly placeholder: {
readonly type: StringConstructor;
readonly default: "";
};
readonly clearable: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly showPassword: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly disabled: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly readonly: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly ariaLabel: {
readonly type: StringConstructor;
readonly default: "";
};
readonly size: {
readonly type: import('vue').PropType<import('../../mealcomes').ComponentSize>;
readonly default: "default";
};
readonly autocomplete: {
readonly type: StringConstructor;
readonly default: "off";
};
}>> & Readonly<{
onClear?: (() => any) | undefined;
onInput?: ((value: string) => any) | undefined;
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
onChange?: ((value: string) => any) | undefined;
onFocus?: ((event: FocusEvent) => any) | undefined;
onBlur?: ((event: FocusEvent) => any) | undefined;
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
}>, {}, {}, {}, {}, {
readonly size: "" | "default" | "small" | "large";
readonly type: string;
readonly disabled: boolean;
readonly modelValue: string | number;
readonly placeholder: string;
readonly clearable: boolean;
readonly showPassword: boolean;
readonly readonly: boolean;
readonly ariaLabel: string;
readonly autocomplete: string;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
readonly type: {
readonly type: StringConstructor;
readonly default: "text";
};
readonly modelValue: {
readonly type: import('vue').PropType<string | number>;
readonly default: "";
};
readonly placeholder: {
readonly type: StringConstructor;
readonly default: "";
};
readonly clearable: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly showPassword: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly disabled: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly readonly: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly ariaLabel: {
readonly type: StringConstructor;
readonly default: "";
};
readonly size: {
readonly type: import('vue').PropType<import('../../mealcomes').ComponentSize>;
readonly default: "default";
};
readonly autocomplete: {
readonly type: StringConstructor;
readonly default: "off";
};
}>> & Readonly<{
onClear?: (() => any) | undefined;
onInput?: ((value: string) => any) | undefined;
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
onChange?: ((value: string) => any) | undefined;
onFocus?: ((event: FocusEvent) => any) | undefined;
onBlur?: ((event: FocusEvent) => any) | undefined;
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
clear: () => void;
input: (value: string) => void;
"update:modelValue": (value: string) => void;
change: (value: string) => void;
focus: (event: FocusEvent) => void;
blur: (event: FocusEvent) => void;
keydown: (event: KeyboardEvent) => void;
}, string, {
readonly size: "" | "default" | "small" | "large";
readonly type: string;
readonly disabled: boolean;
readonly modelValue: string | number;
readonly placeholder: string;
readonly clearable: boolean;
readonly showPassword: boolean;
readonly readonly: boolean;
readonly ariaLabel: string;
readonly autocomplete: string;
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
$slots: {
prepend?(_: {}): any;
prefix?(_: {}): any;
suffix?(_: {}): any;
append?(_: {}): any;
};
})>;
export default McInput;
export type { InputProps } from './src/input';
declare module 'vue' {
interface GlobalComponents {
McInput: typeof McInput;
}
}