Showing
2 changed files
with
3 additions
and
2 deletions
| @@ -262,6 +262,8 @@ struct MyCollectionListPage { | @@ -262,6 +262,8 @@ struct MyCollectionListPage { | ||
| 262 | this.selectDatas.splice(0,this.deleteNum) | 262 | this.selectDatas.splice(0,this.deleteNum) |
| 263 | } | 263 | } |
| 264 | this.deleteNum = this.selectDatas.length | 264 | this.deleteNum = this.selectDatas.length |
| 265 | + | ||
| 266 | + this.isAllSelect = this.deleteNum === this.allDatas.length?true:false; | ||
| 265 | } | 267 | } |
| 266 | 268 | ||
| 267 | //删除 | 269 | //删除 |
| @@ -28,8 +28,7 @@ export struct CustomBottomFuctionUI { | @@ -28,8 +28,7 @@ export struct CustomBottomFuctionUI { | ||
| 28 | left: {anchor: "__container__", align: HorizontalAlign.Start} | 28 | left: {anchor: "__container__", align: HorizontalAlign.Start} |
| 29 | }) | 29 | }) |
| 30 | .onClick(()=>{ | 30 | .onClick(()=>{ |
| 31 | - this.isAllSelect = !this.isAllSelect; | ||
| 32 | - this.selectAllCallback(this.isAllSelect) | 31 | + this.selectAllCallback(this.isAllSelect?false:true) |
| 33 | }) | 32 | }) |
| 34 | 33 | ||
| 35 | 34 |
-
Please register or login to post a comment