refactor(card): support vue3

This commit is contained in:
07akioni 2020-09-13 19:09:53 +08:00
parent e175eda8ff
commit 1d82a17b1c

View File

@ -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()
}
}
}