Skip to content

Commit 748ffeb

Browse files
committed
refactor(CCard): Non-function value encountered for default slot
1 parent d0bb94f commit 748ffeb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/card/CCardLink.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ const CCardLink = defineComponent({
1515
},
1616
setup(props, { slots }) {
1717
return () =>
18-
h(CLink, { class: 'card-link', href: props.href }, slots.default && slots.default())
18+
h(
19+
CLink,
20+
{ class: 'card-link', href: props.href },
21+
{ default: () => slots.default && slots.default() },
22+
)
1923
},
2024
})
2125

0 commit comments

Comments
 (0)