mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-01-24 17:03:56 +08:00
chore: rename variable
This commit is contained in:
parent
6306cc0340
commit
0f0dc5827c
@ -156,15 +156,15 @@ const _ImplWrapper = React.forwardRef<HTMLDivElement, ImplWrapperProps>((props,
|
|||||||
}, [c.id, stateManager.store]);
|
}, [c.id, stateManager.store]);
|
||||||
|
|
||||||
const mergedProps = useMemo(() => {
|
const mergedProps = useMemo(() => {
|
||||||
const mergedProps: Record<string, any> = { ...evaledComponentProperties, ...propsFromTraits };
|
const allProps: Record<string, any> = { ...evaledComponentProperties, ...propsFromTraits };
|
||||||
|
|
||||||
for (const key in mergedProps) {
|
for (const key in allProps) {
|
||||||
if (mergedProps[key] instanceof ExpressionError) {
|
if (allProps[key] instanceof ExpressionError) {
|
||||||
mergedProps[key] = undefined;
|
allProps[key] = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return mergedProps;
|
return allProps;
|
||||||
}, [evaledComponentProperties, propsFromTraits]);
|
}, [evaledComponentProperties, propsFromTraits]);
|
||||||
|
|
||||||
function genSlotsElements() {
|
function genSlotsElements() {
|
||||||
|
Loading…
Reference in New Issue
Block a user