fix(pagination): type dispatched update event

This commit is contained in:
Eric Liu 2020-12-05 16:56:33 -08:00
commit ed8977beea
6 changed files with 79 additions and 63 deletions

View file

@ -2,7 +2,13 @@
import { Pagination, PaginationSkeleton } from "../types";
</script>
<Pagination totalItems="{102}" pageSizes="{[10, 15, 20]}" />
<Pagination
totalItems="{102}"
pageSizes="{[10, 15, 20]}"
on:update="{(e) => {
console.log(e.detail); // { pageSize: number; page: number; }
}}"
/>
<Pagination totalItems="{102}" page="{4}" />