Merge commit '22cb676d149475a6fc5dadfc1e634864d13d063e' into def_releases_2022040810384040_ali-lowcode_ali-lowcode-engine/1.0.81

This commit is contained in:
tbfed 2022-04-20 14:38:35 +08:00
commit f95617bb28
2 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,9 @@
module.exports = {
extends: 'eslint-config-ali/typescript/react',
parserOptions: {
project: [], // for lint performance
createDefaultProgram: false, // for lint performance
},
rules: {
'react/no-multi-comp': 0,
'no-unused-expressions': 0,
@ -31,5 +35,7 @@ module.exports = {
'@typescript-eslint/indent': 0,
'import/no-cycle': 0,
'@typescript-eslint/no-shadow': 0,
}
'@typescript-eslint/dot-notation': 0, // for lint performance
'@typescript-eslint/restrict-plus-operands': 0, // for lint performance
},
};

View File

@ -47,6 +47,10 @@ export function compatibleReducer(props: any, node: Node): any {
// newProps[key] = props[key];
// return;
// }
// 假如当前值是 JSSlot 类型,优先传入相对应的 slotNode
if (isJSSlot(val)) {
node = node.getProp(key)?.slotNode || node;
}
newProps[key] = compatibleReducer(val, node);
});
return newProps;