Skip to content

Commit 81e7358

Browse files
committed
Fix the Pagination Example
1 parent 60aaf1d commit 81e7358

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/composition-api.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,12 @@ As promised, here is the example code for the `PaginationUi` component used abov
441441
<div class="flex flex-grow justify-center items-center">
442442
Page
443443
<input
444-
v-model.number="currentPage"
445-
type="text"
444+
:value="currentPage"
445+
type="number"
446+
:min="1"
447+
:max="pageCount"
446448
class="w-12 rounded py-0.5 mx-1.5 dark:bg-gray-900 text-center"
449+
@input="event => $emit('to-page', event.target.value)"
447450
/>
448451
of {{ pageCount }}
449452
</div>

0 commit comments

Comments
 (0)