chore(Tab): remove unused style

This commit is contained in:
chenjiahan
2020-07-31 20:55:24 +08:00
parent bc0e45687a
commit af1261f546
3 changed files with 18 additions and 27 deletions
-5
View File
@@ -42,10 +42,6 @@ export default createComponent({
style.color = titleColor;
}
if (this.scrollable && this.ellipsis) {
style.flexBasis = `${88 / this.swipeThreshold}%`;
}
return style;
},
},
@@ -84,7 +80,6 @@ export default createComponent({
bem({
active: this.isActive,
disabled: this.disabled,
complete: this.scrollable,
}),
]}
style={this.style}
+2 -6
View File
@@ -53,12 +53,8 @@
&--scrollable {
.van-tab {
flex: 0 0 22%;
&--complete {
flex: 1 0 auto;
padding: 0 @padding-sm;
}
flex: 1 0 auto;
padding: 0 @padding-sm;
}
.van-tabs__nav {