Element UI version
2.15.14
OS/Browsers version
windows10/chrome
Vue version
2.7.16
Reproduction Link
https://codepen.io/xianrong-lei/pen/VwOoBey
Steps to reproduce
1.横行滚动条拖拽至最右边
2.然后往左拖动一点点
What is Expected?
右侧固定列出现阴影
What is actually happening?
右侧固定列没有阴影
1条答案
按热度按时间s71maibg1#
改写一下el-table组件内的syncPostion方法即可修复。
将方法内部的if (scrollLeft >= maxScrollLeftPosition) 改为
const scrollY = this.layout.scrollY ? this.layout.gutterWidth : 0;
if (scrollLeft - scrollY >= maxScrollLeftPosition)