You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
500 B

7 months ago
  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>