下拉框添加初始化事件
var self = this;
$('input',this.element).mouseover(function(){
if(self.$view.css('display')=='none'){
self.onTriggerClick();
}
});
setTimeout(function(){
$('.view-container').on("mouseleave",".fr-combo-list",function(){
var b=$(".fr-combo-list");
for(var i=0;i<b.length;i++){
if(b[i].style.display=='block'){
b[i].style.display='none';
}
}
});
},1000)
代码效果是鼠标移入下拉框控件,显示下拉,鼠标移出下拉,下拉收起