mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
form 提交可以拿去 pristine 信息
This commit is contained in:
parent
8c87b59662
commit
4558712e75
@ -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
Block a user