Commit 03a60995 authored by spademan's avatar spademan

Table: 在type="index"如果设置了label 优先显示label

parent b788476f
......@@ -34,7 +34,8 @@ const forced = {
resizable: false
},
index: {
headerTemplate: function(h) { return <div>#</div>; },
// headerTemplate: function(h) { return <div>#</div>; },
headerTemplate: function(h) { return <div>{ this.$options.propsData.columns[0].label ? this.$options.propsData.columns[0].label : '#' }</div>; },
template: function(h, { row, $index }) { return <div>{ $index + 1 }</div>; },
sortable: false
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment