From 8f69e63c776e1bb583b775078c3dd13b4c1dd8d4 Mon Sep 17 00:00:00 2001 From: 吕庆安 Date: Tue, 9 May 2017 15:04:59 +0800 Subject: [PATCH] 修正table render的组件中无法获取this.$store的问题 --- src/components/table/cell.vue | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/src/components/table/cell.vue b/src/components/table/cell.vue index 65bf8b9..7efb951 100644 --- a/src/components/table/cell.vue +++ b/src/components/table/cell.vue @@ -96,6 +96,9 @@ }, components: components }); + if ($parent.$store != undefined) { + component.$store = $parent.$store; + } component.row = this.row; component.column = this.column; -- libgit2 0.21.4