fix: 动态注册支持config配置 (#6154)

This commit is contained in:
刘丹 2023-02-09 14:22:17 +08:00 committed by GitHub
parent dc2b670708
commit 4de3201595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,9 +86,10 @@ function registerAmisRendererByUsage(curUsage: string, curAmisRenderer: any) {
registerMap[curUsage]
) {
registerMap[curUsage as keyof typeof registerMap]({
...(curAmisRenderer.config || {}),
type: curAmisRenderer.type,
weight: curAmisRenderer.weight || 0,
autoVar: curAmisRenderer.autoVar || false,
autoVar: curAmisRenderer.autoVar || false
})(curAmisRendererComponent);
}
}