您的位置:首页 > 产品设计 > UI/UE

B-JUI bug

2018-04-03 17:34 225 查看
1、2018年4月3日 Bjuiajax.prototype.ajaxcallback刷新bug

$('\'#'+ n.trim()+'\'').datagrid('refresh', options.gridrefreshflag)

改为:

$('#'+ n.trim()).datagrid('refresh', options.gridrefreshflag)


2、2018年4月19日 Datagrid.prototype.fixedWidth修复fullGrid=true时子表展开和关闭后父表表头移位bug,不过带来的是:展开子表时,父表内容对不上父表表头,收缩后又可以了,就算是一个提示吧。如下图



原来:

if (options.fullGrid || that.isTemplate || that.needfixedWidth || (that.hasAutoCol && isInit)) {

修改后:

if (that.isTemplate || that.needfixedWidth || (that.hasAutoCol && isInit)) {


3、datagrid 的paging=false,也要用到pageSize作为行号的显示处理,暂时修改一下,2018年5月17日

if (typeof options.paging === 'string') {
options.paging = options.paging.toObj()
that.paging = $.extend({}, { pageSize: 15, selectPageSize: '15,30,60,90', pageCurrent: 1, total: 0, showPagenum: 5 }, (typeof options.paging === 'object') && options.paging)

} else {
//修改,当不paging=false时,底层也需要用到pageSize,所以设置一下2018年5月23日
if(options.paging){
that.paging = $.extend({}, { pageSize: 15, selectPageSize: '15,30,60,90', pageCurrent: 1, total: 0, showPagenum: 5 }, (typeof options.paging === 'object') && options.paging)
}else{
that.paging = $.extend({}, { pageSize: 200, selectPageSize: '15,30,60,90', pageCurrent: 1, total: 0, showPagenum: 5 }, (typeof options.paging === 'object') && options.paging)
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  B-JUI bug