优化列表固定宽度功能

pull/226/MERGE
Karson 2020-09-17 17:12:20 +08:00
parent b277d31c60
commit ebb5d34414
3 changed files with 35 additions and 34 deletions

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long