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; + }