fix: 表头拖拽修改

This commit is contained in:
gx 2021-04-30 18:05:07 +08:00
parent b81dcbc3ef
commit 9dcc149966
3 changed files with 5 additions and 5 deletions

View File

@ -785,8 +785,8 @@ var _initialiseProps = function _initialiseProps() {
// }
var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (_this7.drag.tableWidth + diff) - scrollbarWidth;
var dargTableWidth = parseFloat(window.getComputedStyle(_this7.table.table).width);
var showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (dargTableWidth + diff) - scrollbarWidth;
//表头滚动条处理
if (headerScroll) {
if (showScroll < 0) {

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "2.3.15-beta.28",
"version": "2.3.15-beta.29",
"description": "Table ui component for react",
"keywords": [
"react",

View File

@ -432,8 +432,8 @@ class TableHeader extends Component {
// }
let showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (this.drag.tableWidth + diff) - scrollbarWidth ;
let dargTableWidth = parseFloat(window.getComputedStyle(this.table.table).width)
let showScroll = contentDomWidth - (leftFixedWidth + rightFixedWidth) - (dargTableWidth + diff) - scrollbarWidth;
//表头滚动条处理
if(headerScroll){
if(showScroll < 0){ //小于 0 出现滚动条