antoniandre / wave-ui

A UI framework for Vue.js 3 (and 2) with only the bright side. ☀️
https://antoniandre.github.io/wave-ui
MIT License
544 stars 39 forks source link

w-table total in pagination is broken with filtation #135

Open Hexagon-Dev opened 8 months ago

Hexagon-Dev commented 8 months ago

Checked code, why total is a value and not a computed property? As for server data table a separate value needs to be provided like serverTotal, but as for static data I think there is no need to set total manually. Cause of that it sets initially items.length, and after filtration is applied - value is not updated. For example if table has 5 pages, and after filtration item decreased to 1, it would still display 5 pages but 1 item.

alessandrodipierro commented 8 months ago

Speaking of total and pagination, even the page count does not go hand in hand with the total if this increases after the first rendering. The page count does not increase although the "total" is calculated again.

dang1407 commented 7 months ago

Hello alessandrodipierro, how to sticky a header of a column when use resizable-columns for w-table. Help me please! Thank you very much.

antoniandre commented 7 months ago

Hi guys @Hexagon-Dev @alessandrodipierro, please provide a reproduction link so I can help. Here is a starting point that you can fork https://stackblitz.com/edit/waveui-3?file=src%2FApp.vue thanks