s-block-item.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view>
  3. <s-image-block v-if="type === 'imageBlock'" :data="data" :styles="styles" />
  4. <s-image-banner v-if="type === 'imageBanner'" :data="data" :styles="styles" />
  5. <s-video-block v-if="type === 'videoPlayer'" :data="data" :styles="styles" />
  6. <s-image-cube v-if="type === 'imageCube'" :data="data" :styles="styles" />
  7. <s-notice-block v-if="type === 'noticeBlock'" :data="data" />
  8. <s-search-block v-if="type === 'searchBlock'" :data="data" :navbar="false" />
  9. <s-title-block v-if="type === 'titleBlock'" :data="data" :styles="styles" />
  10. <s-line-block v-if="type === 'lineBlock'" :data="data" />
  11. <s-menu-button v-if="type === 'menuButton'" :data="data" :styles="styles" />
  12. <s-menu-list v-if="type === 'menuList'" :data="data" />
  13. <s-menu-grid v-if="type === 'menuGrid'" :data="data" />
  14. <s-user-card v-if="type === 'userCard'" />
  15. <s-wallet-card v-if="type === 'walletCard'" />
  16. <s-order-card v-if="type === 'orderCard'" :data="data" />
  17. <s-coupon-card v-if="type === 'couponCard'" />
  18. <s-goods-card v-if="type === 'goodsCard'" :data="data" :styles="styles" />
  19. <s-score-block v-if="type === 'scoreGoods'" :data="data" :styles="styles" />
  20. <s-goods-shelves v-if="type === 'goodsShelves'" :data="data" :styles="styles" />
  21. <s-coupon-block v-if="type === 'coupon'" :data="data" :styles="styles"></s-coupon-block>
  22. <s-live-block v-if="type === 'mplive'" :data="data" :styles="styles"></s-live-block>
  23. <s-seckill-block v-if="type === 'seckill'" :data="data" :styles="styles"></s-seckill-block>
  24. <s-groupon-block v-if="type === 'groupon'" :data="data" :styles="styles"></s-groupon-block>
  25. <s-richtext-block v-if="type === 'richtext'" :data="data" :styles="styles"></s-richtext-block>
  26. </view>
  27. </template>
  28. <script setup>
  29. /**
  30. * 装修组件 - 组件集
  31. */
  32. const props = defineProps({
  33. type: {
  34. type: String,
  35. default: '',
  36. },
  37. data: {
  38. type: Object,
  39. default() {},
  40. },
  41. styles: {
  42. type: Object,
  43. default() {},
  44. },
  45. });
  46. function onSearch() {}
  47. </script>
  48. <style></style>