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
4.2.6
mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/128.0.0.0 safari/537.36
https://www.antdv.com/components/tree-cn#api
它必须需要一个 key 字段,复现demo
key
但是我用 fieldNames 指定替换了它的 key 为 id,
fieldNames
id
const fieldNames: TreeProps['fieldNames'] = { children: 'child', title: 'name', key:'id' };
不报ts类型错误
报数据类型不符合TreeProps['treeData'] 错误,缺少 key 属性
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
4.2.6
Environment
mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/128.0.0.0 safari/537.36
Reproduction link
https://www.antdv.com/components/tree-cn#api
Steps to reproduce
它必须需要一个
key
字段,复现demo但是我用
fieldNames
指定替换了它的key
为id
,What is expected?
不报ts类型错误
What is actually happening?
报数据类型不符合TreeProps['treeData'] 错误,缺少 key 属性
The text was updated successfully, but these errors were encountered: