diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 3ea413329cae6be817b12b100f2150f6d3197a25..3bf1e7195dac5f82b39d66fe58529fadc6098f6d 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -18,6 +18,7 @@ - 修复`PageWrapper`title 不显示 - 修复表格已知问题 - 修复 BasicTree 组件不能自定义 title 问题 +- 修复主题切换后按钮样式问题 ## 2.0.3 (2021-03-07) diff --git a/src/design/ant/btn.less b/src/design/ant/btn.less index c6ad53c53e95cffdade2c429a6c5a17101060b5b..4197d4f997c2dc88e139b3f80c849c4239f6b1b6 100644 --- a/src/design/ant/btn.less +++ b/src/design/ant/btn.less @@ -14,6 +14,11 @@ // bottom: 1px; // } // } + &-link:hover, + &-link:focus, + &-link:active { + border-color: transparent !important; + } &-primary { color: @white; @@ -70,6 +75,7 @@ &:hover, &:focus { color: @button-success-hover-color; + border-color: transparent; } } @@ -111,6 +117,7 @@ &:hover, &:focus { color: @button-warn-hover-color; + border-color: transparent; } } @@ -144,6 +151,7 @@ &:hover, &:focus { color: @button-error-hover-color; + border-color: transparent; } } @@ -165,9 +173,6 @@ color: @white; background-color: fade(@button-error-color, 40%); border-color: fade(@button-error-color, 40%); - - // background-color: @button-error-disabled-color; - // border-color: @button-error-disabled-color ; } } diff --git a/src/router/menus/modules/demo/comp.ts b/src/router/menus/modules/demo/comp.ts index a8a22d49c3a2e6925018fef0c392044fba51efc4..bf70993d75bf2e85905570a53012b70a7dcc6655 100644 --- a/src/router/menus/modules/demo/comp.ts +++ b/src/router/menus/modules/demo/comp.ts @@ -8,7 +8,6 @@ const menu: MenuModule = { path: '/comp', tag: { dot: true, - type: 'warn', }, children: [ {