Skip to content

Commit 82e7583

Browse files
committed
refactor(CPagination): Non-function value encountered for default slot
1 parent e8fa88a commit 82e7583

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/pagination/CPaginationItem.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ const CPaginationItem = defineComponent({
5959
component: component,
6060
href: props.href,
6161
},
62-
slots.default && slots.default(),
62+
{
63+
default: () => slots.default && slots.default(),
64+
},
6365
)
6466
: h(component, { class: ['page-link'] }, slots.default && slots.default()),
6567
)

0 commit comments

Comments
 (0)