AdvertisingLeftButton.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div class="adver">
  3. <div class="adver-name">
  4. <span>{{ adver.name }}</span>
  5. </div>
  6. <div class="adver-icon">
  7. <img src="../assets/svg/right.svg" width="24" height="24">
  8. </div>
  9. </div>
  10. </template>
  11. <script setup lang="ts">
  12. import {AdverLeft} from "../entity/AdverLeft.ts";
  13. const props = defineProps({
  14. adver: {
  15. type: AdverLeft,
  16. required: true
  17. }
  18. })
  19. </script>
  20. <style scoped lang="scss">
  21. .adver {
  22. margin: 0;
  23. padding: 0;
  24. width: 268px;
  25. display: flex;
  26. justify-content: space-between;
  27. height: 40px;
  28. cursor: pointer;
  29. &:hover .adver-name span {
  30. text-decoration: underline;
  31. }
  32. .adver-name {
  33. margin-left: 19px;
  34. display: inline-block;
  35. width: 228px;
  36. height: 40px;
  37. align-items: start;
  38. justify-content: space-between;
  39. vertical-align: top;
  40. text-align: left;
  41. span {
  42. line-height: 40px;
  43. text-decoration: none;
  44. color: #333333;
  45. }
  46. }
  47. .adver-icon {
  48. display: inline-block;
  49. align-items: end;
  50. justify-content: space-between;
  51. width: 40px;
  52. height: 40px;
  53. img {
  54. height: 12px;
  55. margin-top: 14px;
  56. align-items: center;
  57. vertical-align: middle;
  58. line-height: 40px;
  59. }
  60. }
  61. }
  62. </style>