[improvement] Tab: optimize animated tab (#2302)

This commit is contained in:
neverland
2018-12-16 15:18:14 +08:00
committed by GitHub
parent e2c4d60058
commit 347e980da9
6 changed files with 211 additions and 271 deletions
+1 -11
View File
@@ -148,17 +148,7 @@
.van-tab__pane {
width: 100%;
box-sizing: border-box;
flex-shrink: 0;
overflow-y: auto;
&--inactive {
height: 0;
overflow: visible;
}
&--active {
height: auto;
}
box-sizing: border-box;
}
}