style(Tabs): adjust default line-width to 40px (#7002)

This commit is contained in:
neverland
2020-08-13 20:50:53 +08:00
committed by GitHub
parent 3c44b5acd9
commit 4f9eeec752
12 changed files with 27 additions and 26 deletions
+1 -2
View File
@@ -204,11 +204,10 @@ export default createComponent({
const title = titles[this.currentIndex].$el;
const { lineWidth, lineHeight } = this;
const width = isDef(lineWidth) ? lineWidth : title.offsetWidth / 2;
const left = title.offsetLeft + title.offsetWidth / 2;
const lineStyle = {
width: addUnit(width),
width: addUnit(lineWidth),
backgroundColor: this.color,
transform: `translateX(${left}px) translateX(-50%)`,
};
+1
View File
@@ -119,6 +119,7 @@
bottom: 15px;
left: 0;
z-index: 1;
width: @tabs-bottom-bar-width;
height: @tabs-bottom-bar-height;
background-color: @tabs-bottom-bar-color;
border-radius: @tabs-bottom-bar-height;