mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[improvement] TreeSelect: fit to pad (#715)
This commit is contained in:
parent
86e7027866
commit
38fa8a3f02
@ -6,7 +6,7 @@
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
||||||
&__nav {
|
&__nav {
|
||||||
width: 143px;
|
width: 35%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -21,14 +21,19 @@
|
|||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
||||||
|
&:active,
|
||||||
&--active {
|
&--active {
|
||||||
background-color: #f8f8f8;
|
background-color: @background-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--active {
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
margin-left: 143px;
|
margin-left: 35%;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
@ -39,8 +44,9 @@
|
|||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 18px;
|
padding-right: 18px;
|
||||||
|
|
||||||
|
&:active,
|
||||||
&--active {
|
&--active {
|
||||||
color: #f44;
|
color: @red;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
wx:if="{{ activeId === item.id }}"
|
wx:if="{{ activeId === item.id }}"
|
||||||
name="success"
|
name="success"
|
||||||
class="tree-select__selected"
|
class="tree-select__selected"
|
||||||
></van-icon>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user