From e3f763ef186973d12ada3da1f5292b2bc351dc8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B0=B8=E5=87=AF?= Date: Wed, 20 Aug 2025 21:18:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Description:=20API=2020=20static.d.ets=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9undefined=20IssueNo:=20https://gitee.com/open?= =?UTF-8?q?harmony/interface=5Fsdk-js/issues/ICTXN2=20Feature=20or=20Bugfi?= =?UTF-8?q?x:=20Feature=20Binary=20Source:No=20Signed-off-by:=20chenjiafen?= =?UTF-8?q?g=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/arkui/component/search.static.d.ets | 33 +++++++++++++++ api/arkui/component/symbolglyph.static.d.ets | 27 +++++++++++- api/arkui/component/text.static.d.ets | 43 ++++++++++++++++++++ api/arkui/component/textArea.static.d.ets | 23 +++++++++++ api/arkui/component/textInput.static.d.ets | 22 ++++++++++ 5 files changed, 147 insertions(+), 1 deletion(-) diff --git a/api/arkui/component/search.static.d.ets b/api/arkui/component/search.static.d.ets index 9ef38d6790..27c260f1d3 100644 --- a/api/arkui/component/search.static.d.ets +++ b/api/arkui/component/search.static.d.ets @@ -1014,6 +1014,39 @@ export declare interface SearchAttribute extends CommonMethod { * @since 20 */ default keyboardAppearance(appearance: KeyboardAppearance | undefined): this; + /** + * Set the stroke width. + * + * @param { LengthMetrics | undefined } width - indicates the stroke width. + * @returns { SearchAttribute } returns the instance of the SearchAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default strokeWidth(width: LengthMetrics | undefined): this; + /** + * Set the stroke color. + * + * @param { ResourceColor | undefined } color - indicates the stroke color. + * @returns { SearchAttribute } returns the instance of the SearchAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default strokeColor(color: ResourceColor | undefined): this; + /** + * Whether to enable automatic spacing between Chinese and Latin characters. + * + * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. + * @returns { SearchAttribute } returns the instance of the SearchAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default enableAutoSpacing(enabled: boolean | undefined): this; /** * Sets the attribute modifier. * diff --git a/api/arkui/component/symbolglyph.static.d.ets b/api/arkui/component/symbolglyph.static.d.ets index b6f7d7c26e..848eabe896 100644 --- a/api/arkui/component/symbolglyph.static.d.ets +++ b/api/arkui/component/symbolglyph.static.d.ets @@ -358,12 +358,22 @@ export declare interface SymbolGlyphAttribute extends CommonMethod { /** * Called when the SymbolGlyph color is set. * - * @param { Array } value + * @param { Array | undefined } value * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ default fontColor(value: Array | undefined): this; + /** + * Set the shader style of the symbol, such as lineargradient or radialgradient. + * + * @param { Array | undefined } shaders - The shaders style of the symbol. + * @returns { SymbolGlyphAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + default shaderStyle(shaders: Array | undefined): this; /** * Called when the font symbolGlyph weight is set. * @@ -419,6 +429,21 @@ export declare interface SymbolGlyphAttribute extends CommonMethod { * @since 20 */ default maxFontScale(scale: number | Resource | undefined): this; + /** + * Set the shadow of symbol. + * + *

NOTE: + *
This API does not work with the fill attribute, showType attribute or coloring strategy. + *

+ * + * @param { ShadowOptions | undefined } shadow - The shadow options. + * @returns { SymbolGlyphAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @atomicservice + * @since 20 + */ + default symbolShadow(shadow: ShadowOptions | undefined): this; /** * Sets the attribute modifier. * diff --git a/api/arkui/component/text.static.d.ets b/api/arkui/component/text.static.d.ets index 1c4e93d132..88320c810f 100644 --- a/api/arkui/component/text.static.d.ets +++ b/api/arkui/component/text.static.d.ets @@ -217,6 +217,17 @@ export declare interface TextAttribute extends CommonMethod { * @since 20 */ default textAlign(value: TextAlign | undefined): this; + /** + * Set the vertical align of the text. + * + * @param { TextVerticalAlign | undefined } textVerticalAlign - The default value is BASELINE. + * @returns { TextAttribute } returns the instance of the TextAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default textVerticalAlign(textVerticalAlign: TextVerticalAlign | undefined): this; /** * Called when the vertical center mode of the font is set. * @@ -672,6 +683,28 @@ export declare interface TextAttribute extends CommonMethod { * @since 20 */ default enableHapticFeedback(isEnabled: boolean | undefined): this; + /** + * Set whether to optimize the trailing spaces at the end of each line during text layout. + * + * @param { boolean | undefined } optimize + * @returns { TextAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default optimizeTrailingSpace(optimize: boolean | undefined): this; + /** + * Whether to enable automatic spacing between Chinese and Latin characters. + * + * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. + * @returns { TextAttribute } returns the instance of the TextAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default enableAutoSpacing(enabled: boolean | undefined): this; /** * Sets the attribute modifier. * @@ -681,6 +714,16 @@ export declare interface TextAttribute extends CommonMethod { * @since 20 */ default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; + /** + * Set text transition. + * + * @param { ContentTransition | undefined } transition - The transition of text. + * @returns { TextAttribute } returns the instance of the TextAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + default contentTransition(transition: ContentTransition | 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..60aa6d9f5b 100644 --- a/api/arkui/component/textArea.static.d.ets +++ b/api/arkui/component/textArea.static.d.ets @@ -672,6 +672,18 @@ export declare interface TextAreaAttribute extends CommonMethod { * @since 20 */ default maxLines(value: number | undefined): this; + /** + * Define max lines of the text area, behavior can be displayed as the scrolling capability. + * + * @param { number | undefined} lines - Max lines of the node + * @param { MaxLinesOptions | undefined } options - max lines of setting options. + * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default maxLines(lines: number | undefined, options: MaxLinesOptions | undefined): this; /** * Set the word break type. * @@ -983,6 +995,17 @@ export declare interface TextAreaAttribute extends CommonMethod { * @since 20 */ default keyboardAppearance(appearance: KeyboardAppearance | undefined): this; + /** + * Whether to enable automatic spacing between Chinese and Latin characters. + * + * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. + * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default enableAutoSpacing(enabled: boolean | undefined): this; /** * Sets the attribute modifier. * diff --git a/api/arkui/component/textInput.static.d.ets b/api/arkui/component/textInput.static.d.ets index d38c228ed4..b7f4d2c54e 100644 --- a/api/arkui/component/textInput.static.d.ets +++ b/api/arkui/component/textInput.static.d.ets @@ -1741,6 +1741,28 @@ export declare interface TextInputAttribute extends CommonMethod { * @since 20 */ default keyboardAppearance(appearance: KeyboardAppearance | undefined): this; + /** + * Set the stroke color. + * + * @param { ResourceColor | undefined } color - indicates the stroke color. + * @returns { TextInputAttribute } returns the instance of the TextInputAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default strokeColor(color: ResourceColor | undefined): this; + /** + * Whether to enable automatic spacing between Chinese and Latin characters. + * + * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. + * @returns { TextInputAttribute } returns the instance of the TextInputAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + default enableAutoSpacing(enabled: boolean | undefined): this; /** * Sets the attribute modifier. * -- Gitee From 6791ffa00c1d5271fc3724be0d08bdc2949b5305 Mon Sep 17 00:00:00 2001 From: chenjiafeng-opneharmony Date: Fri, 22 Aug 2025 12:25:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Description:=20API=2020=20static.d.ets=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9undefined=20IssueNo:=20https://gitee.com/open?= =?UTF-8?q?harmony/interface=5Fsdk-js/issues/ICTXN2=20Feature=20or=20Bugfi?= =?UTF-8?q?x:=20Feature=20Binary=20Source:No=20Signed-off-by:=20chenjiafen?= =?UTF-8?q?g=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/arkui/component/search.static.d.ets | 6 ------ api/arkui/component/symbolglyph.static.d.ets | 2 -- api/arkui/component/text.static.d.ets | 7 ------- api/arkui/component/textArea.static.d.ets | 4 ---- api/arkui/component/textInput.static.d.ets | 4 ---- 5 files changed, 23 deletions(-) diff --git a/api/arkui/component/search.static.d.ets b/api/arkui/component/search.static.d.ets index 27c260f1d3..8d72e1a08e 100644 --- a/api/arkui/component/search.static.d.ets +++ b/api/arkui/component/search.static.d.ets @@ -1020,8 +1020,6 @@ export declare interface SearchAttribute extends CommonMethod { * @param { LengthMetrics | undefined } width - indicates the stroke width. * @returns { SearchAttribute } returns the instance of the SearchAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default strokeWidth(width: LengthMetrics | undefined): this; @@ -1031,8 +1029,6 @@ export declare interface SearchAttribute extends CommonMethod { * @param { ResourceColor | undefined } color - indicates the stroke color. * @returns { SearchAttribute } returns the instance of the SearchAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default strokeColor(color: ResourceColor | undefined): this; @@ -1042,8 +1038,6 @@ export declare interface SearchAttribute extends CommonMethod { * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. * @returns { SearchAttribute } returns the instance of the SearchAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default enableAutoSpacing(enabled: boolean | undefined): this; diff --git a/api/arkui/component/symbolglyph.static.d.ets b/api/arkui/component/symbolglyph.static.d.ets index 848eabe896..2e4590cb7a 100644 --- a/api/arkui/component/symbolglyph.static.d.ets +++ b/api/arkui/component/symbolglyph.static.d.ets @@ -370,7 +370,6 @@ export declare interface SymbolGlyphAttribute extends CommonMethod { * @param { Array | undefined } shaders - The shaders style of the symbol. * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ default shaderStyle(shaders: Array | undefined): this; @@ -440,7 +439,6 @@ export declare interface SymbolGlyphAttribute extends CommonMethod { * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form - * @atomicservice * @since 20 */ default symbolShadow(shadow: ShadowOptions | undefined): this; diff --git a/api/arkui/component/text.static.d.ets b/api/arkui/component/text.static.d.ets index 88320c810f..2392b393a4 100644 --- a/api/arkui/component/text.static.d.ets +++ b/api/arkui/component/text.static.d.ets @@ -223,8 +223,6 @@ export declare interface TextAttribute extends CommonMethod { * @param { TextVerticalAlign | undefined } textVerticalAlign - The default value is BASELINE. * @returns { TextAttribute } returns the instance of the TextAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default textVerticalAlign(textVerticalAlign: TextVerticalAlign | undefined): this; @@ -689,8 +687,6 @@ export declare interface TextAttribute extends CommonMethod { * @param { boolean | undefined } optimize * @returns { TextAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default optimizeTrailingSpace(optimize: boolean | undefined): this; @@ -700,8 +696,6 @@ export declare interface TextAttribute extends CommonMethod { * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. * @returns { TextAttribute } returns the instance of the TextAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default enableAutoSpacing(enabled: boolean | undefined): this; @@ -720,7 +714,6 @@ export declare interface TextAttribute extends CommonMethod { * @param { ContentTransition | undefined } transition - The transition of text. * @returns { TextAttribute } returns the instance of the TextAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ default contentTransition(transition: ContentTransition | undefined): this; diff --git a/api/arkui/component/textArea.static.d.ets b/api/arkui/component/textArea.static.d.ets index 60aa6d9f5b..087c470a27 100644 --- a/api/arkui/component/textArea.static.d.ets +++ b/api/arkui/component/textArea.static.d.ets @@ -679,8 +679,6 @@ export declare interface TextAreaAttribute extends CommonMethod { * @param { MaxLinesOptions | undefined } options - max lines of setting options. * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default maxLines(lines: number | undefined, options: MaxLinesOptions | undefined): this; @@ -1001,8 +999,6 @@ export declare interface TextAreaAttribute extends CommonMethod { * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default enableAutoSpacing(enabled: boolean | undefined): this; diff --git a/api/arkui/component/textInput.static.d.ets b/api/arkui/component/textInput.static.d.ets index b7f4d2c54e..323b65c45c 100644 --- a/api/arkui/component/textInput.static.d.ets +++ b/api/arkui/component/textInput.static.d.ets @@ -1747,8 +1747,6 @@ export declare interface TextInputAttribute extends CommonMethod { * @param { ResourceColor | undefined } color - indicates the stroke color. * @returns { TextInputAttribute } returns the instance of the TextInputAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default strokeColor(color: ResourceColor | undefined): this; @@ -1758,8 +1756,6 @@ export declare interface TextInputAttribute extends CommonMethod { * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. * @returns { TextInputAttribute } returns the instance of the TextInputAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ default enableAutoSpacing(enabled: boolean | undefined): this; -- Gitee