CONTROL.tsx#ITEM_BUTTON.ftl 1.3 KB
Newer Older
yanshaowei's avatar
yanshaowei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<#assign selfContent>
<i-button type="primary" long on-click={($event: any) => this.${item.name}_click($event)} <#if item.getHeight() gt 0> style="height: ${item.getHeight()?c}px;"</#if>>
    <#if item.getPSSysImage()??>
    <#assign image = item.getPSSysImage()>
    <i class="${image.getCssClass()}"></i>
    </#if>
    <#if item.isShowCaption()>
    <span<#if item.getLabelPSSysCss()??> class="${item.getLabelPSSysCss().getCssName()}"</#if><#if item.getLabelPSSysCss()??> style="${item.getLabelPSSysCss().getRawCssStyle()}"</#if>>${item.getCaption()}</span>
    </#if>
</i-button>
</#assign>

<#ibizinclude>
./@MACRO/PLAYOUT.tsx.ftl
</#ibizinclude>
<#if item.getParentLayoutMode()=='FLEX'>
<div style="${flexAttr}<#if item.getWidth() gt 0>width: ${item.getWidth()?c}px;</#if><#if item.getPSSysCss()??>${item.getPSSysCss().getRawCssStyle()}</#if>" class="app-layoutpanel-button<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>">
    ${content}
</div>
<#else>
<i-col ${tableAttr} style="${flexAttr}<#if item.getWidth() gt 0>width: ${item.getWidth()?c}px;</#if><#if item.getPSSysCss()??>${item.getPSSysCss().getRawCssStyle()}</#if>" class="app-layoutpanel-button<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>">
    ${content}
</i-col>
</#if>