点击输入框弹出日期选择框

针对EasyUI 1.5.1 版本
在6791行下,添加如下代码:

//datebox单击文本框出现日期选择 start
if ($(_4ed).hasClass("datebox-f")) {
    _4f2.click(function() {
        _4f4.click();
    });
}
// end

添加完后上下文代码如下:

var _4f2=tb.find(".textbox-text");
var btn=tb.find(".textbox-button");
var _4f3=tb.find(".textbox-addon");
var _4f4=_4f3.find(".textbox-icon");
if(opts.height=="auto"){
_4f2.css({margin:"",paddingTop:"",paddingBottom:"",height:"",lineHeight:""});
}
tb._size(opts,_4f0);
//datebox单击文本框出现日期选择 start
if ($(_4ed).hasClass("datebox-f")) {
    _4f2.click(function() {
        _4f4.click();
    });
}
// end
if(opts.label&&opts.labelPosition){
if(opts.labelPosition=="top"){
_4ef.label._size({opts.labelWidth=="auto"?tb.outerWidth():opts.labelWidth},tb);
if(opts.height!="auto"){
tb._size("height",tb.outerHeight()-_4ef.label.outerHeight());
}

  

原文地址:https://www.cnblogs.com/xvpindex/p/7263623.html