CRM_EasyUI_2016/Scripts/easyui/plugins/jquery.tabs.js
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* jQuery EasyUI 1.3.2
*
* Copyright (c) 2009-2013 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL or commercial licenses
* To use it on other terms please contact us: jeasyui@gmail.com
* http://www.gnu.org/licenses/gpl.txt
* http://www.jeasyui.com/license_commercial.php
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"tabs").options;
if(_3.tabPosition=="left"||_3.tabPosition=="right"){
return;
}
var _4=$(_2).children("div.tabs-header");
var _5=_4.children("div.tabs-tool");
var _6=_4.children("div.tabs-scroller-left");
var _7=_4.children("div.tabs-scroller-right");
var _8=_4.children("div.tabs-wrap");
_5._outerHeight(_4.outerHeight()-(_3.plain?2:0));
var _9=0;
$("ul.tabs li",_4).each(function(){
_9+=$(this).outerWidth(true);
});
var _a=_4.width()-_5._outerWidth();
if(_9>_a){
_6.show();
_7.show();
if(_3.toolPosition=="left"){
_5.css({left:_6.outerWidth(),right:""});
_8.css({marginLeft:_6.outerWidth()+_5._outerWidth(),marginRight:_7._outerWidth(),width:_a-_6.outerWidth()-_7.outerWidth()});
}else{
_5.css({left:"",right:_7.outerWidth()});
_8.css({marginLeft:_6.outerWidth(),marginRight:_7.outerWidth()+_5._outerWidth(),width:_a-_6.outerWidth()-_7.outerWidth()});
}
}else{
_6.hide();
_7.hide();
if(_3.toolPosition=="left"){
_5.css({left:0,right:""});
_8.css({marginLeft:_5._outerWidth(),marginRight:0,width:_a});
}else{
_5.css({left:"",right:0});
_8.css({marginLeft:0,marginRight:_5._outerWidth(),width:_a});
}
}
};
function _b(_c){
var _d=$.data(_c,"tabs").options;
var _e=$(_c).children("div.tabs-header");
if(_d.tools){
if(typeof _d.tools=="string"){
$(_d.tools).addClass("tabs-tool").appendTo(_e);
$(_d.tools).show();
}else{
_e.children("div.tabs-tool").remove();
var _f=$("<div class=\"tabs-tool\"></div>").appendTo(_e);
后面还有 450 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
