add NodeViewChildListGroup component

This commit is contained in:
axolotle
2021-06-24 16:14:07 +02:00
parent a25123f4f9
commit a9fd6cf9ab
2 changed files with 42 additions and 0 deletions
@@ -0,0 +1,41 @@
<template>
<nav class="node-view-child-list-group">
<b-list-group>
<b-list-group-item
v-for="child in children" :key="child.id"
:variant="child.variant"
href="javascript:;"
@click="$parent.$emit('open-child', { childId: child.id })"
>
{{ $t('variants.' + child.variant) }}
</b-list-group-item>
</b-list-group>
</nav>
</template>
<script>
export default {
name: 'NodeViewChildListGroup',
props: {
children: { type: Array, required: true }
}
}
</script>
<style lang="scss" scoped>
.node-view-child-list-group {
.list-group {
font-family: $font-family-base;
font-weight: $font-weight-bold;
@include media-breakpoint-up(sm) {
font-size: 1.75rem;
}
&-item {
}
}
}
</style>
+1
View File
@@ -1,4 +1,5 @@
export { default as NodeViewChildList } from './NodeViewChildList'
export { default as NodeViewChildListGroup } from './NodeViewChildListGroup'
export { default as NodeViewTitle } from './NodeViewTitle'
export { default as NodeViewHeaderRef } from './NodeViewHeaderRef'
export { default as NodeViewHeaderProd } from './NodeViewHeaderProd'