Skip to content

Commit 6d415ba

Browse files
committed
refactor(CToastHeader): change close prop to closeButton
1 parent 7b14c3b commit 6d415ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/toast/CToastHeader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const CToastHeader = defineComponent({
77
/**
88
* Automatically add a close button to the header.
99
*/
10-
close: {
10+
closeButton: {
1111
type: Boolean,
1212
require: false,
1313
},
@@ -22,7 +22,7 @@ const CToastHeader = defineComponent({
2222
return () =>
2323
h('div', { class: 'toast-header' }, [
2424
slots.default && slots.default(),
25-
props.close &&
25+
props.closeButton &&
2626
h(CToastClose, {
2727
onClose: () => handleClose(),
2828
}),

0 commit comments

Comments
 (0)