input-文本域
2025年5月16日小于 1 分钟
文本域
提示
这里要强调一点的是,如果想改变文本域的长度可以添加class然后修改宽度
<el-input
type="textarea"
:rows="1"
:autosize="{ minRows: 2, maxRows: 6 }"
placeholder="请输入内容"
v-model="addChannelForm.channel_description"
maxlength="30"
show-word-limit
class="info"
>
</el-input>
.info{
width: 400px;
}