Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
kchjxxgh committed Jan 3, 2022
1 parent 61858c7 commit 2fc9db8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions lib/element-ui.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -23183,16 +23183,17 @@ tab_barvue_type_template_id_2031f33a_render._withStripped = true
return true;
} else {
tabSize = $el['client' + firstUpperCase(sizeName)];
var tabStyles = window.getComputedStyle($el);
if (sizeName === 'width' && _this.tabs.length > 1) {
tabSize -= index === 0 || index === _this.tabs.length - 1 ? 20 : 40;
tabSize -= parseFloat(tabStyles.paddingLeft) + parseFloat(tabStyles.paddingRight);
}
if (sizeName === 'width') {
offset += parseFloat(tabStyles.paddingLeft);
}
return false;
}
});

if (sizeName === 'width' && offset !== 0) {
offset += 20;
}
var transform = 'translate' + firstUpperCase(sizeDir) + '(' + offset + 'px)';
style[sizeName] = tabSize + 'px';
style.transform = transform;
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions lib/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,17 @@ var util_ = __webpack_require__(4);
return true;
} else {
tabSize = $el['client' + firstUpperCase(sizeName)];
var tabStyles = window.getComputedStyle($el);
if (sizeName === 'width' && _this.tabs.length > 1) {
tabSize -= index === 0 || index === _this.tabs.length - 1 ? 20 : 40;
tabSize -= parseFloat(tabStyles.paddingLeft) + parseFloat(tabStyles.paddingRight);
}
if (sizeName === 'width') {
offset += parseFloat(tabStyles.paddingLeft);
}
return false;
}
});

if (sizeName === 'width' && offset !== 0) {
offset += 20;
}
var transform = 'translate' + firstUpperCase(sizeDir) + '(' + offset + 'px)';
style[sizeName] = tabSize + 'px';
style.transform = transform;
Expand Down

0 comments on commit 2fc9db8

Please sign in to comment.