mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-12 11:55:21 +08:00
fix: 动态注册支持config配置 (#6154)
This commit is contained in:
parent
dc2b670708
commit
4de3201595
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user