From 9eb6592bc8b87a5e85c4246bec57185e7e35a7fc Mon Sep 17 00:00:00 2001
From: weixin_43271254
Date: Wed, 20 Aug 2025 20:40:18 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=9C=ACAPI=2020=E6=8E=A5=E5=8F=A3?=
=?UTF-8?q?=E5=8F=8Aundefined=E5=8F=82=E6=95=B0=E8=A1=A5=E5=85=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: weixin_43271254
Change-Id: Ifdafe1ef50eb58ef752911783ee2b45e7492f878
---
api/arkui/component/marquee.static.d.ets | 4 +-
api/arkui/component/symbolSpan.static.d.ets | 4 +-
api/arkui/component/symbolglyph.static.d.ets | 8 ++--
api/arkui/component/text.static.d.ets | 27 +++++++++++--
api/arkui/component/textArea.static.d.ets | 41 +++++++++++++++++++-
api/arkui/component/textInput.static.d.ets | 22 ++++++++++-
6 files changed, 90 insertions(+), 16 deletions(-)
diff --git a/api/arkui/component/marquee.static.d.ets b/api/arkui/component/marquee.static.d.ets
index 2752783d26..3011c6b19c 100644
--- a/api/arkui/component/marquee.static.d.ets
+++ b/api/arkui/component/marquee.static.d.ets
@@ -158,12 +158,12 @@ export declare interface MarqueeAttribute extends CommonMethod {
* and the following enumerated values of FontWeight are supported: "bold", "bolder", "lighter", "regular", and "medium".
*
*
- * @param { number | FontWeight | string | undefined } value - Default value is FontWeight.Normal.
+ * @param { number | FontWeight | ResourceStr | undefined } value - Default value is FontWeight.Normal.
* @returns { MarqueeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- default fontWeight(value: number | FontWeight | string | undefined): this;
+ default fontWeight(value: number | FontWeight | ResourceStr | undefined): this;
/**
* Set marquee font family.
*
diff --git a/api/arkui/component/symbolSpan.static.d.ets b/api/arkui/component/symbolSpan.static.d.ets
index 49a3fed339..0bc1b82b37 100644
--- a/api/arkui/component/symbolSpan.static.d.ets
+++ b/api/arkui/component/symbolSpan.static.d.ets
@@ -55,12 +55,12 @@ export declare interface SymbolSpanAttribute extends CommonMethod {
/**
* Called when the font SymbolSpan weight is set.
*
- * @param { number | FontWeight | string | undefined } value
+ * @param { number | FontWeight | ResourceStr | undefined } value
* @returns { SymbolSpanAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- default fontWeight(value: number | FontWeight | string | undefined): this;
+ default fontWeight(value: number | FontWeight | ResourceStr | undefined): this;
/**
* Called when the SymbolSpan effect is set.
*
diff --git a/api/arkui/component/symbolglyph.static.d.ets b/api/arkui/component/symbolglyph.static.d.ets
index b6f7d7c26e..ca63c6e0cb 100644
--- a/api/arkui/component/symbolglyph.static.d.ets
+++ b/api/arkui/component/symbolglyph.static.d.ets
@@ -367,12 +367,12 @@ export declare interface SymbolGlyphAttribute extends CommonMethod {
/**
* Called when the font symbolGlyph weight is set.
*
- * @param { number | FontWeight | string } value
+ * @param { number | FontWeight | ResourceStr | undefined } value
* @returns { SymbolGlyphAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- default fontWeight(value: number | FontWeight | string | undefined): this;
+ default fontWeight(value: number | FontWeight | ResourceStr | undefined): this;
/**
* Called when the symbolGlyph effect is set.
*
@@ -404,7 +404,7 @@ export declare interface SymbolGlyphAttribute extends CommonMethod {
/**
* Called when the minimum font scale of the font is set.
*
- * @param { Optional } scale
+ * @param { number | Resource | undefined } scale
* @returns { SymbolGlyphAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
@@ -413,7 +413,7 @@ export declare interface SymbolGlyphAttribute extends CommonMethod {
/**
* Called when the maximum font scale of the font is set.
*
- * @param { Optional } scale
+ * @param { number | Resource | undefined } scale
* @returns { SymbolGlyphAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
diff --git a/api/arkui/component/text.static.d.ets b/api/arkui/component/text.static.d.ets
index 1c4e93d132..8e8410ac71 100644
--- a/api/arkui/component/text.static.d.ets
+++ b/api/arkui/component/text.static.d.ets
@@ -176,13 +176,13 @@ export declare interface TextAttribute extends CommonMethod {
/**
* Called when the font weight is set.
*
- * @param { number | FontWeight | string } weight
- * @param { FontSettingOptions } options - font setting options.
+ * @param { number | FontWeight | ResourceStr | undefined } weight
+ * @param { FontSettingOptions | undefined } [options] - font setting options.
* @returns { TextAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- default fontWeight(weight: number | FontWeight | string | undefined, options?: FontSettingOptions | undefined): this;
+ default fontWeight(weight: number | FontWeight | ResourceStr | undefined, options?: FontSettingOptions | undefined): this;
/**
* Set font line spacing.
*
@@ -196,6 +196,16 @@ export declare interface TextAttribute extends CommonMethod {
* @since 20
*/
default lineSpacing(value: LengthMetrics | undefined): this;
+ /**
+ * Set font line spacing with options.
+ *
+ * @param { LengthMetrics | undefined } value
+ * @param { LineSpacingOptions } options
+ * @returns { TextAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ default lineSpacing(value: LengthMetrics | undefined, options?: LineSpacingOptions): this;
/**
* Called when the horizontal center mode of the font is set.
*
@@ -599,7 +609,7 @@ export declare interface TextAttribute extends CommonMethod {
/**
* Set the marquee options.
*
- * @param { Optional } options
+ * @param { TextMarqueeOptions | undefined } options
* @returns { TextAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
@@ -681,6 +691,15 @@ export declare interface TextAttribute extends CommonMethod {
* @since 20
*/
default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this;
+ /**
+ * Set the shader style of the text, such as lineargradient or radialgradient.
+ *
+ * @param { ShaderStyle | undefined } shader - The shader style of the text.
+ * @returns { TextAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ default shaderStyle(shader: ShaderStyle | undefined): this;
}
/**
* Defines span type.
diff --git a/api/arkui/component/textArea.static.d.ets b/api/arkui/component/textArea.static.d.ets
index 7dfad37fba..1037268144 100644
--- a/api/arkui/component/textArea.static.d.ets
+++ b/api/arkui/component/textArea.static.d.ets
@@ -286,12 +286,12 @@ export declare interface TextAreaAttribute extends CommonMethod {
/**
* Called when the font weight is set.
*
- * @param { number | FontWeight | string | undefined } value
+ * @param { number | FontWeight | ResourceStr | undefined } value
* @returns { TextAreaAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- default fontWeight(value: number | FontWeight | string | undefined): this;
+ default fontWeight(value: number | FontWeight | ResourceStr | undefined): this;
/**
* Called when the font list of text is set.
*
@@ -762,6 +762,16 @@ export declare interface TextAreaAttribute extends CommonMethod {
* @since 20
*/
default lineSpacing(value: LengthMetrics | undefined): this;
+ /**
+ * Set font line spacing with options.
+ *
+ * @param { LengthMetrics | undefined } value
+ * @param { LineSpacingOptions } options
+ * @returns { TextAreaAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ default lineSpacing(value: LengthMetrics | undefined, options?: LineSpacingOptions): this;
/**
* Called when the line height of the font is set.
*
@@ -992,6 +1002,33 @@ export declare interface TextAreaAttribute extends CommonMethod {
* @since 20
*/
default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this;
+ /**
+ * Set the stroke width.
+ *
+ * @param { LengthMetrics | undefined } width - indicates the stroke width.
+ * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ default strokeWidth(width: LengthMetrics | undefined): this;
+ /**
+ * Set the stroke color.
+ *
+ * @param { ResourceColor | undefined } color - indicates the stroke color.
+ * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ default strokeColor(color: ResourceColor | undefined): this;
+ /**
+ * Define min lines of the text area.
+ *
+ * @param { number | undefined } lines - Min lines of the node
+ * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ default minLines(lines: number | undefined): this;
}
/**
diff --git a/api/arkui/component/textInput.static.d.ets b/api/arkui/component/textInput.static.d.ets
index d38c228ed4..3497f55e02 100644
--- a/api/arkui/component/textInput.static.d.ets
+++ b/api/arkui/component/textInput.static.d.ets
@@ -1009,12 +1009,12 @@ export declare interface TextInputAttribute extends CommonMethod {
/**
* Called when the font weight is set.
*
- * @param { number | FontWeight | string | undefined } value
+ * @param { number | FontWeight | ResourceStr | undefined } value
* @returns { TextInputAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 20
*/
- default fontWeight(value: number | FontWeight | string | undefined): this;
+ default fontWeight(value: number | FontWeight | ResourceStr | undefined): this;
/**
* Called when the font list of text is set.
*
@@ -1750,6 +1750,24 @@ export declare interface TextInputAttribute extends CommonMethod {
* @since 20
*/
attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this;
+ /**
+ * Set the stroke width.
+ *
+ * @param { LengthMetrics | undefined } width - indicates the stroke width.
+ * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ default strokeWidth(width: LengthMetrics | undefined): this;
+ /**
+ * Sets whether enable auto fill animation effect or not.
+ *
+ * @param { boolean | undefined } enabled - Indicates the flag whether auto fill animation effect is enabled.
+ * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ default enableAutoFillAnimation(enabled: boolean | undefined): this;
}
/**
--
Gitee