CONTROL.html#ITEM_ITEMS.ftl 2.1 KB
Newer Older
1 2 3 4
<#ibizinclude>../@MACRO/FUNC/MACRO.ftl</#ibizinclude>
<#ibizinclude>
../@MACRO/CONTROL/LANGBASE.vue.ftl
</#ibizinclude>
tony001's avatar
tony001 committed
5 6 7 8 9 10
<#if ctrl.getName() != 'toolbar'>
  <#assign ModelsName>${ctrl.getCodeName()?lower_case}Models</#assign>
<#else>
  <#assign ModelsName = 'toolBarModels' />
</#if>
<dropdown v-show="${ModelsName}.${item.name}.visabled" trigger='click'>
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
    <#if item.getTooltip()?? && item.getTooltip() != ''>
    <tooltip :transfer="true" :max-width="600">
        <@badge item>
            <i-button class='<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>'>
                <#if item.isShowIcon()><i class='<#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if></#if>'></i></#if>
                <#if item.isShowCaption()><span class='caption'>{{<#if langbase??>$t('${langbase}.${item.name}.caption')<#else>'${item.getCaption()}'</#if>}}</span></#if>
                <icon type="ios-arrow-down"></icon>
            </i-button>
        </@badge>
        <div slot='content'><#if langbase??>{{<#if langbase??>$t('${langbase}.${item.name}.tip')<#else>'${item.getTooltip()}'</#if>}}</#if></div>
    </tooltip>
    <#else>
        <@badge item>
            <i-button class='<#if item.getPSSysCss()??> ${item.getPSSysCss().getCssName()}</#if>'>
                <#if item.isShowIcon()><i class='<#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if></#if>'></i></#if>
                <#if item.isShowCaption()><span class='caption'>{{<#if langbase??>$t('${langbase}.${item.name}.caption')<#else>'${item.getCaption()}'</#if>}}</span></#if>
                <icon type="ios-arrow-down"></icon>
            </i-button>
        </@badge>
    </#if>
    <#if item.getPSDEToolbarItems()??>
    <dropdown-menu slot='list'>
    <#list item.getPSDEToolbarItems() as toolbarItem>
        <dropdown-item>
            ${P.getPartCode(toolbarItem).code}
        </dropdown-item>
    </#list>
    </dropdown-menu>
    </#if>
</dropdown>