background-color - Vuetify:如何在 v-select 组件中指定所选项目的背景颜色
问题描述
我在 Vue 应用程序中有一个 v-select 小部件(组合框/选择)。当我打开它并将鼠标悬停在一个选项上时,该选项的背景颜色会突出显示(当前为浅灰色)。当鼠标箭头悬停在选项上时,我希望背景颜色具有不同的颜色。我看不到支持此功能的 v-select 小部件的属性。有没有办法做到这一点?
v-select::hover {
background-color: "#00857A";
}
<v-select
append-icon="../assets/img/sy-arrow-chevron-down.svg"
background-color="white"
:height="68"
item-text="label"
item-value="key"
class="mr-3"
v-model="type"
:width="421"
:items="searchCriteria"
@change="performSearch()"
></v-select>
解决方案
将item-color
属性添加到v-select
推荐阅读
- c# - 如何将键盘和鼠标输入写入端口
- compilation - 任何人都可以编译label_wav.cc文件
- postgresql - 如何将 postgresql JSONB 列转换为数组列
- python - InvalidArgumentError : indices[6,0] = 88140 is not in [0, 10000) [[node functional_5/embedding_4/embedding_lookup
- php - 将表值加载到弹出列表中,当前值正确显示
- android - 将上传的图片从用户图库传递到另一个活动,然后将图片上传到 Firebase
- authentication - Nuxt - 如何防止登录后重定向到主页
- python - 如何销毁使用 for 循环生成的按钮(单击后)
- visual-c++ - 具有多个条件的 if 语句无法使用 || 或 $$
- html - 个人资料卡 - 将图像放在我的 div 的底部中心