!237 浏览文件解决bootstrap-treetable,表头跟表格宽度不同步的问题

Merge pull request !237 from Vmo/master
pull/237/MERGE
若依 4 years ago committed by Gitee
commit 0499cd8d97

@ -128,7 +128,7 @@
target.hasSelectItem = true;
$th = $('<th style="width:36px"></th>');
} else {
$th = $('<th style="' + ((column.width) ? ('width:' + column.width) : '') + '" class="' + column.field + '_cls"></th>');
$th = $('<th style="' + ((column.width) ? ('width:' + column.width + ((column.widthUnit) ? column.widthUnit : 'px')) : '') + '" class="' + column.field + '_cls"></th>');
}
if((!target.isFixWidth)&& column.width){
target.isFixWidth = column.width.indexOf("px")>-1?true:false;
@ -334,7 +334,7 @@
} else {
var $td = $('<td name="' + column.field + '" class="' + column.field + '_cls"></td>');
if(column.width){
$td.css("width",column.width);
$td.css("width",column.width + (column.widthUnit ? column.widthUnit : 'px'));
}
if(column.align){
$td.css("text-align",column.align);

Loading…
Cancel
Save