Skip to content

Commit 8d27497

Browse files
committed
62
1 parent f167c6a commit 8d27497

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

db.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
{
105105
"subject": "ab",
106106
"completed": false,
107-
"body": "",
107+
"body": "ffffffdfdfasfff",
108108
"id": 28
109109
}
110110
]

src/components/TodoForm.vue

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@
6060
Cancel
6161
</button>
6262
</form>
63-
<Toast
64-
v-if="showToast"
65-
:message="toastMessage"
66-
:type="toastAlertType"
67-
/>
63+
<transition name="fade">
64+
<Toast
65+
v-if="showToast"
66+
:message="toastMessage"
67+
:type="toastAlertType"
68+
/>
69+
</transition>
6870
</template>
6971

7072
<script>
@@ -196,4 +198,21 @@ export default {
196198
.text-red {
197199
color: red;
198200
}
201+
202+
.fade-enter-active,
203+
.fade-leave-active {
204+
transition: all 0.5s ease;
205+
}
206+
207+
.fade-enter-from,
208+
.fade-leave-to {
209+
opacity: 0;
210+
transform: translateY(-30px);
211+
}
212+
213+
.fade-enter-to,
214+
.fade-leave-from {
215+
opacity: 1;
216+
transform: translateY(0px);
217+
}
199218
</style>

0 commit comments

Comments
 (0)