All files / src/components/navigation/mcad McadPanel.vue

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37                  29x   4x           29x                                 29x    
<template>
  <v-card
    class="d-flex flex-column"
    color="background"
    flat
    tile
  >
    <DrawerTitle :title="t('labels.mcadTools')" />
    <v-card-text class="d-flex flex-column flex-shrink-0 px-2 pb-1">
      <McadAddObjectBtn />
    </v-card-text>
    <div class="d-flex py-1">
      <McadToggleSortBtn />
      <v-spacer />
      <McadToggleVisibilityBtn />
    </div>
    <v-card-text class="flex-grow-1 px-2 pb-4 pt-0">
      <McadDataTable :items="items" />
    </v-card-text>
  </v-card>
</template>
 
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { DataOverlayMcad } from '@3cr/viewer-types-ts';
 
interface Props {
  items: DataOverlayMcad[];
}
 
withDefaults(defineProps<Props>(), {
  items: () => [],
});
 
const { t } = useI18n();
</script>