fix(theme): fix missing attribute for <VPHomePosts> (#864)

This commit is contained in:
pengzhanbo 2026-03-05 14:41:11 +08:00 committed by GitHub
parent 3f047914d5
commit f11e8501d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,8 +20,8 @@ const slots = defineSlots<{
'posts-post-list-pagination-after': () => any
}>()
function VPHomePosts() {
return h(VPPosts, { homePosts: true }, {
function VPHomePosts(props: Record<string, any> = {}) {
return h(VPPosts, { homePosts: true, ...props }, {
'posts-top': () => slots['posts-top']?.(),
'posts-bottom': () => slots['posts-bottom']?.(),
'posts-post-list-before': () => slots['posts-post-list-before']?.(),