|
|
@@ -102,7 +102,7 @@ export struct WebDavMainPage {
|
|
|
@State isLongNameRoLL: boolean = true//长歌名滚动
|
|
|
@State sortType: number = 0 //默认排序方式
|
|
|
@State listRefreshKey: number = 0 // 列表刷新标识
|
|
|
- @State isMultiSelect: boolean = false
|
|
|
+ @Consume isMultiSelect: boolean
|
|
|
@State selectedSongs: VideoItem[] = []
|
|
|
@State isAllSelected: boolean = false
|
|
|
@State isDeletingSelection: boolean = false
|
|
|
@@ -1300,26 +1300,26 @@ export struct WebDavMainPage {
|
|
|
private buildMultiSelectBar() {
|
|
|
Row({ space: 12 }) {
|
|
|
Button(this.isAllSelected ? '反选' : '全选', { type: ButtonType.Circle, stateEffect: true })
|
|
|
- .width(60)
|
|
|
- .height(40)
|
|
|
- .fontSize(12)
|
|
|
+ .width(55)
|
|
|
+ .height(55)
|
|
|
+ .fontSize(13)
|
|
|
.backgroundColor(this.themeColor)
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.5 })
|
|
|
.onClick(() => this.toggleSelectAll())
|
|
|
|
|
|
Button('删除', { type: ButtonType.Circle, stateEffect: true })
|
|
|
- .width(60)
|
|
|
- .height(40)
|
|
|
- .fontSize(12)
|
|
|
+ .width(55)
|
|
|
+ .height(55)
|
|
|
+ .fontSize(13)
|
|
|
.backgroundColor(this.themeColor)
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.5 })
|
|
|
.enabled(this.selectedSongs.length > 0 && !this.isDeletingSelection)
|
|
|
.onClick(() => this.confirmDeleteSelected())
|
|
|
|
|
|
Button('取消', { type: ButtonType.Circle, stateEffect: true })
|
|
|
- .width(60)
|
|
|
- .height(40)
|
|
|
- .fontSize(12)
|
|
|
+ .width(55)
|
|
|
+ .height(55)
|
|
|
+ .fontSize(13)
|
|
|
.backgroundColor(this.themeColor)
|
|
|
.clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.5 })
|
|
|
.onClick(() => this.exitMultiSelect())
|
|
|
@@ -1351,8 +1351,7 @@ export struct WebDavMainPage {
|
|
|
this.buildMultiSelectBar()
|
|
|
}
|
|
|
.width('100%')
|
|
|
- .padding({ left: 12, right: 12, bottom: this.bottomSafeHeight + 120 })
|
|
|
- .backgroundColor($r('app.color.start_window_background'))
|
|
|
+ .padding({ left: 12, right: 12, bottom: this.bottomSafeHeight })
|
|
|
}
|
|
|
|
|
|
// 文件夹列表项
|