<#--
  Copyright (c) 2020-Now http://www.j2eefast.com All rights reserved.
  No deletion without permission
  js脚本引入封装
  @author J2eeFAST
  @date 2020-05-20
  @version v1.0.1
-->
<#macro js Libs=""
>
<#-- Bootstrap 3.3.7 -->
<script src="${ctxStatic}/static/libs/bootstrap.min.js"></script>
<#--<script src="${ctxStatic}/static/libs/bootstrap.js"></script>-->
<script src="${ctxStatic}/static/plugins/select2/select2.min.js"></script>
<#--全局遮罩-->
<script src="${ctxStatic}/static/plugins/blockUI/jquery.blockUI.min.js"></script>
<#-- layui-->
<script src="${ctxStatic}/static/plugins/layer/layer.min.js"></script>
<script src="${ctxStatic}/static/plugins/layui/layui.js"></script>
<script src="${ctxStatic}/static/libs/jquery.i18n.properties.min.js"></script>
<script src="${ctxStatic}/static/plugins/iCheck/icheck.min.js"></script>
<#compress>
<#if !(Libs?is_string) && Libs?? && (Libs?size > 0) >
        <#list Libs as x>
            <#if x == "table">
                <#--bootstrap-table 表格插件-->
<#--                <script src="${ctxStatic}/static/plugins/bootstrap-table/bootstrap-table.js?V=${config.getDvVersion()}"></script>-->
                <script src="${ctxStatic}/static/plugins/bootstrap-table/bootstrap-table.min.js?V=${config.getDvVersion()}"></script>
                <script src="${ctxStatic}/static/plugins/bootstrap-table/locale/bootstrap-table-i18n.js"></script>
                <script src="${ctxStatic}/static/plugins/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js"></script>
                <script src="${ctxStatic}/static/plugins/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js"></script>
                <script src="${ctxStatic}/static/plugins/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js"></script>
                <script src="${ctxStatic}/static/libs/jquery.contextMenu.min.js"></script>
                <#if Libs?seq_contains("resizable")>
                <script src="${ctxStatic}/static/plugins/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js"></script>
                </#if>
            </#if>
            <#-- 表单树插件-->
            <#if x == "treeTable">
                <script src="${ctxStatic}/static/plugins/bootstrap-treetable/bootstrap-treetable.min.js?V=${config.getDvVersion()}"></script>
<#--                <script src="${ctxStatic}/static/plugins/bootstrap-treetable/bootstrap-treetable.js?V=${config.getDvVersion()}"></script>-->
            </#if>
            <#-- zTree 树-->
            <#if x == "zTree">
                <script src="${ctxStatic}/static/plugins/ztree/3.5/js/jquery.ztree.all.min.js"></script>
                <script src="${ctxStatic}/static/plugins/ztree/3.5/js/jquery.ztree.exhide.min.js"></script>
            </#if>
            <#-- JSON试图脚本-->
            <#if x == "jsonview">
                <script src="${ctxStatic}/static/plugins/jsonview/jquery.jsonview.js"></script>
            </#if>
            <#-- 页面下拉框-->
            <#if x == "bootstrapSelect">
                <script src="${ctxStatic}/static/plugins/bootstrap-select/bootstrap-select.js"></script>
            </#if>
            <#-- 头像裁剪-->
            <#if x == "cropbox">
                <script src="${ctxStatic}/static/plugins/cropbox/cropbox.js"></script>
            </#if>
            <#if x == "cropper">
                <script src="${ctxStatic}/static/plugins/cropper/cropper.min.js"></script>
            </#if>
            <#-- 页面代码格式化-->
            <#if x == "prism">
                <script src="${ctxStatic}/static/plugins/prism/prism.js"></script>
                <script src="${ctxStatic}/static/plugins/prism/clipboard.min.js"></script>
            </#if>
            <#-- SelectPage 插件-->
            <#if x == "selectPage">
                <script src="${ctxStatic}/static/plugins/selectpage/selectpage.js"></script>
            </#if>
            <#-- summernotef副文本编辑器-->
            <#if x == "summernote">
                <script src="${ctxStatic}/static/plugins/summernote/summernote.js"></script>
                <script src="${ctxStatic}/static/plugins/summernote/summernote-zh-CN.js"></script>
            </#if>
            <#-- 百度富文本编辑器-->
            <#if x == "ueditor">
                <script src="${ctxStatic}/static/plugins/ueditor/1.4.33/ueditor.config.js?V=${config.getDvVersion()}"></script>
                <script src="${ctxStatic}/static/plugins/ueditor/1.4.33/ueditor.all.js"></script>
                <script src="${ctxStatic}/static/plugins/ueditor/1.4.33/lang/zh-cn/zh-cn.js"></script>
            </#if>
            <#-- 工作流流程图画板-->
            <#if x == "bmp">
                <script src="${ctxStatic}/flowable/modeler/display/jquery.qtip.min.js"></script>
                <script src="${ctxStatic}/flowable/modeler/display/raphael.min.js"></script>
                <script src="${ctxStatic}/flowable/modeler/display/bpmn-draw.js"></script>
                <script src="${ctxStatic}/flowable/modeler/display/bpmn-icons.js"></script>
                <script src="${ctxStatic}/flowable/modeler/display/Polyline.js?V=${config.getDvVersion()}"></script>
                <script src="${ctxStatic}/flowable/modeler/display/displaymodel.min.js"></script>
            </#if>
            <#-- 左右布局-->
            <#if x == "layout-latest">
                <script src="${ctxStatic}/static/libs/jquery-ui.min.js"></script>
                <script src="${ctxStatic}/static/plugins/jquery-layout/jquery.layout-latest.min.js"></script>
            </#if>
            <#-- 文件上传-->
            <#if x == "fileupload">
<#--            	<script src="${ctxStatic}/static/plugins/webuploader/0.1.5/webuploader.js"></script>-->
            	<script src="${ctxStatic}/static/plugins/webuploader/0.1.5/webuploader.min.js"></script>
                 <script src="${ctxStatic}/static/plugins/webuploader/0.1.5/webuploader.ex.min.js?V=${config.getDvVersion()}"></script>
<#--				<script src="${ctxStatic}/static/plugins/webuploader/0.1.5/webuploader.ex.js?V=${config.getDvVersion()}"></script>-->
            </#if>
            <#-- 表格拖拽-->
            <#if x == "tableReorder">
                <script src="${ctxStatic}/static/plugins/bootstrap-table/extensions/reorder/bootstrap-table-reorder.js"></script>
                <script src="${ctxStatic}/static/plugins/bootstrap-table/extensions/reorder/jquery.tablednd.js"></script>
            </#if>
            <#-- 高级标记/标签输入插件-->
            <#if x == "tokenfield">
                <script src="${ctxStatic}/static/plugins/tokenfield/bootstrap-tokenfield.js"></script>
            </#if>
            <#if x == "video">
                <script src="${ctxStatic}/static/plugins/video/video.js"></script>
            </#if>
            <#if x == "colorpicker">
                <script src="${ctxStatic}/static/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
            </#if>
            <#if x == "wizard">
                <script src="${ctxStatic}/static/plugins/wizard/jquery.smartWizard.js"></script>
            </#if>
            <#--表格列拖动 -->
            <#if  x == "resizable">
                <script src="${ctxStatic}/static/plugins/bootstrap-table/extensions/resizable/colResizable-1.6.min.js"></script>
            </#if>
            <#-- 可自行扩展, 如果插件有CSS样式请在 cssLibs 相应添加-->
        </#list>
</#if>
<#--<script src="${ctxStatic}/static/js/fastJS.js?V=${config.getDvVersion()}"></script>-->
<script src="${ctxStatic}/static/js/fastJS.min.js?V=${config.getDvVersion()}"></script>
<#-- jquery-validate 表单验证插件 -->
<script src="${ctxStatic}/static/plugins/validate/jquery.validate.min.js"></script>
<script src="${ctxStatic}/static/plugins/validate/jquery.validate.extend.min.js"></script>
<#--VUE-->
<script src="${ctxStatic}/static/libs/vue.min.js"></script>
<#if !(Libs?is_string) && Libs?? && (Libs?size > 0) >
    <#list Libs as x>
        <#if  x == "monaco-editor">
            <script src="${ctxStatic}/static/plugins/monaco-editor/0.21.2/vs/loader.js"></script>
            <script>require.config({ paths: { 'vs': '${ctxStatic}/static/plugins/monaco-editor/0.21.2/vs' } });</script>
            <#break/>
        </#if>
    </#list>
</#if>
</#compress>
</#macro>