Skip to content

Instantly share code, notes, and snippets.

@awave1
Last active August 22, 2018 16:45
Show Gist options
  • Save awave1/2fab536ec4214ef739b80b3359c1ad37 to your computer and use it in GitHub Desktop.
Save awave1/2fab536ec4214ef739b80b3359c1ad37 to your computer and use it in GitHub Desktop.
<template>
<div class="designSelection">
<h5 class='name'>{{ step.name }}</h5>
<div
v-for="section of step.sections"
v-if="section"
class='selectionBody'>
<div
v-for="category of section.categories"
v-if="category.selected">
<span v-if="category.name !== step.name" class="categoryName">{{ category.name }}</span>
<div
v-for="item of category.items"
v-if="item.selected">
<span>{{ item.name }}</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'designSelection',
props: {
step: {
type: Object,
required: true,
},
},
};
</script>
<style lang="scss">
.designSelection {
display: flex;
flex-flow: column;
width: 100%;
margin-bottom: 5px;
h5, h6, span {
margin: 0;
text-transform: capitalize;
}
.name {
background: #f5f5f5;
}
.categoryName {
font-weight: bold;
}
.selectionBody {
margin-left: 10px;
}
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment