Преглед изворни кода

Table: expand column supports label

Leopoldthecoder пре 7 година
родитељ
комит
ace0d05791
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      packages/table/src/table-column.js

+ 2 - 2
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;