From f79671ee2efbe44b4450a645954c12fb8bb3e3df Mon Sep 17 00:00:00 2001 From: leon Date: Wed, 30 Nov 2022 15:37:54 +0800 Subject: [PATCH] Roo/bootstrap/Table.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/Table.js | 2 ++ roojs-bootstrap-debug.js | 2 ++ roojs-bootstrap.js | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index 2c7dabd379..38f11ffd2e 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -915,6 +915,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { tag: 'tfoot', cn : [] }; + + var cm = this.cm; for(var i = 0, len = cm.getColumnCount(); i < len; i++){ diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 20066ee3c4..778c92ae26 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -9992,6 +9992,8 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { tag: 'tfoot', cn : [] }; + + var cm = this.cm; for(var i = 0, len = cm.getColumnCount(); i < len; i++){ diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 89d374124b..1f7bebb831 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -424,8 +424,8 @@ var c={tag:'th',cls:'x-hcol-'+i,style:'',html:cm.getColumnHeader(i)};var D=cm.ge }if(hh.length){c.html=hh;}if(typeof(C.tooltip)!='undefined'){c.tooltip=C.tooltip;}if(typeof(C.colspan)!='undefined'){c.colspan=C.colspan;}if(typeof(C.dataIndex)!='undefined'){c.sort=C.dataIndex;}if(typeof(C.align)!='undefined'&&C.align.length){c.style+=' text-align:'+C.align+';'; }if(typeof(C.cls)!='undefined'){c.cls=(typeof(c.cls)=='undefined')?C.cls:(c.cls+' '+C.cls);}if(this.responsive){['xs','sm','md','lg'].map(function(E){if(typeof(C[E])=='undefined'){return;}if(!C[E]){c.cls+=' hidden-'+E+' hidden'+E+'-down';return;}c.cls+=' col-'+E+'-'+C[E]+(E=='xs'?(' col-'+C[E]):''); });}c.html+=' ';A.cn.push(c)}return A;},renderBody:function(){var A={tag:'tbody',cn:[{tag:'tr',cn:[{tag:'td',colspan:this.cm.getColumnCount()}]}]};return A;},renderFooter:function(){var A={tag:'tfoot',cn:[{tag:'tr',cn:[{tag:'td',colspan:this.cm.getColumnCount()} -]}]};return A;},renderSummaryFooter:function(){var A={tag:'tfoot',cn:[]};for(var i=0,B=cm.getColumnCount();i0){ds.data.each(function(d,G){var H=this.renderRow(cm,ds,G); B.createChild(H);var I=this;if(H.cellObjects.length){Roo.each(H.cellObjects,function(r){I.renderCellObject(r);})}},this);}else if(this.empty_results.length){this.el.mask(this.empty_results,'no-spinner');}var C=this.el.select('tfoot',true).first();if(this.footerShow&&this.auto_hide_footer&&this.mainFoot){this.mainFoot.setVisibilityMode(Roo.Element.DISPLAY).hide(); var D=this.ds.getTotalCount();if(this.footer.pageSize