CRM_EasyUI_2016/Scripts/easyui/plugins/jquery.combo.js

(开头部分) 9KB

这里只显示每个文件的开头 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,_3){
var _4=$.data(_2,"combo").options;
var _5=$.data(_2,"combo").combo;
var _6=$.data(_2,"combo").panel;
if(_3){
_4.width=_3;
}
if(isNaN(_4.width)){
var c=$(_2).clone();
c.css("visibility","hidden");
c.appendTo("body");
_4.width=c.outerWidth();
c.remove();
}
_5.appendTo("body");
var _7=_5.find("input.combo-text");
var _8=_5.find(".combo-arrow");
var _9=_4.hasDownArrow?_8._outerWidth():0;
_5._outerWidth(_4.width)._outerHeight(_4.height);
_7._outerWidth(_5.width()-_9);
_7.css({height:_5.height()+"px",lineHeight:_5.height()+"px"});
_8._outerHeight(_5.height());
_6.panel("resize",{width:(_4.panelWidth?_4.panelWidth:_5.outerWidth()),height:_4.panelHeight});
_5.insertAfter(_2);
};
function _a(_b){
var _c=$.data(_b,"combo").options;
var _d=$.data(_b,"combo").combo;
if(_c.hasDownArrow){
_d.find(".combo-arrow").show();
}else{
_d.find(".combo-arrow").hide();
}
};
function _e(_f){
$(_f).addClass("combo-f").hide();
var _10=$("<span class=\"combo\"></span>").insertAfter(_f);
var _11=$("<input type=\"text\" class=\"combo-text\">").appendTo(_10);
$("<span><span class=\"combo-arrow\"></span></span>").appendTo(_10);
$("<input type=\"hidden\" class=\"combo-value\">").appendTo(_10);
var _12=$("<div class=\"combo-panel\"></div>").appendTo("body");
_12.panel({doSize:false,closed:true,cls:"combo-p",style:{position:"absolute",zIndex:10},onOpen:function(){
$(this).panel("resize");
}});
var _13=$(_f).attr("name");
if(_13){
_10.find("input.combo-value").attr("name",_13);
$(_f).removeAttr("name").attr("comboName",_13);
后面还有 351 行代码,购买后查看完整代码

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

AI 解读

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

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