mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix: re-key paginator slots
This commit is contained in:
parent
dfa0e5f300
commit
209013af09
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,7 @@ function removeEntry(entryId: any) {
|
|||
}
|
||||
|
||||
defineExpose({ createEntry, removeEntry, updateEntry })
|
||||
const key = 'key' as any
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -84,6 +85,7 @@ defineExpose({ createEntry, removeEntry, updateEntry })
|
|||
page-mode
|
||||
>
|
||||
<slot
|
||||
:[key]="item[keyProp]"
|
||||
:item="item"
|
||||
:active="active"
|
||||
:older="items[index + 1] as U"
|
||||
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue