first-one.vue 599 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <view class="ss-flex-col">
  3. <view class="goods-box" v-for="item in pagination.data" :key="item.id">
  4. <s-goods-column
  5. size="sl"
  6. :data="item"
  7. @click="sheep.$router.go('/pages/goods/index', { id: item.id })"
  8. ></s-goods-column>
  9. </view>
  10. </view>
  11. </template>
  12. <script setup>
  13. import sheep from '@/sheep';
  14. const props = defineProps({
  15. data: {
  16. type: Object,
  17. default: () => ({}),
  18. },
  19. activeMenu: [Number, String],
  20. pagination: Object,
  21. });
  22. </script>
  23. <style lang="scss" scoped>
  24. .goods-box {
  25. width: 100%;
  26. }
  27. </style>