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

update:自定义布局

上级 d0c4039d
<#-- 按类型绘制 -->
<#macro renderByDetailType panelDetail>
<#if panelDetail.getItemType()?? && panelDetail.getItemType() == "CONTAINER">
<span>容器</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "TABPAGE">
<span>分页部件</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "TABPANEL">
<span>分组容器</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "FIELD">
<span>属性项</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "RAWITEM">
<span>直接内容</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "BUTTON">
<span>按钮</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "CTRLPOS">
<span>部件占位</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "USERCONTROL">
<span>用户自定义控件</span>
<#else>
<span>${panelDetail.getItemType()}暂未支持</span>
</#if>
<#if panelDetail.getItemType()?? && panelDetail.getItemType() == "CONTAINER">
<#-- 边缘布局 -->
<#if panelDetail.getPSLayout().getLayout()?? && panelDetail.getPSLayout().getLayout() == "BORDER" >
<app-scroll-container>
<#if panelDetail.getPSPanelItems()??>
<list panelDetail.getPSPanelItems() as panelItem>
<template #${panelItem.getBorderLayoutPos()}>
<@renderByDetailType panelItem>
</template>
</#list>
</#if>
</app-scroll-container>
<#else>
</#if>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "TABPAGE">
<span>分页部件</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "TABPANEL">
<span>分组容器</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "FIELD">
<span>属性项</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "RAWITEM">
<span>直接内容</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "BUTTON">
<span>按钮</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "CTRLPOS">
<span>部件占位</span>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "USERCONTROL">
<span>用户自定义控件</span>
<#else>
<span>${panelDetail.getItemType()}暂未支持</span>
</#if>
</#macro>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册