CONTROL.tsx#DETAIL_BUTTON.ftl 779 字节
Newer Older
yanshaowei's avatar
yanshaowei committed
1 2 3 4 5 6 7 8
<#ibizinclude>
../@MACRO/CONTROL/LANGBASE.tsx.ftl
</#ibizinclude>
    <i-button type="primary" on-click={($event: any) => this.${item.getName()}_click($event)}
         style="<#if item.getHeight() gt 0>height: ${item.getHeight()?c}px;</#if><#if item.getWidth() gt 0>width: ${item.getWidth()?c}px;</#if>">
        <#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)><i class="${img.getCssClass()}"></i></#if></#if>   
        <#if item.isShowCaption()><span >{<#if item.getCaptionItemName()?? && item.getCaptionItemName()?length gt 0>this.data.${item.getCaptionItemName()}<#else><#if langbase??>this.$t('${langbase}.details.${item.name}')<#else>'${item.getCaption()}'</#if></#if>}</span></#if>
    </i-button>