fix: 去掉不可填充自己的设定 (#11031)

This commit is contained in:
liaoxuezhi 2024-10-12 14:53:48 +08:00 committed by GitHub
parent 37d5b704ee
commit d49bd3bf37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -860,8 +860,7 @@ export class FormItemWrap extends React.Component<FormItemProps> {
this.applyMapping(
autoFill?.fillMapping ?? {'&': '$$'},
result,
false,
true
false
);
}
}
@ -931,12 +930,7 @@ export class FormItemWrap extends React.Component<FormItemProps> {
* @param ctx
* @param skipIfExits false
*/
applyMapping(
mapping: any,
ctx: any,
skipIfExits = false,
ignoreSelf = false
) {
applyMapping(mapping: any, ctx: any, skipIfExits = false) {
const {onBulkChange, data, formItem} = this.props;
const toSync = dataMapping(mapping, ctx);
@ -971,9 +965,9 @@ export class FormItemWrap extends React.Component<FormItemProps> {
});
// 是否忽略自己的设置
if (ignoreSelf && formItem?.name) {
deleteVariable(result, formItem.name);
}
// if (ignoreSelf && formItem?.name) {
// deleteVariable(result, formItem.name);
// }
onBulkChange!(result);
}