form 刷新数据验证状态不更新的问题

This commit is contained in:
2betop 2020-08-07 16:30:21 +08:00
parent ebe813970e
commit e5373c64b9
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ export const FormStore = ServiceStore.named('FormStore')
function setValues(values: object, tag?: object, replace?: boolean) {
self.updateData(values, tag, replace);
self.items.forEach(
item => getVariable(values, item.name) !== undefined && item.reset()
);
// 同步 options
syncOptions();
}