HarmonyOS @CustomDialog不能使用@Param options

export struct FilePrintSettingDialogVm {
  controller?: CustomDialogController
  @Param options: FilePrintSettingDialogOptions
  ...
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.

报错The ‘@Param’ decorator can only be used in a ‘struct’ decorated with ‘@ComponentV2’. <ArkTSCheck>

HarmonyOS
2024-12-24 16:26:33
638浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
Heiang
分享
微博
QQ
微信
回复
2024-12-24 18:11:36
相关问题
xComponet示例代码不能使用
1793浏览 • 1回复 待解决
HarmonyOS hap中不能使用命名路由吗
743浏览 • 1回复 待解决
HarmonyOS .ets文件中不能使用方法重载
704浏览 • 1回复 待解决
ts 声明式开发不能使用js的getApp()
5448浏览 • 1回复 待解决
HarmonyOS V2 @Param使用?
817浏览 • 0回复 待解决
HarmonyOS @Once搭配@Param使用的问题
491浏览 • 1回复 待解决
HarmonyOS 关于CustomDialog使用
1086浏览 • 1回复 待解决
HarmonyOS customdialog使用问题
1530浏览 • 1回复 待解决
HarmonyOS 能使用Charles代理抓包吗
828浏览 • 1回复 待解决