Table: Add `important` rule to `col-resize` cursor (#7381)

* Table: Add `important` rule to `col-resize` cursor

* Table: Add `important` rule to `col-resize` cursor

* Update table-header.js
pull/7387/merge
Brad Adams 2017-10-09 14:07:10 +02:00 committed by 杨奕
parent 2cf9c4e7a7
commit 0de6b447e5
1 changed files with 6 additions and 0 deletions

View File

@ -369,9 +369,15 @@ export default {
const bodyStyle = document.body.style;
if (rect.width > 12 && rect.right - event.pageX < 8) {
bodyStyle.cursor = 'col-resize';
if (hasClass(target, 'is-sortable')) {
target.style.cursor = 'col-resize';
}
this.draggingColumn = column;
} else if (!this.dragging) {
bodyStyle.cursor = '';
if (hasClass(target, 'is-sortable')) {
target.style.cursor = 'pointer';
}
this.draggingColumn = null;
}
}