const JDTabModuleList = `
<div class="cd-module-list-wrapper">
    <div class="cd-tab-module-selected J_module_selected">
        {{if tabModuleSelected.length != 0}}
            {{each tabModuleSelected item index}}
                <a href="javascript:;" mode-instanceid="{{item.instanceId}}" module-id="{{item.moduleId}}" template-id="{{item.templateId}}" title="{{item.moduleName}}" draggable="true"><i class="cd-icons cd-icons-tab-module-del cd-tab-module-close"></i><span>{{item.moduleName}}</span></a>
            {{/each}}
        {{/if}}
        <p class="cd-tab-no-data {{if tabModuleSelected.length > 0}}hide{{/if}}">从下面选择模块点击添加，最多添加{{maxSelected}}个</p>
    </div>
    <div class="cd-module-list J_module_item">
       {{each tabModuleList item index}}
            {{if item.middleTemplateId || item.midTemplateId}}
                <a href="javascript:;" module-id="{{item.moduleId}}" template-id="{{item.middleTemplateId || item.midTemplateId}}" title="{{item.moduleName}}"><i class="cd-icons cd-icons-tab-module-del cd-tab-module-close"></i><span>{{item.moduleName}}</span></a>
            {{else}}
                <a href="javascript:;" module-id="{{item.moduleId || item.id}}" title="{{item.moduleName || item.name}}" template-id="{{item.defTempId}}"><i class="cd-icons cd-icons-tab-module-del cd-tab-module-close"></i><span>{{item.moduleName || item.name}}</span></a>
            {{/if}}
       {{/each}}
    </div>
    <div class="add-module-tips">最多选择{{maxSelected}}个模块</div>
</div>`;
export {JDTabModuleList}