feat(Cascader): select options

This commit is contained in:
chenjiahan
2020-12-20 21:23:50 +08:00
committed by neverland
parent 0352f5d9a6
commit 347758a935
6 changed files with 91 additions and 21 deletions
+26 -7
View File
@@ -19,10 +19,6 @@
.van-tab {
flex: none;
padding: 0 10px;
&--active {
color: #969799;
}
}
&.van-tabs--line .van-tabs__wrap {
@@ -31,19 +27,42 @@
}
}
&__tab-title {
color: @gray-8;
font-weight: @font-weight-bold;
&--unselected {
color: @gray-6;
}
}
&__option {
padding: 10px 16px;
font-size: 14px;
line-height: 20px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px @padding-md;
font-size: @font-size-md;
line-height: @line-height-md;
&:active {
background-color: @active-color;
}
&--selected {
color: @red;
}
}
&__selected-icon {
color: @red;
font-size: 18px;
}
&__options {
box-sizing: border-box;
height: 384px;
padding-top: 6px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
}