ImageTitleDescBlock.vue 651 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. @use '@/assets/scss/colors.scss' as *;
  33. .ImageTitleDescBlock {
  34. display: flex;
  35. flex-direction: row;
  36. padding: 24px;
  37. img {
  38. width: 18%;
  39. margin-right: 24px;
  40. }
  41. }
  42. </style>