CONTROL-BASE.vue#ITEM_FIELD.ftl 1.6 KB
Newer Older
1 2
<#if !item.isHidden()>
  <#assign selfContent>
3
<div class="item-field">
Shine-zwj's avatar
Shine-zwj committed
4 5 6
<#if item.render??>
${item.render.code}
<#else>
7
    <app-panel-field
ShineKOT's avatar
ShineKOT committed
8 9
      name='${item.name}'
      labelPos='<#if item.getLabelPos?? && item.getLabelPos()??>${item.getLabelPos()}<#else>LEFT</#if>'
Shine-zwj's avatar
Shine-zwj committed
10
      caption="<#if item.getCaption?? && item.getCaption()??>${item.getCaption()}</#if>"
ShineKOT's avatar
ShineKOT committed
11
      :isEmptyCaption="<#if item.isEmptyCaption?? && item.isEmptyCaption()??>${item.isEmptyCaption()?c}<#else>false</#if>"
Shine-zwj's avatar
Shine-zwj committed
12
      :error='detailsModel.${item.name}.error'
ShineKOT's avatar
ShineKOT committed
13 14
      :data='data'
      :value='data.${item.name}'
Shine-zwj's avatar
Shine-zwj committed
15
      :itemRules="rules.${item.name}">
16
    ${P.getEditorCode(item, "PANELEDITOR.vue").code}
17
    </app-panel-field>
Shine-zwj's avatar
Shine-zwj committed
18
</#if>
19
</div>
20
  </#assign>
21 22 23 24

<#ibizinclude>
./@MACRO/PLAYOUT.vue.ftl
</#ibizinclude>
25
  <#if item.getParentLayoutMode()=='FLEX'>
26
<div v-show="detailsModel.${item.name}.visible" style="${flexAttr}<#if item.getWidth() gt 0>width: ${item.getWidth()?c}px;</#if><#if item.getHeight() gt 0>height: ${item.getHeight()?c}px;</#if><#if item.getPSSysCss()??>${item.getPSSysCss().getRawCssStyle()}</#if>" class="app-layoutpanel-field <#if item.getPSSysCss?? && item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>">
27 28
    ${content}
</div>
29
  <#else>
30
<i-col v-show="detailsModel.${item.name}.visible" ${tableAttr} style="${flexAttr}<#if item.getWidth() gt 0>width: ${item.getWidth()?c}px;</#if><#if item.getHeight() gt 0>height: ${item.getHeight()?c}px;</#if><#if item.getPSSysCss()??>${item.getPSSysCss().getRawCssStyle()}</#if>" class="app-layoutpanel-field<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>">
31 32
    ${content}
</i-col>
33
  </#if>
34
</#if>