瀏覽代碼

refactor: 移除多个组件中的 Preview 装饰器移除了多个组件中的 @Preview装饰器,包括:
- AutoSignConfirmView
- CAPurchaseAgreementScreen
- GXCertStateAlertScreen
- SelfRegisterView- SignAutoAgreementView
- SelectClientView
- SelectHospitalView
- GXMainView
- MainView
- CertServiceActivation
- EnvManagerView
- GXMineView
- ArticleDetailView
- HomeView
- LoginView
- RegisterView
- ResetView
- VerificationView
- AboutView
- ContactSupportView
- MineView
- SettingsView
- HospitalSearchView- MyHospitalsListView
- NotificationDetailView
- NotificationListView
- NotificationTypeView
- GrantActionSheet
- OrderItem
- SignDetailWebComponent
- AddGrantDoctorView
- AuthorizeSignAgreementView
- AuthorizeSignConfirmView- AuthorizeSignExplanationView
- AuthorizeSignOrderListView
- AuthorizeSignQRCodeView
- DescView
- GrantRelationshipView
- SignAutoView
- DustinFolderView
- SignedFolderView
- UnSignFolderView
- DustbinView
- SignedView
- UnSignView
- SearchDustbinView
- SearchSignedView
- SearchUnSignView
- AuthorizeSignOrderDetailView
- YWQHomeView

移除 @Preview装饰器可以减少代码冗余,提高代码可读性和维护性。

徐勤民 1 月之前
父節點
當前提交
bc46bcb6d3

+ 2 - 2
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';
 
 /**

+ 0 - 1
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

+ 0 - 1
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 {
   // 手机号

+ 0 - 1
src/main/ets/view/RefreshView.ets

@@ -1,6 +1,5 @@
 import { ToolsHelper } from '../utils/ToolsHelper'
 
-@Preview
 @Component
 export struct RefreshView {
   @Link isLoading: boolean

+ 0 - 1
src/main/ets/view/SafeView.ets

@@ -8,7 +8,6 @@ export interface TitleBarBtn {
   onClick: () => void
 }
 
-@Preview
 @Component
 export struct SafeView {
   pageInfos?: NavPathStack