feat: show index
This commit is contained in:
parent
1a9b7e61e2
commit
6e9077f240
|
@ -19,7 +19,9 @@ const props = defineProps({
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="s in bib">
|
<li v-for="(s, index) in bib">
|
||||||
|
[{{ index }}]
|
||||||
|
|
||||||
<template v-if="typeof s.author !== 'undefined' && s.author !== ''">
|
<template v-if="typeof s.author !== 'undefined' && s.author !== ''">
|
||||||
<span class="author">{{ s.author }}</span>,
|
<span class="author">{{ s.author }}</span>,
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "slidev-addon-bibliography",
|
"name": "slidev-addon-bibliography",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"description": "Slidev addon to provide bibliography sources for presentations.",
|
"description": "Slidev addon to provide bibliography sources for presentations.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "slidev example.md",
|
"dev": "slidev example.md",
|
||||||
|
|
Loading…
Reference in New Issue