mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:59:17 +08:00
formStore.items 里面只有正在显示的表单项,看来字段少了
This commit is contained in:
parent
29a06b32e8
commit
75f88e9244
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user