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

update:自定义布局

上级 fb494c8e
...@@ -286,9 +286,28 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -286,9 +286,28 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
*/ */
public layoutModelDetails:any = { public layoutModelDetails:any = {
<#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem> <#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem>
<#assign detail>caption: '${panelItem.getCaption()}', itemType: '${panelItem.getItemType()}',visible: <#if panelItem.getPSPanelItemGroupLogic('PANELVISIBLE')??>false<#else>true</#if>, disabled: false, name: '${panelItem.getName()}', panel: this</#assign> <#assign detail>
name: '${panelItem.getName()}',
caption: '${panelItem.getCaption()}',
itemType: '${panelItem.getItemType()}',
visible: <#if panelItem.getPSPanelItemGroupLogic('PANELVISIBLE')??>false<#else>true</#if>,
disabled: false,
layout:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getLayout()??>${panelItem.getPSLayoutPos().getLayout()}</#if>',
layoutPos:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getLayoutPos()??>${panelItem.getPSLayoutPos().getLayoutPos()}</#if>',
layoutHeight:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getHeight()??>${panelItem.getPSLayoutPos().getHeight()}</#if>',
heightMode:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getHeightMode()??>${panelItem.getPSLayoutPos().getHeightMode()}</#if>',
layoutWidth:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getWidth()??>${panelItem.getPSLayoutPos().getWidth()}</#if>',
widthMode:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getWidthMode()??>${panelItem.getPSLayoutPos().getWidthMode()}</#if>',
spacingBottom:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingBottom()??>${panelItem.getPSLayoutPos().getSpacingBottom()}</#if>',
spacingLeft:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingLeft()??>${panelItem.getPSLayoutPos().getSpacingLeft()}</#if>',
spacingRight:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingRight()??>${panelItem.getPSLayoutPos().getSpacingRight()}</#if>',
spacingTop:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingTop()??>${panelItem.getPSLayoutPos().getSpacingTop()}</#if>',
hAlignSelf:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getHAlignSelf()??>${panelItem.getPSLayoutPos().getHAlignSelf()}</#if>',
vAlignSelf:'<#if panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getVAlignSelf()??>${panelItem.getPSLayoutPos().getVAlignSelf()}</#if>',
panel: this</#assign>
<#if panelItem.getItemType() == 'CONTAINER'> <#if panelItem.getItemType() == 'CONTAINER'>
${panelItem.name}:new PanelContainerModel({ ${detail}<#if panelItem.getPSPanelItems()??>, details:[<#list panelItem.getPSPanelItems() as childPanelItem>'${childPanelItem.getName()}'<#if childPanelItem_has_next>,</#if></#list>]</#if>})<#if panelItem_has_next>,</#if> ${panelItem.name}:new PanelContainerModel({ ${detail}<#if panelItem.getPSPanelItems()??>,
details:[<#list panelItem.getPSPanelItems() as childPanelItem>'${childPanelItem.getName()}'<#if childPanelItem_has_next>,</#if></#list>]</#if>})<#if panelItem_has_next>,</#if>
<#elseif panelItem.getItemType() == 'RAWITEM'> <#elseif panelItem.getItemType() == 'RAWITEM'>
${panelItem.name}:new PanelRawitemModel({ ${detail} })<#if panelItem_has_next>,</#if> ${panelItem.name}:new PanelRawitemModel({ ${detail} })<#if panelItem_has_next>,</#if>
<#elseif panelItem.getItemType() == 'FIELD'> <#elseif panelItem.getItemType() == 'FIELD'>
...@@ -300,7 +319,8 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -300,7 +319,8 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
<#elseif panelItem.getItemType() == 'USERCONTROL'> <#elseif panelItem.getItemType() == 'USERCONTROL'>
${panelItem.name}:new PanelUserControlModel({ ${detail} })<#if panelItem_has_next>,</#if> ${panelItem.name}:new PanelUserControlModel({ ${detail} })<#if panelItem_has_next>,</#if>
<#elseif panelItem.getItemType() == 'TABPANEL'> <#elseif panelItem.getItemType() == 'TABPANEL'>
${panelItem.name}:new PanelTabPanelModel({ ${detail}<#if panelItem.getPSPanelTabPages()??>, details:[<#list panelItem.getPSPanelTabPages() as tabpage>'${tabpage.getName()}'<#if tabpage_has_next>,</#if></#list>]</#if> })<#if panelItem_has_next>,</#if> ${panelItem.name}:new PanelTabPanelModel({ ${detail}<#if panelItem.getPSPanelTabPages()??>,
details:[<#list panelItem.getPSPanelTabPages() as tabpage>'${tabpage.getName()}'<#if tabpage_has_next>,</#if></#list>]</#if> })<#if panelItem_has_next>,</#if>
<#elseif panelItem.getItemType() == 'CTRLPOS'> <#elseif panelItem.getItemType() == 'CTRLPOS'>
${panelItem.name}:new PanelCtrlPosModel({ ${detail} })<#if panelItem_has_next>,</#if> ${panelItem.name}:new PanelCtrlPosModel({ ${detail} })<#if panelItem_has_next>,</#if>
<#elseif panelItem.getItemType() == 'TABPAGE'> <#elseif panelItem.getItemType() == 'TABPAGE'>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册