瀏覽代碼

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;