mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 去掉不可填充自己的设定 (#11031)
This commit is contained in:
parent
37d5b704ee
commit
d49bd3bf37
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user