You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 rivejä
1.3 KiB
42 rivejä
1.3 KiB
<template>
|
|
<el-menu
|
|
:default-active="activeIndex"
|
|
class="el-menu-demo"
|
|
mode="horizontal"
|
|
background-color="#545c64"
|
|
text-color="#fff"
|
|
active-text-color="#ffd04b"
|
|
router="true"
|
|
@select="handleSelect"
|
|
>
|
|
<el-menu-item index="1" route="/chg">股票情绪</el-menu-item>
|
|
<el-menu-item index="2" route="/plate">板块周期</el-menu-item>
|
|
<!-- <el-sub-menu index="2">-->
|
|
<!-- <template #title>测试菜单</template>-->
|
|
<!-- <el-menu-item index="2-1">item one</el-menu-item>-->
|
|
<!-- <el-menu-item index="2-2">item two</el-menu-item>-->
|
|
<!-- <el-menu-item index="2-3">item three</el-menu-item>-->
|
|
<!-- <el-sub-menu index="2-4">-->
|
|
<!-- <template #title>item four</template>-->
|
|
<!-- <el-menu-item index="2-4-1">item one</el-menu-item>-->
|
|
<!-- <el-menu-item index="2-4-2">item two</el-menu-item>-->
|
|
<!-- <el-menu-item index="2-4-3">item three</el-menu-item>-->
|
|
<!-- </el-sub-menu>-->
|
|
<!-- </el-sub-menu>-->
|
|
<el-menu-item index="3" disabled>无用菜单</el-menu-item>
|
|
</el-menu>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ref } from 'vue'
|
|
const activeIndex = ref('1')
|
|
|
|
const handleSelect = (key: string, keyPath: string[]) => {
|
|
console.log(key, keyPath)
|
|
}
|
|
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
|
|
</style>
|
|
|