Commit cfafd3d1 authored by cinwell.li's avatar cinwell.li Committed by FuryBean

Table: fix render fail in vue-loader 9.9.0 (#1018)

parent 19ba77d7
...@@ -209,12 +209,13 @@ export default { ...@@ -209,12 +209,13 @@ export default {
column.renderCell = function(h, data) { column.renderCell = function(h, data) {
if (_self.$vnode.data.inlineTemplate) { if (_self.$vnode.data.inlineTemplate) {
renderCell = function() { renderCell = function() {
data._staticTrees = _self._staticTrees; if (Object.prototype.toString.call(data._self) === '[object Object]') {
data.$options = {}; for (let prop in data._self) {
data.$options.staticRenderFns = _self.$options.staticRenderFns; if (!data.hasOwnProperty(prop)) {
data._renderProxy = _self._renderProxy; data[prop] = data._self[prop];
data._m = _self._m; }
}
}
return _self.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