修复ArkTs告警

Signed-off-by: tzliujiahui <liujiahui21@huawei.com>
This commit is contained in:
tzliujiahui 2023-12-18 15:07:12 +08:00
parent 82114a8481
commit b9e2be79c7

View File

@ -21,7 +21,7 @@ import { AlignContentFlex } from './AlignContentFlex';
export struct MockComplexReusableSubBranch {
@State alignStyle: FlexAlign = FlexAlign.Center;
aboutToReuse(params: ESObject): void { // 从缓存复用组件前,更新组件的状态变量
aboutToReuse(params: Record<string, number>): void { // 从缓存复用组件前,更新组件的状态变量
this.alignStyle = params.alignStyle;
}