fix:解决拖拽列宽无效的问题
This commit is contained in:
parent
ac599f935c
commit
af4b9351d9
|
@ -79,9 +79,9 @@ var TableHeader = function (_Component) {
|
|||
clsPrefix = _this$props.clsPrefix,
|
||||
contentTable = _this$props.contentTable,
|
||||
lastShowIndex = _this$props.lastShowIndex;
|
||||
// let currentElement = this.getOnLineObject(targetEvent);
|
||||
|
||||
var currentElement = _this.getTargetToTh(targetEvent);
|
||||
var currentElement = _this.getOnLineObject(targetEvent);
|
||||
// let currentElement = this.getTargetToTh(targetEvent);
|
||||
if (!currentElement) return;
|
||||
var type = currentElement.getAttribute('data-type');
|
||||
if (!_this.props.dragborder && !_this.props.draggable) return;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -197,8 +197,8 @@ class TableHeader extends Component {
|
|||
let event = Event.getEvent(e) ,
|
||||
targetEvent = Event.getTarget(event);
|
||||
const { clsPrefix, contentTable,lastShowIndex } = this.props;
|
||||
// let currentElement = this.getOnLineObject(targetEvent);
|
||||
let currentElement = this.getTargetToTh(targetEvent);
|
||||
let currentElement = this.getOnLineObject(targetEvent);
|
||||
// let currentElement = this.getTargetToTh(targetEvent);
|
||||
if(!currentElement)return;
|
||||
let type = currentElement.getAttribute('data-type');
|
||||
if(!this.props.dragborder && !this.props.draggable)return;
|
||||
|
|
Loading…
Reference in New Issue