Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f149cfa

Browse files
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

Lines changed: 7 additions & 4 deletions
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

Lines changed: 0 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /