From 468d205474ae1335240b31782bd427b927550f9e Mon Sep 17 00:00:00 2001 From: LiAn Date: Sat, 26 Nov 2022 08:41:08 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-animator.md. Signed-off-by: LiAn Signed-off-by: LiAn --- zh-cn/application-dev/reference/apis/js-apis-animator.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-animator.md b/zh-cn/application-dev/reference/apis/js-apis-animator.md index 8fc76e7f65..6233ea127e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-animator.md +++ b/zh-cn/application-dev/reference/apis/js-apis-animator.md @@ -27,6 +27,7 @@ create(options: AnimatorOptions): AnimatorResult | options | [AnimatorOptions](#animatoroptions) | 是 | 定义动画选项。 | **返回值:** + | 类型 | 说明 | | --------------------------------- | ------------- | | [AnimatorResult](#animatorresult) | Animator结果接口。 | @@ -51,8 +52,6 @@ create(options: AnimatorOptions): AnimatorResult 定义Animator结果接口。 - - ### reset9+ reset(options: AnimatorOptions): void @@ -71,7 +70,7 @@ reset(options: AnimatorOptions): void 以下错误码的详细介绍请参见[ohos.animator(动画)](../errorcodes/errorcode-animator.md)错误码。 -| 错误码ID | 错误码信息 | +| 错误码ID | 错误信息 | | --------- | ------- | | 100001 | Internal error. | @@ -181,6 +180,7 @@ onframe: (progress: number) => void | progress | number | 是 | 动画的当前进度。 | **示例:** + ```js let animatorResult = animator.create(options) animatorResult.onframe = function(value) { @@ -208,7 +208,7 @@ animatorResult.onfinish = function() { ### oncancel oncancel: () => void -不再维护 + 动画被取消时回调。 **系统能力:** SystemCapability.ArkUI.ArkUI.Full -- GitLab