vue-tables-2
Advanced tools
Comparing version 0.2.75 to 0.2.76
import ucfirst from '../helpers/ucfirst' | ||
module.exports = function(value) { | ||
module.exports = function(value, h) { | ||
if (typeof value!=='string') return ''; | ||
return this.opts.headings.hasOwnProperty(value)? | ||
this.opts.headings[value]: | ||
ucfirst(value.split("_").join(" ")); | ||
if (!this.opts.headings.hasOwnProperty(value)) | ||
return ucfirst(value.split("_").join(" ")); | ||
if (typeof this.opts.headings[value]==='function') | ||
return this.opts.headings[value](h); | ||
return this.opts.headings[value]; | ||
} |
@@ -12,3 +12,3 @@ module.exports = function(h, that) { | ||
class={that.sortableClass(column)}> | ||
<span class="VueTables__heading">{that.getHeading(column)}</span> | ||
<span class="VueTables__heading">{that.getHeading(column, h)}</span> | ||
{sortControl(column)} | ||
@@ -15,0 +15,0 @@ </th>) |
{ | ||
"name": "vue-tables-2", | ||
"description": "Vue.js 2 grid components", | ||
"version": "0.2.75", | ||
"version": "0.2.76", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "vue2", |
58183
1445