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

update:更新

上级 d4b403ba
...@@ -286,7 +286,7 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -286,7 +286,7 @@ ${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><@compress single_line=true> <#assign detail>
name: '${panelItem.getName()}', name: '${panelItem.getName()}',
caption: '${panelItem.getCaption()}', caption: '${panelItem.getCaption()}',
itemType: '${panelItem.getItemType()}', itemType: '${panelItem.getItemType()}',
...@@ -306,28 +306,28 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -306,28 +306,28 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
vAlignSelf:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getVAlignSelf?? && panelItem.getPSLayoutPos().getVAlignSelf()??>${panelItem.getPSLayoutPos().getVAlignSelf()}</#if>', vAlignSelf:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getVAlignSelf?? && panelItem.getPSLayoutPos().getVAlignSelf()??>${panelItem.getPSLayoutPos().getVAlignSelf()}</#if>',
flexGrow:<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getGrow?? && panelItem.getPSLayoutPos().getGrow()??>${panelItem.getPSLayoutPos().getGrow()}<#else>0</#if>, flexGrow:<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getGrow?? && panelItem.getPSLayoutPos().getGrow()??>${panelItem.getPSLayoutPos().getGrow()}<#else>0</#if>,
flexParams:{align:'<#if panelItem.getFlexAlign?? && panelItem.getFlexAlign()??>${panelItem.getFlexAlign()}</#if>',dir:'<#if panelItem.getFlexDir?? && panelItem.getFlexDir()??>${panelItem.getFlexDir()}</#if>',vAlign:'<#if panelItem.getFlexVAlign?? && panelItem.getFlexVAlign()??>${panelItem.getFlexVAlign()}</#if>'}, flexParams:{align:'<#if panelItem.getFlexAlign?? && panelItem.getFlexAlign()??>${panelItem.getFlexAlign()}</#if>',dir:'<#if panelItem.getFlexDir?? && panelItem.getFlexDir()??>${panelItem.getFlexDir()}</#if>',vAlign:'<#if panelItem.getFlexVAlign?? && panelItem.getFlexVAlign()??>${panelItem.getFlexVAlign()}</#if>'},
panel: this</@compress> panel: this
</#assign> </#assign>
<#if panelItem.getItemType() == 'CONTAINER'> <#if panelItem.getItemType() == 'CONTAINER'>
${panelItem.name}:new PanelContainerModel({ ${detail}<#if panelItem.getPSPanelItems()??>, <@compress single_line=true>${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> details:[<#list panelItem.getPSPanelItems() as childPanelItem>'${childPanelItem.getName()}'<#if childPanelItem_has_next>,</#if></#list>]</#if>})<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'RAWITEM'> <#elseif panelItem.getItemType() == 'RAWITEM'>
${panelItem.name}:new PanelRawitemModel({ ${detail} })<#if panelItem_has_next>,</#if> <@compress single_line=true>${panelItem.name}:new PanelRawitemModel({ ${detail} })<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'FIELD'> <#elseif panelItem.getItemType() == 'FIELD'>
${panelItem.name}:new PanelFieldModel({ ${detail} })<#if panelItem_has_next>,</#if> <@compress single_line=true>${panelItem.name}:new PanelFieldModel({ ${detail} })<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'CONTROL'> <#elseif panelItem.getItemType() == 'CONTROL'>
${panelItem.name}:new PanelControlModel({ ${detail} })<#if panelItem_has_next>,</#if> <@compress single_line=true>${panelItem.name}:new PanelControlModel({ ${detail} })<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'BUTTON'> <#elseif panelItem.getItemType() == 'BUTTON'>
${panelItem.name}:new PanelButtonModel({ ${detail} })<#if panelItem_has_next>,</#if> <@compress single_line=true>${panelItem.name}:new PanelButtonModel({ ${detail} })<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'USERCONTROL'> <#elseif panelItem.getItemType() == 'USERCONTROL'>
${panelItem.name}:new PanelUserControlModel({ ${detail} })<#if panelItem_has_next>,</#if> <@compress single_line=true>${panelItem.name}:new PanelUserControlModel({ ${detail} })<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'TABPANEL'> <#elseif panelItem.getItemType() == 'TABPANEL'>
${panelItem.name}:new PanelTabPanelModel({ ${detail}<#if panelItem.getPSPanelTabPages()??>, <@compress single_line=true>${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> details:[<#list panelItem.getPSPanelTabPages() as tabpage>'${tabpage.getName()}'<#if tabpage_has_next>,</#if></#list>]</#if> })<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'CTRLPOS'> <#elseif panelItem.getItemType() == 'CTRLPOS'>
${panelItem.name}:new PanelCtrlPosModel({ ${detail} })<#if panelItem_has_next>,</#if> <@compress single_line=true>${panelItem.name}:new PanelCtrlPosModel({ ${detail} })<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'TABPAGE'> <#elseif panelItem.getItemType() == 'TABPAGE'>
${panelItem.name}:new PanelTabPageModel({ ${detail} })<#if panelItem_has_next>,</#if> <@compress single_line=true>${panelItem.name}:new PanelTabPageModel({ ${detail} })<#if panelItem_has_next>,</#if></@compress>
</#if> </#if>
</#list> </#list>
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册