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

formConfig中的值可以根据另一个动态变化吗? #567

Open
heartsoulstone opened this issue Jan 12, 2024 · 3 comments
Open

formConfig中的值可以根据另一个动态变化吗? #567

heartsoulstone opened this issue Jan 12, 2024 · 3 comments
Labels
question Further information is requested

Comments

@heartsoulstone
Copy link

如何动态修改formConfig和intValue中的值

@jia000
Copy link
Collaborator

jia000 commented Jan 12, 2024

请详细描述一下场景

@heartsoulstone
Copy link
Author

比如我折线图可以手动设置线条数量,每条线都可以设置对应的颜色等属性;怎么根据线条数量来配置formConfig

@jia000
Copy link
Collaborator

jia000 commented Jan 15, 2024

可以在propsService插件中干预,每一次组件属性配置发生变化都会触发一次getPropsConfig

propsService.usePlugin({
  afterGetPropsConfig: (result: FormConfig, type: string)=>{
  }
})

相关文档

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

No branches or pull requests

2 participants