HC200ok / vue3-easy-data-table

A customizable and easy-to-use data table component made with Vue.js 3.x
MIT License
536 stars 105 forks source link

how to set sort-by dynamically #371

Open childe opened 4 months ago

childe commented 4 months ago

I have a table comprising two columns: name and partition_count.

If partition_count exceeds 100, I want the table to be sorted by name, or else by partition_count.

I tried to set "sortBy" dynamically within mounted(), but it did not work. It only followed by the "sortBy" configured in data().