fix:解决拖拽列宽无效的问题

This commit is contained in:
yangchch6 2019-08-05 19:11:23 +08:00
parent ac599f935c
commit af4b9351d9
5 changed files with 9 additions and 9 deletions

View File

@ -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

6
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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;