Replies: 1 comment
-
升级到 24 版本后正常了。。不过还是想请教下是怎么处理的 defaultprops,diff 了一下 23 版本,没发现啥明显问题 diff --git a/packages/core/src/registry.ts b/packages/core/src/registry.ts
index 8481a58..ceee3ec 100644
--- a/packages/core/src/registry.ts
+++ b/packages/core/src/registry.ts
@@ -136,7 +136,9 @@ const DESIGNER_GlobalRegistry = {
packages.forEach((sources) => {
reSortBehaviors(results, sources)
})
- DESIGNER_BEHAVIORS_STORE.value = results
+ if (results.length) {
+ DESIGNER_BEHAVIORS_STORE.value = results
+ }
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
背景,ui 层替换成了自己的组件
designable: 1.0.0-beta.23
formily: 2.0.0-rc.9
问题,form 组件设置了 defaultProps,ComponentTreeWidget 部分组件能获取到 defaultprops,但是在 previewwidget 中的 tree 里面,并没有把 defaultprops 合并进来,想请问下 defaultprops 是什么时候合并到 tree 里面的
Beta Was this translation helpful? Give feedback.
All reactions