improved recipe card

This commit is contained in:
vabene1111
2024-03-22 16:30:37 +01:00
parent f132eacb83
commit f0d0550251
4 changed files with 64 additions and 34 deletions

View File

@@ -1,19 +1,20 @@
<template>
<v-chip color="info" size="x-small" v-for="k in keywords"> {{ k?.label }}</v-chip>
<template v-if="keywords">
<v-chip color="info" size="x-small" v-for="k in keywords"> {{ k.label }}</v-chip>
</template>
</template>
<script lang="ts">
import {Keyword} from "@/openapi";
import {Keyword, KeywordLabel} from "@/openapi";
import {PropType} from "vue";
export default {
name: 'KeywordsBar',
mixins: [],
props: {
keywords: Array as PropType<Array<Keyword>>,
keywords: Array as PropType<Array<Keyword> | Array<KeywordLabel> | undefined>,
},
computed: {},
methods: {}