fix(components): add last prop to story listing component

This commit is contained in:
parent ae8d34d84f
commit aad8f20466
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -3,7 +3,11 @@
import { IStory } from "@models/stories";
const route = useRoute();
let curPage = ref(route.query.page || 1);
const props = defineProps<{ prefix?: string; items?: IStory[] }>();
const props = defineProps<{
prefix?: string;
items?: IStory[];
last?: boolean;
}>();
let data;
if (!props.prefix) {
data = props.items;
@ -38,7 +42,7 @@
<a-list :data-source="rdata.stories" item-layout="vertical">
<template #renderItem="{ item }">
<!-- {{ item.title }} -->
<single-story :story="item" />
<single-story :story="item" :last="last" />
</template>
</a-list>
<a-pagination