Explorar o código

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

lirilsu %!s(int64=7) %!d(string=hai) anos
pai
achega
0ca040fb42
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;