form 提交可以拿去 pristine 信息

This commit is contained in:
liaoxuezhi 2019-10-24 12:30:49 +08:00
parent e8deb8c822
commit a971dc04cc
1 changed files with 4 additions and 2 deletions

View File

@ -128,7 +128,7 @@ export const FormStore = ServiceStore.named('FormStore')
setVariable(pristine, name, value);
self.pristine = pristine;
}
if (!data.__pristine) {
Object.defineProperty(data, '__pristine', {
value: self.pristine,
@ -286,7 +286,9 @@ export const FormStore = ServiceStore.named('FormStore')
createObject(
createObject(self.data.__super, {
diff: diff,
__diff: diff
__diff: diff,
pristine: self.pristine,
__pristine: self.pristine
}),
self.data
)