fix(固定列不可拖拽、行过滤隐藏问题):

This commit is contained in:
wanghaoo 2018-11-07 17:15:42 +08:00
parent 92f358452b
commit ea7f20509b
3 changed files with 2 additions and 4 deletions

View File

@ -151,7 +151,6 @@ var TableHeader = function (_Component) {
optDom.classList.remove("th-drag-gap-hover"); optDom.classList.remove("th-drag-gap-hover");
optDom.classList.add("th-drag-gap"); optDom.classList.add("th-drag-gap");
} }
// console.log(data.width);
// columns[this.drag.currIndex].width = data.width; // columns[this.drag.currIndex].width = data.width;
//宽度拖拽后,增加回调函数,外部可以记录宽度 //宽度拖拽后,增加回调函数,外部可以记录宽度
if (typeof _this.props.afterDragColWidth == "function" && rows && rows[0] && _this.drag.currIndex) { if (typeof _this.props.afterDragColWidth == "function" && rows && rows[0] && _this.drag.currIndex) {
@ -229,7 +228,6 @@ var TableHeader = function (_Component) {
colDomArr[_this.drag.currIndex].style.width = newWidth + "px"; colDomArr[_this.drag.currIndex].style.width = newWidth + "px";
//4、设置overflow属性 //4、设置overflow属性
} }
console.log('newWidth---' + newWidth + '---data--' + data.width);
}; };
_this.handlerFilterTextChange = function (key, val) { _this.handlerFilterTextChange = function (key, val) {

View File

@ -156,7 +156,7 @@ function newMultiSelect(Table, Checkbox) {
selectList.push(da); selectList.push(da);
} }
}); });
_this2.props.getSelectedDataFunc(selectList); _this2.props.getSelectedDataFunc(selectList, record, index);
}; };
}; };

View File

@ -1,6 +1,6 @@
{ {
"name": "bee-table", "name": "bee-table",
"version": "1.4.34", "version": "1.4.35",
"description": "Table ui component for react", "description": "Table ui component for react",
"keywords": [ "keywords": [
"react", "react",