Skip to content

[BUG] <title>Tree motion 执行时效可能会与动态修改的treedata引发静态条件,导致展开收起状态错乱 #3096

@myhighland

Description

@myhighland

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

Tree

Semi Version

No response

Current Behavior

<Tree
treeData={treeData()}
showLine={showLine(treeData())}
defaultExpandAll={true}
motion={false}
renderLabel={(label, treeNode) => renderLabel(label, treeNode)}
> treedata 调用callback包装的方法 如果不设置motion为false 导致tree的节点收起后 无法展开 对于高频修改的tree组件很不友好

Expected Behavior

tree motion执行前需要对变量状态进行收集管理

Steps To Reproduce

No response

ReproducibleCode

Environment

- OS:
- browser:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions