@pit-front-end/components
Version:
湖南创智艾泰克科技有限公司
57 lines (56 loc) • 1.9 kB
TypeScript
import { Component, ExtractPropTypes, PropType } from 'vue';
export declare const iconPropType: PropType<string | Component>;
export declare const inputProps: {
readonly modelValue: {
readonly type: PropType<number | string | null | undefined>;
readonly default: "";
};
readonly readonly: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly maxlength: {
readonly type: [StringConstructor, NumberConstructor];
readonly default: 200;
};
readonly showWordLimit: {
readonly type: BooleanConstructor;
readonly default: null;
};
readonly clearable: {
readonly type: BooleanConstructor;
readonly default: true;
};
readonly size: {
readonly type: import('vue').PropType<import('pit-element-plus/es/utils').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly disabled: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly placeholder: {
readonly type: StringConstructor;
};
readonly type: {
readonly type: StringConstructor;
readonly default: "text";
};
readonly suffixIcon: {
readonly type: PropType<string | Component>;
};
readonly prefixIcon: {
readonly type: PropType<string | Component>;
};
};
export type InputProps = ExtractPropTypes<typeof inputProps>;
export declare const inputEmits: {
'update:modelValue': (_value: string | number | null | undefined) => boolean;
input: (value: string) => string;
change: (value: string) => string;
blur: (value: string) => string;
clear: () => boolean;
};
export type InputEmits = typeof inputEmits;