Skip to content

多行输入框(TextArea)

组件标识

component: 'TextArea'

componentProps

参数名类型说明
placeholderstring占位符
disabledboolean禁用
readonlyboolean只读
clearableboolean是否显示清空按钮
maxlengthnumber最大长度
showWordLimitboolean是否显示字数统计
autosizeboolean | { minRows?: number; maxRows?: number }自动高度
autosize.minRowsnumber最小行数(autosize 对象模式)
autosize.maxRowsnumber最大行数(autosize 对象模式)
onBlur(e: Event) => void失焦事件
onFocus(e: Event) => void聚焦事件
onChange(value: string) => void值变更事件
onInput(value: string) => void输入事件
onClear() => void清空事件
styleRecord<string, any>自定义样式