fix(components): add last prop to story listing component
				
					
				
			This commit is contained in:
		
							parent
							
								
									ae8d34d84f
								
							
						
					
					
						commit
						aad8f20466
					
				| @ -3,7 +3,11 @@ | |||||||
| 	import { IStory } from "@models/stories"; | 	import { IStory } from "@models/stories"; | ||||||
| 	const route = useRoute(); | 	const route = useRoute(); | ||||||
| 	let curPage = ref(route.query.page || 1); | 	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; | 	let data; | ||||||
| 	if (!props.prefix) { | 	if (!props.prefix) { | ||||||
| 		data = props.items; | 		data = props.items; | ||||||
| @ -38,7 +42,7 @@ | |||||||
| 		<a-list :data-source="rdata.stories" item-layout="vertical"> | 		<a-list :data-source="rdata.stories" item-layout="vertical"> | ||||||
| 			<template #renderItem="{ item }"> | 			<template #renderItem="{ item }"> | ||||||
| 				<!-- {{ item.title }} --> | 				<!-- {{ item.title }} --> | ||||||
| 				<single-story :story="item" /> | 				<single-story :story="item" :last="last" /> | ||||||
| 			</template> | 			</template> | ||||||
| 		</a-list> | 		</a-list> | ||||||
| 		<a-pagination | 		<a-pagination | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user