s-block-item.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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-seckill-block v-if="type === 'seckill'" :data="data" :styles="styles"></s-seckill-block>
  23. <s-groupon-block v-if="type === 'groupon'" :data="data" :styles="styles"></s-groupon-block>
  24. <s-richtext-block v-if="type === 'richtext'" :data="data" :styles="styles"></s-richtext-block>
  25. </view>
  26. </template>
  27. <script setup>
  28. /**
  29. * 装修组件 - 组件集
  30. */
  31. const props = defineProps({
  32. type: {
  33. type: String,
  34. default: '',
  35. },
  36. data: {
  37. type: Object,
  38. default() {},
  39. },
  40. styles: {
  41. type: Object,
  42. default() {},
  43. },
  44. });
  45. function onSearch() {}
  46. </script>
  47. <style></style>