CONTROL-BASE.vue#ITEM_CONTAINER.ftl 1.6 KB
Newer Older
1 2 3 4 5
<#assign layout = item.getPSLayout()/>
<#ibizinclude>
./@MACRO/PLAYOUT.vue.ftl
</#ibizinclude>
<#if layout.getLayout()=='FLEX'>
tony001's avatar
tony001 committed
6
<i-col v-show="detailsModel.${item.name}.visible" ${tableAttr} class="app-layoutpanel-container<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>" style="${flexAttr}width:<#if item.getWidth() gt 0>${item.getWidth()?c}px</#if>;height:<#if item.getHeight() gt 0>${item.getHeight()?c}px<#else>100%</#if>;">
7 8 9
  <#if item.render??>
  ${item.render.code}
  <#else>
tony001's avatar
tony001 committed
10
    <div style="height:100%;display: flex;<#if layout.getDir()!="">flex-direction: ${layout.getDir()};</#if><#if layout.getAlign()!="">justify-content: ${layout.getAlign()};</#if><#if layout.getVAlign()!="">align-items: ${layout.getVAlign()};</#if>">
11 12 13 14 15 16 17
      <@ibizindent blank=8>
      <#if item.getPSPanelItems()??>
      <#list item.getPSPanelItems() as panelItem>
      ${P.getPartCode(panelItem).code}
      </#list>
      </#if>
      </@ibizindent>
18
    </div>
19
  </#if>
20
</i-col>
21
<#else>
tony001's avatar
tony001 committed
22
<i-col v-show="detailsModel.${item.name}.visible" ${tableAttr}  class="app-layoutpanel-container<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>" style="${flexAttr}width:<#if item.getWidth() gt 0>${item.getWidth()?c}px</#if>;height:<#if item.getHeight() gt 0>${item.getHeight()?c}px<#else>100%</#if>;">
23 24 25
  <#if item.render??>
  ${item.render.code}
  <#else>
tony001's avatar
tony001 committed
26
    <row style="height:100%;">
27 28 29 30 31 32 33
      <@ibizindent blank=8>
      <#if item.getPSPanelItems()??>
      <#list item.getPSPanelItems() as panelItem>
      ${P.getPartCode(panelItem).code}
      </#list>
      </#if>
      </@ibizindent>
34
    </row>
35
  </#if>
36 37
</i-col>
</#if>