mirror of
https://github.com/element-plus/element-plus.git
synced 2025-04-06 16:30:35 +08:00
fix(components): [table] replace pageX with clientX (#19881)
Co-authored-by: chengang <chengang@lianantech.com>
This commit is contained in:
parent
87e3d1d400
commit
3079a4789d
@ -130,7 +130,7 @@ function useEvent<T>(props: TableHeaderProps<T>, emit) {
|
||||
const bodyStyle = document.body.style
|
||||
const isLastTh = target.parentNode?.lastElementChild === target
|
||||
const allowDarg = props.allowDragLastColumn || !isLastTh
|
||||
if (rect.width > 12 && rect.right - event.pageX < 8 && allowDarg) {
|
||||
if (rect.width > 12 && rect.right - event.clientX < 8 && allowDarg) {
|
||||
bodyStyle.cursor = 'col-resize'
|
||||
if (hasClass(target, 'is-sortable')) {
|
||||
target.style.cursor = 'col-resize'
|
||||
|
Loading…
x
Reference in New Issue
Block a user