修正table render的组件中无法获取this.$store的问题

在table的render中生成的组件,组件内部无法通过this.$store来获取vuex对象
This commit is contained in:
吕庆安 2017-05-09 15:04:59 +08:00 committed by GitHub
parent 13a940ee86
commit 8f69e63c77

View file

@ -96,6 +96,9 @@
},
components: components
});
if ($parent.$store != undefined) {
component.$store = $parent.$store;
}
component.row = this.row;
component.column = this.column;