Uni-app using the pager (uni-pagination) of

1. introduction

        import uniPagination from "@/components/uni-pagination/uni-pagination.vue"

        export default{

                 components:{

                          uniPagination

                }

        }

2. Specific usage (code)

       

    Which, change of event is an event switch between tabs

                  

     total is the total amount of data, pageSize is the amount of data per page, current page is current

    

     Binding property, and the amount of data per data volume is known, the number of pages is automatically calculated.

 

Guess you like

Origin www.cnblogs.com/wjl-boke/p/11113842.html