From ace0d05791b1268e74b6cb25ad1586fa6717b0b9 Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Mon, 27 Nov 2017 18:14:27 +0800 Subject: [PATCH] Table: expand column supports label --- packages/table/src/table-column.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/table/src/table-column.js b/packages/table/src/table-column.js index d43018abd..87af3d836 100644 --- a/packages/table/src/table-column.js +++ b/packages/table/src/table-column.js @@ -65,8 +65,8 @@ const forced = { sortable: false }, expand: { - renderHeader: function(h, {}) { - return ''; + renderHeader: function(h, { column }) { + return column.label || ''; }, renderCell: function(h, { row, store }, proxy) { const expanded = store.states.expandRows.indexOf(row) > -1;