From 257822ec247c1a0d0b87b29575fdfc85d6f08708 Mon Sep 17 00:00:00 2001 From: taosheng11 <8371186+taosheng11@user.noreply.gitee.com> Date: Tue, 2 Sep 2025 09:27:17 +0000 Subject: [PATCH] =?UTF-8?q?update=20PowerAnalysis/InvisibleSample/entry/sr?= =?UTF-8?q?c/main/ets/pages/visible=5Fexample.ets.=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: taosheng11 <8371186+taosheng11@user.noreply.gitee.com> --- .../entry/src/main/ets/pages/visible_example.ets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PowerAnalysis/InvisibleSample/entry/src/main/ets/pages/visible_example.ets b/PowerAnalysis/InvisibleSample/entry/src/main/ets/pages/visible_example.ets index d509f30e..48e62b4a 100644 --- a/PowerAnalysis/InvisibleSample/entry/src/main/ets/pages/visible_example.ets +++ b/PowerAnalysis/InvisibleSample/entry/src/main/ets/pages/visible_example.ets @@ -68,6 +68,10 @@ struct RefreshExample { // Use onStateChange and apngcontroller to control play and stop // [Start nonvisible_advise_1] .onStateChange((refreshStatus: RefreshStatus) => { + // status = 0 : 默认未下拉 + // status = 1、2:下拉中 + // status = 3:下拉完成,回弹中 + // status = 4:刷新结束,返回初始状态 if (refreshStatus >= 1 && refreshStatus < 4) { this.controller.play(); } else { -- Gitee