提交 d2c179fb 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新菜单方向

上级 98ffa213
...@@ -5,7 +5,24 @@ ...@@ -5,7 +5,24 @@
</app-keep-alive> </app-keep-alive>
</div> </div>
<#else> --> <#else> -->
<#if view.getMainMenuAlign()=="LEFT" || view.getMainMenuAlign()==""> <#if view.getMainMenuAlign()=="TOP">
<app-index-view-layout-top :class="{ [themeClasses]: true, '${srffilepath2(view.getCodeName())}': true<#if view.getPSSysCss?? && view.getPSSysCss()??>, '${view.getPSSysCss().getCssName()}': true</#if> }" :style="themeStyle">
<template #headerLeft>
<img class="app-icon" src="../../../assets/img/logo.png" />
<span class="app-caption">{{$t(model.srfCaption)}}</span>
</template>
<template #headerRight>
${P.getCtrlCode('appmenu', 'CONTROL.html').code}
<app-user></app-user>
<app-message-popover></app-message-popover>
<app-help></app-help>
<app-lang></app-lang>
</template>
<template #navPos>
<router-view></router-view>
</template>
</app-index-view-layout-top>
<#else>
<app-index-view-layout-left :navModel="navModel" :collapseChange="collapseChange" :class="{ [themeClasses]: true, '${srffilepath2(view.getCodeName())}': true<#if view.getPSSysCss?? && view.getPSSysCss()??>, '${view.getPSSysCss().getCssName()}': true</#if> }" :style="themeStyle"> <app-index-view-layout-left :navModel="navModel" :collapseChange="collapseChange" :class="{ [themeClasses]: true, '${srffilepath2(view.getCodeName())}': true<#if view.getPSSysCss?? && view.getPSSysCss()??>, '${view.getPSSysCss().getCssName()}': true</#if> }" :style="themeStyle">
<template #siderTop> <template #siderTop>
<#if view.getAppIconPath() != ""> <#if view.getAppIconPath() != "">
...@@ -39,22 +56,5 @@ ...@@ -39,22 +56,5 @@
</app-keep-alive> </app-keep-alive>
</template> </template>
</app-index-view-layout-left> </app-index-view-layout-left>
<#else>
<app-index-view-layout-top :class="{ [themeClasses]: true, '${srffilepath2(view.getCodeName())}': true<#if view.getPSSysCss?? && view.getPSSysCss()??>, '${view.getPSSysCss().getCssName()}': true</#if> }" :style="themeStyle">
<template #headerLeft>
<img class="app-icon" src="../../../assets/img/logo.png" />
<span class="app-caption">{{$t(model.srfCaption)}}</span>
</template>
<template #headerRight>
${P.getCtrlCode('appmenu', 'CONTROL.html').code}
<app-user></app-user>
<app-message-popover></app-message-popover>
<app-help></app-help>
<app-lang></app-lang>
</template>
<template #navPos>
<router-view></router-view>
</template>
</app-index-view-layout-top>
</#if> </#if>
<#-- </#if> --> <#-- </#if> -->
...@@ -30,7 +30,7 @@ import { appConfig } from '@/config/appConfig'; ...@@ -30,7 +30,7 @@ import { appConfig } from '@/config/appConfig';
* @type {string} * @type {string}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public mode: string ='<#if view.getMainMenuAlign()=="TOP">horizontal</#if><#if view.getMainMenuAlign()=="LEFT" || view.getMainMenuAlign() =="">vertical</#if>'; public mode: string ='<#if view.getMainMenuAlign()=="TOP">horizontal<#else>vertical</#if>';
/** /**
* 导航模式(route:面包屑模式、tab:分页导航模式) * 导航模式(route:面包屑模式、tab:分页导航模式)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册