【任务描述】
【新闻数据加载(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'.
【解决方案】
【任务来源】