form 提交可以拿去 pristine 信息
This commit is contained in:
parent
e8deb8c822
commit
a971dc04cc
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue