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

update:自定义布局

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