style(Tabs): adjust default line-width to 40px (#7002)
This commit is contained in:
+1
-2
@@ -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%)`,
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user