mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
feat: 为 renderer 追加 displayName,以支持后续的反射功能
This commit is contained in:
parent
282a30afa4
commit
6399cce05a
@ -12,6 +12,7 @@ export function compWrapper(Comp: any) {
|
||||
return createElement(Comp, this.props);
|
||||
}
|
||||
}
|
||||
(Wrapper as any).displayName = Comp.displayName;
|
||||
|
||||
return cloneEnumerableProperty(forwardRef((props: any, ref: any) => {
|
||||
return createElement(Wrapper, { ...props, forwardRef: ref });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user