From 35a65bc74cf1bb3450a520f8dda0df380fe9f736 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 16 Oct 2019 23:08:29 +0800 Subject: [PATCH] fix: form initialValue is not defined #1291 --- components/vc-form/src/createBaseForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-form/src/createBaseForm.jsx b/components/vc-form/src/createBaseForm.jsx index aab3b52ab..367c18280 100644 --- a/components/vc-form/src/createBaseForm.jsx +++ b/components/vc-form/src/createBaseForm.jsx @@ -204,7 +204,7 @@ function createBaseForm(option = {}, mixins = []) { !( !slotHasProp(fieldElem, valuePropName) && valuePropName in originalProps && - !(fieldOption && initialValue in fieldOption) + !(fieldOption && 'initialValue' in fieldOption) ), `${getComponentName( fieldElem.componentOptions,