<el-input
type="textarea"
placeholder="请输入文章标题(1~32个字)"
v-model="chapterTitle"
maxlength="32"
show-word-limit
autosize
resize="none"
id="biaoti"
@input="biaotiInput"
>
</el-input>
biaotiInput() {
var biaoti = document.getElementById('biaoti')
// console.log(window.getComputedStyle(biaoti)) // 显示所有样式
this.biaotiHeight = window
.getComputedStyle(biaoti)
.getPropertyValue('height') // 获取到的标题的高度
console.log(this.biaotiHeight, '111')
}