From bc46bcb6d34c7306061e502c598fc853bc367b9b 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 11:32:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E7=BB=84=E4=BB=B6=E4=B8=AD=E7=9A=84=20Preview=20?= =?UTF-8?q?=E8=A3=85=E9=A5=B0=E5=99=A8=E7=A7=BB=E9=99=A4=E4=BA=86=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E7=BB=84=E4=BB=B6=E4=B8=AD=E7=9A=84=20@Preview?= =?UTF-8?q?=E8=A3=85=E9=A5=B0=E5=99=A8=EF=BC=8C=E5=8C=85=E6=8B=AC=EF=BC=9A?= =?UTF-8?q?=20-=20AutoSignConfirmView=20-=20CAPurchaseAgreementScreen=20-?= =?UTF-8?q?=20GXCertStateAlertScreen=20-=20SelfRegisterView-=20SignAutoAgr?= =?UTF-8?q?eementView=20-=20SelectClientView=20-=20SelectHospitalView=20-?= =?UTF-8?q?=20GXMainView=20-=20MainView=20-=20CertServiceActivation=20-=20?= =?UTF-8?q?EnvManagerView=20-=20GXMineView=20-=20ArticleDetailView=20-=20H?= =?UTF-8?q?omeView=20-=20LoginView=20-=20RegisterView=20-=20ResetView=20-?= =?UTF-8?q?=20VerificationView=20-=20AboutView=20-=20ContactSupportView=20?= =?UTF-8?q?-=20MineView=20-=20SettingsView=20-=20HospitalSearchView-=20MyH?= =?UTF-8?q?ospitalsListView=20-=20NotificationDetailView=20-=20Notificatio?= =?UTF-8?q?nListView=20-=20NotificationTypeView=20-=20GrantActionSheet=20-?= =?UTF-8?q?=20OrderItem=20-=20SignDetailWebComponent=20-=20AddGrantDoctorV?= =?UTF-8?q?iew=20-=20AuthorizeSignAgreementView=20-=20AuthorizeSignConfirm?= =?UTF-8?q?View-=20AuthorizeSignExplanationView=20-=20AuthorizeSignOrderLi?= =?UTF-8?q?stView=20-=20AuthorizeSignQRCodeView=20-=20DescView=20-=20Grant?= =?UTF-8?q?RelationshipView=20-=20SignAutoView=20-=20DustinFolderView=20-?= =?UTF-8?q?=20SignedFolderView=20-=20UnSignFolderView=20-=20DustbinView=20?= =?UTF-8?q?-=20SignedView=20-=20UnSignView=20-=20SearchDustbinView=20-=20S?= =?UTF-8?q?earchSignedView=20-=20SearchUnSignView=20-=20AuthorizeSignOrder?= =?UTF-8?q?DetailView=20-=20YWQHomeView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除 @Preview装饰器可以减少代码冗余,提高代码可读性和维护性。 --- BuildProfile.ets | 4 ++-- src/main/ets/dialog/XDialogList.ets | 1 - src/main/ets/pages/XWebview.ets | 1 - src/main/ets/view/RefreshView.ets | 1 - src/main/ets/view/SafeView.ets | 1 - 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/BuildProfile.ets b/BuildProfile.ets index 9ae474e..155b7b3 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 = 'debug'; -export const DEBUG = true; +export const BUILD_MODE_NAME = 'release'; +export const DEBUG = false; export const TARGET_NAME = 'default'; /** diff --git a/src/main/ets/dialog/XDialogList.ets b/src/main/ets/dialog/XDialogList.ets index 8429e96..71b0f42 100644 --- a/src/main/ets/dialog/XDialogList.ets +++ b/src/main/ets/dialog/XDialogList.ets @@ -2,7 +2,6 @@ import { XDialogCommon } from './XDialogCommon' import { XDialogController } from './XDialogController' -@Preview @Component export struct XDialogList { controller: XDialogController | null = null diff --git a/src/main/ets/pages/XWebview.ets b/src/main/ets/pages/XWebview.ets index 1886da8..e376952 100644 --- a/src/main/ets/pages/XWebview.ets +++ b/src/main/ets/pages/XWebview.ets @@ -11,7 +11,6 @@ import { SZYXLocalStorageHelper } from '../utils/SZYXLocalStorageHelper'; import { SZYXLocalStorageKeys } from '../utils/SZYXLocalStorageKeys'; @Entry({ routeName: 'XWebview' }) -@Preview @Component export struct XWebview { // 手机号 diff --git a/src/main/ets/view/RefreshView.ets b/src/main/ets/view/RefreshView.ets index 2b97cc9..221cbe0 100644 --- a/src/main/ets/view/RefreshView.ets +++ b/src/main/ets/view/RefreshView.ets @@ -1,6 +1,5 @@ import { ToolsHelper } from '../utils/ToolsHelper' -@Preview @Component export struct RefreshView { @Link isLoading: boolean diff --git a/src/main/ets/view/SafeView.ets b/src/main/ets/view/SafeView.ets index 4885eb4..66f7dae 100644 --- a/src/main/ets/view/SafeView.ets +++ b/src/main/ets/view/SafeView.ets @@ -8,7 +8,6 @@ export interface TitleBarBtn { onClick: () => void } -@Preview @Component export struct SafeView { pageInfos?: NavPathStack