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