mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-05 22:28:31 -05:00
steps overview in recipe view
This commit is contained in:
34
vue3/src/components/display/StepsOverview.vue
Normal file
34
vue3/src/components/display/StepsOverview.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<v-container>
|
||||
|
||||
<v-row v-for="(s, i) in steps" >
|
||||
<v-col class="pa-1">
|
||||
<b v-if="s.showAsHeader">{{i}}. {{ s.name }} </b>
|
||||
<IngredientsTable :ingredients="s.ingredients"></IngredientsTable>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {defineComponent, PropType} from 'vue'
|
||||
import {Step} from "@/openapi";
|
||||
import IngredientsTableRow from "@/components/display/IngredientsTableRow.vue";
|
||||
import IngredientsTable from "@/components/display/IngredientsTable.vue";
|
||||
|
||||
export default defineComponent({
|
||||
name: "StepsOverview",
|
||||
components: {IngredientsTable, IngredientsTableRow},
|
||||
props: {
|
||||
steps: {
|
||||
type: [] as PropType<Array<Step>>,
|
||||
default: [],
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user