Explorar el Código

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

lirilsu hace 7 años
padre
commit
0ca040fb42
Se han modificado 1 ficheros con 1 adiciones y 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;