forked from Mirrors/elk
fix: work around volar parsing issue
This commit is contained in:
parent
209013af09
commit
d535ae6ee1
1 changed files with 2 additions and 3 deletions
|
@ -69,7 +69,6 @@ function removeEntry(entryId: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ createEntry, removeEntry, updateEntry })
|
defineExpose({ createEntry, removeEntry, updateEntry })
|
||||||
const key = 'key' as any
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -85,7 +84,7 @@ const key = 'key' as any
|
||||||
page-mode
|
page-mode
|
||||||
>
|
>
|
||||||
<slot
|
<slot
|
||||||
:[key]="item[keyProp]"
|
v-bind="{ key: item[keyProp] }"
|
||||||
:item="item"
|
:item="item"
|
||||||
:active="active"
|
:active="active"
|
||||||
:older="items[index + 1] as U"
|
:older="items[index + 1] as U"
|
||||||
|
@ -98,7 +97,7 @@ const key = 'key' as any
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<slot
|
<slot
|
||||||
v-for="item, index of items"
|
v-for="item, index of items"
|
||||||
:[key]="item[keyProp]"
|
v-bind="{ key: item[keyProp as keyof U] }"
|
||||||
:item="item as U"
|
:item="item as U"
|
||||||
:older="items[index + 1] as U"
|
:older="items[index + 1] as U"
|
||||||
:newer="items[index - 1] as U"
|
:newer="items[index - 1] as U"
|
||||||
|
|
Loading…
Reference in a new issue