WebUI/AchieveManageWeb/Scripts/jquery-easyui-1.4.4/plugins/jquery.layout.js

(开头部分) 21KB

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

/**
 * jQuery EasyUI 1.4.4
 *
 * Copyright (c) 2009-2015 www.jeasyui.com. All rights reserved.
 *
 * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
 * To use it on other terms please contact us: info@jeasyui.com
 *
 */
(function ($) {
    var _1 = false;
    function _2(_3, _4) {
        var _5 = $.data(_3, "layout");
        var _6 = _5.options;
        var _7 = _5.panels;
        var cc = $(_3);
        if (_4) {
            $.extend(_6, { width: _4.width, height: _4.height });
        }
        if (_3.tagName.toLowerCase() == "body") {
            cc._size("fit");
        } else {
            cc._size(_6);
        }
        var _8 = { top: 0, left: 0, width: cc.width(), height: cc.height() };
        _9(_a(_7.expandNorth) ? _7.expandNorth : _7.north, "n");
        _9(_a(_7.expandSouth) ? _7.expandSouth : _7.south, "s");
        _b(_a(_7.expandEast) ? _7.expandEast : _7.east, "e");
        _b(_a(_7.expandWest) ? _7.expandWest : _7.west, "w");
        _7.center.panel("resize", _8);
        function _9(pp, _c) {
            if (!pp.length || !_a(pp)) {
                return;
            }
            var _d = pp.panel("options");
            pp.panel("resize", { width: cc.width(), height: _d.height });
            var _e = pp.panel("panel").outerHeight();
            pp.panel("move", { left: 0, top: (_c == "n" ? 0 : cc.height() - _e) });
            _8.height -= _e;
            if (_c == "n") {
                _8.top += _e;
                if (!_d.split && _d.border) {
                    _8.top--;
                }
            }
            if (!_d.split && _d.border) {
                _8.height++;
            }
        };
        function _b(pp, _f) {
            if (!pp.length || !_a(pp)) {
                return;
            }
            var _10 = pp.panel("options");
            pp.panel("resize", { width: _10.width, height: _8.height });
            var _11 = pp.panel("panel").outerWidth();
            pp.panel("move", { left: (_f == "e" ? cc.width() - _11 : 0), top: _8.top });
            _8.width -= _11;
            if (_f == "w") {
                _8.left += _11;
后面还有 436 行代码,购买后查看完整代码

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

AI 解读 AI

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

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