キャンセルボタンを実装

This commit is contained in:
kakkokari-gtyih 2024-02-26 18:08:37 +09:00
parent 3dded16104
commit e83d28f96f
2 changed files with 95 additions and 23 deletions

View file

@ -131,6 +131,13 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</template>
<script lang="ts">
//
export const MAX_PAGE = 9;
</script>
<script lang="ts" setup>
import { ref, computed, watch } from 'vue';
import MkButton from '@/components/MkButton.vue';
@ -162,9 +169,6 @@ const emit = defineEmits<{
// eslint-disable-next-line vue/no-setup-props-destructure
const page = ref(props.initialPage ?? 0);
//
const MAX_PAGE = 9;
watch(page, (to) => {
if (to === MAX_PAGE) {
claimAchievement('tutorialCompleted');
@ -211,6 +215,7 @@ function prev() {
<style lang="scss" module>
.tutorialRoot {
position: relative;
box-sizing: border-box;
overflow: hidden;
width: 100%;