[bugfix] Tabs:修复开启animated属性时导致的滚动问题 (#2238)
This commit is contained in:
@@ -122,6 +122,14 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__track {
|
||||
position: relative;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
will-change: left;
|
||||
}
|
||||
|
||||
&--line {
|
||||
padding-top: @tabs-line-height;
|
||||
|
||||
@@ -139,10 +147,18 @@
|
||||
}
|
||||
|
||||
.van-tab__pane {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
&--float {
|
||||
float: left;
|
||||
flex-shrink: 0;
|
||||
overflow-y: auto;
|
||||
|
||||
&--inactive {
|
||||
height: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
&--active {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user