This commit is contained in:
liaoxuezhi 2019-07-03 19:41:37 +08:00
parent 31305833a0
commit 60a950c522

View File

@ -346,8 +346,7 @@ export const FormStore = ServiceStore
item = self.items[self.items.length - 1] as IFormItemStore; item = self.items[self.items.length - 1] as IFormItemStore;
// 默认值可能在原型上,把他挪到当前对象上。 // 默认值可能在原型上,把他挪到当前对象上。
const originValue = item.value; setValueByName(item.name, item.value);
setValueByName(item.name, originValue !== void 0 ? originValue : options && options.value);
options && item.config(options); options && item.config(options);