Table columns add className
Table columns add className
This commit is contained in:
parent
1b7aefeab2
commit
f9f1865ca5
6 changed files with 72 additions and 393 deletions
|
@ -1,8 +1,9 @@
|
|||
export default {
|
||||
methods: {
|
||||
alignCls (column) {
|
||||
alignCls (column, type) {
|
||||
return [
|
||||
{
|
||||
[`${column.className}`]: column.className && type === 'body',
|
||||
[`${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