12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <template>
- <div id="native">
- <el-row>
- <el-menu :default-active="activeIndex2" class="el-menu-demo" mode="horizontal" @select="handleSelect"
- background-color="rgba(0,0,0,0.4)" text-color="#fff" active-text-color="#fff">
- <el-submenu index="1">
- <template slot="title">新闻资讯</template>
- <el-menu-item index="1-1" style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover">新闻资讯
- </el-menu-item>
- <el-menu-item index="1-2" style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover">新闻资讯
- </el-menu-item>
- <el-menu-item index="1-3" style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover">新闻资讯
- </el-menu-item>
- </el-submenu>
- <el-submenu index="2">
- <template slot="title">计算服务</template>
- <el-menu-item index="2-1" style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover">计算服务
- </el-menu-item>
- <el-menu-item index="2-2" style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover">计算服务
- </el-menu-item>
- <el-menu-item index="2-3" style="float: left;height:60px;line-height:60px;font-size:20px;" class="hover">计算服务
- </el-menu-item>
- </el-submenu>
- </el-menu>
- </el-row>
- </div>
- </template>
- <script>
- import { mapActions, mapState, mapMutations } from 'vuex';
- export default {
- name: 'native',
- props: {},
- components: {},
- data: () => ({
- activeIndex2: '1'
- }),
- created() { },
- computed: {
- ...mapState(['menu']),
- },
- methods: {
- turnTo(url) {
- window.open(url);
- },
- handleSelect(key, keyPath) {
- console.log(key, keyPath);
- }
- },
- };
- </script>
- <style lang="less" scoped>
- .hover:hover {
- background-color: #215299 !important;
- }
- /deep/.el-submenu__title {
- font-size: 20px;
- }
- /deep/.el-submenu__title:hover {
- background-color: #215299 !important;
- }
- /deep/.el-menu--horizontal > .el-submenu .el-submenu__icon-arrow {
- display: none;
- }
- </style>
|