Browse Source

fix(table): 修复由 #2250 造成的右侧固定列偏移 1 像素问题 (#2318)

pull/2335/head
morning-star 1 week ago committed by GitHub
parent
commit
2e48de198f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/css/layui.css
  2. 2
      src/modules/table.js

2
src/css/layui.css

@ -1134,7 +1134,7 @@ hr.layui-border-black{border-width: 0 0 1px;}
.layui-table-fixed{position: absolute; left: 0; top: 0; z-index: 101;}
.layui-table-fixed .layui-table-body{overflow: hidden;}
.layui-table-fixed-l{box-shadow: 1px 0 8px rgba(0,0,0,.08);}
.layui-table-fixed-r{left: auto; right: -1px; border-width: 0; border-left-width: 1px; box-shadow: -1px 0 8px rgba(0,0,0,.08);}
.layui-table-fixed-r{left: auto; right: 0px; border-width: 0; border-left-width: 1px; box-shadow: -1px 0 8px rgba(0,0,0,.08);}
.layui-table-fixed-r .layui-table-header{position: relative; overflow: visible;}
.layui-table-mend{position: absolute; right: -49px; top: 0; height: 100%; width: 50px; border-width: 0; border-left-width: 1px;}

2
src/modules/table.js

@ -2077,7 +2077,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
](HIDE);
// 操作栏
that.layFixRight.css('right', scrollWidth - 1);
that.layFixRight.css('right', scrollWidth);
};
/**

Loading…
Cancel
Save