Skip to content

Commit 14b23e6

Browse files
committed
fix(CCardImage): can t add custom class name
1 parent e2586ed commit 14b23e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/coreui-vue/src/components/card/CCardImage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ const CCardImage = defineComponent({
2525
},
2626
},
2727
},
28-
setup(props, { slots }) {
28+
setup(props, { slots, attrs }) {
2929
return () =>
3030
h(
3131
props.component,
3232
{
33+
...attrs,
3334
class: [props.orientation ? `card-img-${props.orientation}` : 'card-img'],
3435
},
3536
slots.default && slots.default(),

0 commit comments

Comments
 (0)