AsideImage.vue 632 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <a-popover>
  3. <div class="image-aisde-btn-container">
  4. <img :src="src" class="image-aside-btn" />
  5. </div>
  6. <template #content>
  7. <img :src="src" class="image-large-view" />
  8. </template>
  9. </a-popover>
  10. </template>
  11. <script setup>
  12. import { ref, computed } from 'vue';
  13. const props = defineProps({
  14. src: String
  15. });
  16. </script>
  17. <style scoped>
  18. .image-aisde-btn-container {
  19. width: 120px;
  20. max-height: 120px;
  21. flex-shrink: 0;
  22. overflow: hidden;
  23. margin-right: 5px;
  24. }
  25. .image-aside-btn {
  26. width: 120px;
  27. max-height: 120px;
  28. }
  29. .image-large-view {
  30. max-width: 540px;
  31. max-height: 540px;
  32. }
  33. </style>