Skip to content

Commit

Permalink
add labelClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
张韧 authored and Leopoldthecoder committed Mar 9, 2017
1 parent a87b6e2 commit b29ce95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/table/src/table-column.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default {
},
label: String,
className: String,
labelClassName: String,
property: String,
prop: String,
width: {},
Expand Down Expand Up @@ -213,6 +214,7 @@ export default {
columnKey: this.columnKey,
label: this.label,
className: this.className,
labelClassName: this.labelClassName,
property: this.prop || this.property,
type,
renderCell: null,
Expand Down
4 changes: 2 additions & 2 deletions packages/table/src/table-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export default {
on-mouseout={ this.handleMouseOut }
on-mousedown={ ($event) => this.handleMouseDown($event, column) }
on-click={ ($event) => this.handleHeaderClick($event, column) }
class={ [column.id, column.order, column.headerAlign, column.className || '', rowIndex === 0 && this.isCellHidden(cellIndex, columns) ? 'is-hidden' : '', !column.children ? 'is-leaf' : ''] }>
<div class={ ['cell', column.filteredValue && column.filteredValue.length > 0 ? 'highlight' : ''] }>
class={ [column.id, column.order, column.headerAlign, column.className || '', rowIndex === 0 && this.isCellHidden(cellIndex, columns) ? 'is-hidden' : '', !column.children ? 'is-leaf' : '', column.labelClassName] }>
<div class={ ['cell', column.filteredValue && column.filteredValue.length > 0 ? 'highlight' : '', column.labelClassName] }>
{
column.renderHeader
? column.renderHeader.call(this._renderProxy, h, { column, $index: cellIndex, store: this.store, _self: this.$parent.$vnode.context })
Expand Down

0 comments on commit b29ce95

Please sign in to comment.