【问题标题】:Nativescript Vue RadListView.notifyLoadOnDemandFinished is not a functionNativescript Vue RadListView.notifyLoadOnDemandFinished 不是函数
【发布时间】:2019-01-16 23:44:59
【问题描述】:

我正在使用 Nativescript + Vue.js + nativescript-ui-listview。我有一个错误 RadListView.notifyLoadOnDemandFinished is not a function(Android / iOS都试过了)。将notifyLoadOnDemandFinished() 包裹在setTimeout 中,正如它在issue 中所建议的那样,但它没有帮助。其他“通知”方法,例如 notifySwipeToExecuteFinished 工作正常。 这是我的code(nativescript 游乐场)的链接。

【问题讨论】:

    标签: nativescript nativescript-telerik-ui


    【解决方案1】:

    在 Vue 中使用引用时,您必须使用 .nativeView 属性才能访问实际组件。应该是这样的,

    this.$refs.listView.nativeView.notifyLoadOnDemandFinished();
    

    【讨论】:

      猜你喜欢
      • 2020-02-07
      • 1970-01-01
      • 2019-01-17
      • 1970-01-01
      • 2021-04-13
      • 2018-12-18
      • 2019-04-08
      • 2019-07-03
      • 1970-01-01
      相关资源
      最近更新 更多