@squirrel-cloud/ui-vue
Version:
松鼠的坚果屋前端VUE框架
92 lines (91 loc) • 1.53 kB
TypeScript
import { Component } from 'vue';
import { ComponentSize, ComponentWarnType, InputMode, InputType, TextareaResizeType } from '../../typings';
/**
* 输入框属性
*/
export interface InputProps {
/**
* 输入框状态
*/
status?: ComponentWarnType;
/**
* 是否圆角输入框
*/
round?: boolean;
/**
* 前缀图标
*/
prefixIcon?: Component;
/**
* 后缀图标
*/
suffixIcon?: Component;
/**
* 是否禁用
*/
disabled?: boolean;
/**
* 是否只读
*/
readonly?: boolean;
/**
* 是否可清空
*/
clearable?: boolean;
/**
* 占位文本
*/
placeholder?: string;
/**
* 最大长度
*/
maxlength?: number | string;
/**
* 最小长度
*/
minlength?: number | string;
/**
* 自动填充
*/
autocomplete?: string;
/**
* 名称
*/
name?: string;
/**
* 关联表单
*/
form?: string;
/**
* 是否加载中
*/
loading?: boolean;
/**
* 键盘输入模式
*/
inputmode?: InputMode;
/**
* 是否自动获取焦点
*/
autofocus?: boolean;
/**
* 输入框类型
*/
type?: InputType;
/**
* 输入框大小
*/
size?: ComponentSize;
/**
* 缩放方式
*/
resize?: TextareaResizeType;
/**
* 高度
*/
rows?: number | string;
/**
* 宽度
*/
cols?: number | string;
}