temp_item.vue 655 B

12345678910111213141516171819202122232425
  1. <script lang='ts' setup>
  2. defineProps({
  3. item: Object as any,
  4. })
  5. </script>
  6. <template>
  7. <div class="py-40px px-30px bg-#fff text-center b-rd-12px item">
  8. <div class="w-80px flex items-center b-rd-50% bg-#f5f0ff mb-30px justify-center h-80px mx-auto">
  9. <img :src="item.img" alt="" class="w-32px h-32px">
  10. </div>
  11. <h3 class="!mb-10px fw-800 text-24px text-#333 line-clamp-2 lh-40px">
  12. {{ item.title }}
  13. </h3>
  14. <div class="text-16px text-#999 lh-22px line-clamp-2">
  15. {{ item.desc }}
  16. </div>
  17. </div>
  18. </template>
  19. <style lang='less' scoped>
  20. .item {
  21. box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  22. }
  23. </style>