update Table
update Table
This commit is contained in:
parent
012cbf285f
commit
891700ae0c
4 changed files with 91 additions and 51 deletions
|
@ -1,6 +1,6 @@
|
|||
export default {
|
||||
methods: {
|
||||
alignCls (column, type, row = {}) {
|
||||
alignCls (column, row = {}) {
|
||||
let cellClassName = '';
|
||||
if (row.cellClassName && column.key && row.cellClassName[column.key]) {
|
||||
cellClassName = row.cellClassName[column.key];
|
||||
|
@ -8,7 +8,7 @@ export default {
|
|||
return [
|
||||
{
|
||||
[`${cellClassName}`]: cellClassName, // cell className
|
||||
[`${column.className}`]: column.className && type === 'body', // column className
|
||||
[`${column.className}`]: column.className, // column className
|
||||
[`${this.prefixCls}-column-${column.align}`]: column.align,
|
||||
[`${this.prefixCls}-hidden`]: (this.fixed === 'left' && column.fixed !== 'left') || (this.fixed === 'right' && column.fixed !== 'right') || (!this.fixed && column.fixed && (column.fixed === 'left' || column.fixed === 'right'))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue