1 line
1.3 KiB
JavaScript
1 line
1.3 KiB
JavaScript
|
webpackJsonp([29],{oZaA:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u={name:"sub-menu",props:{menu:{type:Object,required:!0},dynamicMenuRoutes:{type:Array,required:!0}},components:{SubMenu:a},computed:{sidebarLayoutSkin:{get:function(){return this.$store.state.common.sidebarLayoutSkin}}},methods:{gotoRouteHandle:function(e){var n=this.dynamicMenuRoutes.filter(function(n){return n.meta.menuId===e.menuId});n.length>=1&&this.$router.push({name:n[0].name})}}},s={render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.menu.list&&e.menu.list.length>=1?t("el-submenu",{attrs:{index:e.menu.menuId+"","popper-class":"site-sidebar--"+e.sidebarLayoutSkin+"-popper"}},[t("template",{slot:"title"},[t("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:e.menu.icon||""}}),e._v(" "),t("span",[e._v(e._s(e.menu.name))])],1),e._v(" "),e._l(e.menu.list,function(n){return t("sub-menu",{key:n.menuId,attrs:{menu:n,dynamicMenuRoutes:e.dynamicMenuRoutes}})})],2):t("el-menu-item",{attrs:{index:e.menu.menuId+""},on:{click:function(n){e.gotoRouteHandle(e.menu)}}},[t("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:e.menu.icon||""}}),e._v(" "),t("span",[e._v(e._s(e.menu.name))])],1)},staticRenderFns:[]},i=t("VU/8")(u,s,!1,null,null,null),a=n.default=i.exports}});
|