From 54a64f04b49c09777ede3ebc3b1c51345924ff3e Mon Sep 17 00:00:00 2001 From: liugang9704 <2745340733@qq.com> Date: Thu, 25 Dec 2025 09:29:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=90=8C=E6=BA=90?= =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ets/pages/SideSlipEventInterception.ets | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/ArkUI/entry/src/main/ets/pages/SideSlipEventInterception.ets b/ArkUI/entry/src/main/ets/pages/SideSlipEventInterception.ets index af3b918..1bca2fa 100644 --- a/ArkUI/entry/src/main/ets/pages/SideSlipEventInterception.ets +++ b/ArkUI/entry/src/main/ets/pages/SideSlipEventInterception.ets @@ -1,3 +1,23 @@ +/* +* Copyright (c) 2024 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* +* FAQ: 如何在Navigation页面中实现侧滑事件拦截 +*/ + +// [Start SideSlipEventInterception] import { ShowDialogSuccessResponse } from '@kit.ArkUI'; @Entry @@ -61,7 +81,9 @@ struct SideslipIntercept { console.info('Saving') } }) - return true ; + return true; }) } -} \ No newline at end of file +} + +// [End SideSlipEventInterception] \ No newline at end of file -- Gitee