form 提交可以拿去 pristine 信息

This commit is contained in:
liaoxuezhi 2019-10-24 12:30:49 +08:00
parent 8c87b59662
commit 4558712e75

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
)