Merge remote-tracking branch 'upstream/2.0' into 2.0

This commit is contained in:
Lawrence Lee 2017-04-27 15:33:47 +08:00
commit 67ab89108c
3 changed files with 47 additions and 64 deletions

View file

@ -63,13 +63,21 @@
});
const res = Vue.compile(cell.outerHTML);
// todo
// 使 component
const components = {};
Object.getOwnPropertyNames($parent.$options.components).forEach(item => {
components[item] = $parent.$options.components[item];
});
const component = new Vue({
render: res.render,
staticRenderFns: res.staticRenderFns,
methods: methods,
data () {
return $parent._data;
}
},
components: components
});
component.row = this.row;
component.column = this.column;