diff options
Diffstat (limited to 'src/components/Notification.vue')
-rw-r--r-- | src/components/Notification.vue | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/Notification.vue b/src/components/Notification.vue index edc8095..9b691ba 100644 --- a/src/components/Notification.vue +++ b/src/components/Notification.vue @@ -19,14 +19,20 @@ export default { required: true }, visible: { - type: Boolean, default: false + type: Boolean, + default: false } }, methods: { onClickCloseButton: function() { this.$emit('on-close'); } - } + }, + watch: { + visible (val) { + this.visible = val + } + } } </script> |