vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.3k stars 3.79k forks source link

表格对列设置resizable: true,sorter:true.列的伸缩拖动后还会触发排序行为.怎么做可以在拖动列宽后不触发排序 #7891

Open zwmnhao1980 opened 4 weeks ago

zwmnhao1980 commented 4 weeks ago

Version

3.2.20

Environment

Google Chrome 129.0.6668.103 (正式版本) (arm64)

Reproduction link

https://github.com/vueComponent/ant-design-vue

Steps to reproduce

表格对列设置resizable: true,sorter:true,列的伸缩拖动后还会触发排序行为

What is expected?

怎么做可以在拖动列宽后不触发排序

What is actually happening?

表格对列设置resizable: true,sorter:true.列的伸缩拖动后还会触发排序行为

zwmnhao1980 commented 4 weeks ago

确切的来说是由于设置了所有列的宽度,列的伸缩拖动过程中,鼠标与拖动标志偏离了,鼠标mouseup的时候,鼠标刚好在列正上方,导致触发列的排序行为

YEEY1010 commented 2 weeks ago

请问有什么方案可以解决这个问题吗?