-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
🐛 [BUG]EditorFormRef.current?.setRowData方法不生效 #10886
Comments
当前 Issue 未检测到标题,请规范填写,谢谢! The title of the current issue is not detected, please fill in according to the specifications, thank you! |
没有解决,为什么关闭呢? |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 bug 描述
我编辑商品编码的时候,想要设置商品名称的值,目前我发现setRowData是不生效的
{
title: '商品编码',
dataIndex: 'mateSku',
width: 120,
align:"center",
fieldProps: (form, config) => {
return {
options: goodsList,
onChange:(val)=>{
editorFormRef.current?.setRowData?.(config.rowIndex,{
mateSkuName:123123
})
},
}
}
},
{
title: (
),
dataIndex: 'mateSkuName',
width: 200,
align:"center",
formItemProps: () => {
return {
rules: [{required: true, message: '此项为必填项'}],
};
},
},
🏞 期望结果 | Expected results
💻 复现代码 | Recurrence code
© 版本信息
"@ant-design/pro-components": "^2.3.57",
"antd": "^5.6.3",
🚑 其他信息
The text was updated successfully, but these errors were encountered: