refactor: QPagination component to modify handleChangePage default value
This commit is contained in:
parent
aab9084f1b
commit
e7d988bba6
@ -1,7 +1,7 @@
|
||||
import usePagination from '@/hooks/usePagination'
|
||||
|
||||
export default function QPagination(props) {
|
||||
const { handleChangePage, pagePerBlock = 10 } = props
|
||||
const { handleChangePage = () => {}, pagePerBlock = 10 } = props
|
||||
const { currentPage, changePage, pageGroup, totalPages, pages, startPage, endPage, pageRange } = usePagination(props)
|
||||
|
||||
const handlePage = (page) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user