NodeViewChildListGroup.vue 831 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <nav class="node-view-child-list-group">
  3. <b-list-group>
  4. <b-list-group-item
  5. v-for="child in children" :key="child.id"
  6. :variant="child.variant"
  7. href="javascript:;"
  8. @click="$parent.$emit('open-child', { childId: child.id })"
  9. >
  10. {{ $t('variants.' + child.variant) }}
  11. </b-list-group-item>
  12. </b-list-group>
  13. </nav>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'NodeViewChildListGroup',
  18. props: {
  19. children: { type: Array, required: true }
  20. }
  21. }
  22. </script>
  23. <style lang="scss" scoped>
  24. .node-view-child-list-group {
  25. position: relative;
  26. z-index: 1;
  27. .list-group {
  28. font-family: $font-family-base;
  29. font-weight: $font-weight-bold;
  30. @include media-breakpoint-up($size-bp) {
  31. font-size: 1.75rem;
  32. }
  33. &-item {
  34. }
  35. }
  36. }
  37. </style>