From fccab65a65be7b96530250934b4aa0afa5f610f9 Mon Sep 17 00:00:00 2001 From: yanzhimo Date: Wed, 18 Jun 2025 11:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=90=8C=E6=BA=90=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomTitleBarWindowDrag/entry/src/main/ets/pages/Index.ets | 4 +++- SubwindowAdaptWhenRotate/entry/src/main/ets/pages/Index.ets | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CustomTitleBarWindowDrag/entry/src/main/ets/pages/Index.ets b/CustomTitleBarWindowDrag/entry/src/main/ets/pages/Index.ets index e878e49d..f48b0049 100644 --- a/CustomTitleBarWindowDrag/entry/src/main/ets/pages/Index.ets +++ b/CustomTitleBarWindowDrag/entry/src/main/ets/pages/Index.ets @@ -13,6 +13,7 @@ * limitations under the License. */ +// [Start drag_sample] import { window } from '@kit.ArkUI'; import { BusinessError } from '@kit.BasicServicesKit'; @@ -48,4 +49,5 @@ struct Index { }) }.width(COLUMN_WIDTH).position({ top: COLUMN_TOP, left: COLUMN_LEFT }).alignItems(HorizontalAlign.Center); } -} \ No newline at end of file +} +// [End drag_sample] \ No newline at end of file diff --git a/SubwindowAdaptWhenRotate/entry/src/main/ets/pages/Index.ets b/SubwindowAdaptWhenRotate/entry/src/main/ets/pages/Index.ets index ea397116..a99af43a 100644 --- a/SubwindowAdaptWhenRotate/entry/src/main/ets/pages/Index.ets +++ b/SubwindowAdaptWhenRotate/entry/src/main/ets/pages/Index.ets @@ -13,6 +13,7 @@ * limitations under the License. */ +// [Start rotate_sample] import { window } from '@kit.ArkUI'; import { BusinessError } from '@kit.BasicServicesKit'; @@ -71,6 +72,7 @@ struct Index { } } + // [StartExclude rotate_sample] private createSubWindow() { window.createWindow({ name: 'subWindow', @@ -108,4 +110,6 @@ struct Index { .height('100%') .width('100%') } -} \ No newline at end of file + // [EndExclude rotate_sample] +} +// [End rotate_sample] \ No newline at end of file -- Gitee