s-image-block.vue 500 B

123456789101112131415161718192021222324252627
  1. <!-- 装修图文组件:图片展示 -->
  2. <template>
  3. <view @tap="sheep.$router.go(data?.url)">
  4. <su-image :src="sheep.$url.cdn(data.imgUrl)" mode="widthFix" />
  5. </view>
  6. </template>
  7. <script setup>
  8. /**
  9. * 图片组件
  10. */
  11. import sheep from '@/sheep';
  12. // 接收参数
  13. const props = defineProps({
  14. data: {
  15. type: Object,
  16. default: () => ({}),
  17. },
  18. styles: {
  19. type: Object,
  20. default: () => ({}),
  21. },
  22. });
  23. </script>
  24. <style lang="scss" scoped></style>