fix(client): adjust the order of props

This commit is contained in:
chenos 2022-01-24 14:03:18 +08:00
parent b398e65c9c
commit a2f3e1904e

View File

@ -22,11 +22,11 @@ export const RecursionComponent: React.FC<IRecursionComponentProps> = (props) =>
return ( return (
<SchemaOptionsContext.Provider <SchemaOptionsContext.Provider
value={{ value={{
scope: { ...props.scope, ...scope }, scope: { ...scope, ...props.scope },
components: { ...props.components, ...components }, components: { ...components, ...props.components },
}} }}
> >
<SchemaExpressionScopeContext.Provider value={{ scope }}> <SchemaExpressionScopeContext.Provider value={{ ...scope, ...props.scope }}>
<RecursionField {...props} /> <RecursionField {...props} />
</SchemaExpressionScopeContext.Provider> </SchemaExpressionScopeContext.Provider>
</SchemaOptionsContext.Provider> </SchemaOptionsContext.Provider>