s-image-block.vue 463 B

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