Skip to content

多行文本输入框 InputTextarea

基本用法

只读状态

高度自动撑开

API

InputTextarea Props

参数名说明类型可选值默认值
width输入框的宽度number150
height输入框的高度number150
autoHeight高度是否自适应booleanfalse
resize拉伸的方向stringnone / both / horizontal / verticalvertical
disabled是否禁用booleanfalse
placeholder同原生 input 标签的 placeholder 属性string请输入内容
readonly是否只读booleanfalse
modelValuev-model 绑定的值string

InputTextarea Events

事件名说明回调参数
focus输入框获得焦点时触发(e: Event)
blur输入框失去焦点时触发(e: Event)