From e478ea548176f0fb45a0a9464c2a8e7b9d45c048 Mon Sep 17 00:00:00 2001 From: FredTT Date: Tue, 26 Aug 2025 20:45:11 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=91=BD=E4=BB=A4=E5=BC=8F=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E8=B7=A8=E8=AF=AD=E8=A8=80=E5=B1=9E=E6=80=A7=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E8=83=BD=E5=8A=9B=E6=89=A9=E5=B1=95=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E7=BB=84=E4=BB=B6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit c0167cf1867f21b872352ade9e7a36ac81791f08. Signed-off-by: FredTT --- api/arkui/FrameNode.d.ts | 80 ---------------------------------------- 1 file changed, 80 deletions(-) diff --git a/api/arkui/FrameNode.d.ts b/api/arkui/FrameNode.d.ts index 08a9acd0b1..ef49dfe875 100644 --- a/api/arkui/FrameNode.d.ts +++ b/api/arkui/FrameNode.d.ts @@ -2168,22 +2168,6 @@ export namespace typeNode { */ function createNode(context: UIContext, nodeType: 'Button'): Button; - /** - * Get the attribute instance of FrameNode to set attributes. - * If the node is not created using ArkTS, cross-language access must be enabled; otherwise, undefined is returned. - * This API does not support declaratively created nodes. - * - * @param { FrameNode } node - the target FrameNode. - * @param { 'Button' } nodeType - node type. - * @returns { ButtonAttribute | undefined } - Return the attribute instance of FrameNode, and return undefined if it - * does not exist. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - export function getAttribute(node: FrameNode, nodeType: 'Button'): ButtonAttribute | undefined; - /** * Define the FrameNode type for ListItemGroup. * @@ -2455,22 +2439,6 @@ export namespace typeNode { */ function createNode(context: UIContext, nodeType: 'Checkbox'): Checkbox; - /** - * Get the attribute instance of FrameNode to set attributes. - * If the node is not created using ArkTS, cross-language access must be enabled; otherwise, undefined is returned. - * This API does not support declaratively created nodes. - * - * @param { FrameNode } node - the target FrameNode. - * @param { 'Checkbox' } nodeType - node type. - * @returns { CheckboxAttribute | undefined } - Return the attribute instance of FrameNode, and return undefined if it - * does not exist. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - export function getAttribute(node: FrameNode, nodeType: 'Checkbox'): CheckboxAttribute | undefined; - /** * Define the FrameNode type for CheckboxGroup. * @@ -2531,22 +2499,6 @@ export namespace typeNode { */ function createNode(context: UIContext, nodeType: 'Radio'): Radio; - /** - * Get the attribute instance of FrameNode to set attributes. - * If the node is not created using ArkTS, cross-language access must be enabled; otherwise, undefined is returned. - * This API does not support declaratively created nodes. - * - * @param { FrameNode } node - the target FrameNode. - * @param { 'Radio' } nodeType - node type. - * @returns { RadioAttribute | undefined } - Return the attribute instance of FrameNode, and return undefined if it - * does not exist. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - export function getAttribute(node: FrameNode, nodeType: 'Radio'): RadioAttribute | undefined; - /** * Define the FrameNode type for Rating. * @@ -2637,22 +2589,6 @@ export namespace typeNode { */ function createNode(context: UIContext, nodeType: 'Slider'): Slider; - /** - * Get the attribute instance of FrameNode to set attributes. - * If the node is not created using ArkTS, cross-language access must be enabled; otherwise, undefined is returned. - * This API does not support declaratively created nodes. - * - * @param { FrameNode } node - the target FrameNode. - * @param { 'Slider' } nodeType - node type. - * @returns { SliderAttribute | undefined } - Return the attribute instance of FrameNode, and return undefined if it - * does not exist. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - export function getAttribute(node: FrameNode, nodeType: 'Slider'): SliderAttribute | undefined; - /** * Define the FrameNode type for Toggle. * @@ -2684,22 +2620,6 @@ export namespace typeNode { */ function createNode(context: UIContext, nodeType: 'Toggle', options?: ToggleOptions): Toggle; - /** - * Get the attribute instance of FrameNode to set attributes. - * If the node is not created using ArkTS, cross-language access must be enabled; otherwise, undefined is returned. - * This API does not support declaratively created nodes. - * - * @param { FrameNode } node - the target FrameNode. - * @param { 'Toggle' } nodeType - node type. - * @returns { ToggleAttribute | undefined } - Return the attribute instance of FrameNode, and return undefined if it - * does not exist. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - export function getAttribute(node: FrameNode, nodeType: 'Toggle'): ToggleAttribute | undefined; - /** * Define the FrameNode type for Marquee. * -- Gitee