Skip to content

autoExpandParent failed in dynamic data loading #2981

@IsKaros

Description

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

Version

2.0.0-beta.10

Environment

win10 chrome vue@3

Reproduction link

https://vuecomponent.github.io/issue-helper/

Steps to reproduce

<a-tree
:show-line="true"
:show-icon="true"
:replaceFields="{ children: 'child', key: 'group_id', title: 'name' }"
:tree-data="devicesGroups"
:selectable="false"
@select="selectDeviceGroup"

{{ dataRef.name }}
<script> export default { data() { return { devicesGroups: [] } }, created(){ this.getData() }, methods: { getData() { // 异步请求 } } } </script>

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