listNews.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="listNewsBox">
  3. <editBtn :id="id" :sort="sort" :type="1" :size="5"/>
  4. <div class="listNewsTitle">
  5. <div class="listNewsStyleBorder">新闻列表标题</div>
  6. </div>
  7. <ul class="listNewsUl">
  8. <li>
  9. <a href="javascript:;">资讯标题资讯标题资讯标题资讯标题资讯标题</a>
  10. <div>11-29</div>
  11. </li>
  12. <li>
  13. <a href="javascript:;">资讯标题资讯标题资讯标题资讯标题资讯标题</a>
  14. <div>11-29</div>
  15. </li>
  16. <li>
  17. <a href="javascript:;">资讯标题资讯标题资讯标题资讯标题资讯标题</a>
  18. <div>11-29</div>
  19. </li>
  20. <li>
  21. <a href="javascript:;">资讯标题资讯标题资讯标题资讯标题资讯标题</a>
  22. <div>11-29</div>
  23. </li>
  24. <li>
  25. <a href="javascript:;">资讯标题资讯标题资讯标题资讯标题资讯标题</a>
  26. <div>11-29</div>
  27. </li>
  28. </ul>
  29. </div>
  30. </template>
  31. <script>
  32. import editBtn from '../../../public/editBtn.vue'
  33. export default {
  34. components: {
  35. editBtn
  36. },
  37. props: {
  38. id:{
  39. type:Number,
  40. default:0
  41. },
  42. sort:{
  43. type:Number,
  44. default:0
  45. }
  46. },
  47. data() {
  48. return {
  49. activeName:"first"
  50. };
  51. },
  52. methods: {
  53. handleClick(tab, event) {
  54. console.log(tab, event);
  55. }
  56. },
  57. mounted() {
  58. },
  59. };
  60. </script>
  61. <style scoped lang="less">
  62. .listNewsBox {
  63. position: relative;
  64. .listNewsTitle {
  65. color: #19499F;
  66. font-size: 22px;
  67. display: flex;
  68. align-items: center;
  69. justify-content: space-between;
  70. border-bottom: 1px solid #D9D9D9;
  71. .listNewsStyleBorder {
  72. border-bottom: 2px solid #19499F;
  73. padding-bottom: 18px;
  74. padding-top: 18px;
  75. }
  76. }
  77. .listNewsUl {
  78. padding: 0;
  79. li {
  80. list-style-type: none;
  81. height: 20px;
  82. padding: 0;
  83. display: flex;
  84. align-items: center;
  85. justify-content: space-between;
  86. margin-bottom: 10px;
  87. a {
  88. display: block;
  89. background: url('../../../../../assets/template/component/listyle.png') no-repeat left center;
  90. box-sizing: border-box;
  91. padding-left: 20px;
  92. white-space: nowrap;
  93. overflow: hidden;
  94. text-overflow: ellipsis;
  95. flex: 1;
  96. font-size: 16px;
  97. }
  98. div {
  99. color: #999;
  100. width: 50px;
  101. }
  102. }
  103. }
  104. }
  105. </style>