All files / src/components/about_inspection/general_information GeneralInformationSize.vue

0% Statements 0/15
0% Branches 0/4
0% Functions 0/7
0% Lines 0/15

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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85                                                                                                                                                                         
<template>
    <v-card class="flex-grow-1 d-flex flex-column ">
 
                    <v-card-title class="text-h6 text-center text-uppercase">
                      {{title}} 
                    </v-card-title>
                    <template v-if="Object.keys(size).length > 0">
                      <!-- <v-card-text class="text-h2 text-center">
                       
                        <vue3-autocounter
                          ref="counter"
                          :startAmount="0"
                          :endAmount="size.statesize"
                          :duration="2"
                        />
                      </v-card-text> -->

                      <!-- <v-card-subtitle class="text-center"
                        >по состоянию на
                        {{
                          new Date(size.date_created).toLocaleDateString(
                            "ru-RU"
                          )
                        }}
                      </v-card-subtitle> -->
                      <v-card
                        class="h-100 flex-column d-flex align-center justify-center text-center elevation-0"
                      >
                      <vue3-autocounter
                          class="text-h2 font-weight-regular pb-2"
                          ref="counter"
                          :startAmount="0"
                          :endAmount="size.size"
                          :duration="2"
                        />
                      <!-- <v-card-text class="text-h2 text-center">
                      <vue3-autocounter
                      
                          ref="counter"
                          :startAmount="0"
                          :endAmount="size.size"
                          :duration="2"
                        />
                      </v-card-text> -->
                  
                      </v-card>
                      <v-card-subtitle class="text-center"
                        >по состоянию на
                        {{
                          new Date(size.date_created).toLocaleDateString(
                            "ru-RU"
                          )
                        }}
                      </v-card-subtitle>
                    </template>
                    <template v-else>
                      <v-card
                        class="h-100 d-flex align-center justify-center text-center"
                      >
                        <span class="text-subtitle-1 text-grey"
                          >Данных нет</span
                        >
                      </v-card>
                     
                    </template>
                  </v-card>
</template>
 
<script>
export default {
  props: {
    title: {
        type: String,
        default: ''
    },
    size: {
      type: Object,
      default: () => {},
    },
  },
};
</script>
 
<style></style>