cloud-manage-new/src/main/resources/templates/minimanage/Scripts/scripts/pagetree.js

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

mini.PagerTree = function () {
    mini.PagerTree.superclass.constructor.call(this);
    mini.addClass(this.el, 'mini-tree');
    mini.addClass(this.el, 'mini-treegrid');

    this._Expander = new mini._PagerTree_Expander(this);

    this._collapseNodes = [];
    this.on("beforeload", this.__OnBeforeLoad, this);
};
mini.extend(mini.PagerTree, mini.DataGrid, {

    uiCls: 'mini-pagertree',
    treeColumn: '',

    idField: 'id',

    showTreeIcon: true,                 //节点图标
    iconField: "iconCls",
    imgField: 'img',
    imgPath: '',

    leafIconCls: "mini-tree-leaf",
    folderIconCls: "mini-tree-folder",
    _expandNodeCls: "mini-tree-expand",
    _collapseNodeCls: "mini-tree-collapse",
    _eciconCls: "mini-tree-node-ecicon",

    _OnCellMouseDown: function (e) {
        if (mini.findParent(e.htmlEvent.target, this._eciconCls)) {
        } else if (mini.findParent(e.htmlEvent.target, 'mini-tree-checkbox')) {
        } else {
            this.fire("cellmousedown", e);
        }
    },
    _OnCellClick: function (e) {
        if (mini.findParent(e.htmlEvent.target, this._eciconCls)) return;

        if (mini.findParent(e.htmlEvent.target, 'mini-tree-checkbox')) {

        } else {
            this.fire("cellclick", e);
        }
    },
    _OnDrawCell: function (record, column, rowIndex, columnIndex) {
        var e = mini.PagerTree.superclass._OnDrawCell.call(this, record, column, rowIndex, columnIndex);
        if (this.treeColumn && this.treeColumn == column.name) {
            e.headerCls += ' mini-tree-treecolumn';
            e.cellCls += ' mini-tree-treecell';
            e.cellStyle += ';padding:0;vertical-align:top;';

            e.img = record[this.imgField];
            e.iconCls = this._getNodeIcon(record);
            e.showTreeIcon = this.showTreeIcon;
            e.nodeCls = "";
            e.nodeStyle = "";

            this._createTreeCell(e);
        }
        return e;
后面还有 165 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。