diff --git a/api/@internal/component/ets/form_component.d.ts b/api/@internal/component/ets/form_component.d.ts index 076170caba5ae2ee5cda46d87c8c49c90f5858cd..139b3763842b9fedc599d3a63356716fa2da05b8 100644 --- a/api/@internal/component/ets/form_component.d.ts +++ b/api/@internal/component/ets/form_component.d.ts @@ -21,6 +21,7 @@ import { CommonMethod,Callback } from './common'; import Want from '../../@ohos.app.ability.Want'; import { Visibility } from './enums' +import { VoidCallback } from './units'; /*** endif */ /** * Defines the FormDimension enum. @@ -294,17 +295,6 @@ declare interface FormInfo { */ want?: import('../api/@ohos.app.ability.Want').default; - /** - * The want of the form. - * - * @type { ?import('../api/@ohos.app.ability.Want').default } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @systemapi - * @since 20 - * @arkts 1.2 - */ - want?: Want; - /** * The renderingMode of the form. * @@ -452,35 +442,38 @@ interface FormSize { } /** - * Defines the FormCallbackInfo. + * Defines error information for card loading. * - * @interface FormError + * @typedef ErrorInformation * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since 20 - * @arkts 1.2 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ -interface FormError { +interface ErrorInformation { /** - * The string id of the form. + * Error code. + * Anonymous Object Rectification * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since 20 - * @arkts 1.2 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - errcode: number; + errcode: number; + /** - * The string id of the form. + * Error information. + * Anonymous Object Rectification * - * @type { number } + * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since 20 - * @arkts 1.2 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - msg: string + msg: string; } /** @@ -500,19 +493,17 @@ declare class FormComponentAttribute extends CommonMethod void): FormComponentAttribute; - /** * Card loading error. * - * @param { Callback } callback + * @param { Callback } callback * @returns { FormComponentAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - onError(callback: Callback): FormComponentAttribute; + onError(callback: Callback): FormComponentAttribute; /** * Card to be redirected. @@ -617,19 +606,18 @@ declare class FormComponentAttribute extends CommonMethod void): FormComponentAttribute; - /** * Card to be redirected. + * Anonymous Object Rectification * - * @param { function } callback + * @param { Callback } callback * @returns { FormComponentAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - onRouter(callback: Callback): FormComponentAttribute; + onRouter(callback: Callback): FormComponentAttribute; /** * Uninstall Card. @@ -659,10 +647,19 @@ declare class FormComponentAttribute extends CommonMethod void): FormComponentAttribute; + onLoad(callback: VoidCallback): FormComponentAttribute; } /**