UNPKG

@opensig/opendesign

Version:

<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>

129 lines (128 loc) 2.7 kB
import { BaseScrollerPropsT } from '../..//scrollbar'; import { ExtractPropTypes, PropType } from 'vue'; export declare const TextareaResizeTypes: readonly ["both", "horizontal", "h", "vertical", "v", "none"]; export type TextareaResizeT = (typeof TextareaResizeTypes)[number]; export declare const inTextareaProps: { /** * 下拉框的值 * v-model */ 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>; }; /** * 输入为无效值时,在blur */ valueOnInvalidChange: { type: PropType<(inputValue: string, lastValidInputValue: string) => string>; }; /** * 显示的行数 */ rows: { type: NumberConstructor; default: undefined; }; /** * 显示的列数 */ cols: { type: NumberConstructor; default: undefined; }; /** * 是否支持调整尺寸 ResizeT */ resize: { type: PropType<TextareaResizeT>; default: string; }; /** * 最小字符长度 */ minLength: { type: NumberConstructor; }; /** * 最大字符长度 */ maxLength: { type: NumberConstructor; }; /** * 获取长度方法 */ getLength: { type: PropType<(val: string) => number>; }; /** * 超过最大字符长度时是否允许输入 */ inputOnOutlimit: { type: BooleanConstructor; default: boolean; }; /** * 根据内容自动计算高度 */ autoSize: { type: BooleanConstructor; }; /** * textarea id, 用于label关联 */ textareaId: { type: StringConstructor; }; /** * 使用内置scrollbar,支持传递scrollbar配置项 */ scrollbar: { type: PropType<boolean | Partial<BaseScrollerPropsT>>; default: boolean; }; }; export type inTextareaProps = ExtractPropTypes<typeof inTextareaProps>;