Skip to content

Textarea 文本域 ​

多行文本输入,支持字数统计与最大长度。

基础用法 ​

vue
<template>
  <KbTextarea v-model="text" :rows="3" :maxlength="200" show-word-limit />
</template>

API ​

Props ​

属性类型默认值说明
modelValuestring''值
rowsnumber3行数
maxlengthnumber—最大长度
show-word-limitbooleanfalse字数统计
resize'none' | 'both' | 'vertical''vertical'缩放

事件 ​

事件参数说明
update:modelValuestring输入