• topjui.core.js


    var defaultConfig = {
        pageLoadComplete: false,
        config: {
            ctx: "",
            mainPage: false,
            pkName: "uuid"
        },
        language: {
            message: {
                showType: {
                    slide: "slide",
                    fade: "fade",
                    show: "show"
                },
                title: {
                    operationTips: "操作提示",
                    confirmTips: "确认提示"
                },
                msg: {
                    success: "操作成功",
                    failed: "操作失败",
                    error: "未知错误",
                    checkSelfGrid: "请先勾选要操作的数据前的复选框",
                    selectSelfGrid: "请先选中要操作的数据",
                    selectParentGrid: "请先选中主表中要操作的一条数据",
                    permissionDenied: "对不起,你没有操作权限",
                    confirmDelete: "你确定要删除所选的数据吗?"
                },
                icon: {
                    error: "error",
                    question: "question",
                    info: "info",
                    warning: "warning"
                }
            }
        },
        eventType: {
            //initUI     : 'topjui.initForm',         // When document load completed or ajax load completed, B-JUI && Plugins init
            initUI: {
                base: 'topjui.initUI.base',
                dialog: 'topjui.initUI.dialog',
                base2: 'topjui.initUI.base2',
                echarts: 'topjui.initUI.echarts',
                form: 'topjui.initUI.form',
                advanceSearchForm: 'topjui.initUI.advanceSearchForm',
                importExcelForm: 'topjui.initUI.importExcelForm'
            },
            beforeInitUI: 'topjui.beforeInitUI',   // If your DOM do not init [add to DOM attribute 'data-noinit="true"']
            afterInitUI: 'topjui.afterInitUI',    //
            ajaxStatus: 'topjui.ajaxStatus',     // When performing ajax request, display or hidden progress bar
            resizeGrid: 'topjui.resizeGrid',     // When the window or dialog resize completed
            beforeAjaxLoad: 'topjui.beforeAjaxLoad', // When perform '$.fn.ajaxUrl', to do something...
    
            beforeLoadNavtab: 'topjui.beforeLoadNavtab',
            beforeLoadDialog: 'topjui.beforeLoadDialog',
            afterLoadNavtab: 'topjui.afterLoadNavtab',
            afterLoadDialog: 'topjui.afterLoadDialog',
            beforeCloseNavtab: 'topjui.beforeCloseNavtab',
            beforeCloseDialog: 'topjui.beforeCloseDialog',
            afterCloseNavtab: 'topjui.afterCloseNavtab',
            afterCloseDialog: 'topjui.afterCloseDialog'
        }
    };
    topJUI = $.extend(true, defaultConfig, topJUI);
    
    /* TopJUI默认属性 */
    var defaultHeight = 34;
    $.fn.switchbutton.defaults.height = defaultHeight;
    $.fn.textbox.defaults.height = defaultHeight;
    $.fn.passwordbox.defaults = defaultHeight;
    $.fn.combo.defaults.height = defaultHeight;
    $.fn.combobox.defaults.height = defaultHeight;
    $.fn.combotree.defaults.height = defaultHeight;
    $.fn.combogrid.defaults.height = defaultHeight;
    $.fn.combotreegrid.defaults.height = defaultHeight;
    $.fn.numberbox.defaults = defaultHeight;
    $.fn.datebox.defaults = defaultHeight;
    $.fn.datetimebox.defaults = defaultHeight;
    $.fn.spinner.defaults = defaultHeight;
    $.fn.numberspinner.defaults.height = defaultHeight;
  • 相关阅读:
    【Android编译】各个模块编译方法
    【Android调试遇到的问题总结】手机com口无法识别
    【Android编译error】error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
    【Open-JDK】配置java的Open-JDK环境
    【Log】java文件中直接加log的方法
    【BT+Log】BT抓取log方法以及log级别修改(HCI+Logcat)
    【Bluetooth】获取蓝牙地址的6种方法,及btnvtool工具使用
    【adb】adb shell 查看 APK 信息(权限等)
    【NFC】NFC Tag和NFC CE(Card Emulation)区别
    【Wifi】adb命令打开/关闭蓝牙、NFC(bluetooth)开关
  • 原文地址:https://www.cnblogs.com/Jeely/p/11269665.html
Copyright © 2020-2023  润新知