From 8c90825a99029c7af857fa23c98de3f61e9ba5f4 Mon Sep 17 00:00:00 2001 From: WendongPang Date: Thu, 11 Sep 2025 15:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0use=20static?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: WendongPang --- api/@ohos.measure.static.d.ets | 1 + api/@ohos.mediaquery.static.d.ets | 1 + api/@system.mediaquery.static.d.ets | 1 + api/arkui/BlankModifier.static.d.ets | 1 + api/arkui/ColumnModifier.static.d.ets | 1 + api/arkui/ColumnSplitModifier.static.d.ets | 1 + api/arkui/DividerModifier.static.d.ets | 1 + api/arkui/FlexModifier.static.d.ets | 1 + api/arkui/FolderStackModifier.static.d.ets | 1 + api/arkui/GridColModifier.static.d.ets | 1 + api/arkui/GridRowModifier.static.d.ets | 1 + api/arkui/RelativeContainerModifier.static.d.ets | 1 + api/arkui/RowModifier.static.d.ets | 1 + api/arkui/RowSplitModifier.static.d.ets | 1 + api/arkui/StackModifier.static.d.ets | 1 + api/arkui/component/blank.static.d.ets | 3 ++- api/arkui/component/column.static.d.ets | 9 +++++---- api/arkui/component/columnSplit.static.d.ets | 5 +++-- api/arkui/component/divider.static.d.ets | 9 +++++---- api/arkui/component/flex.static.d.ets | 5 +++-- api/arkui/component/folderStack.static.d.ets | 11 ++++++----- api/arkui/component/gridCol.static.d.ets | 7 ++++--- api/arkui/component/gridRow.static.d.ets | 5 +++-- api/arkui/component/relativeContainer.static.d.ets | 6 +++--- api/arkui/component/row.static.d.ets | 9 +++++---- api/arkui/component/rowSplit.static.d.ets | 3 ++- api/arkui/component/stack.static.d.ets | 7 ++++--- 27 files changed, 60 insertions(+), 34 deletions(-) diff --git a/api/@ohos.measure.static.d.ets b/api/@ohos.measure.static.d.ets index c583a9e1c6..7429ab70cf 100644 --- a/api/@ohos.measure.static.d.ets +++ b/api/@ohos.measure.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/@ohos.mediaquery.static.d.ets b/api/@ohos.mediaquery.static.d.ets index b4b05cfd13..0c0285765d 100644 --- a/api/@ohos.mediaquery.static.d.ets +++ b/api/@ohos.mediaquery.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/@system.mediaquery.static.d.ets b/api/@system.mediaquery.static.d.ets index 2c4e84ba0a..80e1c43456 100644 --- a/api/@system.mediaquery.static.d.ets +++ b/api/@system.mediaquery.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/BlankModifier.static.d.ets b/api/arkui/BlankModifier.static.d.ets index fa314be21e..3915913af6 100644 --- a/api/arkui/BlankModifier.static.d.ets +++ b/api/arkui/BlankModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/ColumnModifier.static.d.ets b/api/arkui/ColumnModifier.static.d.ets index 6696c6b60e..91dcf495f1 100644 --- a/api/arkui/ColumnModifier.static.d.ets +++ b/api/arkui/ColumnModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/ColumnSplitModifier.static.d.ets b/api/arkui/ColumnSplitModifier.static.d.ets index a01bfd16fd..c2a87ec032 100644 --- a/api/arkui/ColumnSplitModifier.static.d.ets +++ b/api/arkui/ColumnSplitModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/DividerModifier.static.d.ets b/api/arkui/DividerModifier.static.d.ets index fd7553abb8..1759f793f6 100644 --- a/api/arkui/DividerModifier.static.d.ets +++ b/api/arkui/DividerModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/FlexModifier.static.d.ets b/api/arkui/FlexModifier.static.d.ets index de1351e56c..ab7d43d9a3 100644 --- a/api/arkui/FlexModifier.static.d.ets +++ b/api/arkui/FlexModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/FolderStackModifier.static.d.ets b/api/arkui/FolderStackModifier.static.d.ets index ce4f67a2af..f72337848e 100644 --- a/api/arkui/FolderStackModifier.static.d.ets +++ b/api/arkui/FolderStackModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/GridColModifier.static.d.ets b/api/arkui/GridColModifier.static.d.ets index 9f65e3dcf9..0231260e21 100644 --- a/api/arkui/GridColModifier.static.d.ets +++ b/api/arkui/GridColModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/GridRowModifier.static.d.ets b/api/arkui/GridRowModifier.static.d.ets index f312dc72af..3cb7ed5ead 100644 --- a/api/arkui/GridRowModifier.static.d.ets +++ b/api/arkui/GridRowModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/RelativeContainerModifier.static.d.ets b/api/arkui/RelativeContainerModifier.static.d.ets index 28c732e02f..c5388c3e95 100644 --- a/api/arkui/RelativeContainerModifier.static.d.ets +++ b/api/arkui/RelativeContainerModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/RowModifier.static.d.ets b/api/arkui/RowModifier.static.d.ets index 3ad037bb9d..68fe75a2e5 100644 --- a/api/arkui/RowModifier.static.d.ets +++ b/api/arkui/RowModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/RowSplitModifier.static.d.ets b/api/arkui/RowSplitModifier.static.d.ets index e517b602f5..fcdea6e030 100644 --- a/api/arkui/RowSplitModifier.static.d.ets +++ b/api/arkui/RowSplitModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/StackModifier.static.d.ets b/api/arkui/StackModifier.static.d.ets index a12345a28f..0fb585f872 100644 --- a/api/arkui/StackModifier.static.d.ets +++ b/api/arkui/StackModifier.static.d.ets @@ -1,3 +1,4 @@ +'use static' /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/api/arkui/component/blank.static.d.ets b/api/arkui/component/blank.static.d.ets index 94dea49010..213e840459 100644 --- a/api/arkui/component/blank.static.d.ets +++ b/api/arkui/component/blank.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -34,7 +35,7 @@ export declare interface BlankAttribute extends CommonMethod { * Sets the color to fill the blank.
* Default value: **Color.Transparent**. * - * @param { ResourceColor } value + * @param { ResourceColor | undefined } value * @returns { BlankAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static diff --git a/api/arkui/component/column.static.d.ets b/api/arkui/component/column.static.d.ets index 43ff38beda..902a363c26 100644 --- a/api/arkui/component/column.static.d.ets +++ b/api/arkui/component/column.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -76,7 +77,7 @@ export declare interface ColumnAttribute extends CommonMethod { /** * Sets the alignment format of the subassembly in the horizontal direction. * - * @param { HorizontalAlign } value + * @param { HorizontalAlign | undefined } value * @returns { ColumnAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -85,7 +86,7 @@ export declare interface ColumnAttribute extends CommonMethod { /** * Sets the alignment format of the subassembly in the vertical direction. * - * @param { FlexAlign } value + * @param { FlexAlign | undefined } value * @returns { ColumnAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -94,13 +95,13 @@ export declare interface ColumnAttribute extends CommonMethod { /** * Defines the PointLight * - * @param { PointLightStyle } value - The point light style. + * @param { PointLightStyle | undefined } value - The point light style. * @returns { ColumnAttribute } The attribute of the column. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 static */ - default pointLight(value: PointLightStyle): ColumnAttribute; + default pointLight(value: PointLightStyle | undefined): this; /** * Called when the Main-Axis's direction is set reversed or not * diff --git a/api/arkui/component/columnSplit.static.d.ets b/api/arkui/component/columnSplit.static.d.ets index 0d01fe1023..aacf5f02e7 100644 --- a/api/arkui/component/columnSplit.static.d.ets +++ b/api/arkui/component/columnSplit.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -60,7 +61,7 @@ export declare interface ColumnSplitAttribute extends CommonMethod { /** * Indicates whether the split line can be dragged. The default value is false. * - * @param { boolean } value + * @param { boolean | undefined } value * @returns { ColumnSplitAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -68,7 +69,7 @@ export declare interface ColumnSplitAttribute extends CommonMethod { default resizeable(value: boolean | undefined): this; /** * Called when the ColumnSplit split line style is set. - * @param { ColumnSplitDividerStyle | null } value - indicates the style of the indicator. + * @param { ColumnSplitDividerStyle | null | undefined } value - indicates the style of the indicator. * if value is set to null, the value of startMargin and endMargin is set to 0.0 by default. * @returns { ColumnSplitAttribute } the attribute of the ColumnSplit * @syscap SystemCapability.ArkUI.ArkUI.Full diff --git a/api/arkui/component/divider.static.d.ets b/api/arkui/component/divider.static.d.ets index 38df29434f..5a9a6f76a0 100644 --- a/api/arkui/component/divider.static.d.ets +++ b/api/arkui/component/divider.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -35,7 +36,7 @@ export declare interface DividerAttribute extends CommonMethod { * Indicates whether to use a horizontal splitter or a vertical splitter. * The options are as follows: false: horizontal splitter; true: vertical splitter. * - * @param { boolean } value + * @param { boolean | undefined } value * @returns { DividerAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -44,7 +45,7 @@ export declare interface DividerAttribute extends CommonMethod { /** * Sets the color of the divider line. * - * @param { ResourceColor } value + * @param { ResourceColor | undefined } value * @returns { DividerAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -53,7 +54,7 @@ export declare interface DividerAttribute extends CommonMethod { /** * Sets the width of the dividing line. * - * @param { number | string } value + * @param { number | string | undefined } value * @returns { DividerAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -62,7 +63,7 @@ export declare interface DividerAttribute extends CommonMethod { /** * Sets the end style of the split line. The default value is Butt. * - * @param { LineCapStyle } value + * @param { LineCapStyle | undefined } value * @returns { DividerAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static diff --git a/api/arkui/component/flex.static.d.ets b/api/arkui/component/flex.static.d.ets index e09b110759..8c2513e006 100644 --- a/api/arkui/component/flex.static.d.ets +++ b/api/arkui/component/flex.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -123,13 +124,13 @@ export declare interface FlexAttribute extends CommonMethod { /** * Defines the PointLight * - * @param { PointLightStyle } value - The point light style. + * @param { PointLightStyle | undefined } value - The point light style. * @returns { FlexAttribute } The attribute of the flex. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 static */ - default pointLight(value: PointLightStyle): FlexAttribute; + default pointLight(value: PointLightStyle | undefined): this; /** * Set the attribute modifier * diff --git a/api/arkui/component/folderStack.static.d.ets b/api/arkui/component/folderStack.static.d.ets index 9486cd21d9..40d68598e1 100644 --- a/api/arkui/component/folderStack.static.d.ets +++ b/api/arkui/component/folderStack.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -98,7 +99,7 @@ export declare interface FolderStackAttribute extends CommonMethod { /** * Set the alignment of folderStack. * - * @param { Alignment } value - align of children + * @param { Alignment | undefined } value - align of children * @returns { FolderStackAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -108,7 +109,7 @@ export declare interface FolderStackAttribute extends CommonMethod { * Callback folderState when the folderState changes * * Anonymous Object Rectification - * @param { OnFoldStatusChangeCallback } callback - executed when folderStatus changed + * @param { OnFoldStatusChangeCallback | undefined } callback - executed when folderStatus changed * @returns { FolderStackAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -118,7 +119,7 @@ export declare interface FolderStackAttribute extends CommonMethod { * Callback hoverStatus|folderStatus|rotation|windowMode when the hoverStatus changes * * Anonymous Object Rectification - * @param { OnHoverStatusChangeCallback } handler - executed when hoverStatus changed + * @param { OnHoverStatusChangeCallback | undefined } handler - executed when hoverStatus changed * @returns { FolderStackAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -127,7 +128,7 @@ export declare interface FolderStackAttribute extends CommonMethod { /** * Enable the animation of folderStack. * - * @param { boolean } value - enable the animation of folderStatus changed + * @param { boolean | undefined } value - enable the animation of folderStatus changed * @returns { FolderStackAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -136,7 +137,7 @@ export declare interface FolderStackAttribute extends CommonMethod { /** * Enable auto halfFolder when orientation. * - * @param { boolean } value - enable auto halfFold + * @param { boolean | undefined } value - enable auto halfFold * @returns { FolderStackAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static diff --git a/api/arkui/component/gridCol.static.d.ets b/api/arkui/component/gridCol.static.d.ets index 968403ca50..1671ea13cc 100644 --- a/api/arkui/component/gridCol.static.d.ets +++ b/api/arkui/component/gridCol.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -122,7 +123,7 @@ export declare interface GridColAttribute extends CommonMethod { /** * Sets the span of current gird-container item. * - * @param { number | GridColColumnOption } value + * @param { number | GridColColumnOption | undefined } value * @returns { GridColAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -131,7 +132,7 @@ export declare interface GridColAttribute extends CommonMethod { /** * Sets the offset of current gird-container item. * - * @param { number | GridColColumnOption } value + * @param { number | GridColColumnOption | undefined } value * @returns { GridColAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -140,7 +141,7 @@ export declare interface GridColAttribute extends CommonMethod { /** * Sets the order of current gird-container item. * - * @param { number | GridColColumnOption } value + * @param { number | GridColColumnOption | undefined } value * @returns { GridColAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static diff --git a/api/arkui/component/gridRow.static.d.ets b/api/arkui/component/gridRow.static.d.ets index b9f8f54b50..9c54aa429f 100644 --- a/api/arkui/component/gridRow.static.d.ets +++ b/api/arkui/component/gridRow.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -285,7 +286,7 @@ export declare interface GridRowAttribute extends CommonMethod { /** * Callback triggered when the breakpoint changes, breakpoints value can be xs, sm, md, lg, xl, xxl * - * @param { function } callback + * @param { function | undefined } callback * @returns { GridRowAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -294,7 +295,7 @@ export declare interface GridRowAttribute extends CommonMethod { /** * Cross axis alignment of each line in GridRow. * - * @param { ItemAlign } value - element alignment + * @param { ItemAlign | undefined } value - element alignment * @returns { GridRowAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static diff --git a/api/arkui/component/relativeContainer.static.d.ets b/api/arkui/component/relativeContainer.static.d.ets index 1d14d907ff..5ab835824d 100644 --- a/api/arkui/component/relativeContainer.static.d.ets +++ b/api/arkui/component/relativeContainer.static.d.ets @@ -232,7 +232,7 @@ export declare interface RelativeContainerAttribute extends CommonMethod { /** * Specifies guideLines of relativeContainer * - * @param { Array } value + * @param { Array | undefined } value * @returns { RelativeContainerAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -241,7 +241,7 @@ export declare interface RelativeContainerAttribute extends CommonMethod { /** * Specifies barriers of relativeContainer * - * @param { Array } value + * @param { Array | undefined } value * @returns { RelativeContainerAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -250,7 +250,7 @@ export declare interface RelativeContainerAttribute extends CommonMethod { /** * Specifies barriers of relativeContainer * - * @param { Array } barrierStyle + * @param { Array | undefined } barrierStyle * @returns { RelativeContainerAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static diff --git a/api/arkui/component/row.static.d.ets b/api/arkui/component/row.static.d.ets index 7855b8c2a3..0696a6e784 100644 --- a/api/arkui/component/row.static.d.ets +++ b/api/arkui/component/row.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -69,7 +70,7 @@ export declare interface RowAttribute extends CommonMethod { /** * Called when the vertical alignment is set. * - * @param { VerticalAlign } value + * @param { VerticalAlign | undefined } value * @returns { RowAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -78,7 +79,7 @@ export declare interface RowAttribute extends CommonMethod { /** * Called when the horizontal alignment is set. * - * @param { FlexAlign } value + * @param { FlexAlign | undefined } value * @returns { RowAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -87,13 +88,13 @@ export declare interface RowAttribute extends CommonMethod { /** * Defines the PointLight * - * @param { PointLightStyle } value - The point light style. + * @param { PointLightStyle | undefined } value - The point light style. * @returns { RowAttribute } The attribute of the row. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 static */ - default pointLight(value: PointLightStyle): RowAttribute; + default pointLight(value: PointLightStyle | undefined): this; /** * Called when the Main-Axis's direction is set reversed or not * diff --git a/api/arkui/component/rowSplit.static.d.ets b/api/arkui/component/rowSplit.static.d.ets index 49bfe34ee2..b938992219 100644 --- a/api/arkui/component/rowSplit.static.d.ets +++ b/api/arkui/component/rowSplit.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -33,7 +34,7 @@ export declare interface RowSplitAttribute extends CommonMethod { * Called when judging whether the split line can be dragged. * * @param { boolean } value - * @returns { RowSplitAttribute } + * @returns { RowSplitAttribute | undefined } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static */ diff --git a/api/arkui/component/stack.static.d.ets b/api/arkui/component/stack.static.d.ets index 8730d7658b..52594bba85 100644 --- a/api/arkui/component/stack.static.d.ets +++ b/api/arkui/component/stack.static.d.ets @@ -1,3 +1,4 @@ +'use static'; /* * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -52,7 +53,7 @@ export declare interface StackAttribute extends CommonMethod { /** * Called when the alignment of items in the container is set. * - * @param { Alignment } value + * @param { Alignment | undefined } value * @returns { StackAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 static @@ -61,13 +62,13 @@ export declare interface StackAttribute extends CommonMethod { /** * Sets the point light style. * - * @param { PointLightStyle } value - The point light style. + * @param { PointLightStyle | undefined } value - The point light style. * @returns { StackAttribute } The attribute of the stack. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 static */ - default pointLight(value: PointLightStyle): StackAttribute; + default pointLight(value: PointLightStyle | undefined): this; /** * Set the attribute modifier * -- Gitee