From 6e147b97b427cef5bddd99203e82f6060d88cc0e Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 3 Jul 2018 14:04:17 +0800 Subject: [PATCH] fix: form templateContext error #62 --- components/form/Form.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/Form.jsx b/components/form/Form.jsx index b29b0c743..16169041c 100755 --- a/components/form/Form.jsx +++ b/components/form/Form.jsx @@ -178,7 +178,7 @@ export default { ...options, fieldMetaProp: FIELD_META_PROP, fieldDataProp: FIELD_DATA_PROP, - templateContext: this.$parent, + templateContext: this.$vnode.context, })({ provide () { return {