日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

导航无限级菜单 java,Element NavMenu 无限级菜单

發布時間:2025/3/12 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 导航无限级菜单 java,Element NavMenu 无限级菜单 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

數據結構

menudata.json

{"data":[

{

"id": 1,

"path": "/home",

"menuName": "商業數據統計",

"component": "Home",

"childMenu":[{

"id": 2,

"path": "/commercial/dataAccount/Day",

"menuName": "日統計1",

"component": "DataAccountDay"

},

{

"id": 3,

"path": "/commercial/dataAccount/Month",

"menuName": "月統計1",

"component": "DataAccountMonth"

}]

},

{

"id": 4,

"path": "/home",

"menuName": "商業報表中心",

"component": "Home",

"childMenu":[{

"id": 5,

"path": "/commercial/baobiao/Day",

"menuName": "日報表1",

"component": "BaobiaoDay"

},

{

"id": 6,

"path": "/commercial/baobiao/Month",

"menuName": "月報表1",

"component": "BaobiaoMonth"

}]

}

]}

Home.vue

header

router

:default-active="routePath"

unique-opened

background-color="#1f3146"

text-color="#32acca"

active-text-color="#ffd04b"

>

footer

import NavMenu from "@/components/NavMenu.vue";

export default {

data() {

return {

containerHeight: "",

menuData: [],

routePath:"",

currentModuleChinese:"",

user: window.sessionStorage.getItem("user")

};

},

created() {

this.$axios.get("/mock/menudata + ".json").then(res => {-

this.menuData = res.data.data;

});

},

components: { NavMenu },

// watch:{

// $route(){

// console.log(this.$route.path)

// this.routePath = this.$route.path

// }

// },

mounted() {

console.log("mounted")

this.containerHeight = window.innerHeight + "px";

console.log($)

$(window).resize(function() {

console.log("hi")

$("#con").height($(window).height()-2);

});

}

};

.el-header {

background-color: #377fa9;

color: #fff;

height: 50px !important;

line-height: 50px !important;

}

.el-header .left img {

width: 120px;

vertical-align: middle;

}

.el-header .left span {

font-size: 20px;

color: #edf8ff;

margin-left: 15px;

}

.el-header .right {

float: right;

}

.el-header .right a {

color: #fff;

}

.el-aside {

/* color: #32acca !important; */

background: #1f3146 !important;

}

.el-menu {

border-right: none !important;

/* background: #1f3146 !important; */

}

.el-footer {

background: gray;

height: 40px !important;

line-height: 40px !important;

}

.el-footer {

border-top: 1px solid #ccc;

background: #f8fafd;

padding: 10px;

margin-left: 0;

}

.el-footer img {

vertical-align: middle;

width: 65px;

margin-right: 10px;

}

NavMenu.vue

{{item.menuName}}

{{item.menuName}}

總結

以上是生活随笔為你收集整理的导航无限级菜单 java,Element NavMenu 无限级菜单的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。