mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
refactor(card): support vue3
This commit is contained in:
parent
e175eda8ff
commit
1d82a17b1c
@ -59,7 +59,11 @@ export default {
|
||||
mdClose,
|
||||
NIcon
|
||||
},
|
||||
mixins: [withapp, themeable, usecssr(styles)],
|
||||
mixins: [
|
||||
withapp,
|
||||
themeable,
|
||||
usecssr(styles)
|
||||
],
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
@ -88,11 +92,15 @@ export default {
|
||||
closable: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
onClose: {
|
||||
type: Function,
|
||||
default: () => {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleCloseClick () {
|
||||
this.$emit('close')
|
||||
this.onClose()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user