Commit 3a6e6638 authored by qingwei.li's avatar qingwei.li

Table: fix inline-template

parent 23f74478
...@@ -90,9 +90,7 @@ export default { ...@@ -90,9 +90,7 @@ export default {
formatter: Function formatter: Function
}, },
render(h) { render() {},
return <div />;
},
data() { data() {
return { return {
...@@ -113,6 +111,9 @@ export default { ...@@ -113,6 +111,9 @@ export default {
}, },
created() { created() {
this.customRender = this.$options.render;
this.$options.render = (h) => h('div');
let columnId = this.columnId = (this.$parent.gridId || (this.$parent.columnId + '_')) + 'column_' + columnIdSeed++; let columnId = this.columnId = (this.$parent.gridId || (this.$parent.columnId + '_')) + 'column_' + columnIdSeed++;
let parent = this.$parent; let parent = this.$parent;
...@@ -173,8 +174,6 @@ export default { ...@@ -173,8 +174,6 @@ export default {
column.template = function(h, data) { column.template = function(h, data) {
if (_self.$vnode.data.inlineTemplate) { if (_self.$vnode.data.inlineTemplate) {
let customRender = _self.$options.render;
renderColumn = function() { renderColumn = function() {
data._staticTrees = _self._staticTrees; data._staticTrees = _self._staticTrees;
data.$options = {}; data.$options = {};
...@@ -182,7 +181,7 @@ export default { ...@@ -182,7 +181,7 @@ export default {
data._renderProxy = _self._renderProxy; data._renderProxy = _self._renderProxy;
data._m = _self._m; data._m = _self._m;
return customRender.call(data); return _self.customRender.call(data);
}; };
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment