yangchenggong1_wd

fix:bug[17073] UI还原问题--设置中的清理缓存弹窗鸿蒙与安卓不一致

... ... @@ -14,6 +14,7 @@ import { MineMainSettingFunctionItem } from '../../viewmodel/MineMainSettingFunc
import common from '@ohos.app.ability.common';
import dataPreferences from '@ohos.data.preferences';
import { TitleBackComponent } from './TitleBackComponent';
import { MyCustomDialog } from '../reusable/MyCustomDialog';
@Component
export struct MineSettingComponent {
... ... @@ -23,17 +24,22 @@ export struct MineSettingComponent {
@State cacheSize: number = 0
@State accountState:boolean=false
preferences: dataPreferences.Preferences | null = null;
dialogController: CustomDialogController = new CustomDialogController({
builder: CustomCacheDialog({
builder: MyCustomDialog({
cancel: () => {
},
confirm: () => {
this.deleteCache()
}
},
title: "清理缓存",
tipValue:"是否确认清理此App的缓存",
tipShow:true,
leftTextColor:$r('app.color.color_648DF2')
}),
customStyle: true,
alignment: DialogAlignment.Center
autoCancel: true,
alignment: DialogAlignment.Center,
customStyle: true
})
aboutToAppear() {
// 获取设置页面数据
... ...