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

add:自定义布局 - a7

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