ImageTitleDescBlock.vue 611 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <div
  3. :class="[
  4. 'ImageTitleDescBlock',
  5. ]"
  6. >
  7. <img :src="image" />
  8. <TitleDescBlock
  9. :title="title"
  10. :desc="desc"
  11. />
  12. </div>
  13. </template>
  14. <script setup lang="ts">
  15. import TitleDescBlock from './TitleDescBlock.vue';
  16. defineProps({
  17. title: {
  18. type: String,
  19. default: ''
  20. },
  21. desc: {
  22. type: String,
  23. default: '' ,
  24. },
  25. image: {
  26. type: String,
  27. default: ''
  28. },
  29. })
  30. </script>
  31. <style lang="scss">
  32. .ImageTitleDescBlock {
  33. display: flex;
  34. flex-direction: row;
  35. padding: 24px;
  36. img {
  37. width: 18%;
  38. margin-right: 24px;
  39. }
  40. }
  41. </style>