Commit 0c824d61 authored by 刘盼峰's avatar 刘盼峰 Committed by 杨奕

Tabs: fix right padding of last tab item in basic type top/bottom position

parent ffc310d9
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
} else { } else {
tabSize = $el[`client${firstUpperCase(sizeName)}`]; tabSize = $el[`client${firstUpperCase(sizeName)}`];
if (sizeName === 'width') { if (sizeName === 'width') {
tabSize -= index === 0 ? 20 : 40; tabSize -= (index === 0 || index === this.tabs.length - 1) ? 20 : 40;
} }
return false; return false;
} }
......
...@@ -228,12 +228,18 @@ ...@@ -228,12 +228,18 @@
.el-tabs__item:nth-child(2) { .el-tabs__item:nth-child(2) {
padding-left: 0; padding-left: 0;
} }
.el-tabs__item:last-child {
padding-right: 0;
}
&.el-tabs--border-card, &.el-tabs--card, &.el-tabs--border-card, &.el-tabs--card,
.el-tabs--left, .el-tabs--right { .el-tabs--left, .el-tabs--right {
.el-tabs__item:nth-child(2) { .el-tabs__item:nth-child(2) {
padding-left: 20px; padding-left: 20px;
} }
.el-tabs__item:last-child {
padding-right: 20px;
}
} }
} }
@include m(bottom) { @include m(bottom) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment