作者 Karson

优化列表固定宽度功能

@@ -291,7 +291,8 @@ @@ -291,7 +291,8 @@
291 _initHeader.apply(this, Array.prototype.slice.apply(arguments)); 291 _initHeader.apply(this, Array.prototype.slice.apply(arguments));
292 this.$header.find('th[data-field]').each(function (i) { 292 this.$header.find('th[data-field]').each(function (i) {
293 var column = $(this).data(); 293 var column = $(this).data();
294 - if (typeof column['width'] !== 'undefined') { 294 + if (typeof column['width'] !== 'undefined' && column['width'].toString().indexOf("%") === -1) {
  295 + $(".th-inner", this).outerWidth(column['width']);
295 $(this).css("max-width", column['width']); 296 $(this).css("max-width", column['width']);
296 } 297 }
297 }); 298 });