Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3] fix: 当首次加载懒加载树子节点时,多选禁用的子节点也会被勾选上 #1899

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

SAKISMMMMMM
Copy link

树状懒加载时,当父节点被勾选且首次加载子节点时,无论子节点勾选是否禁用,都会被勾选上

测试发现是 this.setCheckboxRow(childRows, true)会使 this.eqRow(item, row)在首层判断是默认为true,会忽略掉子节点的是否可勾选判断就直接勾选上。所以改为又父节点开始遍历。解决勾选判断问题

@SAKISMMMMMM SAKISMMMMMM changed the title fix: 当首次加载懒加载树子节点时,多选禁用的子节点也会被勾选上 [V3] fix: 当首次加载懒加载树子节点时,多选禁用的子节点也会被勾选上 Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant