From f407eafff484813db9ebf9e954f09290209d3cd1 Mon Sep 17 00:00:00 2001 From: wujinhui Date: Wed, 20 Aug 2025 11:02:12 +0800 Subject: [PATCH] object to RecordData Signed-off-by: wujinhui --- api/arkui/AttributeUpdater.static.d.ets | 5 +++-- api/arkui/BuilderNode.static.d.ets | 5 +++-- api/arkui/ComponentContent.static.d.ets | 5 +++-- api/arkui/component/common.static.d.ets | 7 ++++--- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/api/arkui/AttributeUpdater.static.d.ets b/api/arkui/AttributeUpdater.static.d.ets index ef4662f019..ae79edb260 100644 --- a/api/arkui/AttributeUpdater.static.d.ets +++ b/api/arkui/AttributeUpdater.static.d.ets @@ -21,18 +21,19 @@ */ import { AttributeModifier } from './component/common' +import { RecordData } from '../@ohos.base'; /** * function that returns by the function updateConstructorParams. * * @typedef { function } Initializer - * @param { FixedArray } params + * @param { FixedArray } params * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ -export type Initializer = (...params:FixedArray) => T; +export type Initializer = (...params:FixedArray) => T; /** * Defines a modifier which can update attributes to native side. diff --git a/api/arkui/BuilderNode.static.d.ets b/api/arkui/BuilderNode.static.d.ets index b688a38248..8468445557 100644 --- a/api/arkui/BuilderNode.static.d.ets +++ b/api/arkui/BuilderNode.static.d.ets @@ -25,6 +25,7 @@ import { FrameNode } from './FrameNode'; import { Size } from './Graphics'; import { TouchEvent, MouseEvent, AxisEvent } from './component/common'; import { WrappedBuilder, CustomBuilder, CustomBuilderT } from './component/builder'; +import { RecordData } from '../@ohos.base'; /** * Render type of the node using for indicating that @@ -190,11 +191,11 @@ export declare class BuilderNode { /** * Reuse the BuilderNode based on the provided parameters. * - * @param { Object } [param] - Parameters for reusing BuilderNode. + * @param { RecordData } [param] - Parameters for reusing BuilderNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - reuse(param?: Object): void; + reuse(param?: RecordData): void; /** * Recycle the BuilderNode. diff --git a/api/arkui/ComponentContent.static.d.ets b/api/arkui/ComponentContent.static.d.ets index 1143847e3c..3de615f5ec 100644 --- a/api/arkui/ComponentContent.static.d.ets +++ b/api/arkui/ComponentContent.static.d.ets @@ -24,6 +24,7 @@ import { BuildOptions } from './BuilderNode'; import { Content } from './Content'; import { UIContext } from '../@ohos.arkui.UIContext'; import { WrappedBuilder, CustomBuilder, CustomBuilderT } from './component/builder'; +import { RecordData } from '../@ohos.base'; /** * Defines the base class for ComponentContent. * @@ -91,11 +92,11 @@ export declare class ComponentContent extends ComponentContentBas /** * Reuse the ComponentContent based on the provided parameters. * - * @param { Object } [param] - Parameters for reusing ComponentContent. + * @param { RecordData } [param] - Parameters for reusing ComponentContent. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - reuse(param?: Object): void; + reuse(param?: RecordData): void; /** * Recycle the ComponentContent. diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets index ce2c04b589..710ffa1a7d 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -47,6 +47,7 @@ import { TextRange } from "./textCommon"; import { StyledString } from "./styledString"; import { CustomBuilder, WrappedBuilder, CustomBuilderT } from './builder'; import curves from '../../@ohos.curves'; +import { RecordData } from '../../@ohos.base'; /** * Define the ratio of characters entered by the the percentage of InputCounterOptions. * @@ -302,8 +303,8 @@ export type Context = OriginalContext; /** * Post Card Action. * - * @param { Object } component - indicate the card entry component. - * @param { Object } action - indicate the router, message or call event. + * @param { RecordData } component - indicate the card entry component. + * @param { RecordData } action - indicate the router, message or call event. * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @crossplatform @@ -311,7 +312,7 @@ export type Context = OriginalContext; * @atomicservice * @since 20 */ -export declare function postCardAction(component: Object, action: Object): void; +export declare function postCardAction(component: RecordData, action: RecordData): void; /** * Defines the data type of the interface restriction. * -- Gitee