From 4452ec3cb96d35849816fc6206e0727dd019d341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B5=A9=E7=A8=8B?= <798994511@qq.com> Date: Fri, 9 May 2025 14:30:04 +0800 Subject: [PATCH] 1 --- features/home/src/main/ets/view/BannerView.ets | 8 ++++---- features/search/src/main/ets/view/SearchForHua.ets | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/features/home/src/main/ets/view/BannerView.ets b/features/home/src/main/ets/view/BannerView.ets index be38b58..2fce5e9 100644 --- a/features/home/src/main/ets/view/BannerView.ets +++ b/features/home/src/main/ets/view/BannerView.ets @@ -57,9 +57,9 @@ export struct BannerView { Column() { // Banner layout. Row() { - // [Start pc] + // [Start bannerView] Swiper() { - // [StartExclude pc] + // [StartExclude bannerView] LazyForEach(this.bannerDataSource, (item: Banner, index: number) => { Stack() { Image(this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? item.getBannerImg().getImgSrcSm() : @@ -131,7 +131,7 @@ export struct BannerView { right: this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? $r('app.float.banner_padding_sm') : 0 }) }, (item: Banner, index: number) => index + JSON.stringify(item)) - // [EndExclude pc] + // [EndExclude bannerView] } .displayCount(this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? 1 : HomeConstants.TWO) // Interval between banner images @@ -142,7 +142,7 @@ export struct BannerView { .nextMargin(new BreakpointType($r('app.float.swiper_prev_next_margin_sm'), $r('app.float.swiper_prev_next_margin_md'), $r('app.float.swiper_prev_next_margin_lg')) .getValue(this.currentWidthBreakpoint)) - // [End pc] + // [End bannerView] // Setting the navigation point Style of the swiper. .indicator(this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? Indicator.dot() .itemWidth($r('app.float.swiper_item_size')) diff --git a/features/search/src/main/ets/view/SearchForHua.ets b/features/search/src/main/ets/view/SearchForHua.ets index 91d42f3..42c20b9 100644 --- a/features/search/src/main/ets/view/SearchForHua.ets +++ b/features/search/src/main/ets/view/SearchForHua.ets @@ -24,9 +24,9 @@ export struct SearchForHua { build() { Column() { - // [Start pc] + // [Start searchForHua] List() { - // [StartExclude pc] + // [StartExclude searchForHua] ForEach(SearchConstants.HUA_LIST, (item: string, index: number) => { ListItem() { Column() { @@ -54,11 +54,11 @@ export struct SearchForHua { }) } }) - // [EndExclude pc] + // [EndExclude searchForHua] } .lanes(this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_LG ? SearchConstants.SEARCH_LIST_LANES[1] : SearchConstants.SEARCH_LIST_LANES[2]) - // [End pc] + // [End searchForHua] } .layoutWeight(1) .padding({ top: $r('app.float.search_hua_list_padding') }) -- Gitee