HarmonyOS @CustomDialog不能使用@Param options

export struct FilePrintSettingDialogVm {
  controller?: CustomDialogController
  @Param options: FilePrintSettingDialogOptions
  ...
}

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

HarmonyOS
2024-12-24 16:26:33
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
Heiang
分享
微博
QQ
微信
回复
2024-12-24 18:11:36
相关问题
xComponet示例代码不能使用
2055浏览 • 1回复 待解决
HarmonyOS .ets文件中不能使用方法重载
1020浏览 • 1回复 待解决
HarmonyOS hap中不能使用命名路由吗
966浏览 • 1回复 待解决
HarmonyOS V2 @Param使用?
1226浏览 • 0回复 待解决
ts 声明式开发不能使用js的getApp()
5919浏览 • 1回复 待解决
HarmonyOS @Once搭配@Param使用的问题
782浏览 • 1回复 待解决
HarmonyOS 关于CustomDialog使用
1457浏览 • 1回复 待解决
HarmonyOS 能使用Charles代理抓包吗
1074浏览 • 1回复 待解决
HarmonyOS customdialog使用问题
1944浏览 • 1回复 待解决
HarmonyOS使用CustomDialog如何设置宽度
1169浏览 • 1回复 待解决