在输入框按下回车,选择第一个匹配项

This commit is contained in:
马云海 mayunhai () 2019-04-03 13:22:30 +08:00
parent 55fa5acb85
commit b6108dc7fe
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
<el-row>
<el-col :span="8">
<el-form-item label-width="45px" label="作者:" class="postInfo-container-item">
<el-select v-model="postForm.author" :remote-method="getRemoteUserList" filterable remote placeholder="搜索用户">
<el-select v-model="postForm.author" :remote-method="getRemoteUserList" filterable default-first-option remote placeholder="搜索用户">
<el-option v-for="(item,index) in userListOptions" :key="item+index" :label="item" :value="item" />
</el-select>
</el-form-item>