Skip to content

Commit 0de6b44

Browse files
breadadamsLeopoldthecoder
authored andcommitted
Table: Add important rule to col-resize cursor (ElemeFE#7381)
* Table: Add `important` rule to `col-resize` cursor * Table: Add `important` rule to `col-resize` cursor * Update table-header.js
1 parent 2cf9c4e commit 0de6b44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/table/src/table-header.js

+6
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,15 @@ export default {
369369
const bodyStyle = document.body.style;
370370
if (rect.width > 12 && rect.right - event.pageX < 8) {
371371
bodyStyle.cursor = 'col-resize';
372+
if (hasClass(target, 'is-sortable')) {
373+
target.style.cursor = 'col-resize';
374+
}
372375
this.draggingColumn = column;
373376
} else if (!this.dragging) {
374377
bodyStyle.cursor = '';
378+
if (hasClass(target, 'is-sortable')) {
379+
target.style.cursor = 'pointer';
380+
}
375381
this.draggingColumn = null;
376382
}
377383
}

0 commit comments

Comments
 (0)