|
@@ -90,7 +90,7 @@ import { CueComptent } from '../view/CueComptent';
|
|
|
import PlaylistTable from '../common/util/PlaylistTable';
|
|
import PlaylistTable from '../common/util/PlaylistTable';
|
|
|
import { showAddToPlaylistDialog } from '../dialog/AddToPlaylistDialog';
|
|
import { showAddToPlaylistDialog } from '../dialog/AddToPlaylistDialog';
|
|
|
import { showCreatePlaylistDialog } from '../dialog/PlaylistDialog';
|
|
import { showCreatePlaylistDialog } from '../dialog/PlaylistDialog';
|
|
|
-import { convertPlaylistSongsToVideoItems } from '../pages/PlaylistDetailPage';
|
|
|
|
|
|
|
+import { convertPlaylistSongsToVideoItems, emptyView } from '../pages/PlaylistDetailPage';
|
|
|
import { Playlist, PlaylistSong } from '../viewmodel/Playlist';
|
|
import { Playlist, PlaylistSong } from '../viewmodel/Playlist';
|
|
|
const TAG = 'LocalMusic';
|
|
const TAG = 'LocalMusic';
|
|
|
|
|
|
|
@@ -2314,28 +2314,19 @@ export struct LocalMusic {
|
|
|
this.getList()
|
|
this.getList()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (this.modeType == 0) {
|
|
|
|
|
|
|
+ if (this.modeType ==0||this.modeType==4) {
|
|
|
Column() {
|
|
Column() {
|
|
|
- Button('同步数据', { type: ButtonType.Capsule, stateEffect: true })
|
|
|
|
|
- .width(130)
|
|
|
|
|
- .height(50)
|
|
|
|
|
- .margin({ top: 100, bottom: 40 })
|
|
|
|
|
- .backgroundColor(this.themeColor)
|
|
|
|
|
- .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.5 })
|
|
|
|
|
- .onClick(() => {
|
|
|
|
|
- this.asyncCurrentPathData()
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ emptyView(this.themeColor)
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- .height(100)
|
|
|
|
|
- .position({ top: 260 })
|
|
|
|
|
|
|
+ .position({ top: 180 })
|
|
|
.transition(TransitionEffect.asymmetric(TransitionEffect.scale({ x: 1.2, y: 1.2 })
|
|
.transition(TransitionEffect.asymmetric(TransitionEffect.scale({ x: 1.2, y: 1.2 })
|
|
|
.animation({ duration: 500 }),
|
|
.animation({ duration: 500 }),
|
|
|
TransitionEffect.scale({ x: 0, y: 0 })))
|
|
TransitionEffect.scale({ x: 0, y: 0 })))
|
|
|
.justifyContent(FlexAlign.Center)
|
|
.justifyContent(FlexAlign.Center)
|
|
|
.opacity(this.isZero ? 1 : 0)
|
|
.opacity(this.isZero ? 1 : 0)
|
|
|
.visibility(this.isZero && !this.isFavMusic && !this.isHistory
|
|
.visibility(this.isZero && !this.isFavMusic && !this.isHistory
|
|
|
- && this.modeType === 0 ? Visibility.Visible : Visibility.None)
|
|
|
|
|
|
|
+ ? Visibility.Visible : Visibility.None)
|
|
|
.animation({
|
|
.animation({
|
|
|
duration: 500,
|
|
duration: 500,
|
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
@@ -2343,7 +2334,6 @@ export struct LocalMusic {
|
|
|
.width('100%')
|
|
.width('100%')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
.layoutWeight(1)
|
|
.layoutWeight(1)
|
|
|
.height('100%')
|
|
.height('100%')
|