Skip to content

Commit 0cde8a0

Browse files
author
黄书伟
committed
fix bug
1 parent feafd64 commit 0cde8a0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/v-table/src/dragWidthMixin.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,23 @@ export default {
3636

3737
// 最后一列不允许拖动
3838
/*if (this.internalColumns[this.internalColumns.length - 1].field === column) {
39-
return false;
40-
}*/
39+
return false;
40+
}*/
4141

4242
if (!this.showVerticalBorder) {
4343
return false;
4444
}
4545

4646
target = event.target;
4747

48-
while (target && target.className && target.className.indexOf('v-table-title-cell') === -1) {
48+
while (target && ((target.className && target.className.indexOf('v-table-title-cell') === -1) || !target.className)) {
4949
target = target.parentNode;
5050
}
5151

5252
rect = target.getBoundingClientRect();
5353

5454
const bodyStyle = document.body.style;
55+
5556
if (rect.width >= this.minColumnWidth && rect.right - event.pageX < 10) {
5657

5758
if (!this.isDragging) { // 拖动中不设置

0 commit comments

Comments
 (0)