diff --git a/CHANGELOG.md b/CHANGELOG.md index 524516bb700758877030a2089924a4d9c73d12a6..4d8b28db36588b85edac18ba77a50f297bfd376a 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 81cd150c9b66654ba7b15fdb4327fea7db6093b8..9f0813a73115ff73b5132a9c6b723817f0dd219b 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