Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧐[问题] 自定义节点时参数问题 #80

Closed
fnoopv opened this issue Jan 11, 2024 · 2 comments
Closed

🧐[问题] 自定义节点时参数问题 #80

fnoopv opened this issue Jan 11, 2024 · 2 comments

Comments

@fnoopv
Copy link

fnoopv commented Jan 11, 2024

🧐 问题描述

reactflow 自定义节点时会会有一个 NodeProps 的类型别名,可以通过这个类型别名明确参数。但是 ProFlow 并没有导出这个类型别名,可以导出这个类型别名吗?如果 NodeProps 不符合 ProFlow 的参数要求,那么有没有别的类型别名可以用于定义自定义组件的参数?或者自定义组件这部分给出指导?

💻 示例代码

🚑 其他信息

@arvinxx
Copy link
Collaborator

arvinxx commented Jan 11, 2024

参数我记得不是完全一样的 @ModestFun 你看看? 对应节点的props应该是需要的,而且我记得也有

@ModestFun
Copy link
Collaborator

1.2.2 版本已修复。现在可以导出 NodeProps 使用了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants