feat: add pagination buttons

This commit is contained in:
Chen, Tai-Lin committed 2023-12-21 17:48:36 +08:00
1 parent fa36b63fbe
commit 3b68693177
8 files changed
+52 -19

No files matched your search

@@ -14,6 +14,10 @@ class Asc {
getOrder() {
return 1
}
getName() {
return ASC
}
}
class Desc {
@@ -24,6 +28,10 @@ class Desc {
getOrder() {
return -1
}
getName() {
return DESC
}
}
export default class Pagination {
@@ -59,4 +67,8 @@ export default class Pagination {
limit() {
return { $limit: this.itemsPerPage }
}
getOrder() {
return this.order.getName()
}
}