我希望字体颜色(也包括右侧的小箭头)为白色,背景颜色为蓝色,该如何设置el-select
的样式呢?
<script setup lang="ts">
import { ElementPlus } from '@element-plus/icons-vue'
import { version as epVersion } from 'element-plus'
import { ref, version as vueVersion } from 'vue'
const msg = ref('Hello World!')
const value = ref()
const options = [1,2,3].map(e => {
return {
label: e,
value: e,
}
})
</script>
<template>
<el-select
v-model="value"
:popper-append-to-body="false"
placeholder="请选择" >
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</template>
样式部分
脚本部分
模板部分