@opensig/opendesign
Version:
102 lines (101 loc) • 2.27 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { SizeT, RoundT, VariantT, Color2T } from '../_utils/types';
export declare const textareaProps: {
/**
* @zh-CN 尺寸
* @en-US Size
*/
size: {
type: PropType<SizeT>;
};
/**
* @zh-CN 圆角
* @en-US Round
*/
round: {
type: PropType<RoundT>;
};
/**
* @zh-CN 颜色类型
* @en-US Color type
*/
color: {
type: PropType<Color2T>;
default: string;
};
/**
* @zh-CN 形状变体
* @en-US Shape variant
*/
variant: {
type: PropType<VariantT>;
default: string;
};
modelValue: {
type: StringConstructor;
};
defaultValue: {
type: StringConstructor;
};
placeholder: {
type: StringConstructor;
};
disabled: {
type: BooleanConstructor;
};
readonly: {
type: BooleanConstructor;
};
clearable: {
type: BooleanConstructor;
};
format: {
type: PropType<(value: string) => string>;
};
validate: {
type: PropType<(value: string) => boolean>;
};
valueOnInvalidChange: {
type: PropType<boolean | ((inputValue: string, lastValidInputValue: string) => string)>;
};
rows: {
type: NumberConstructor;
default: number;
};
cols: {
type: NumberConstructor;
default: undefined;
};
resize: {
type: PropType<import('../_components/in-textarea').TextareaResizeT>;
default: string;
};
minLength: {
type: NumberConstructor;
};
maxLength: {
type: NumberConstructor;
};
showLength: {
type: PropType<"always" | "auto" | "never">;
default: string;
};
getLength: {
type: PropType<(val: string) => number>;
};
inputOnOutlimit: {
type: BooleanConstructor;
default: boolean;
};
autoSize: {
type: BooleanConstructor;
};
textareaId: {
type: StringConstructor;
};
scrollbar: {
type: PropType<boolean | Partial<import('..').BaseScrollerPropsT>>;
default: boolean;
};
};
export type TextareaPropsT = ExtractPropTypes<typeof textareaProps>;