[V3] fix: 当首次加载懒加载树子节点时,多选禁用的子节点也会被勾选上 #1899
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
树状懒加载时,当父节点被勾选且首次加载子节点时,无论子节点勾选是否禁用,都会被勾选上
测试发现是 this.setCheckboxRow(childRows, true)会使 this.eqRow(item, row)在首层判断是默认为true,会忽略掉子节点的是否可勾选判断就直接勾选上。所以改为又父节点开始遍历。解决勾选判断问题