传入的数据动态变化时,多选有时有问题
This commit is contained in:
parent
38289f8c87
commit
cc72d10d5f
|
@ -780,10 +780,10 @@ var Tree = function (_React$Component) {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
if (props.showLine && !props.checkable || this.dataChange) {
|
if (props.showLine && !props.checkable) {
|
||||||
getTreeNodesStates();
|
getTreeNodesStates();
|
||||||
}
|
}
|
||||||
if (props.checkable && (this.checkedKeysChange || props.loadData)) {
|
if (props.checkable && (this.checkedKeysChange || props.loadData || this.dataChange)) {
|
||||||
if (props.checkStrictly) {
|
if (props.checkStrictly) {
|
||||||
getTreeNodesStates();
|
getTreeNodesStates();
|
||||||
} else if (props._treeNodesStates) {
|
} else if (props._treeNodesStates) {
|
||||||
|
|
|
@ -8967,10 +8967,10 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
if (props.showLine && !props.checkable || this.dataChange) {
|
if (props.showLine && !props.checkable) {
|
||||||
getTreeNodesStates();
|
getTreeNodesStates();
|
||||||
}
|
}
|
||||||
if (props.checkable && (this.checkedKeysChange || props.loadData)) {
|
if (props.checkable && (this.checkedKeysChange || props.loadData || this.dataChange)) {
|
||||||
if (props.checkStrictly) {
|
if (props.checkStrictly) {
|
||||||
getTreeNodesStates();
|
getTreeNodesStates();
|
||||||
} else if (props._treeNodesStates) {
|
} else if (props._treeNodesStates) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -752,10 +752,10 @@ onExpand(treeNode,keyType) {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
if (props.showLine && !props.checkable || this.dataChange) {
|
if (props.showLine && !props.checkable ) {
|
||||||
getTreeNodesStates();
|
getTreeNodesStates();
|
||||||
}
|
}
|
||||||
if (props.checkable && (this.checkedKeysChange || props.loadData)) {
|
if (props.checkable && (this.checkedKeysChange || props.loadData || this.dataChange)) {
|
||||||
if (props.checkStrictly) {
|
if (props.checkStrictly) {
|
||||||
getTreeNodesStates();
|
getTreeNodesStates();
|
||||||
} else if (props._treeNodesStates) {
|
} else if (props._treeNodesStates) {
|
||||||
|
|
Loading…
Reference in New Issue