zyejMAll-mobile/sheep/components/s-goods-scroll/s-goods-scroll.vue
2024-08-07 10:31:42 +08:00

34 lines
757 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 商品组 - 横向滚动商品目前暂时没用到 -->
<template>
<view class="goods-scroll-box">
<scroll-view class="scroll-box" scroll-x scroll-anchoring>
<view class="goods-box ss-flex">
<view v-for="(item, index) in list" :key="index">
<s-goods-column
class="goods-card ss-m-l-20"
size="sm"
:data="item"
:titleWidth="200 - marginLeft - marginRight"
/>
</view>
</view>
</scroll-view>
</view>
</template>
<script setup>
/**
* 商品组 - 横向滚动商品
*/
const props = defineProps({
list: {
type: Array,
default() {
return [];
},
},
});
</script>
<style lang="scss" scoped></style>