AT-UI / at-ui

A fresh and flat UI-Kit specially for desktop application, made with ♥ by Vue.js 2.0 (DEPRECATED)
https://at.aotu.io
MIT License
2.34k stars 230 forks source link

How do I use pagination? Is there an example? #62

Closed therealwolf42 closed 6 years ago

therealwolf42 commented 6 years ago

Your framework is amazing. And I'm trying to use pagination, but I don't see any examples and am not sure how to go forward.

Do you have some code snippets?

koppthe commented 6 years ago

such like this?

<at-pagination :total="100" show-total show-sizer show-quickjump @page-change="handlePageChange"></at-pagination>

https://at-ui.github.io/at-ui/#/en/docs/pagination

therealwolf42 commented 6 years ago

Okay got it working now - thank you! :)

This code snippet was the solution to what problems I had.

pageChange(payload) { this.current_page = Number(payload.$event) }