!469 全局动画切换至5X或10X,下载状态栏,状态栏会自动退出

Merge pull request !469 from zhangxCode/cherry-pick-1712805167
This commit is contained in:
openharmony_ci 2024-04-15 08:13:35 +00:00 committed by Gitee
commit dd0ccfe7dd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -272,6 +272,7 @@ struct Index {
Log.showDebug(TAG, `hideSelf`)
this._animateTo({...SHOW_ANIM_CONFIG, onFinish: () => {
Log.showInfo(TAG, `hideSelf, hide anim finish.`);
}, finishCallback:()=>{
WindowManager.hideWindow(WindowType.DROPDOWN_PANEL)
}}, () => {
this.componentOptAreaTranslateY = (-this.componentOptAreaHeightPX * 0.1) + 'px'
@ -283,7 +284,7 @@ struct Index {
_animateTo(config, callback) {
Log.showDebug(TAG, `_animateTo, config: ${JSON.stringify(config)}`)
animateTo(config, callback)
setTimeout(config.onFinish, config.duration + config.delay)
setTimeout(config.finishCallback, config.duration + config.delay)
}
build() {