提交 181b01f9 编写于 作者: tony001's avatar tony001

add:自定义布局 - a5

上级 6749d8da
...@@ -2,11 +2,9 @@ ...@@ -2,11 +2,9 @@
./VIEW_LAYOUTPANEL/VIEW_LAYOUTPANEL_RENDER.vue.ftl ./VIEW_LAYOUTPANEL/VIEW_LAYOUTPANEL_RENDER.vue.ftl
</#ibizinclude> </#ibizinclude>
<template> <template>
<#if view.getPSViewLayoutPanel()??> <#if view.getPSViewLayoutPanel()?? && view.getPSViewLayoutPanel().isUseDefaultLayout()>
<#if view.getPSViewLayoutPanel().isUseDefaultLayout()> ${P.getLayoutCode('VIEW.vue').code}
${P.getLayoutCode('VIEW.vue').code} <#else>
<#else> <@renderRootElement viewLayout=view.getPSViewLayoutPanel() />
<@renderRootElement viewLayout=view.getPSViewLayoutPanel() />
</#if>
</#if> </#if>
</template> </template>
\ No newline at end of file
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
<#-- 绘制顶层元素 --> <#-- 绘制顶层元素 -->
<#macro renderRootElement viewLayout> <#macro renderRootElement viewLayout>
<#if viewLayout.getPSLayout()?? && viewLayout.getPSLayout().getLayout()?? viewLayout.getPSLayout().getLayout() == "FLEX"> <#if viewLayout.getPSLayout()?? && viewLayout.getPSLayout().getLayout()?? viewLayout.getPSLayout().getLayout() == "FLEX">
<#assign rootStyle = "height: '100%'; width: '100%';'display': 'flex';'flex-direction': 'column';"> <#assign rootStyle = "height: '100%'; width: '100%';'display': 'flex';'flex-direction': 'column';" />
<#else> <#else>
<#assign rootStyle = "height: '100%'; width: '100%'; 'overflow': 'auto';"> <#assign rootStyle = "height: '100%'; width: '100%'; 'overflow': 'auto';" />
</#if> </#if>
<div class="app-view-layout" style="${rootStyle}"> <div class="app-view-layout" style="${rootStyle}">
<#if viewLayout.getRootPSPanelItems()??> <#if viewLayout.getRootPSPanelItems()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册