BigTitle_List.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div class="list">
  3. <div class="inner">
  4. <ul>
  5. <li v-for="item in headlinelist1" class="left">
  6. <NuxtLink :to="{path:`/${item.pinyin}/${item.id}.html`}" :title="item.title">{{item.title}}</NuxtLink>
  7. </li>
  8. </ul>
  9. </div>
  10. </div>
  11. </template>
  12. <script setup>
  13. const props = defineProps({
  14. headlinelist1: Object
  15. });
  16. </script>
  17. <style lang="less" scoped>
  18. // 列表
  19. .list {
  20. height: 34px;
  21. margin: 16px 0 20px 0;
  22. .inner {
  23. height: 20px;
  24. margin: 0 auto;
  25. }
  26. ul {
  27. width: auto;
  28. height: 20px;
  29. box-sizing: border-box;
  30. padding-left: 180px;
  31. li:nth-child(1) {
  32. border-right: 1px solid #CCCCCC;
  33. }
  34. >li {
  35. width: 470px;
  36. margin-right: 30px;
  37. >i {
  38. display: inline-block;
  39. width: 13px;
  40. height: 13px;
  41. background-color: #d9d9d9;
  42. border-radius: 7px;
  43. // vertical-align: middle;
  44. margin-right: 10px;
  45. }
  46. >a {
  47. display: inline-block;
  48. width: 460px;
  49. height: 20px;
  50. white-space: nowrap;
  51. overflow: hidden;
  52. text-overflow: ellipsis;
  53. font-family: PingFang SC, PingFang SC;
  54. font-weight: 600;
  55. font-size: 18px;
  56. color: #333333;
  57. line-height: 16px;
  58. text-align: left;
  59. font-style: normal;
  60. text-transform: none;
  61. vertical-align: middle;
  62. }
  63. }
  64. >li:hover>i {
  65. background-color: #139602;
  66. }
  67. >li:hover>a {
  68. color: #139602;
  69. }
  70. }
  71. }
  72. </style>