
如何写精华回答,获更多曝光?
发布
有一个数据类是使用@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 还有其他方案吗?