码迷,mamicode.com
首页 > Web开发 > 详细

topjui.core.js

时间:2019-07-30 14:21:59      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:nav   info   操作权限   data-   ati   arc   sel   uid   tty   

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;

 

topjui.core.js

标签:nav   info   操作权限   data-   ati   arc   sel   uid   tty   

原文地址:https://www.cnblogs.com/Jeely/p/11269665.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!