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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/table/src/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -3997,9 +3997,9 @@ const Methods = {
if (childRows.length && treeExpandeds.indexOf(row) === -1) {
treeExpandeds.push(row)
}
// 如果当前节点已选中,则展开后子节点也被选中
// 如果当前节点已选中,则展开后可以允许选择的子节点也被选中
if (!checkStrictly && this.isCheckedByCheckboxRow(row)) {
this.setCheckboxRow(childRows, true)
this.setCheckboxRow(row, true)
}
return this.$nextTick().then(() => {
if (transform) {
Expand Down