Skip to content

Commit 3778ad8

Browse files
committed
refactor(CTable): add the ability to set CSS classes
1 parent 1c3321b commit 3778ad8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/table/CTable.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const CTable = defineComponent({
9898
required: false,
9999
},
100100
},
101-
setup(props, { slots }) {
101+
setup(props, { slots, attrs }) {
102102
const table = () =>
103103
h(
104104
'table',
@@ -116,6 +116,7 @@ const CTable = defineComponent({
116116
'table-sm': props.small,
117117
'table-striped': props.striped,
118118
},
119+
attrs.class,
119120
],
120121
},
121122
slots.default && slots.default(),

0 commit comments

Comments
 (0)