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 种东西。 // 如果是 form store则从父级同步 formItem 种东西。
if (store && store.storeType === 'FormStore') { if (store && store.storeType === 'FormStore') {
keys = uniq( keys = uniq(
(store as IFormStore).items.map(item => (store as IFormStore).items
`${item.name}`.replace(/\..*$/, '') .map(item => `${item.name}`.replace(/\..*$/, ''))
) .concat(Object.keys(obj))
); );
} else if (force) { } else if (force) {
keys = Object.keys(obj); keys = Object.keys(obj);