perf: select demo add default-first-option
其实这个属性还是看作者写菜单模糊搜索下拉框时候发现的,觉得体验非常棒。虽然文章模块这里只是一个示例,但是我觉得还是加上比较好。
This commit is contained in:
parent
55fa5acb85
commit
a1708e9b68
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue