We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Form组件optionApi接口返回空数组时,根据代码,length为空会触发回调,造成回调地狱。 仅Select组件会有此问题,TreeSelect组件没问题。自己项目将!item.componentProps?.options.length 判断删除解决 if ( item.optionApi && (!item.componentProps?.options || !item.componentProps?.options.length) ) { // 内部自动调用接口,不影响其它渲染 getOptions(item.optionApi, item) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Form组件optionApi接口返回空数组时,根据代码,length为空会触发回调,造成回调地狱。 仅Select组件会有此问题,TreeSelect组件没问题。自己项目将!item.componentProps?.options.length 判断删除解决
if (
item.optionApi &&
(!item.componentProps?.options || !item.componentProps?.options.length)
) {
// 内部自动调用接口,不影响其它渲染
getOptions(item.optionApi, item)
}
The text was updated successfully, but these errors were encountered: