mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
修改忽略入参
This commit is contained in:
parent
d6ff427429
commit
5ecca6f118
@ -906,7 +906,7 @@ export function JSONTraverse(
|
||||
) {
|
||||
Object.keys(json).forEach(key => {
|
||||
const value: any = json[key];
|
||||
if (ignore && ignore(value, key)) {
|
||||
if (ignore?.(value, key)) {
|
||||
return;
|
||||
}
|
||||
if (isPlainObject(value) || Array.isArray(value)) {
|
||||
@ -1388,8 +1388,7 @@ export const getDialogActions = (
|
||||
}
|
||||
}
|
||||
},
|
||||
(value, key) =>
|
||||
key === '__cmptTreeSource' || key === '__superCmptTreeSource'
|
||||
(value, key) => key.toString().startsWith('__')
|
||||
);
|
||||
return dialogActions;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user