Commit 990df4ed authored by FuryBean's avatar FuryBean Committed by 杨奕

Table: fix table column width bug in safari & hide shadow of fixed when scrollX is false (#9327)

parent e99c12ca
...@@ -290,7 +290,7 @@ export default { ...@@ -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 { ...@@ -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 @@ ...@@ -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"
......
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