|
@@ -179,6 +179,7 @@ export struct LocalMusic {
|
|
|
@State isShowHistory:boolean = true //是否显示最近播放
|
|
@State isShowHistory:boolean = true //是否显示最近播放
|
|
|
@State isCustomizeBg: boolean = false //自定义背景界面
|
|
@State isCustomizeBg: boolean = false //自定义背景界面
|
|
|
@State isGridMusic: boolean = false //是否网格布局
|
|
@State isGridMusic: boolean = false //是否网格布局
|
|
|
|
|
+ @State isCircleBtn: boolean = false //是否圆形播放按钮
|
|
|
@State twoFingerType: number = 3 //双支放大缩小的类型
|
|
@State twoFingerType: number = 3 //双支放大缩小的类型
|
|
|
@State isScrollHide: boolean = false //是否滚动隐藏
|
|
@State isScrollHide: boolean = false //是否滚动隐藏
|
|
|
@State isSameTimePlay: boolean = false //是否和其他app同时播放
|
|
@State isSameTimePlay: boolean = false //是否和其他app同时播放
|
|
@@ -548,6 +549,7 @@ export struct LocalMusic {
|
|
|
this.isShowTitleBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_TITLTBAR, true)
|
|
this.isShowTitleBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_TITLTBAR, true)
|
|
|
this.isShowAllBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_ALLBAR, true)
|
|
this.isShowAllBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_ALLBAR, true)
|
|
|
this.twoFingerType = PreferencesUtil.getNumberSync(SettingPage.TWO_FINGER_TYPE, 3)
|
|
this.twoFingerType = PreferencesUtil.getNumberSync(SettingPage.TWO_FINGER_TYPE, 3)
|
|
|
|
|
+ this.isCircleBtn = PreferencesUtil.getBooleanSync(SettingPage.IS_CIRCLE_BTN, false)
|
|
|
if (this.isSavePlayMode) {
|
|
if (this.isSavePlayMode) {
|
|
|
this.playType = PreferencesUtil.getNumberSync('musicPlayType', 0)
|
|
this.playType = PreferencesUtil.getNumberSync('musicPlayType', 0)
|
|
|
}
|
|
}
|
|
@@ -2298,8 +2300,8 @@ export struct LocalMusic {
|
|
|
Row() {
|
|
Row() {
|
|
|
Image(this.modeType !== 0 && StrUtil.isNotEmpty(item.pixelMapPath) ? item.pixelMapPath :
|
|
Image(this.modeType !== 0 && StrUtil.isNotEmpty(item.pixelMapPath) ? item.pixelMapPath :
|
|
|
$r('app.media.music_group'))
|
|
$r('app.media.music_group'))
|
|
|
- .height(this.twoFingerType==3?48:35)
|
|
|
|
|
- .width(this.twoFingerType==3?48:35)
|
|
|
|
|
|
|
+ .height(this.twoFingerType==3?55:this.twoFingerType==2?35:30)
|
|
|
|
|
+ .width(this.twoFingerType==3?55:this.twoFingerType==2?35:30)
|
|
|
.fillColor(this.themeColor)
|
|
.fillColor(this.themeColor)
|
|
|
// .fontSize(33)
|
|
// .fontSize(33)
|
|
|
.alt($r('app.media.music_group'))
|
|
.alt($r('app.media.music_group'))
|
|
@@ -2308,7 +2310,7 @@ export struct LocalMusic {
|
|
|
.margin({ left: 20, top: 8, bottom: 8 })
|
|
.margin({ left: 20, top: 8, bottom: 8 })
|
|
|
Column() {
|
|
Column() {
|
|
|
Text(item.name.startsWith('.') ? item.name.replace(/\./g, '') : item.name)
|
|
Text(item.name.startsWith('.') ? item.name.replace(/\./g, '') : item.name)
|
|
|
- .fontSize(16)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?12:this.twoFingerType==2?15:18)
|
|
|
.maxLines(1)// .width('88%')
|
|
.maxLines(1)// .width('88%')
|
|
|
.animation({
|
|
.animation({
|
|
|
duration: 555,
|
|
duration: 555,
|
|
@@ -2323,13 +2325,13 @@ export struct LocalMusic {
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
Row() {
|
|
Row() {
|
|
|
Text(`${this.artistMap.get(item.name)?.length ?? 0}首`)
|
|
Text(`${this.artistMap.get(item.name)?.length ?? 0}首`)
|
|
|
- .fontSize(11)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
.visibility(this.modeType === 2 ? Visibility.Visible : Visibility.None)
|
|
.visibility(this.modeType === 2 ? Visibility.Visible : Visibility.None)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
.margin({ left: 10 })
|
|
.margin({ left: 10 })
|
|
|
Text(`${this.albumMap.get(item.name)?.length ?? 0}首`)
|
|
Text(`${this.albumMap.get(item.name)?.length ?? 0}首`)
|
|
|
- .fontSize(11)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
.visibility(this.modeType === 3 ? Visibility.Visible : Visibility.None)
|
|
.visibility(this.modeType === 3 ? Visibility.Visible : Visibility.None)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
@@ -2390,8 +2392,8 @@ export struct LocalMusic {
|
|
|
|
|
|
|
|
Image(StrUtil.isEmpty(item.pixelMapPath) ? $r('app.media.music_red') : item.pixelMapPath)
|
|
Image(StrUtil.isEmpty(item.pixelMapPath) ? $r('app.media.music_red') : item.pixelMapPath)
|
|
|
.fillColor(this.themeColor)
|
|
.fillColor(this.themeColor)
|
|
|
- .height(this.twoFingerType==3?48:this.twoFingerType==2?35:30)
|
|
|
|
|
- .width(this.twoFingerType==3?48:this.twoFingerType==2?35:30)
|
|
|
|
|
|
|
+ .height(this.twoFingerType==3?55:this.twoFingerType==2?35:30)
|
|
|
|
|
+ .width(this.twoFingerType==3?55:this.twoFingerType==2?35:30)
|
|
|
.alt($r('app.media.music_red'))
|
|
.alt($r('app.media.music_red'))
|
|
|
.borderRadius('100%')
|
|
.borderRadius('100%')
|
|
|
.clip(true)
|
|
.clip(true)
|
|
@@ -2403,7 +2405,7 @@ export struct LocalMusic {
|
|
|
Column() {
|
|
Column() {
|
|
|
Column() {
|
|
Column() {
|
|
|
Text(item.name)
|
|
Text(item.name)
|
|
|
- .fontSize(14)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?12:this.twoFingerType==2?15:18)
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
.animation({
|
|
.animation({
|
|
|
duration: 555,
|
|
duration: 555,
|
|
@@ -2411,17 +2413,17 @@ export struct LocalMusic {
|
|
|
})
|
|
})
|
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
|
$r('app.color.text_color'))
|
|
$r('app.color.text_color'))
|
|
|
- .margin({ left: 10 })
|
|
|
|
|
|
|
+ .margin({ left:this.twoFingerType==3?18: 10 })
|
|
|
Row() {
|
|
Row() {
|
|
|
Text(StrUtil.isEmpty(item.artist) ? item.cTime : item.artist + ' ' + item?.album)
|
|
Text(StrUtil.isEmpty(item.artist) ? item.cTime : item.artist + ' ' + item?.album)
|
|
|
- .fontSize(11)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
|
$r('app.color.text_color'))
|
|
$r('app.color.text_color'))
|
|
|
- .margin({ left: 10 })
|
|
|
|
|
|
|
+ .margin({ left:this.twoFingerType==3?18: 10})
|
|
|
Blank()
|
|
Blank()
|
|
|
Text(item.size)
|
|
Text(item.size)
|
|
|
- .fontSize(11)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
.visibility(StrUtil.isEmpty(item.artist) ? Visibility.Visible : Visibility.None)
|
|
.visibility(StrUtil.isEmpty(item.artist) ? Visibility.Visible : Visibility.None)
|
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
.fontColor(this.currentSong?.filePath === item.filePath ? this.themeColor :
|
|
@@ -3158,7 +3160,7 @@ export struct LocalMusic {
|
|
|
right: this.currentBreakpoint !== BreakpointTypeEnum.SM?40:20})
|
|
right: this.currentBreakpoint !== BreakpointTypeEnum.SM?40:20})
|
|
|
Column() {
|
|
Column() {
|
|
|
Text(item.name.startsWith('.')?item.name.replace(/\./g, ''):item.name)
|
|
Text(item.name.startsWith('.')?item.name.replace(/\./g, ''):item.name)
|
|
|
- .fontSize(14)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?14:this.twoFingerType==2?16:18)
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
.fontWeight(FontWeight.Bold)
|
|
.fontWeight(FontWeight.Bold)
|
|
|
.textOverflow({overflow: TextOverflow.MARQUEE}) //超长滚动
|
|
.textOverflow({overflow: TextOverflow.MARQUEE}) //超长滚动
|
|
@@ -3172,14 +3174,17 @@ export struct LocalMusic {
|
|
|
Column(){
|
|
Column(){
|
|
|
Text(`${this.artistMap.get(item.name)?.length ?? 0}首`)
|
|
Text(`${this.artistMap.get(item.name)?.length ?? 0}首`)
|
|
|
.fontSize(11)
|
|
.fontSize(11)
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?10:this.twoFingerType==2?12:14)
|
|
|
.visibility(this.modeType===2&&!this.isCanBack?Visibility.Visible:Visibility.None)
|
|
.visibility(this.modeType===2&&!this.isCanBack?Visibility.Visible:Visibility.None)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
Text(`${this.albumMap.get(item.name)?.length ?? 0}首`)
|
|
Text(`${this.albumMap.get(item.name)?.length ?? 0}首`)
|
|
|
.fontSize(11)
|
|
.fontSize(11)
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?10:this.twoFingerType==2?12:14)
|
|
|
.visibility(this.modeType===3&&!this.isCanBack?Visibility.Visible:Visibility.None)
|
|
.visibility(this.modeType===3&&!this.isCanBack?Visibility.Visible:Visibility.None)
|
|
|
.fontColor($r('app.color.text_color'))
|
|
.fontColor($r('app.color.text_color'))
|
|
|
Text(StrUtil.isEmpty(item.artist) ? 'Unknown' : item.artist )
|
|
Text(StrUtil.isEmpty(item.artist) ? 'Unknown' : item.artist )
|
|
|
.fontSize(11)
|
|
.fontSize(11)
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?10:this.twoFingerType==2?12:14)
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
.margin({top:2})
|
|
.margin({top:2})
|
|
|
.visibility(item.type==CommonConstants.TYPE_IS_ARTIST
|
|
.visibility(item.type==CommonConstants.TYPE_IS_ARTIST
|
|
@@ -3227,7 +3232,7 @@ export struct LocalMusic {
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
)
|
|
)
|
|
|
- .height(this.twoFingerType==3?50:40)
|
|
|
|
|
|
|
+ .height(this.twoFingerType==3?60:this.twoFingerType==2?55:42)
|
|
|
.width(this.getGridWight())
|
|
.width(this.getGridWight())
|
|
|
.justifyContent(FlexAlign.Center)
|
|
.justifyContent(FlexAlign.Center)
|
|
|
.margin({ left: this.currentBreakpoint !== BreakpointTypeEnum.SM?40:20 ,
|
|
.margin({ left: this.currentBreakpoint !== BreakpointTypeEnum.SM?40:20 ,
|
|
@@ -3272,16 +3277,16 @@ export struct LocalMusic {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
getGridAllHeight(){
|
|
getGridAllHeight(){
|
|
|
- let heightG = 205
|
|
|
|
|
|
|
+ let heightG = 210
|
|
|
switch (this.twoFingerType){
|
|
switch (this.twoFingerType){
|
|
|
case 1:
|
|
case 1:
|
|
|
- heightG = 120
|
|
|
|
|
|
|
+ heightG = 105
|
|
|
break;
|
|
break;
|
|
|
case 2:
|
|
case 2:
|
|
|
- heightG = 150
|
|
|
|
|
|
|
+ heightG = 155
|
|
|
break;
|
|
break;
|
|
|
case 3:
|
|
case 3:
|
|
|
- heightG = 205
|
|
|
|
|
|
|
+ heightG = 210
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
return heightG
|
|
return heightG
|
|
@@ -3291,7 +3296,7 @@ export struct LocalMusic {
|
|
|
let heightG = 150
|
|
let heightG = 150
|
|
|
switch (this.twoFingerType){
|
|
switch (this.twoFingerType){
|
|
|
case 1:
|
|
case 1:
|
|
|
- heightG = 80
|
|
|
|
|
|
|
+ heightG = 55
|
|
|
break;
|
|
break;
|
|
|
case 2:
|
|
case 2:
|
|
|
heightG = 100
|
|
heightG = 100
|
|
@@ -3304,7 +3309,7 @@ export struct LocalMusic {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
getGridWight(){
|
|
getGridWight(){
|
|
|
- let wightG = 150
|
|
|
|
|
|
|
+ let wightG = 158
|
|
|
switch (this.twoFingerType){
|
|
switch (this.twoFingerType){
|
|
|
case 1:
|
|
case 1:
|
|
|
wightG = 80
|
|
wightG = 80
|
|
@@ -3313,7 +3318,7 @@ export struct LocalMusic {
|
|
|
wightG = 110
|
|
wightG = 110
|
|
|
break;
|
|
break;
|
|
|
case 3:
|
|
case 3:
|
|
|
- wightG = 150
|
|
|
|
|
|
|
+ wightG = 158
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
return wightG
|
|
return wightG
|
|
@@ -4815,7 +4820,8 @@ export struct LocalMusic {
|
|
|
duration: 666,
|
|
duration: 666,
|
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
curve: 'ease-in-out' // 可选动画曲线
|
|
|
})
|
|
})
|
|
|
- .transition(TransitionEffect.scale({ x: 1.2, y: 1.2 }).animation({ duration: 500 }))
|
|
|
|
|
|
|
+ .transition(TransitionEffect.asymmetric(TransitionEffect.scale({ x: 1.2, y: 1.2 }).animation({ duration: 600 }),
|
|
|
|
|
+ TransitionEffect.scale({ x: 0, y: 0 }) ))
|
|
|
.clickEffect({level:ClickEffectLevel.MIDDLE})
|
|
.clickEffect({level:ClickEffectLevel.MIDDLE})
|
|
|
//拖动List关键代码开始
|
|
//拖动List关键代码开始
|
|
|
.scale({ x: this.scaleSelect(index), y: this.scaleSelect(index) })
|
|
.scale({ x: this.scaleSelect(index), y: this.scaleSelect(index) })
|
|
@@ -4912,10 +4918,20 @@ export struct LocalMusic {
|
|
|
}
|
|
}
|
|
|
.width('100%')
|
|
.width('100%')
|
|
|
.height('100%')
|
|
.height('100%')
|
|
|
- .transition(TransitionEffect.move(TransitionEdge.BOTTOM)
|
|
|
|
|
- .animation({ duration: 500, curve: Curve.Ease }))
|
|
|
|
|
|
|
+ // .transition(TransitionEffect.move(TransitionEdge.BOTTOM)
|
|
|
|
|
+ // .animation({ duration: 500, curve: Curve.Ease }))
|
|
|
.cachedCount(10)
|
|
.cachedCount(10)
|
|
|
|
|
+ .scale({x:this.scaleValue,y:this.scaleValue,z:1})
|
|
|
|
|
+ .gesture(PinchGesture({ fingers: 2 })
|
|
|
|
|
+ .onActionEnd((event: GestureEvent)=>{
|
|
|
|
|
+ this.setlistTwoFingers()
|
|
|
|
|
+ })
|
|
|
|
|
+ .onActionUpdate(e=>{
|
|
|
|
|
+ this.scaleValue = this.pinchValue*e.scale
|
|
|
|
|
+ })
|
|
|
|
|
+ .onActionStart(e => {
|
|
|
|
|
|
|
|
|
|
+ }))
|
|
|
.padding({
|
|
.padding({
|
|
|
bottom: 0
|
|
bottom: 0
|
|
|
})
|
|
})
|
|
@@ -4929,8 +4945,8 @@ export struct LocalMusic {
|
|
|
Stack() {
|
|
Stack() {
|
|
|
|
|
|
|
|
Image(StrUtil.isEmpty(item.pixelMapPath) ? $r('app.media.music_red') : item.pixelMapPath)
|
|
Image(StrUtil.isEmpty(item.pixelMapPath) ? $r('app.media.music_red') : item.pixelMapPath)
|
|
|
- .height(33)
|
|
|
|
|
- .width(33)
|
|
|
|
|
|
|
+ .height(this.twoFingerType==3?55:this.twoFingerType==2?35:30)
|
|
|
|
|
+ .width(this.twoFingerType==3?55:this.twoFingerType==2?35:30)
|
|
|
.alt($r('app.media.music_red'))
|
|
.alt($r('app.media.music_red'))
|
|
|
.fillColor(this.themeColor)
|
|
.fillColor(this.themeColor)
|
|
|
.borderRadius('100%')
|
|
.borderRadius('100%')
|
|
@@ -4943,21 +4959,21 @@ export struct LocalMusic {
|
|
|
Column() {
|
|
Column() {
|
|
|
|
|
|
|
|
Text(item.name)
|
|
Text(item.name)
|
|
|
- .fontSize(14)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?12:this.twoFingerType==2?15:18)
|
|
|
.fontColor(this.curIndex === index ? this.themeColor :
|
|
.fontColor(this.curIndex === index ? this.themeColor :
|
|
|
this.isFrontWhite ? Color.White : $r('app.color.text_color'))
|
|
this.isFrontWhite ? Color.White : $r('app.color.text_color'))
|
|
|
.maxLines(1)
|
|
.maxLines(1)
|
|
|
- .margin({ left: 10 })
|
|
|
|
|
|
|
+ .margin({ left:this.twoFingerType==3?18: 10 })
|
|
|
Row() {
|
|
Row() {
|
|
|
Text(StrUtil.isEmpty(item.artist) ? item.cTime : item.artist + ' ' + item?.album)
|
|
Text(StrUtil.isEmpty(item.artist) ? item.cTime : item.artist + ' ' + item?.album)
|
|
|
- .fontSize(11)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
.fontColor(this.curIndex === index ? this.themeColor :
|
|
.fontColor(this.curIndex === index ? this.themeColor :
|
|
|
this.isFrontWhite ? $r('app.color.playlistText_color') : $r('app.color.text_color'))
|
|
this.isFrontWhite ? $r('app.color.playlistText_color') : $r('app.color.text_color'))
|
|
|
- .margin({ left: 10 })
|
|
|
|
|
|
|
+ .margin({ left:this.twoFingerType==3?18: 10 })
|
|
|
Blank()
|
|
Blank()
|
|
|
Text(item.size)
|
|
Text(item.size)
|
|
|
- .fontSize(11)
|
|
|
|
|
|
|
+ .fontSize(this.twoFingerType==1?11:this.twoFingerType==2?12:14)
|
|
|
.padding({ top: 8 })
|
|
.padding({ top: 8 })
|
|
|
.visibility(StrUtil.isEmpty(item.artist) ? Visibility.Visible : Visibility.None)
|
|
.visibility(StrUtil.isEmpty(item.artist) ? Visibility.Visible : Visibility.None)
|
|
|
.fontColor(this.curIndex === index ? $r('app.color.title_bar_bg_text') :
|
|
.fontColor(this.curIndex === index ? $r('app.color.title_bar_bg_text') :
|
|
@@ -4993,7 +5009,7 @@ export struct LocalMusic {
|
|
|
}
|
|
}
|
|
|
.backgroundColor(Color.Transparent)
|
|
.backgroundColor(Color.Transparent)
|
|
|
.width('100%')
|
|
.width('100%')
|
|
|
- .height(58)
|
|
|
|
|
|
|
+ .height(this.twoFingerType==3?ITEM_HEIGHT_BIG:this.twoFingerType==2?ITEM_HEIGHT:ITEM_HEIGHT_SMALL)
|
|
|
.shadow(this.scaleItem === index ? {
|
|
.shadow(this.scaleItem === index ? {
|
|
|
radius: 70,
|
|
radius: 70,
|
|
|
color: '#15000000',
|
|
color: '#15000000',
|
|
@@ -5956,9 +5972,11 @@ export struct LocalMusic {
|
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
Button({type:ButtonType.Circle,stateEffect:true}){
|
|
|
Column() {
|
|
Column() {
|
|
|
Image(this.CONTROL_PlayStatus === PlayStatus.PLAY ?
|
|
Image(this.CONTROL_PlayStatus === PlayStatus.PLAY ?
|
|
|
- $r('app.media.ic_public_play') : $r('app.media.ic_public_pause'))
|
|
|
|
|
|
|
+ (this.isCircleBtn?$r('app.media.hm_pause'):$r('app.media.ic_public_play'))
|
|
|
|
|
+ : (this.isCircleBtn?$r('app.media.hm_play2'):$r('app.media.ic_public_pause')))
|
|
|
.width(this.isPhoneLan()?48:60)
|
|
.width(this.isPhoneLan()?48:60)
|
|
|
.clickEffect({level:ClickEffectLevel.HEAVY})
|
|
.clickEffect({level:ClickEffectLevel.HEAVY})
|
|
|
|
|
+ .fillColor(Color.White)
|
|
|
.aspectRatio(CommonConstants.ASPECT_RATIO)
|
|
.aspectRatio(CommonConstants.ASPECT_RATIO)
|
|
|
.onClick(async () => {
|
|
.onClick(async () => {
|
|
|
this.playOrPause()
|
|
this.playOrPause()
|
|
@@ -9763,7 +9781,10 @@ function customPopupBuilder(dataBu: BubbleBean) {
|
|
|
.backgroundColor($r('app.color.settings_background_main'))
|
|
.backgroundColor($r('app.color.settings_background_main'))
|
|
|
.margin({ top: 6, bottom: 6 })
|
|
.margin({ top: 6, bottom: 6 })
|
|
|
}
|
|
}
|
|
|
- .transition(TransitionEffect.scale({ x: 1.2, y: 1.2 }).animation({ duration: 500 }))
|
|
|
|
|
|
|
+ .transition(TransitionEffect.asymmetric(TransitionEffect.move(TransitionEdge.BOTTOM).animation({ duration: 500,curve: Curve.Ease, delay: 100*index }),
|
|
|
|
|
+ TransitionEffect.scale({ x: 0, y: 0 }) ))
|
|
|
|
|
+ // .transition(TransitionEffect.asymmetric(TransitionEffect.scale({ x: 1.2, y: 1.2 }).animation({ duration: 500 }),
|
|
|
|
|
+ // TransitionEffect.scale({ x: 0, y: 0 }) ))
|
|
|
.onClick(() => {
|
|
.onClick(() => {
|
|
|
dataBu.onItemClick?.(index)
|
|
dataBu.onItemClick?.(index)
|
|
|
})
|
|
})
|
|
@@ -9839,7 +9860,12 @@ function cutPopupBuilder(dataBu: BubbleBean) {
|
|
|
|
|
|
|
|
.margin({ top: 7, bottom: 7 })
|
|
.margin({ top: 7, bottom: 7 })
|
|
|
|
|
|
|
|
- }.onClick(() => {
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ .transition(TransitionEffect.asymmetric(TransitionEffect.move(TransitionEdge.BOTTOM).animation({ duration: 500 }),
|
|
|
|
|
+ TransitionEffect.scale({ x: 0, y: 0 }) ))
|
|
|
|
|
+ // .transition(TransitionEffect.asymmetric(TransitionEffect.scale({ x: 1.2, y: 1.2 }).animation({ duration: 500 }),
|
|
|
|
|
+ // TransitionEffect.scale({ x: 0, y: 0 }) ))
|
|
|
|
|
+ .onClick(() => {
|
|
|
dataBu.onItemClick?.(index)
|
|
dataBu.onItemClick?.(index)
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|