keyed notifications
This commit is contained in:
parent
1c146816ab
commit
da2d4639ec
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<transition-group name="notifications" tag="section" class="notification-section">
|
<transition-group name="notifications" tag="section" class="notification-section">
|
||||||
<p class="note" :class="note.level" v-for="note in notifications">
|
<p :key="i" class="note" :class="note.level" v-for="(note, i) in notifications">
|
||||||
<strong>{{ note.title }}</strong>
|
<strong>{{ note.title }}</strong>
|
||||||
<div v-html="note.content" />
|
<div v-html="note.content" />
|
||||||
<button @click="$emit('dismiss', note)">dismiss</button>
|
<button @click="$emit('dismiss', note)">dismiss</button>
|
||||||
|
|
Loading…
Add table
Reference in a new issue