From a7405475f95750133a7383992035aa35ecfe039b Mon Sep 17 00:00:00 2001 From: wind Date: Thu, 24 Aug 2023 03:30:36 +0000 Subject: [PATCH] =?UTF-8?q?list=20XTS=E4=BF=AE=E6=94=B9=EF=BC=8CscrollBar?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=80=BC=E8=B5=B0=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?AUTO=EF=BC=8CcacheCount=E9=BB=98=E8=AE=A4=E5=80=BC=E7=94=B10?= =?UTF-8?q?=E5=8F=98=E4=B8=BA1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wind --- .../entry/src/main/ets/test/ListJsunit.test.ets | 2 +- .../pages/List/List_initialIndex/List_ListInitialIndex1.ets | 1 + .../pages/List/List_initialIndex/List_ListInitialIndex2.ets | 1 + .../pages/List/List_initialIndex/List_ListInitialIndex3.ets | 1 + .../pages/List/List_initialIndex/List_ListInitialIndex4.ets | 1 + .../pages/List/List_initialIndex/List_ListInitialIndex5.ets | 1 + .../pages/List/List_initialIndex/List_ListInitialIndex6.ets | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arkui/ace_ets_component_ui/entry/src/main/ets/test/ListJsunit.test.ets b/arkui/ace_ets_component_ui/entry/src/main/ets/test/ListJsunit.test.ets index 5ec71c338..1d4b6fb39 100644 --- a/arkui/ace_ets_component_ui/entry/src/main/ets/test/ListJsunit.test.ets +++ b/arkui/ace_ets_component_ui/entry/src/main/ets/test/ListJsunit.test.ets @@ -278,7 +278,7 @@ export default function ListJsunit() { expect(obj.$attrs.divider.color).assertEqual('#FF00000A'); expect(obj.$attrs.divider.startMargin).assertEqual('0.00vp'); expect(obj.$attrs.divider.endMargin).assertEqual('-10.00vp'); - expect(obj.$attrs.scrollBar).assertEqual('BarState.Off'); + expect(obj.$attrs.scrollBar).assertEqual('BarState.Auto'); await CommonFunc.sleep(1000); expect(obj.$attrs.cachedCount).assertEqual('1'); expect(obj.$attrs.edgeEffect).assertEqual('EdgeEffect.None'); diff --git a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex1.ets b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex1.ets index c497fe9d5..0f77b494b 100644 --- a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex1.ets +++ b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex1.ets @@ -31,6 +31,7 @@ struct List_ListInitialIndex1{ .key('List_ListInitialIndex1_'+ item) }, item => item) } + .cachedCount(0) .width(300) .height(500) .listDirection(Axis.Vertical) diff --git a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex2.ets b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex2.ets index 6d87c1989..69426a796 100644 --- a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex2.ets +++ b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex2.ets @@ -31,6 +31,7 @@ struct List_ListInitialIndex2{ .key('List_ListInitialIndex2_'+ item) }, item => item) } + .cachedCount(0) .width(300) .height(500) .listDirection(Axis.Vertical) diff --git a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex3.ets b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex3.ets index 33fbb8b3f..ad4e93019 100644 --- a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex3.ets +++ b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex3.ets @@ -31,6 +31,7 @@ struct List_ListInitialIndex3{ .key('List_ListInitialIndex3_'+ item) }, item => item) } + .cachedCount(0) .width(300) .height(500) .listDirection(Axis.Vertical) diff --git a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex4.ets b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex4.ets index 1573ca176..0daf3764d 100644 --- a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex4.ets +++ b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex4.ets @@ -31,6 +31,7 @@ struct List_ListInitialIndex4{ .key('List_ListInitialIndex4_'+ item) }, item => item) } + .cachedCount(0) .width(300) .height(500) .listDirection(Axis.Vertical) diff --git a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex5.ets b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex5.ets index 5fb01370c..b16fda094 100644 --- a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex5.ets +++ b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex5.ets @@ -31,6 +31,7 @@ struct List_ListInitialIndex5{ .key('List_ListInitialIndex5_'+ item) }, item => item) } + .cachedCount(0) .width(300) .height(500) .listDirection(Axis.Vertical) diff --git a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex6.ets b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex6.ets index f60634f06..e971be666 100644 --- a/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex6.ets +++ b/arkui/ace_ets_layout_test/ace_ets_layout_list_test/entry/src/main/ets/MainAbility/pages/List/List_initialIndex/List_ListInitialIndex6.ets @@ -31,6 +31,7 @@ struct List_ListInitialIndex6{ .key('List_ListInitialIndex6_'+ item) }, item => item) } + .cachedCount(0) .width(300) .height(500) .listDirection(Axis.Vertical) -- GitLab