Skip to content

tree和select-tree中增加属性,可以控制当checkbox存在被禁用时,父级是否应当全选 #2816

@fbecky

Description

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

What problem does this feature solve?

当tree中同级节点出现disableCheckbox或者disabled时,父级节点不应当有全选状态。
一个父级节点有2个子节点,子节点其中有一个是禁用checkbox的,当选中另一个子节点时,父节点变更为全选状态。这里逻辑有一些奇异。虽然被禁用,但是父节点不应当时全选状态,应当时半选状态
期望可以有一个属性可以控制这样的逻辑。

What does the proposed API look like?

ignoreNodeDisabled:ture|false 为true时,不考虑子节点的disableCheckbox属性,可选子节点全选后父级全选。
为false时,当子节点存在禁用时,父级不会是全选

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