From 9ebceca3958f36b74e648da23c27192cf587fcef Mon Sep 17 00:00:00 2001 From: sd-wu Date: Mon, 7 Jul 2025 14:31:34 +0800 Subject: [PATCH] =?UTF-8?q?Rect=20radius=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sd-wu --- api/arkui/FrameNode.d.ts | 99 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/api/arkui/FrameNode.d.ts b/api/arkui/FrameNode.d.ts index 2fc0e0f338..3dedf73797 100644 --- a/api/arkui/FrameNode.d.ts +++ b/api/arkui/FrameNode.d.ts @@ -29,6 +29,7 @@ import { ComponentContent } from './ComponentContent'; import { UIContext } from '@ohos.arkui.UIContext'; import { UICommonEvent, UIGestureEvent, CommonAttribute } from './component/common' import { ListOptions, ListAttribute } from './component/list' +import { XComponentParameter, XComponentOptions, NativeXComponentParameters, XComponentAttribute } from './component/xcomponent'; /*** endif */ /** * Layout constraint, include the max size, the min size and the reference size for children to calculate percent. @@ -1614,6 +1615,69 @@ export declare namespace typeNode { */ type XComponent = TypedFrameNode; + /** + * Defines the XComponent type of FrameNode. + * + * @extends TypedFrameNode + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + abstract class XComponentFrameNode extends TypedFrameNode { + /** + * Initialize XComponent FrameNode. + * + * @param { XComponentParameter } value - Indicates the options of the xcomponent. + * @returns { XComponentAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + abstract initialize(value: XComponentParameter): XComponentAttribute; + + /** + * Initialize XComponent FrameNode. + * + * @param { XComponentOptions } options - Indicates the options of the xcomponent. + * @returns { XComponentAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + abstract initialize(options: XComponentOptions): XComponentAttribute; + + /** + * Initialize XComponent FrameNode. + * + * @param { NativeXComponentParameters } params - Indicates the constructor parameters of the xcomponent for native developing. + * @returns { XComponentAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + abstract initialize(params: NativeXComponentParameters): XComponentAttribute; + } + + /** + * Define the FrameNode type for XComponent. + * + * @typedef { XComponentFrameNode } XComponent + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + type XComponent = XComponentFrameNode; + /** * Create a FrameNode of XComponent type. * @@ -1624,6 +1688,17 @@ export declare namespace typeNode { * @atomicservice * @since 12 */ + /** + * Create a FrameNode of XComponent type. + * + * @param { UIContext } context - uiContext used to create the FrameNode. + * @param { 'XComponent' } nodeType - node type. + * @returns { XComponent } - Return XComponent type FrameNode. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ function createNode(context: UIContext, nodeType: 'XComponent'): XComponent; /** @@ -1637,6 +1712,18 @@ export declare namespace typeNode { * @atomicservice * @since 12 */ + /** + * Create a FrameNode of XComponent type with options. + * + * @param { UIContext } context - uiContext used to create the FrameNode. + * @param { 'XComponent' } nodeType - node type. + * @param { XComponentOptions } options - initialization parameters. + * @returns { XComponent } - Return XComponent type FrameNode. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ function createNode(context: UIContext, nodeType: 'XComponent', options: XComponentOptions): XComponent; /** @@ -1650,6 +1737,18 @@ export declare namespace typeNode { * @atomicservice * @since 18 */ + /** + * Create a FrameNode of XComponent type with options for native developing. + * + * @param { UIContext } context - uiContext used to create the FrameNode. + * @param { 'XComponent' } nodeType - node type. + * @param { NativeXComponentParameters } parameters - initialization parameters. + * @returns { XComponent } - Return XComponent type FrameNode. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ function createNode(context: UIContext, nodeType: 'XComponent', parameters: NativeXComponentParameters): XComponent; /** -- Gitee