element-plus升级2.5+后自己之前写的el-select下拉框样式失效

  1. 升级后的el-select组件的类跟之前的不一样了,之前的是.el-input__wrapper类来改外观大小和边框样式的,现在升级后变为.el-select__wrapper
//修改高度和圆角
:deep(.el-select__wrapper) {
  min-height: 40px;
  border-radius: 8px;
  padding: 0px 16px 0px 20px;
}
//修改鼠标悬停边框颜色
:deep(.el-select__wrapper:hover) {
  box-shadow: 0 0 0 1px #1890ff inset !important;
}
//修改鼠标触发等边框颜色
::deep(.el-select__wrapper.is-focus) {
  box-shadow: 0 0 0 1px #1890ff inset !important;
}
:deep(.el-select__wrapper.is-focused) {
  box-shadow: 0 0 0 1px #1890ff inset !important;
}
:deep(.el-select .is-focus .el-select__wrapper) {
  box-shadow: 0 0 0 1px #1890ff inset !important;
}

:deep(.el-select .el-select__caret) {
  color: #898989;
}
:deep(.el-tag) {
  background: #fcfcfc;
  border: 1px solid rgba(134, 134, 134, 0.56);
  border-radius: 8px;
}
:deep(.el-select__wrapper:focus) {
  box-shadow: 0 0 0 1px #1890ff inset !important;
}
:deep(.el-tag.el-tag--info) {
  background: #fcfcfc;
  border: 1px solid rgba(134, 134, 134, 0.56);
  border-radius: 8px;
  font-size: 14px;
  color: #333333;
}
//修改选中文字颜色
:deep(.el-select__placeholder) {
  color: #333333;
}
:deep(.el-checkbox__inner::after) {
  top: -10px !important;
}
:deep(.el-select-tags-wrapper.has-prefix) {
  margin-left: 20px !important;
}
//鼠标离开后颜色
.el-select-dropdown__item.is-hovering {
    background-color: #1890ff;
  }
  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值