chore(Tab): remove unused style
This commit is contained in:
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user