[improvement] Collapse: add disabled prop (#1892)

This commit is contained in:
neverland
2018-10-05 20:14:27 +08:00
committed by GitHub
parent 45bee844d9
commit ea129825f1
6 changed files with 43 additions and 28 deletions
+22 -13
View File
@@ -10,6 +10,27 @@
&::after {
visibility: hidden;
}
&--expanded {
.van-cell__right-icon::before {
transform: rotate(-90deg);
}
&::after {
visibility: visible;
}
}
&--disabled {
&,
& .van-cell__right-icon {
color: $gray;
}
&:active {
background-color: $white;
}
}
}
&__wrapper {
@@ -20,18 +41,6 @@
&__content {
padding: 15px;
background-color: #fff;
}
&--expanded {
.van-collapse-item__title {
.van-cell__right-icon::before {
transform: rotate(-90deg);
}
&::after {
visibility: visible;
}
}
background-color: $white;
}
}