From b0041e22dd67eb854088ec826ad8ad805064d313 Mon Sep 17 00:00:00 2001 From: xi-heqiong Date: Tue, 18 Mar 2025 16:14:39 +0800 Subject: [PATCH] 0318_koala Signed-off-by: xi-heqiong --- arkoala-arkts/arkui/src/ComponentBase.ts | 2 +- arkoala-arkts/arkui/src/generated/GlobalScope.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arkoala-arkts/arkui/src/ComponentBase.ts b/arkoala-arkts/arkui/src/ComponentBase.ts index fe845d280..2ce92d5a9 100644 --- a/arkoala-arkts/arkui/src/ComponentBase.ts +++ b/arkoala-arkts/arkui/src/ComponentBase.ts @@ -35,7 +35,7 @@ export class ComponentBase { return this } - public animationEnd(): this { + public animationStop(): this { _animationEnd(this.isFirstBuild, () => { this.isFirstBuild = false }) diff --git a/arkoala-arkts/arkui/src/generated/GlobalScope.ts b/arkoala-arkts/arkui/src/generated/GlobalScope.ts index f3f6dec35..588bcf8c0 100644 --- a/arkoala-arkts/arkui/src/generated/GlobalScope.ts +++ b/arkoala-arkts/arkui/src/generated/GlobalScope.ts @@ -20,6 +20,7 @@ import { Context, AnimateParam } from "./ArkCommonInterfaces" import { GlobalScope } from "./peers/GlobalScope" import { Resource } from "./ArkResourceInterfaces" import { Callback_Void } from "./SyntheticDeclarations" +import { _animateTo } from "../handwritten" export function getContext(component?: Object | undefined): Context { return GlobalScope.getContext(component) } @@ -33,7 +34,7 @@ export function dollar_rawfile(value: string): Resource { return GlobalScope.dollar_rawfile(value) } export function animateTo(value: AnimateParam, event: (() => void)): void { - GlobalScope.animateTo(value, event) + _animateTo(value, event); } export function animateToImmediately(value: AnimateParam, event: (() => void)): void { GlobalScope.animateToImmediately(value, event) -- Gitee