vue-vben-admin
vue-vben-admin copied to clipboard
调用 updateSchema 更新含有 componentProps: () => {} 的表单项出现的问题
场景就是手动调用 updateSchema 来更新一个表单中的 select 表单项 schema,这个表单项的 componentProps 是函数(函数中有一些业务逻辑),此时动态调用 updateSchema 来更新 componentProps 函数中的 options 数组。如下:
updateSchema([
{
field: "selectA",
componentProps: {
options: [
// ...
]
}
}
])
此时原本的 componentProps 函数会被新的 componentProps 对象覆盖。 不知道有什么快速的办法解决这个问题,还是我的用法不对😥
我也出现了这样的问题,请问有什么解决方案么?
我也出现了这样的问题,请问有什么解决方案么?
改源码😥
问题解决了么
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days