fix: sass1.77.7规则升级warning

This commit is contained in:
sudoooooo 2024-07-10 16:07:29 +08:00
parent 6431cc3210
commit eaa1abda82
3 changed files with 8 additions and 9 deletions

View File

@ -39,6 +39,8 @@ export default {
} }
&:not(.show) { &:not(.show) {
transition: all 0.3s ease-in-out;
display: block; display: block;
opacity: 0; opacity: 0;
height: 0; height: 0;
@ -48,8 +50,6 @@ export default {
color: transparent; color: transparent;
padding-right: 0.1rem; padding-right: 0.1rem;
} }
transition: all 0.3s ease-in-out;
} }
&.show { &.show {

View File

@ -81,12 +81,12 @@
} }
&.hasError { &.hasError {
/*由于错误提示可能多行因此有错误时取消margin让错误提示撑开边距*/
margin-bottom: 0;
.item-border { .item-border {
border-color: $error-color; border-color: $error-color;
} }
/*由于错误提示可能多行因此有错误时取消margin让错误提示撑开边距*/
margin-bottom: 0;
} }
&.special .module-err-tip { &.special .module-err-tip {

View File

@ -89,6 +89,8 @@
} }
&.is-checked { &.is-checked {
transition: all 0.3s ease-in-out;
.item-title { .item-title {
color: $primary-color; color: $primary-color;
} }
@ -102,18 +104,15 @@
color: #fff; color: #fff;
border: none; border: none;
} }
transition: all 0.3s ease-in-out;
} }
&:not(.is-checked) { &:not(.is-checked) {
transition: all 0.3s ease-in-out;
background-color: transparent; background-color: transparent;
.item-title { .item-title {
color: $font-color; color: $font-color;
} }
transition: all 0.3s ease-in-out;
} }
&.lastchild, &.lastchild,