mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[new feature] AddressList: support disabled list (#1729)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user