多行输入框
介绍
基本表单组件,用于用户输入多行文本数据。
API
Props
参数名 | 描述 | 类型 | 默认值 |
---|---|---|---|
status | 状态 | 'default' |'disabled'| 'hide'|'readonly' | 'default' |
title | 标题 | string | - |
valueType | 默认值, 默认值的类型 | 'custom' | 'formula' | 'custom' |
value | 编辑默认值,根据默认值类型不同,value格式分别对应custom或者formula | string | - |
placeholder | 占位提示 | string | '请输入' |
width | 字段占比 | '25%'|'50%'|'75%'|'100%' | '100%' |
labelWidth | 标签宽度 | string | - |
name | 数据字段 | string | - |
allowClear | 清除按钮 | boolean | false |
showWordLimit | 字数统计 | boolean | false |
wordLimit | 最大字数 | number | - |
autoSize | 自适应内容高度 | boolean | false |
baseStyle | 自定义样式 , 表格整体自定义样式 | string | - |
customClass | 类名绑定 , 绑定类的名称 | string | - |
boxStyle | 盒模型 , margin,border,padding设置 | BoxStyle | - |
uniqueKey | 唯一标识 , 组件的唯一标识 | string | - |
extra | 补充说明 | string | - |
tip | 气泡提醒 | string | - |
validate | 校验 | Validate | - |
loop | 循环 , 循环渲染设置 | Loop | - |
events
事件名 | 描述 | 参数 |
---|---|---|
onInput | 用户输入时 | ctx params: {value: string} loop:LoopParams |
onChange | 值发生改变时 | ctx params: {value: string} loop:LoopParams |
onFocus | 获得焦点时 | ctx params:FocusEvent loop:LoopParams |
onBlur | 失去焦点时 | ctx params:FocusEvent loop:LoopParams |
onPressEnter | 按下回车时 | ctx params: {value: string} loop:LoopParams |
onClear | 点击清除按钮时 | ctx params: PointerEvent loop:LoopParams |
onPaste | 粘贴内容时 | ctx params: {pasteValue: string} loop:LoopParams |