简体   繁体   English

Vuetify 分页数据表

[英]Vuetify Pagination Data-table

If you use :pagination.sync="pagination" to control the number of items being displayed on the screen.如果您使用:pagination.sync="pagination"来控制屏幕上显示的项目数。 Can you still use their built in pagination.sortBy or will you have to build your own algorithm for it.你还可以使用他们内置的pagination.sortBy还是你必须为它构建自己的算法。

Here is vuetify's codepen of what I want to do minus the personalized sorting part: https://codepen.io/BrandiW/pen/zmEvyg?&editors=101这是我想要做的 vuetify 的代码笔减去个性化排序部分: https ://codepen.io/BrandiW/pen/zmEvyg?&editors=101

:pagination.page.sync="pagination" :pagination.page.sync="分页"

if you sync that way, vue by-default column sort and search will work as usual.如果您以这种方式同步,vue 默认的列排序和搜索将照常工作。 though pagination watch call all time for search and column sort, you have to handle it: fetch data needed or not尽管分页监视一直在调用搜索和列排序,但您必须处理它:是否需要获取数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM