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);
},
複製代碼
相關文章
相關標籤/搜索