Fix closing of notifications by clicking on it not working
This commit is contained in:
parent
bb84d03776
commit
cc02fc82fc
1 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<notifications position="bottom left">
|
||||
<template slot="body" slot-scope="props">
|
||||
<div :class="['vue-notification-template', 'vue-notification', props.item.type]">
|
||||
<div :class="['vue-notification-template', 'vue-notification', props.item.type]" @click="close(props)">
|
||||
<div
|
||||
v-if="props.item.title"
|
||||
class="notification-title"
|
||||
|
@ -28,7 +28,12 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
name: 'notification'
|
||||
name: 'notification',
|
||||
methods: {
|
||||
close(props) {
|
||||
props.close()
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue