Skip to content

Commit

Permalink
fix:解决拖拽列宽无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchch6 committed Aug 5, 2019
1 parent ac599f9 commit af4b935
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion demo/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/demo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/demo.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af4b935

Please sign in to comment.