Table: transparent border when loading (#10254)

pull/10267/head
杨奕 2018-03-20 12:41:50 +08:00 committed by GitHub
parent 725af9d1a0
commit 2098e36b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -26,7 +26,11 @@ loadingDirective.install = Vue => {
['top', 'left'].forEach(property => {
const scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
el.maskStyle[property] = el.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] + 'px';
el.maskStyle[property] = el.getBoundingClientRect()[property] +
document.body[scroll] +
document.documentElement[scroll] -
parseInt(getStyle(document.body, `margin-${ property }`), 10) +
'px';
});
['height', 'width'].forEach(property => {
el.maskStyle[property] = el.getBoundingClientRect()[property] + 'px';

View File

@ -282,7 +282,7 @@
border-bottom: none;
&.el-loading-parent--relative {
border: none;
border-color: transparent;
}
th, td {