advent22/ui/src/components/DoorMapEditor.vue

37 lines
886 B
Vue
Raw Normal View History

2023-01-17 18:25:56 +00:00
<template>
2023-01-19 00:22:01 +00:00
<div class="box">
<p class="title is-4">Türchen bearbeiten</p>
2023-01-19 19:35:20 +00:00
<nav class="breadcrumb has-succeeds-separator" aria-label="breadcrumbs">
2023-01-19 00:22:01 +00:00
<ul>
2023-01-19 17:54:46 +00:00
<li
v-for="(step, index) in steps"
:key="'step-' + index"
:class="current_step === index ? 'is-active' : ''"
@click="current_step = index"
>
<a>{{ step }}</a>
</li>
2023-01-19 00:22:01 +00:00
</ul>
2023-01-19 19:35:20 +00:00
</nav>
2023-01-19 00:22:01 +00:00
2023-01-19 17:59:18 +00:00
<DoorPlacer v-if="current_step === 0" />
2023-01-19 19:35:20 +00:00
<p v-if="current_step === 1">Narf!</p>
2023-01-17 18:25:56 +00:00
</div>
</template>
<script lang="ts">
import { Vue, Options } from "vue-class-component";
2023-01-19 17:59:18 +00:00
import DoorPlacer from "./door_map/DoorPlacer.vue";
2023-01-17 18:25:56 +00:00
@Options({
components: {
2023-01-19 17:59:18 +00:00
DoorPlacer,
2023-01-17 18:25:56 +00:00
},
})
2023-01-19 17:59:18 +00:00
export default class DoorMapEditor extends Vue {
2023-01-19 17:54:46 +00:00
private readonly steps: string[] = ["Platzieren", "Ordnen", "Überprüfen"];
private current_step = 0;
2023-01-17 18:25:56 +00:00
}
</script>