mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-05 06:08:46 -05:00
improved recipe card
This commit is contained in:
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user