Skip to content

a-tree 的TreeProps['treeData']类型报错 #8185

Closed as not planned
Closed as not planned
@huangmingfu

Description

@huangmingfu

它必须需要一个 key 字段,复现demo

Image

但是我用 fieldNames 指定替换了它的 keyid

const fieldNames: TreeProps['fieldNames'] = {
  children: 'child',
  title: 'name',
  key:'id'
};

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions