优化树表格align属性在标题生效(I9FVBJ)
This commit is contained in:
parent
f5805fd79e
commit
f31e6bd1bb
@ -131,6 +131,9 @@
|
|||||||
$th = $('<th style="width:36px"></th>');
|
$th = $('<th style="width:36px"></th>');
|
||||||
} else {
|
} else {
|
||||||
$th = $('<th style="' + ((column.width) ? ('width:' + column.width + ((column.widthUnit) ? column.widthUnit : 'px')) : '') + '" class="' + column.field + '_cls"></th>');
|
$th = $('<th style="' + ((column.width) ? ('width:' + column.width + ((column.widthUnit) ? column.widthUnit : 'px')) : '') + '" class="' + column.field + '_cls"></th>');
|
||||||
|
if (column.align) {
|
||||||
|
$th.css("text-align", column.align);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
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;
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user