WIP: v3.4.0 #25

Draft
voidf1sh wants to merge 21 commits from v3.4.0 into main
Showing only changes of commit b536ebda5b - Show all commits

View File

@ -1,5 +1,5 @@
module.exports = (collection, page) => { module.exports = (collection, page, qty) => {
const itemsPerPage = 10; const itemsPerPage = qty ? qty : 10;
const index = page * itemsPerPage; const index = page * itemsPerPage;
const totalPages = Math.ceil(collection.size / itemsPerPage); const totalPages = Math.ceil(collection.size / itemsPerPage);
let state = page === 0 ? 'first' : 'middle'; let state = page === 0 ? 'first' : 'middle';