yangchenggong1_wd

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

@@ -14,6 +14,7 @@ import { MineMainSettingFunctionItem } from '../../viewmodel/MineMainSettingFunc @@ -14,6 +14,7 @@ import { MineMainSettingFunctionItem } from '../../viewmodel/MineMainSettingFunc
14 import common from '@ohos.app.ability.common'; 14 import common from '@ohos.app.ability.common';
15 import dataPreferences from '@ohos.data.preferences'; 15 import dataPreferences from '@ohos.data.preferences';
16 import { TitleBackComponent } from './TitleBackComponent'; 16 import { TitleBackComponent } from './TitleBackComponent';
  17 +import { MyCustomDialog } from '../reusable/MyCustomDialog';
17 18
18 @Component 19 @Component
19 export struct MineSettingComponent { 20 export struct MineSettingComponent {
@@ -23,17 +24,22 @@ export struct MineSettingComponent { @@ -23,17 +24,22 @@ export struct MineSettingComponent {
23 @State cacheSize: number = 0 24 @State cacheSize: number = 0
24 @State accountState:boolean=false 25 @State accountState:boolean=false
25 preferences: dataPreferences.Preferences | null = null; 26 preferences: dataPreferences.Preferences | null = null;
  27 +
26 dialogController: CustomDialogController = new CustomDialogController({ 28 dialogController: CustomDialogController = new CustomDialogController({
27 - builder: CustomCacheDialog({ 29 + builder: MyCustomDialog({
28 cancel: () => { 30 cancel: () => {
29 -  
30 }, 31 },
31 confirm: () => { 32 confirm: () => {
32 this.deleteCache() 33 this.deleteCache()
33 - } 34 + },
  35 + title: "清理缓存",
  36 + tipValue:"是否确认清理此App的缓存",
  37 + tipShow:true,
  38 + leftTextColor:$r('app.color.color_648DF2')
34 }), 39 }),
35 - customStyle: true,  
36 - alignment: DialogAlignment.Center 40 + autoCancel: true,
  41 + alignment: DialogAlignment.Center,
  42 + customStyle: true
37 }) 43 })
38 aboutToAppear() { 44 aboutToAppear() {
39 // 获取设置页面数据 45 // 获取设置页面数据