mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-10 01:48:18 +00:00
Merge commit '22cb676d149475a6fc5dadfc1e634864d13d063e' into def_releases_2022040810384040_ali-lowcode_ali-lowcode-engine/1.0.81
This commit is contained in:
commit
f95617bb28
@ -1,5 +1,9 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: 'eslint-config-ali/typescript/react',
|
extends: 'eslint-config-ali/typescript/react',
|
||||||
|
parserOptions: {
|
||||||
|
project: [], // for lint performance
|
||||||
|
createDefaultProgram: false, // for lint performance
|
||||||
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'react/no-multi-comp': 0,
|
'react/no-multi-comp': 0,
|
||||||
'no-unused-expressions': 0,
|
'no-unused-expressions': 0,
|
||||||
@ -31,5 +35,7 @@ module.exports = {
|
|||||||
'@typescript-eslint/indent': 0,
|
'@typescript-eslint/indent': 0,
|
||||||
'import/no-cycle': 0,
|
'import/no-cycle': 0,
|
||||||
'@typescript-eslint/no-shadow': 0,
|
'@typescript-eslint/no-shadow': 0,
|
||||||
}
|
'@typescript-eslint/dot-notation': 0, // for lint performance
|
||||||
|
'@typescript-eslint/restrict-plus-operands': 0, // for lint performance
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -47,6 +47,10 @@ export function compatibleReducer(props: any, node: Node): any {
|
|||||||
// newProps[key] = props[key];
|
// newProps[key] = props[key];
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
// 假如当前值是 JSSlot 类型,优先传入相对应的 slotNode
|
||||||
|
if (isJSSlot(val)) {
|
||||||
|
node = node.getProp(key)?.slotNode || node;
|
||||||
|
}
|
||||||
newProps[key] = compatibleReducer(val, node);
|
newProps[key] = compatibleReducer(val, node);
|
||||||
});
|
});
|
||||||
return newProps;
|
return newProps;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user