<el-input
v-model="form.sxyx"
type="textarea"
placeholder="说明对当前时效的影响,必填"
maxlength="100"
show-word-limit
:autosize="{ minRows: 2, maxRows: 4}"
@input="timeEffectInput"
/>
timeEffectInput() {
const length = this.form.sxyx.length
if (length >= 100) {
this.$el.getElementsByClassName('el-input__count')[1].style = 'color:red !important'
this.form.sxyx = this.form.sxyx.substr(0, 100)
} else {
this.$el.getElementsByClassName('el-input__count')[1].style = 'color:#000 !important'
}
}