tmagic-editor
tmagic-editor copied to clipboard
formConfig中的值可以根据另一个动态变化吗?
如何动态修改formConfig和intValue中的值
请详细描述一下场景
比如我折线图可以手动设置线条数量,每条线都可以设置对应的颜色等属性;怎么根据线条数量来配置formConfig
可以在propsService插件中干预,每一次组件属性配置发生变化都会触发一次getPropsConfig
propsService.usePlugin({
afterGetPropsConfig: (result: FormConfig, type: string)=>{
}
})