mirror of https://github.com/ElemeFE/element
Table: fix render fail in vue-loader 9.9.0 (#1018)
parent
19ba77d7d2
commit
cfafd3d191
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue