@opensig/opendesign
Version:
113 lines (112 loc) • 2.71 kB
TypeScript
import { ExtractPropTypes } from 'vue';
export declare const inputProps: {
/**
* @zh-CN 大小
* @en-US Size
*/
size: {
type: import('vue').PropType<import('..').SizeT>;
};
/**
* @zh-CN 圆角值
* @en-US Round
*/
round: {
type: import('vue').PropType<import('..').RoundT>;
};
/**
* @zh-CN 输入框颜色
* @en-US Color
* @default 'normal'
*/
color: {
type: import('vue').PropType<import('..').Color2T>;
default: string;
};
/**
* @zh-CN 输入框类型
* @en-US variant
* @default 'outline'
*/
variant: {
type: import('vue').PropType<import('..').VariantT>;
default: string;
};
/**
* @zh-CN 输入框的值 v-model
* @en-US The value of the input box
*/
modelValue: {
type: (NumberConstructor | StringConstructor)[];
};
/**
* @zh-CN 输入框的默认值,非受控
* @en-US The default value of the input box.Uncontrolled.
*/
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;
};
};
export type InputPropsT = ExtractPropTypes<typeof inputProps>;