UNPKG

mealcomes

Version:

MealComes 用于学习前端的组件库

56 lines (55 loc) 1.67 kB
import { ExtractPropTypes, PropType } from 'vue'; import { ComponentSize } from '../../../constants'; export declare const inputProps: { readonly type: { readonly type: StringConstructor; readonly default: "text"; }; readonly modelValue: { readonly type: 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: PropType<ComponentSize>; readonly default: "default"; }; readonly autocomplete: { readonly type: StringConstructor; readonly default: "off"; }; }; export type InputProps = ExtractPropTypes<typeof inputProps>; export declare const inputEmits: { 'update:modelValue': (value: string) => boolean; input: (value: string) => boolean; change: (value: string) => boolean; focus: (event: FocusEvent) => boolean; blur: (event: FocusEvent) => boolean; clear: () => boolean; keydown: (event: KeyboardEvent) => boolean; }; export type InputEmits = typeof inputEmits;