From c58113ae75f6938d410845759f9d19ddeeaaa227 Mon Sep 17 00:00:00 2001 From: lijisanxiong <1518062161@qq.com> Date: Mon, 8 Dec 2025 17:47:38 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=8C=89=E9=92=AE=E7=BB=84?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F2=E7=9A=84=E4=B8=8B=E6=8B=89=E6=A1=86?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=A2=9E=E5=8A=A0css=E6=9D=83=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 +++ src/common/button-list/button-list.scss | 43 ++++++++++++------------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 524516bb7..4d8b28db3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ - 修复AI行内聊天点击事件偶发未监听成功问题 +### Changed + +- 按钮组样式2的下拉框样式增加css权重 + ## [0.7.41-alpha.45] - 2025-12-05 ### Fixed diff --git a/src/common/button-list/button-list.scss b/src/common/button-list/button-list.scss index 81cd150c9..9f0813a73 100644 --- a/src/common/button-list/button-list.scss +++ b/src/common/button-list/button-list.scss @@ -134,28 +134,6 @@ $button-list: ( min-width: 150px; overflow: visible; } - - @include m(style2) { - &.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list { - background-color: transparent; - - .el-dropdown-menu { - background-color: transparent; - } - - .el-dropdown-menu__item { - background-color: transparent; - - &:hover { - background-color: getCssVar(color, bg, 0); - } - } - } - - .el-button { - color: getCssVar(color, text-2); - } - } } @include e(dropdown-popper-content) { @@ -168,6 +146,7 @@ $button-list: ( } } +// 下拉弹窗样式 .#{bem(button-list, dropdown-popper-content)}, .#{bem(button-list, popover)} { display: flex; @@ -195,3 +174,23 @@ $button-list: ( } } } +.#{bem(button-list__dropdown-popper--style2)} { + .#{bem(button-list, dropdown-popper-content)}, + .el-scrollbar .el-dropdown__list { + background-color: transparent !important; + } + + // 项样式 + .el-button { + color: getCssVar(color, text, 2); + background-color: transparent; + border-radius: 0; + + &.is-text:not(.is-disabled) { + &:hover { + background-color: getCssVar(color, bg, 0); + border-color: transparent; + } + } + } +} \ No newline at end of file -- Gitee