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
ProFormField组件的render方法识别到的类型是右侧这个,实际上打印出的类型不符合预期
看起来应该是这个才对:
希望类型能准确
The text was updated successfully, but these errors were encountered:
fix(form field): add field basic type
03f2f80
ant-design#8845
Same issue.
Add log in demo:
https://codesandbox.io/p/sandbox/ghx8my?file=%2FApp.tsx
{ disable: true, title: "标签", dataIndex: "labels", search: false, renderFormItem: (_, { defaultRender }) => { return defaultRender(_); }, render: (x, record) => { console.log("x", typeof x, React.isValidElement(x)); return ( <Space> {record.labels.map(({ name, color }) => ( <Tag color={color} key={name}> {name} </Tag> ))} </Space> ); }, },
Output:
x object [Object]0: {name: 'bug', color: 'error'}length: 1[[Prototype]]: Array(0) false
First args type not React.ReactNode.
Sorry, something went wrong.
No branches or pull requests
🐛 bug 描述
ProFormField组件的render方法识别到的类型是右侧这个,实际上打印出的类型不符合预期
看起来应该是这个才对:
🏞 期望结果
希望类型能准确
© 版本信息
The text was updated successfully, but these errors were encountered: