This commit is contained in:
wanghaoo 2018-12-05 13:49:09 +08:00
parent bd48c4c8eb
commit bfc1c3a068
2 changed files with 1 additions and 3 deletions

View File

@ -165,7 +165,6 @@ var TableHeader = function (_Component) {
if (_this.drag.option === 'border') { if (_this.drag.option === 'border') {
return; return;
} }
// console.log(this.drag.option+' -------onDragStart----------',event.target);
var th = _this.getThDome(event.target); var th = _this.getThDome(event.target);
if (!th) return; if (!th) return;
var currentIndex = parseInt(th.getAttribute("data-line-index")); var currentIndex = parseInt(th.getAttribute("data-line-index"));
@ -189,7 +188,6 @@ var TableHeader = function (_Component) {
_this.currentDome.setAttribute('draggable', false); //添加交换列效果 _this.currentDome.setAttribute('draggable', false); //添加交换列效果
var data = _this.getCurrentEventData(e); var data = _this.getCurrentEventData(e);
if (!data) return; if (!data) return;
// console.log(this.drag.option+' -------onDrop----------',event.target);
if (!_this.currentObj || _this.currentObj.key == data.key) return; if (!_this.currentObj || _this.currentObj.key == data.key) return;
if (!_this.props.onDrop) return; if (!_this.props.onDrop) return;
_this.props.onDrop(event, { dragSource: _this.currentObj, dragTarg: data }); _this.props.onDrop(event, { dragSource: _this.currentObj, dragTarg: data });

View File

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