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 | 1x 2x 1x | <template> <div> <div class="d-flex justify-content-between"> <p class="text-uppercase">top bundles</p> <p>Today</p> </div> <span v-if="!topTodayBundles.length" >There were no sales during this time</span > <ol v-else class="p-0"> <li v-for="(bundle, index) in topTodayBundles" :key="bundle.id"> <a href="/#" class="d-flex w-100" v-on:click.prevent="openModal('top-bundles-modal', { bundle, index })" > <span class="text-ellipsis">{{ bundle.title }}</span></a > </li> </ol> <TopBundlesModal :modalData="modalData" /> </div> </template> <script> import TopBundlesModal from "./TopBundlesModal.vue"; export default { name: "TopBundles", props: { topTodayBundles: Array, }, data: () => ({ modalData: null, }), components: { TopBundlesModal }, methods: { openModal: function (modal, modalData) { this.modalData = modalData; this.$root.$emit("bv::show::modal", modal); }, }, }; </script> <style scoped> </style> |