Skip to content

使用cascade属性后,父节点展示和选中状态 #131

@liyafan

Description

@liyafan

Bug 描述

复现步骤
1、在VTree组件设置cascade=“false”,数据加载方式为一层一层层请求;
2、如果选中父节点,父节点下有5个子节点,选中2个子节点保存树形数据;
3、重新打开页面查看回填数据,只展示父节点数据时,父节点被选中,这个没有问题;
4、点击父节点前的图标请求子节点数据,此时渲染的父节点为半选状态,并且不能取消选中。

期望表现
父节点是权限状态并且可以取消选中

实际表现

组件版本

  • Vue:
  • @wsfe/ctree:
  • @wsfe/vue-tree:
  • 其他可帮助复现的 npm 包名称及版本

额外信息
其他要补充的信息

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