ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.64k forks source link

[Feature Request] cancels sorting, the sort-change event return null #17982

Open 13297960275 opened 5 years ago

13297960275 commented 5 years ago

Existing Component

Component Name

table-header

Description

表格只支持单条件排序,或许当用户取消排序时 sort-change 事件可以返回 prop 和 column 可以修复此问题,如下

\element-ui\packages\table\src\table-header.js line 504 505

The table only supports single condition sorting. Perhaps when the user cancels sorting, the sort-change event can return prop and column to fix this problem, as follows

ray007 commented 4 years ago

I would classify the missing sort-change event when clearing a sort as bug, not as new feature.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.