|
@@ -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>
|