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

pull/1008/head
cinwell.li 2016-11-13 11:44:29 +08:00 committed by FuryBean
parent 19ba77d7d2
commit cfafd3d191
2 changed files with 8 additions and 7 deletions

View File

@ -112,7 +112,7 @@
"uppercamelcase": "^1.1.0",
"url-loader": "^0.5.7",
"vue": "^2.0.5",
"vue-loader": "^9.8.0",
"vue-loader": "^9.9.0",
"vue-markdown-loader": "^0.5.1",
"vue-router": "^2.0.0",
"webpack": "^1.13.2",

View File

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