From 1e121177ae03c9506d0fe25501c7ab426a449628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Mon, 18 Nov 2024 16:17:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(cert):=20=E4=BC=98=E5=8C=96=E8=AF=81?= =?UTF-8?q?=E4=B9=A6=E4=B8=8B=E8=BD=BD=E5=92=8C=E8=87=AA=E5=8A=A8=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改了 AutoSignConfirmView 中的页面跳转逻辑 - 更新了多个组件中的 keyGenerator 实现 -调整了部分 UI 样式,如文本大小和布局权重- 增加了对未下载证书的提示 - 修复了 SignManager 中的 stopSignAuto 方法 --- BuildProfile.ets | 4 ++-- src/main/ets/utils/ToolsHelper.ets | 3 ++- src/main/ets/view/RefreshView.ets | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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) })