feat:
This commit is contained in:
parent
bd48c4c8eb
commit
bfc1c3a068
|
@ -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 });
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue