Vue+Element-ui el-form清除某个校验的错误提

2020-05-15  本文已影响0人  残_忆
<el-form-item label="邮箱" ref="installerFormEmail">
      <el-autocomplete
               v-model="installerForm.Email"
               @input="checkphone1"
               :fetch-suggestions="querySearch"
               placeholder="请输入邮箱"
               @select="handleSelect"
       ></el-autocomplete>
</el-form-item>
  handleSelect(item){
      if(isvalidEmail(item.value)){
        this.$refs.installerFormEmail.clearValidate()
      }
    }
上一篇 下一篇

猜你喜欢

热点阅读