mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
fix: scope props merge defaultProps (#2716)
This commit is contained in:
parent
8f5ba69813
commit
ebdcc41461
@ -429,7 +429,14 @@ export default function baseRendererFactory(): IBaseRenderComponent {
|
||||
|
||||
__createDom = () => {
|
||||
const { __schema, __ctx, __components = {} } = this.props;
|
||||
const scope: any = {};
|
||||
// merge defaultProps
|
||||
const scopeProps = {
|
||||
...__schema.defaultProps,
|
||||
...this.props,
|
||||
};
|
||||
const scope: any = {
|
||||
props: scopeProps,
|
||||
};
|
||||
scope.__proto__ = __ctx || this;
|
||||
|
||||
const _children = getSchemaChildren(__schema);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user