You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.7 KiB

2 years ago
  1. <template>
  2. <v-row>
  3. <v-col class="hidden-sm-and-down" cols="12">
  4. <v-carousel height="182" v-model="model" :show-arrows="false" cycle hide-delimiters class="abc">
  5. <v-carousel-item v-for="(item, index) in items" :key="index">
  6. <!--a :href="item.url" target="_top"><v-img class="border-radius-20" width="364" height="182" :src="item.image" ></v-img></a-->
  7. <v-img class="border-radius-20" width="364" height="182" :src="item.image"></v-img>
  8. </v-carousel-item>
  9. </v-carousel>
  10. </v-col>
  11. <v-col class="pt-1 hidden-sm-and-down" align="center" cols="12">
  12. <span v-for="(item, index) in items" :key="index">
  13. <unicon name="circle" width="8" height="8" :fill="model == index ? '#EE9546' : '#F7EDE4'"
  14. icon-style="monochrome" class="mr-3" @click="model = index"></unicon>
  15. </span>
  16. </v-col>
  17. <v-col class="hidden-md-and-up">
  18. <v-slide-group center-active>
  19. <v-slide-item v-for="(ad, index) in items" :key="index">
  20. <v-card class="mx-4 rounded-xl" :height="$vuetify.breakpoint.sm ? 150 : 120"
  21. :width="$vuetify.breakpoint.sm ? 300 : 240">
  22. <v-img :height="$vuetify.breakpoint.sm ? 150 : 120" :width="$vuetify.breakpoint.sm ? 300 : 240"
  23. :src="ad.image" class="rounded-xl"></v-img>
  24. </v-card>
  25. </v-slide-item>
  26. </v-slide-group>
  27. </v-col>
  28. </v-row>
  29. </template>
  30. <script>
  31. export default {
  32. name: "ExhibitionAD",
  33. props: {
  34. items: {
  35. type: Array,
  36. default: () => [],
  37. },
  38. },
  39. data() {
  40. return {
  41. model: 0,
  42. };
  43. },
  44. };
  45. </script>
  46. <style lang="scss" scoped>
  47. :deep() {
  48. .v-slide-group__content {
  49. margin-left: 12px;
  50. }
  51. }
  52. </style>