vue表单input 框使用@blur事件

<el-row class="sign_item">
       <el-col :span="5"  class="c_title">搜索内容:</el-col>
              <el-col :span="18">
                     <el-input
                         placeholder="项目编号或者项目名称" clearable
                         prefix-icon="el-icon-search"
                         value=""
                         v-model="searchtext"
                         @blur="search_blur($event)"
                      class="c_input">
               </el-input>
      </el-col>
</el-row>

vue中使用@blur获取input val值

search_blur(e){
    let search_value=e.target.value;
    console.log(search_value);
},

Logo

前往低代码交流专区

更多推荐