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>
|
<template>
|
||||||
<notifications position="bottom left">
|
<notifications position="bottom left">
|
||||||
<template slot="body" slot-scope="props">
|
<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
|
<div
|
||||||
v-if="props.item.title"
|
v-if="props.item.title"
|
||||||
class="notification-title"
|
class="notification-title"
|
||||||
|
@ -28,7 +28,12 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'notification'
|
name: 'notification',
|
||||||
|
methods: {
|
||||||
|
close(props) {
|
||||||
|
props.close()
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue