From e58a9f16992de6aca0788d00e82cfbd8bc16ef07 Mon Sep 17 00:00:00 2001 From: Onizuka Date: Thu, 14 Nov 2024 00:18:19 +0100 Subject: [PATCH] [front] Minor features --- front/src/App.vue | 365 ++++++++++++++++++++++++---------------------- 1 file changed, 193 insertions(+), 172 deletions(-) diff --git a/front/src/App.vue b/front/src/App.vue index e5960ec..337ae49 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -63,15 +63,20 @@ status = playback.status; hover = computed(() => status.value.hoverInfo(hoverTile)); loadFile.value = false; - - await nextTick(); - if (!stageContainer.value) return; - stage.init(stageContainer.value, playback); + // + // await nextTick(); + // if (!stageContainer.value) return; + // stage.init(stageContainer.value, playback); }; reader.readAsText(file); }; + const initStage = async () => { + if (!stageContainer.value) return; + stage.init(stageContainer.value, playback); + }; + // const game = mapGame(engineGame as EngineGame); // const hoverTile = reactive({ x: undefined, y: undefined }); // const stage = new Stage(game, hoverTile); @@ -85,195 +90,201 @@ @@ -282,4 +293,14 @@ .list-move { transition: all 0.5s ease; } + + .fade-enter-active, + .fade-leave-active { + transition: opacity 0.5s ease; + } + + .fade-enter-from, + .fade-leave-to { + opacity: 0; + }