Skip to content

Commit a1708e9

Browse files
mayunhaiPanJiaChen
authored andcommitted
perf: select demo add default-first-option
其实这个属性还是看作者写菜单模糊搜索下拉框时候发现的,觉得体验非常棒。虽然文章模块这里只是一个示例,但是我觉得还是加上比较好。
1 parent 55fa5ac commit a1708e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/example/components/ArticleDetail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<el-row>
2929
<el-col :span="8">
3030
<el-form-item label-width="45px" label="作者:" class="postInfo-container-item">
31-
<el-select v-model="postForm.author" :remote-method="getRemoteUserList" filterable remote placeholder="搜索用户">
31+
<el-select v-model="postForm.author" :remote-method="getRemoteUserList" filterable default-first-option remote placeholder="搜索用户">
3232
<el-option v-for="(item,index) in userListOptions" :key="item+index" :label="item" :value="item" />
3333
</el-select>
3434
</el-form-item>

0 commit comments

Comments
 (0)