CONTROL-BASE.vue#DETAIL_BUTTON.ftl 1.5 KB
Newer Older
1 2 3 4 5 6 7 8
<#ibizinclude>../@MACRO/FUNC/MACRO.ftl</#ibizinclude>
<#ibizinclude>
../@MACRO/CONTROL/LANGBASE.vue.ftl
</#ibizinclude>
<#if item.render??>
${item.render.code}
<#else>
  <@badge item>
9
    <i-button type="primary" :disabled="detailsModel.${item.getName()}.disabled"  @click="${item.getName()}_click($event)" class="app-form-button<#if item.getPSSysCss?? && item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>"
10
         style="<#if item.getHeight() gt 0>height: ${item.getHeight()?c}px;</#if><#if item.getWidth() gt 0>width: ${item.getWidth()?c}px;</#if>">
11 12 13 14 15 16 17 18 19 20 21 22 23
        <#if item.getPSSysImage()??>
          <#assign img=item.getPSSysImage()>
          <#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>
            <i class="${img.getCssClass()}" style="margin-right: 2px;"></i>
          </#if>
        <#else>
          <#if item.getPSUIAction?? && item.getPSUIAction()?? && item.getPSUIAction().getPSSysImage?? && item.getPSUIAction().getPSSysImage()??>
            <#assign img=item.getPSUIAction().getPSSysImage()>
            <#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>
              <menu-icon :item="{iconcls: '${img.getCssClass()}'}" />
            </#if>
          </#if>
        </#if>  
24 25 26 27
        <#if item.isShowCaption()><span ><#if item.getCaptionItemName()?? && item.getCaptionItemName()?length gt 0>{{data.${item.getCaptionItemName()}}}<#else><#if langbase??>{{$t('${langbase}.details.${item.name}')}}<#else>${item.getCaption()}</#if></#if></span></#if>
    </i-button>
  </@badge>
</#if>