fix bindable vars in Table
This commit is contained in:
parent
000b02fb7d
commit
6fc0d6534a
2 changed files with 4 additions and 4 deletions
|
|
@ -285,8 +285,8 @@
|
|||
<Pagination
|
||||
bind:pageNumber
|
||||
bind:pageSize
|
||||
bind:pageLength={currentPageData.length}
|
||||
bind:n={sortedData.length}
|
||||
pageLength={currentPageData.length}
|
||||
n={sortedData.length}
|
||||
/>{/if}
|
||||
</div>
|
||||
</Block>
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
let {
|
||||
pageNumber = $bindable(1),
|
||||
pageSize = $bindable(25),
|
||||
pageLength = $bindable(1),
|
||||
n = $bindable(1),
|
||||
pageLength = 1,
|
||||
n = 1,
|
||||
}: Props = $props();
|
||||
|
||||
let minRow = $derived(pageNumber * pageSize - pageSize + 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue