Added variants base functionality.

This commit is contained in:
2026-01-22 20:13:38 +01:00
parent a87500fb24
commit 95fa29a6b3
10 changed files with 407 additions and 23 deletions
@@ -0,0 +1,43 @@
<script setup lang="ts">
import {useLabelEditorStore} from "~/store/labelEditorStore";
import {originToString} from "~/types/origin";
let store = useLabelEditorStore();
</script>
<template>
<v-container>
<v-card v-if="store.article != null">
<v-card-title>
<v-col>
<v-row>
Varianten
<v-spacer/>
<v-divider :vertical="true"/>
<VariantCreate/>
</v-row>
</v-col>
</v-card-title>
<v-divider/>
<v-card-text
v-for="(variant, index) in store.article.variants"
:key="variant.id"
>
<VariantRow
v-bind:variant="variant"
v-bind:variant-index="index"
/>
<v-divider/>
</v-card-text>
</v-card>
</v-container>
</template>
<style scoped>
</style>