Skip to content

[Bug report] Tree组件 fieldNames 失效 #7030

@Charlie500

Description

@Charlie500
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.4

Environment

4.0.4 google最新版,vue3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

const fieldNames: TreeProps["fieldNames"] = {
children: "child",
title: "tagName",
};

const treeData: Ref<TreeProps["treeData"]> = ref([
{
tagName: "parent 1",
key: "0-0",
child: [
{
tagName: "张晨成",
key: "0-0-0",
disabled: true,
child: [
{ tagName: "leaf", key: "0-0-0-0", disableCheckbox: true },
{ tagName: "leaf", key: "0-0-0-1" },
],
},
{
tagName: "parent 1-1",
key: "0-0-1",
child: [{ key: "0-0-1-0", tagName: "zcvc" }],
},
],
},
]);

替换此段代码即可复现

What is expected?

正常显示标题

What is actually happening?

显示为空白

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions