mirror of https://gitee.com/y_project/RuoYi.git
解决bootstrap-treetable,表头跟表格宽度不同步的问题
parent
10ac990d36
commit
2cf1b00b33
|
@ -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…
Reference in New Issue