mirror of https://github.com/ElemeFE/element
Table: expand column supports label
parent
675253dcb1
commit
ace0d05791
|
@ -65,8 +65,8 @@ const forced = {
|
||||||
sortable: false
|
sortable: false
|
||||||
},
|
},
|
||||||
expand: {
|
expand: {
|
||||||
renderHeader: function(h, {}) {
|
renderHeader: function(h, { column }) {
|
||||||
return '';
|
return column.label || '';
|
||||||
},
|
},
|
||||||
renderCell: function(h, { row, store }, proxy) {
|
renderCell: function(h, { row, store }, proxy) {
|
||||||
const expanded = store.states.expandRows.indexOf(row) > -1;
|
const expanded = store.states.expandRows.indexOf(row) > -1;
|
||||||
|
|
Loading…
Reference in New Issue