Skip to content

Commit

Permalink
Merge pull request #19 from mgz0227/dev_2008
Browse files Browse the repository at this point in the history
列表模式添加选择框
  • Loading branch information
MaoXiaoone authored May 5, 2024
2 parents ea969f2 + 2efc0c2 commit acaba50
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion entry/src/main/ets/pages/view/bookShelf/BookInfo.ets
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export default struct BookInfo{

@Prop isJoin:boolean

@Prop isShowCheck:boolean

onDelete: () => void = () => {

}
Expand Down Expand Up @@ -103,7 +105,14 @@ export default struct BookInfo{
})
})
}

if (this.isShowCheck) {
Row() {
Checkbox({
name: this.title
})
}
.padding({ left: 15, right: 15, bottom: 5, top: 5 })
}
if (this.searchValue === '浏览历史'){
Column({space:15}){
Row(){
Expand Down
1 change: 1 addition & 0 deletions entry/src/main/ets/pages/view/bookShelf/cartoonPage.ets
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default struct cartoonPage{
bookImage: item.bookImage,
isJoin:item.isJoin,
searchValue: this.searchValue,
isShowCheck:this.isShowCheck,
onDelete:(): void=>this.removeListByIndex(index)
})
})
Expand Down
1 change: 1 addition & 0 deletions entry/src/main/ets/pages/view/bookShelf/novelPage.ets
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export default struct novelPage{
bookImage: item.bookImage,
isJoin:item.isJoin,
searchValue: this.searchValue,
isShowCheck:this.isShowCheck,
onDelete:(): void=>this.removeListByIndex(index)
})
})
Expand Down
1 change: 1 addition & 0 deletions entry/src/main/ets/pages/view/bookShelf/soundPage.ets
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default struct soundPage{
bookImage: item.bookImage,
isJoin:item.isJoin,
searchValue: this.searchValue,
isShowCheck:this.isShowCheck,
onDelete:(): void=>this.removeListByIndex(index)
})
})
Expand Down

0 comments on commit acaba50

Please sign in to comment.