element [Feature Request] How to sorting el-table with async

mfpqipee  于 2022-11-13  发布在  其他
关注(0)|答案(2)|浏览(162)

Existing Component

Yes

Component Name

el-table

Description

Hello, I'm creating an async table, but I haven't tried to sort the table?

demo : https://codesandbox.io/s/element-ui-data-table-i74l4

wh6knrhe

wh6knrhe1#

Documentation:

sortablewhether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the sort-change event of Tableboolean, stringtrue, false, customfalse

So, on each table column set sortable="custom" and on the table add @sort-change="sortChange"

ecfdbz9o

ecfdbz9o2#

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.

相关问题