mirror of https://github.com/ElemeFE/element
Table: fix table column width bug in safari & hide shadow of fixed when scrollX is false (#9327)
parent
e99c12ca04
commit
990df4ed5b
|
@ -290,7 +290,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
return _self.showOverflowTooltip || _self.showTooltipWhenOverflow
|
return _self.showOverflowTooltip || _self.showTooltipWhenOverflow
|
||||||
? <div class="cell el-tooltip" style={{width: (data.column.realWidth || data.column.width) + 'px'}}>{ renderCell(h, data) }</div>
|
? <div class="cell el-tooltip" style={ {width: (data.column.realWidth || data.column.width) - 1 + 'px'} }>{ renderCell(h, data) }</div>
|
||||||
: <div class="cell">{ renderCell(h, data) }</div>;
|
: <div class="cell">{ renderCell(h, data) }</div>;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
@ -137,7 +137,10 @@ export default {
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
this.hasGutter
|
this.hasGutter
|
||||||
? <th class="gutter" style={{ width: this.layout.scrollY ? this.layout.gutterWidth + 'px' : '0' }}></th>
|
? <th class="gutter" style={{
|
||||||
|
width: this.layout.scrollY ? this.layout.gutterWidth + 'px' : '0',
|
||||||
|
display: this.layout.scrollY ? '' : 'none'
|
||||||
|
}}></th>
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<div
|
<div
|
||||||
class="el-table__body-wrapper"
|
class="el-table__body-wrapper"
|
||||||
ref="bodyWrapper"
|
ref="bodyWrapper"
|
||||||
:class="[`is-scroll-${scrollPosition}`]"
|
:class="[layout.scrollX ? `is-scroll-${scrollPosition}` : 'is-scroll-none']"
|
||||||
:style="[bodyHeight]">
|
:style="[bodyHeight]">
|
||||||
<table-body
|
<table-body
|
||||||
:context="context"
|
:context="context"
|
||||||
|
|
Loading…
Reference in New Issue