Skip to content

Commit

Permalink
fix: re-key paginator slots
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 29, 2023
1 parent dfa0e5f commit 209013a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/common/CommonPaginator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function removeEntry(entryId: any) {
}
defineExpose({ createEntry, removeEntry, updateEntry })
const key = 'key' as any
</script>

<template>
Expand All @@ -84,6 +85,7 @@ defineExpose({ createEntry, removeEntry, updateEntry })
page-mode
>
<slot
:[key]="item[keyProp]"
:item="item"
:active="active"
:older="items[index + 1] as U"
Expand All @@ -96,6 +98,7 @@ defineExpose({ createEntry, removeEntry, updateEntry })
<template v-else>
<slot
v-for="item, index of items"
:[key]="item[keyProp]"
:item="item as U"
:older="items[index + 1] as U"
:newer="items[index - 1] as U"
Expand Down

0 comments on commit 209013a

Please sign in to comment.