formStore.items 里面只有正在显示的表单项,看来字段少了

This commit is contained in:
2betop 2020-06-10 18:37:39 +08:00
parent 29a06b32e8
commit 75f88e9244

View File

@ -81,9 +81,9 @@ export function syncDataFromSuper(
// 如果是 form store则从父级同步 formItem 种东西。
if (store && store.storeType === 'FormStore') {
keys = uniq(
(store as IFormStore).items.map(item =>
`${item.name}`.replace(/\..*$/, '')
)
(store as IFormStore).items
.map(item => `${item.name}`.replace(/\..*$/, ''))
.concat(Object.keys(obj))
);
} else if (force) {
keys = Object.keys(obj);