diff --git a/BuildProfile.ets b/BuildProfile.ets index 155b7b3..9ae474e 100644 --- a/BuildProfile.ets +++ b/BuildProfile.ets @@ -2,8 +2,8 @@ * Use these variables when you tailor your ArkTS code. They must be of the const type. */ export const HAR_VERSION = '1.0.5'; -export const BUILD_MODE_NAME = 'release'; -export const DEBUG = false; +export const BUILD_MODE_NAME = 'debug'; +export const DEBUG = true; export const TARGET_NAME = 'default'; /** diff --git a/src/main/ets/utils/ToolsHelper.ets b/src/main/ets/utils/ToolsHelper.ets index adbc59d..f13f8eb 100644 --- a/src/main/ets/utils/ToolsHelper.ets +++ b/src/main/ets/utils/ToolsHelper.ets @@ -28,6 +28,7 @@ export interface ConfirmOptions { export interface ListOptions { title?: string cancel?: Btn + autoCancel?: boolean index?: number alignment?: DialogAlignment values: Array @@ -273,7 +274,7 @@ export class ToolsHelper { const dialogTag = ToolsHelper.getUuid() promptAction.openCustomDialog({ cornerRadius: 0, - autoCancel: false, + autoCancel: options.autoCancel ?? false, width: '100%', // height: options.values === undefined ? '20%' : // options.values?.length < 8 ? `${options.values?.length / 16 * 100+10}%` : '50%', diff --git a/src/main/ets/view/RefreshView.ets b/src/main/ets/view/RefreshView.ets index 221cbe0..88cb913 100644 --- a/src/main/ets/view/RefreshView.ets +++ b/src/main/ets/view/RefreshView.ets @@ -67,7 +67,7 @@ export struct RefreshView { } } .width('100%') - .height('100%') + .layoutWeight(1) .onStateChange((refreshStatus: RefreshStatus) => { // ToolsHelper.log('Refresh onStatueChange state is ' + refreshStatus) })