[improvement] TreeSelect: fit to pad (#715)

This commit is contained in:
neverland 2018-10-09 13:29:40 +08:00 committed by GitHub
parent 86e7027866
commit 38fa8a3f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -6,7 +6,7 @@
font-size: 16px;
&__nav {
width: 143px;
width: 35%;
position: absolute;
left: 0;
top: 0;
@ -21,14 +21,19 @@
padding: 0 15px;
background-color: #fff;
&:active,
&--active {
background-color: #f8f8f8;
background-color: @background-color;
}
&--active {
font-weight: 500;
}
}
&__content {
padding: 0 15px;
margin-left: 143px;
margin-left: 35%;
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
@ -39,8 +44,9 @@
padding-left: 5px;
padding-right: 18px;
&:active,
&--active {
color: #f44;
color: @red;
}
}

View File

@ -29,7 +29,7 @@
wx:if="{{ activeId === item.id }}"
name="success"
class="tree-select__selected"
></van-icon>
/>
</view>
</view>
</view>