All files / components/Admin/AdminBundles/BundlesTable BundleProducts.vue

100% Statements 3/3
100% Branches 2/2
100% Functions 1/1
100% Lines 3/3

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                      1x   2x               1x        
<template>
  <div class="row align-items-center">
    <div v-if="products[0]" class="wrap-img col-5">
      <PreloaderImage :image="products[0].image[0].url" class="p-0" />
    </div>
    <span v-if="products[0] && products[1]">+</span>
    <div v-if="products[1]" class="wrap-img col-5">
      <PreloaderImage :image="products[1].image[0].url" />
    </div>
  </div>
</template>
 
<script>
import PreloaderImage from "~/components/common/PreloaderImage.vue";
 
export default {
  name: "BundleProducts",
  components: { PreloaderImage },
  props: {
    products: Array,
  },
};
</script>
 
<style scoped>
</style>