提交 db56b8d9 编写于 作者: Mosher's avatar Mosher

update:更新树导航

上级 c46c93eb
...@@ -14,15 +14,15 @@ ...@@ -14,15 +14,15 @@
</@ibizindent> </@ibizindent>
<#-- END:视图顶部视图消息 --> <#-- END:视图顶部视图消息 -->
<div class='content-container'> <div class='content-container'>
<split v-model="split" mode="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">horizontal<#else>vertical</#if>" @on-move-end="onSplitChange"> <split v-model="split" mode="horizontal" @on-move-end="onSplitChange">
<template slot="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">left<#else>top</#if>"> <template slot="left">
<#if view.hasPSControl('treeexpbar')> <#if view.hasPSControl('treeexpbar')>
<@ibizindent blank=12> <@ibizindent blank=12>
${P.getCtrlCode('treeexpbar', 'CONTROL.html').code}<#t> ${P.getCtrlCode('treeexpbar', 'CONTROL.html').code}<#t>
</@ibizindent> </@ibizindent>
</#if> </#if>
</template> </template>
<template slot="<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">right<#else>bottom</#if>"> <template slot="right">
<component <component
v-if="navItem && navItem.navView" v-if="navItem && navItem.navView"
:is="navItem.navView" :is="navItem.navView"
......
...@@ -54,21 +54,12 @@ ...@@ -54,21 +54,12 @@
if (this.$store.getters.getViewSplit(this.viewUID)) { if (this.$store.getters.getViewSplit(this.viewUID)) {
this.split = this.$store.getters.getViewSplit(this.viewUID); this.split = this.$store.getters.getViewSplit(this.viewUID);
} else { } else {
<#if view.getSideBarLayout()?? && view.getSideBarLayout() == "LEFT">
const containerWidth = (this.$el as any).offsetWidth; const containerWidth = (this.$el as any).offsetWidth;
<#list view.getPSControls() as singleCtrl> <#list view.getPSControls() as singleCtrl>
<#if singleCtrl.getControlType() == 'TREEEXPBAR' && singleCtrl.getWidth()??> <#if singleCtrl.getControlType() == 'TREEEXPBAR' && singleCtrl.getWidth()??>
this.split = ${singleCtrl.getWidth()?c} / containerWidth; this.split = ${singleCtrl.getWidth()?c} / containerWidth;
</#if> </#if>
</#list> </#list>
<#else>
const containerHeight = (this.$el as any).offsetHeight;
<#list view.getPSControls() as singleCtrl>
<#if singleCtrl.getControlType() == 'TREEEXPBAR' && singleCtrl.getHeight()??>
this.split = ${singleCtrl.getHeight()?c} / containerHeight;
</#if>
</#list>
</#if>
this.$store.commit("setViewSplit", { viewUID: this.viewUID, viewSplit: this.split }); this.$store.commit("setViewSplit", { viewUID: this.viewUID, viewSplit: this.split });
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册