From 60a950c52212aac8ea0ba328e6f4d463b453199e Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Wed, 3 Jul 2019 19:41:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/form.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/store/form.ts b/src/store/form.ts index e975175be..942610d4b 100644 --- a/src/store/form.ts +++ b/src/store/form.ts @@ -346,8 +346,7 @@ export const FormStore = ServiceStore item = self.items[self.items.length - 1] as IFormItemStore; // 默认值可能在原型上,把他挪到当前对象上。 - const originValue = item.value; - setValueByName(item.name, originValue !== void 0 ? originValue : options && options.value); + setValueByName(item.name, item.value); options && item.config(options);