diff --git a/src/components/table/mixin.js b/src/components/table/mixin.js index 6223dc5..02ed257 100644 --- a/src/components/table/mixin.js +++ b/src/components/table/mixin.js @@ -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')) } diff --git a/src/components/table/table-body.vue b/src/components/table/table-body.vue index bb73685..287ba5e 100644 --- a/src/components/table/table-body.vue +++ b/src/components/table/table-body.vue @@ -11,7 +11,7 @@ @mouseleave.stop="handleMouseOut(row._index)" @click.stop="clickCurrentRow(row._index)" @dblclick.stop="dblclickCurrentRow(row._index)"> -