From 2e814e413f446aabf0e68ade5af1e55cb35e99b6 Mon Sep 17 00:00:00 2001
From: xiangyuan6
Date: Thu, 21 Aug 2025 09:18:20 +0800
Subject: [PATCH] fix_1.2_interface
Signed-off-by: xiangyuan6
---
api/arkui/component/common.static.d.ets | 8 ++++----
api/arkui/component/styledString.static.d.ets | 4 ++--
api/arkui/component/text.static.d.ets | 16 ++++++++--------
api/arkui/component/textCommon.static.d.ets | 12 ++++++------
4 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets
index 0f7ab57f03..1415fce67b 100644
--- a/api/arkui/component/common.static.d.ets
+++ b/api/arkui/component/common.static.d.ets
@@ -109,11 +109,11 @@ export declare interface TextDecorationOptions {
/**
* The decoration type.
*
- * @type { TextDecorationType }
+ * @type { TextDecorationType | undefined }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- type: TextDecorationType;
+ type: TextDecorationType | undefined;
/**
* Sets the color of decoration.
*
@@ -3467,11 +3467,11 @@ export declare interface ShadowOptions {
/**
* Blur radius of the shadow.
*
- * @type { number | Resource }
+ * @type { number | Resource | undefined }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- radius: number | Resource;
+ radius: number | Resource | undefined;
/**
* Shadow type.
*
Default value: **COLOR**.
diff --git a/api/arkui/component/styledString.static.d.ets b/api/arkui/component/styledString.static.d.ets
index 519302f58f..d95552ba42 100644
--- a/api/arkui/component/styledString.static.d.ets
+++ b/api/arkui/component/styledString.static.d.ets
@@ -466,11 +466,11 @@ export declare interface DecorationStyleInterface {
/**
* The type value of the decoration property object.
*
- * @type { TextDecorationType }
+ * @type { TextDecorationType | undefined }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- type: TextDecorationType;
+ type: TextDecorationType | undefined;
/**
* The color value of the decoration property object.
*
diff --git a/api/arkui/component/text.static.d.ets b/api/arkui/component/text.static.d.ets
index 1c4e93d132..156e2b6f73 100644
--- a/api/arkui/component/text.static.d.ets
+++ b/api/arkui/component/text.static.d.ets
@@ -39,12 +39,12 @@ export declare interface TextOverflowOptions {
* Text overflow option.
*
* Anonymous Object Rectification.
- * @type { TextOverflow }
+ * @type { TextOverflow | undefined }
* @default TextOverflow.Clip
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- overflow: TextOverflow;
+ overflow: TextOverflow | undefined;
}
/**
* TextAttribute.
@@ -62,8 +62,8 @@ export declare interface TextAttribute extends CommonMethod {
*
It is only effective for the Text component, not for its child components.
*
*
- * @param { Font } fontValue - the text font size and weight and family and style.
- * @param { FontSettingOptions } options - font setting options.
+ * @param { Font | undefined } fontValue - the text font size and weight and family and style.
+ * @param { FontSettingOptions | undefined } options - font setting options.
* @returns { TextAttribute } The attribute of the text.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
@@ -252,7 +252,7 @@ export declare interface TextAttribute extends CommonMethod {
* where the text and images are displayed in scrolling mode in a line.
*
*
- * @param { TextOverflowOptions } options - Text overflow options.
+ * @param { TextOverflowOptions | undefined } options - Text overflow options.
* @returns { TextAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
@@ -295,7 +295,7 @@ export declare interface TextAttribute extends CommonMethod {
*
The style parameter cannot be used in widgets.
*
*
- * @param { DecorationStyleInterface } value - Default value is { type: TextDecorationType.None, color: Color.Black, style: TextDecorationStyle.SOLID }.
+ * @param { DecorationStyleInterface | undefined } value - Default value is { type: TextDecorationType.None, color: Color.Black, style: TextDecorationStyle.SOLID }.
* @returns { TextAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
@@ -366,7 +366,7 @@ export declare interface TextAttribute extends CommonMethod {
*
This API does not work with the fill attribute or coloring strategy.
*
*
- * @param { ShadowOptions | Array } value - The shadow options.
+ * @param { ShadowOptions | Array | undefined } value - The shadow options.
* @returns { TextAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
@@ -549,7 +549,7 @@ export declare interface TextAttribute extends CommonMethod {
*
*
*
- * @param { TextDataDetectorConfig } config - The config of text data detector.
+ * @param { TextDataDetectorConfig | undefined } config - The config of text data detector.
* @returns { TextAttribute } The attribute of the text.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
diff --git a/api/arkui/component/textCommon.static.d.ets b/api/arkui/component/textCommon.static.d.ets
index dd08c7621b..455d1fa489 100644
--- a/api/arkui/component/textCommon.static.d.ets
+++ b/api/arkui/component/textCommon.static.d.ets
@@ -78,11 +78,11 @@ export declare interface TextDataDetectorConfig {
/**
* Text data detector types.
*
- * @type { TextDataDetectorType[] }
+ * @type { TextDataDetectorType[] | undefined }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- types: TextDataDetectorType[];
+ types: TextDataDetectorType[] | undefined;
/**
* Text data detect result callback.
*
@@ -757,19 +757,19 @@ export declare interface EditMenuOptions {
/**
* Passes the default menu, invokes before every display to generate a menu for triggering click events.
*
- * @type { OnCreateMenuCallback }
+ * @type { OnCreateMenuCallback | undefined }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- onCreateMenu: OnCreateMenuCallback;
+ onCreateMenu: OnCreateMenuCallback | undefined;
/**
* Invoke upon clicking an item, capable of intercepting the default system menu execution behavior.
*
- * @type { OnMenuItemClickCallback }
+ * @type { OnMenuItemClickCallback | undefined }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- onMenuItemClick: OnMenuItemClickCallback;
+ onMenuItemClick: OnMenuItemClickCallback | undefined;
}
/**
* Defines the font decoration result.
--
Gitee