소스 검색

Table: Render `default` slot in `table-column` to get a correct `columnRows`

lirilsu 7 년 전
부모
커밋
0ca040fb42
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/table/src/table-column.js

+ 1 - 1
packages/table/src/table-column.js

@@ -181,7 +181,7 @@ export default {
 
   created() {
     this.customRender = this.$options.render;
-    this.$options.render = h => h('div');
+    this.$options.render = h => h('div', this.$slots.default);
     this.columnId = (this.$parent.tableId || (this.$parent.columnId + '_')) + 'column_' + columnIdSeed++;
 
     let parent = this.$parent;