mirror of https://gitee.com/y_project/RuoYi.git
解决bootstrap-treetable,表头跟表格宽度不同步的问题
parent
10ac990d36
commit
2cf1b00b33
|
@ -128,7 +128,7 @@
|
||||||
target.hasSelectItem = true;
|
target.hasSelectItem = true;
|
||||||
$th = $('<th style="width:36px"></th>');
|
$th = $('<th style="width:36px"></th>');
|
||||||
} else {
|
} 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){
|
if((!target.isFixWidth)&& column.width){
|
||||||
target.isFixWidth = column.width.indexOf("px")>-1?true:false;
|
target.isFixWidth = column.width.indexOf("px")>-1?true:false;
|
||||||
|
@ -334,7 +334,7 @@
|
||||||
} else {
|
} else {
|
||||||
var $td = $('<td name="' + column.field + '" class="' + column.field + '_cls"></td>');
|
var $td = $('<td name="' + column.field + '" class="' + column.field + '_cls"></td>');
|
||||||
if(column.width){
|
if(column.width){
|
||||||
$td.css("width",column.width);
|
$td.css("width",column.width + (column.widthUnit ? column.widthUnit : 'px'));
|
||||||
}
|
}
|
||||||
if(column.align){
|
if(column.align){
|
||||||
$td.css("text-align",column.align);
|
$td.css("text-align",column.align);
|
||||||
|
|
Loading…
Reference in New Issue