在@CustomDialog修饰的弹窗中使用 v2 状态管理

有一个数据类是使用@ObservedV2 修饰。

在弹窗中也使用到了这个类,弹窗是使用 @CustomDialog修饰,无法使用@Local  @Param 等 V2 的状态管理装饰器。

使用 @ComponentV2 修饰之后又提示无法和@CustomDialog共存


The struct 'StartOrRejectDialog' can not be decorated with '@ComponentV2' and '@Component', '@Reusable', '@CustomDialog' at the same time. <ArkTSCheck>


除了使用promptAction.showCustomDialog 还有其他方案吗?

ArkUI
HarmonyOS
3天前
1.0w浏览
收藏 0
回答 0
待解决


相关问题
HarmonyOS V2 @Event使用
714浏览 • 0回复 待解决
HarmonyOS V2 @Param使用?
538浏览 • 0回复 待解决
HarmonyOS V2 @Link?
705浏览 • 0回复 待解决
HarmonyOS V2 @ObjectLink?
720浏览 • 0回复 待解决
HarmonyOS V2V1使用和区别?
864浏览 • 0回复 待解决
HarmonyOS V2V1明显区别?
990浏览 • 1回复 待解决
HarmonyOS 安全控件无法弹窗中使用
1063浏览 • 1回复 待解决
提问
该提问已有1人参与 ,帮助了7人