176 Star 1.5K Fork 758

HarmonyOS / Codelabs

 / 详情

新闻数据加载(ArkTS)出现@ObjectLink警告

待办的
任务
创建于  
2024-02-23 17:15

【任务描述】
【新闻数据加载(ArkTS)】调式出现cannot be assigned to the @ObjectLink property 'loadMoreLayoutClass'等问题,但不影响使用
[Compile Result] ArkTS:WARN File: E:/HW/NewsDataArkTS/entry/src/main/ets/view/newslist.ets:85:55
[Compile Result] The regular property 'new CustomRefreshLoadLayoutClass(true,
[Compile Result] $r('app.media.ic_pull_up_load'), $r('app.string.pull_up_load_text'), this.newsModel.pullDownRefreshHeight)' cannot be assigned to the @ObjectLink property 'customRefreshLoadClass'.
[Compile Result] ArkTS:WARN File: E:/HW/NewsDataArkTS/entry/src/main/ets/view/newslist.ets:93:31
[Compile Result] The regular property 'new CustomRefreshLoadLayoutClass(this.newsModel.isVisiblePullDown, this.newsModel.pullDownRefreshImage,
[Compile Result] this.newsModel.pullDownRefreshText, this.newsModel.pullDownRefreshHeight)' cannot be assigned to the @ObjectLink property 'refreshLayoutClass'.
[Compile Result] ArkTS:WARN File: E:/HW/NewsDataArkTS/entry/src/main/ets/view/newslist.ets:111:34
[Compile Result] The regular property 'new CustomRefreshLoadLayoutClass(this.newsModel.isVisiblePullUpLoad, this.newsModel.pullUpLoadImage,
[Compile Result] this.newsModel.pullUpLoadText, this.newsModel.pullUpLoadHeight)' cannot be assigned to the @ObjectLink property 'loadMoreLayoutClass'.
[Compile Result] ArkTS:WARN File: E:/HW/NewsDataArkTS/entry/src/main/ets/view/LoadMoreLayout.ets:30:35
[Compile Result] The regular property 'new CustomRefreshLoadLayoutClass(this.loadMoreLayoutClass.isVisible,
[Compile Result] this.loadMoreLayoutClass.imageSrc, this.loadMoreLayoutClass.textValue, this.loadMoreLayoutClass.heightValue)' cannot be assigned to the @ObjectLink property 'customRefreshLoadClass'.
[Compile Result] ArkTS:WARN File: E:/HW/NewsDataArkTS/entry/src/main/ets/view/LoadMoreLayout.ets:35:35
[Compile Result] The regular property 'new CustomRefreshLoadLayoutClass(this.loadMoreLayoutClass.isVisible,
[Compile Result] this.loadMoreLayoutClass.imageSrc, this.loadMoreLayoutClass.textValue, 0)' cannot be assigned to the @ObjectLink property 'customRefreshLoadClass'.
[Compile Result] ArkTS:WARN File: E:/HW/NewsDataArkTS/entry/src/main/ets/view/RefreshLayout.ets:29:59
[Compile Result] The regular property 'new CustomRefreshLoadLayoutClass
[Compile Result] (this.refreshLayoutClass.isVisible, this.refreshLayoutClass.imageSrc, this.refreshLayoutClass.textValue,
[Compile Result] this.refreshLayoutClass.heightValue)' cannot be assigned to the @ObjectLink property 'customRefreshLoadClass'.
输入图片说明

【解决方案】

【任务来源】

评论 (0)

C0127 创建了任务

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
1
https://gitee.com/harmonyos/codelabs.git
git@gitee.com:harmonyos/codelabs.git
harmonyos
codelabs
Codelabs

搜索帮助