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
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
proformselect的params定义为函数或对象,但是当params为函数时,不起作用
params?: ((record: Entity, column: ProSchema<Entity, ExtraProps>) => Record<string, any>) | Record<string, any>;
{ dataIndex: 'select', label: 'select', valueType: 'select', params: { timestamp: Math.random() }, request: async (params) => { console.log('params', params); } }
时,params为{timestamp:xxxx},且能触发request的重新请求。
{ dataIndex: 'select', label: 'select', valueType: 'select', params: () => ({ timestamp: Math.random() }), request: async (params) => { console.log('params', params); } }
时params为空,且request未重新请求。
当params为函数时,params不为空且能触发request的重新请求。
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
🐛 bug 描述
proformselect的params定义为函数或对象,但是当params为函数时,不起作用
📷 复现步骤
时,params为{timestamp:xxxx},且能触发request的重新请求。
时params为空,且request未重新请求。
🏞 期望结果
当params为函数时,params不为空且能触发request的重新请求。
💻 复现代码
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: