[new feature] AddressList: support disabled list (#1729)

This commit is contained in:
neverland
2018-08-30 21:11:23 +08:00
committed by GitHub
parent 1471f6d5b5
commit ad5ca640e0
10 changed files with 158 additions and 62 deletions

View File

@@ -5,10 +5,24 @@
padding-bottom: 100px;
box-sizing: border-box;
.van-cell {
padding: 15px;
&__add {
position: fixed;
left: 0;
bottom: 0;
z-index: 9999;
}
&__disabled-text {
color: $gray-dark;
padding: 0 15px;
font-size: 12px;
line-height: 30px;
}
}
.van-address-item {
padding: 15px;
.van-cell__value {
color: $text-color;
padding-right: 34px;
@@ -16,6 +30,7 @@
}
.van-radio__label {
width: 100%;
margin-left: 27px;
}
@@ -31,14 +46,6 @@
color: $red;
}
&__group {
height: 100%;
overflow-y: scroll;
padding-bottom: 100px;
box-sizing: border-box;
-webkit-overflow-scrolling: touch;
}
&__name {
font-size: 14px;
font-weight: 500;
@@ -52,6 +59,21 @@
color: $gray-darker;
}
&--disabled {
.van-address-item__name,
.van-address-item__address {
color: $gray-dark;
}
.van-radio__input {
display: none;
}
.van-radio__label {
margin-left: 0;
}
}
&__edit {
position: absolute;
top: 50%;
@@ -59,11 +81,4 @@
font-size: 16px;
transform: translate(0, -50%);
}
&__add {
position: fixed;
left: 0;
bottom: 0;
z-index: 9999;
}
}