Merge pull request #7223 from xl495/master
fix(docs): Optimize the template structure of the Paginator component…pull/7281/head
commit
a2af50308c
|
@ -39,7 +39,6 @@ export default {
|
|||
code: {
|
||||
basic: `
|
||||
<Paginator :rows="10" :totalRecords="120">
|
||||
<template #container="{ first, last, page, pageCount, prevPageCallback, nextPageCallback, totalRecords }">
|
||||
<template #container="{ first, last, page, pageCount, prevPageCallback, nextPageCallback, totalRecords }">
|
||||
<div class="flex items-center gap-4 border border-primary bg-transparent rounded-full w-full py-1 px-2 justify-between">
|
||||
<Button icon="pi pi-chevron-left" rounded text @click="prevPageCallback" :disabled="page === 0" />
|
||||
|
@ -50,7 +49,6 @@ export default {
|
|||
<Button icon="pi pi-chevron-right" rounded text @click="nextPageCallback" :disabled="page === pageCount - 1" />
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
</Paginator>
|
||||
`,
|
||||
options: `
|
||||
|
|
Loading…
Reference in New Issue