File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " light-vue-tree" ,
3- "version" : " 0.1.2 " ,
3+ "version" : " 0.1.1 " ,
44 "scripts" : {
55 "lint" : " eslint --fix src --ext .js --ext .vue" ,
66 "dev" : " rollup --config ./scripts/rollup.development.js --watch" ,
Original file line number Diff line number Diff line change @@ -283,11 +283,14 @@ export default {
283283 }
284284 } ,
285285 recurTree ( node ) {
286- if ( this . checkStrictly || ! this . showCheckbox ) {
287- this . getCheckedValue ( node )
288- node . children && node . children . forEach ( ( child ) => this . recurTree ( child ) )
286+ if ( node . isSelected ( ) || node . isChecked ( ) || ( this . hasHalfelEction && node . isPartialSelected ( ) ) ) {
287+ if ( this . checkStrictly || ! this . showCheckbox ) {
288+ this . getCheckedValue ( node )
289+ } else {
290+ this . refreshNode ( node ) // 现在改为了 先下刷新 再向上刷新
291+ }
289292 } else {
290- this . refreshNode ( node )
293+ node . children && node . children . forEach ( ( child ) => this . recurTree ( child ) )
291294 }
292295 } ,
293296 refreshExpandedDown ( node ) {
You can’t perform that action at this time.
0 commit comments