element select 弹框关闭blur方法

blur方法

当select change的时候 去调用blur方法bash

select模块ui

<el-select 
  ref="projectApplicant"
  class="form-inp-select" 
  v-model="projectApplicatValue" 
  filterable 
  multiple 
  placeholder=""
  @change="_select_more_event">
    <el-option
      v-for="item in projectApplicatArr"
      :key="item.value"
      :label="item.label"
      :value="item.value">
    </el-option>
</el-select>
复制代码

_select_more_event方法this

_select_more_event(){
    let _this = this;
    setTimeout(function() {
      _this.$refs.projectApplicant.blur();
      _this.$refs.investmentTarget.blur();
    }, 50);
},
复制代码
相关文章
相关标签/搜索