mainLeft.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <div id="mainLeft">
  3. <el-row>
  4. <el-col :span="24" class="mainLeft">
  5. <el-col :span="24" class="info" v-for="(item, index) in mainLeftList" :key="index" :type="item.type">
  6. <el-link :underline="false">
  7. <span class="title">{{item.title}}</span>
  8. </el-link>
  9. </el-col>
  10. </el-col>
  11. <el-col :span="24">
  12. <el-menu default-active="2" class="el-menu-vertical-demo">
  13. <el-menu-item index="1">新闻资讯1</el-menu-item>
  14. <el-menu-item index="2">新闻资讯2</el-menu-item>
  15. <el-menu-item index="3">新闻资讯3</el-menu-item>
  16. </el-menu>
  17. </el-col>
  18. </el-row>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. name: 'mainLeft',
  24. props: {
  25. mainLeftList: null,
  26. },
  27. components: {},
  28. data: () => ({}),
  29. created() { },
  30. computed: {},
  31. methods: {},
  32. };
  33. </script>
  34. <style lang="less" scoped>
  35. .info {
  36. height: 44px;
  37. line-height: 44px;
  38. padding: 0 15px;
  39. }
  40. .info .title {
  41. border-bottom: 1px dashed #ccc;
  42. display: inline-block;
  43. height: 40px;
  44. width: 260px;
  45. padding: 0 0px;
  46. }
  47. </style>