您的位置:首页 > 汽车 > 时评 > el-select选择器修改背景颜色

el-select选择器修改背景颜色

2024/10/4 0:56:09 来源:https://blog.csdn.net/zhuxiaolong1234/article/details/140516508  浏览:    关键词:el-select选择器修改背景颜色
<!--* @FilePath: topSearch.vue* @Author: 是十九呐* @Date: 2024-07-18 09:46:03* @LastEditTime: 2024-07-18 10:42:03
-->
<template><div class="topSearch-container"><div class="search-item"><div class="item-name">客户编码</div><div class="item-input"><el-select v-model="value" placeholder="请选择"><el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option></el-select></div></div><div class="search-item"><div class="item-name">单位</div><div class="item-input"><el-input v-model="input" placeholder="请输入内容"></el-input></div></div><div class="search-item"><div class="item-name">服务站</div><div class="item-input"><el-input v-model="input" placeholder="请输入内容"></el-input></div></div><div class="search-item"><div class="item-name">客户经理</div><div class="item-input"><el-input v-model="input" placeholder="请输入内容"></el-input></div></div></div>
</template><script>
export default {data() {return {options: [{value: '选项1',label: '黄金糕'}, {value: '选项2',label: '双皮奶'}, {value: '选项3',label: '蚵仔煎'}, {value: '选项4',label: '龙须面'}, {value: '选项5',label: '北京烤鸭'}],value: '',input: ''}}
}
</script><style lang="scss" scope>
.topSearch-container {display: flex;align-items: center;justify-content: space-around;.search-item {display: flex;align-items: center;.item-name {margin-right: 21px;color: #01E6F4;font-size: 14px;}}
}
</style><!-- 修改背景颜色 -->
<style>
.el-input__inner,
.el-input__inner:hover,
.el-input__inner:after {background-color: #03192B !important;border: 1px solid #01E6F4 !important;color: #fff;
}
.el-select-dropdown__item {background-color: #03192B;color: #fff;
}
.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {color: #0A81FF;
}
.el-select-dropdown__list {padding: 0;border: 1px solid #01E6F4;
}
.el-popper[x-placement^=bottom] .popper__arrow,
.el-popper[x-placement^=bottom] .popper__arrow::after {border-bottom-color: #01E6F4;
}
.el-select-dropdown {border: none;
}
</style>

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com