diff --git a/packages/table/src/table-column.js b/packages/table/src/table-column.js index ca2af0a1c..dd2e8373c 100644 --- a/packages/table/src/table-column.js +++ b/packages/table/src/table-column.js @@ -35,7 +35,7 @@ const forced = { }, index: { // headerTemplate: function(h) { return
#
; }, - headerTemplate: function(h) { return
{ this.$options.propsData.columns[0].label ? this.$options.propsData.columns[0].label : '#' }
; }, + headerTemplate: function(h, label) { return
{ label || '#' }
; }, template: function(h, { row, $index }) { return
{ $index + 1 }
; }, sortable: false }, diff --git a/packages/table/src/table-header.js b/packages/table/src/table-header.js index 9e67132a3..81fab0f62 100644 --- a/packages/table/src/table-header.js +++ b/packages/table/src/table-header.js @@ -30,7 +30,7 @@ export default { { [ column.headerTemplate - ? column.headerTemplate.call(this._renderProxy, h) + ? column.headerTemplate.call(this._renderProxy, h, column.label) :
{ column.label }
, column.sortable ?