diff --git a/components/content/docs/components/pagination/paginationCode.ts b/components/content/docs/components/pagination/paginationCode.ts index 5e41bb06..62f01215 100644 --- a/components/content/docs/components/pagination/paginationCode.ts +++ b/components/content/docs/components/pagination/paginationCode.ts @@ -3,8 +3,8 @@ const DefaultPaginationCode = { import { PhDotsThree } from "@phosphor-icons/vue"; import { Pagination, PaginationItem, PaginationList } from "keep-vue"; -const activePage = ref(1); -const handlePageClick = (pageNumber: number) => { +const activePage = ref(1); +const handlePageClick = (pageNumber) => { activePage.value = pageNumber; }; @@ -32,7 +32,7 @@ const handlePageClick = (pageNumber: number) => { 4 - + (1); -const handlePageClick = (pageNumber: number) => { +const activePage = ref(1); +const handlePageClick = (pageNumber) => { activePage.value = pageNumber; }; @@ -70,7 +70,6 @@ const prevPage = () => { activePage.value -= 1; } }; - `, @@ -154,7 +153,7 @@ const prevPage = () => { :disabled="activePage === 1" class="gap-1" @click="prevPage"> - + Previous @@ -179,7 +178,7 @@ const prevPage = () => { 4 - + { class="gap-1" @click="nextPage"> Next - + `, @@ -202,9 +201,9 @@ const PaginationShapeCode = { "PaginationComponent.vue": `