Skip to content

Commit f149cfa

Browse files
committed
fix update status
1 parent 097120f commit f149cfa

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/index.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -2170,13 +2170,16 @@
21702170
recurTree: function recurTree(node) {
21712171
var _this8 = this;
21722172

2173-
if (this.checkStrictly || !this.showCheckbox) {
2174-
this.getCheckedValue(node);
2173+
if (node.isSelected() || node.isChecked() || this.hasHalfelEction && node.isPartialSelected()) {
2174+
if (this.checkStrictly || !this.showCheckbox) {
2175+
this.getCheckedValue(node);
2176+
} else {
2177+
this.refreshNode(node); // 现在改为了 先下刷新 再向上刷新
2178+
}
2179+
} else {
21752180
node.children && node.children.forEach(function (child) {
21762181
return _this8.recurTree(child);
21772182
});
2178-
} else {
2179-
this.refreshNode(node);
21802183
}
21812184
},
21822185
refreshExpandedDown: function refreshExpandedDown(node) {

lib/style/index.css

-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@
9090
width: 100%;
9191
position: relative;
9292
display: flex;
93-
align-items: center;
94-
overflow-y: hidden;
9593
padding-left: 22px;
9694
}
9795
.vue-tree .child-node .node-content .icon {

0 commit comments

Comments
 (0)