12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <div id="mainLeft">
- <el-row>
- <el-col :span="24" class="mainLeft">
- <el-col :span="24" class="info" v-for="(item, index) in mainLeftList" :key="index" :type="item.type">
- <el-link :underline="false">
- <span class="title">{{item.title}}</span>
- </el-link>
- </el-col>
- </el-col>
- <el-col :span="24">
- <el-menu default-active="2" class="el-menu-vertical-demo">
- <el-menu-item index="1">科技要闻</el-menu-item>
- <el-menu-item index="2">学术资讯</el-menu-item>
- <el-menu-item index="3">工作动态</el-menu-item>
- </el-menu>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import { mapActions, mapState } from 'vuex';
- export default {
- name: 'mainLeft',
- props: {
- mainLeftList: null,
- },
- components: {},
- data: () => ({}),
- created() {},
- computed: {
- ...mapState(['subMenu']),
- },
- methods: {},
- };
- </script>
- <style lang="less" scoped>
- .info {
- height: 44px;
- line-height: 44px;
- padding: 0 15px;
- }
- .info .title {
- border-bottom: 1px dashed #ccc;
- display: inline-block;
- height: 40px;
- width: 260px;
- padding: 0 0px;
- }
- </style>
|