s-goods-scroll.vue 757 B

123456789101112131415161718192021222324252627282930313233
  1. <!-- 商品组 - 横向滚动商品(目前暂时没用到) -->
  2. <template>
  3. <view class="goods-scroll-box">
  4. <scroll-view class="scroll-box" scroll-x scroll-anchoring>
  5. <view class="goods-box ss-flex">
  6. <view v-for="(item, index) in list" :key="index">
  7. <s-goods-column
  8. class="goods-card ss-m-l-20"
  9. size="sm"
  10. :data="item"
  11. :titleWidth="200 - marginLeft - marginRight"
  12. />
  13. </view>
  14. </view>
  15. </scroll-view>
  16. </view>
  17. </template>
  18. <script setup>
  19. /**
  20. * 商品组 - 横向滚动商品
  21. */
  22. const props = defineProps({
  23. list: {
  24. type: Array,
  25. default() {
  26. return [];
  27. },
  28. },
  29. });
  30. </script>
  31. <style lang="scss" scoped></style>