<el-col :xs="18" :sm="18" :lg="18">
            <el-input
              v-model="Form.description"
              placeholder="请输入内容"
              type="textarea"
              maxlength="100"
              @input="descInput"
            ></el-input>
            <span class="gray"> 字数限制:{{ enter }}/100</span>
 </el-col>
 data() {
    return {
      enter: 0,
     }
 }
descInput() {
      var txtVal = this.Form.description.length;
      this.enter = txtVal;
 },

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐