[improvement] Tab: optimize transition (#2151)

This commit is contained in:
neverland
2018-11-26 20:58:30 +08:00
committed by GitHub
parent dc11970fa0
commit a1a6bacb3c
6 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
.van-tab {
flex: 1;
cursor: pointer;
min-width: 0; // hack for flex ellipsis
padding: 0 5px;
font-size: 14px;
position: relative;
@@ -11,7 +12,7 @@
text-align: center;
box-sizing: border-box;
background-color: @white;
min-width: 0; /* hack for flex ellipsis */
transition: color .3s;
span {
display: block;