簡體   English   中英

在 NS 7 應用程序中使用帶有 Vue.js 的 Nativescript Filterable ListPIcker 插件

[英]Using Nativescript Filterable ListPIcker plugin with Vue.js in NS 7 app

我希望在我的 Nativescript 7/Vue.js 應用程序中使用以下插件: https : //github.com/nstudio/nativescript-plugins/tree/master/packages/nativescript-filterable-listpicker

任何人都可以就我如何在我的應用程序中注冊組件以及需要哪些導入提供建議。

先感謝您,

編輯:找到了解決方案。 我不明白我怎么能一遍又一遍地做完全相同的事情,突然之間它會突然出現......

只需使用這個:

import FilterableListpicker from "@nstudio/nativescript-filterable-listpicker";
Vue.registerElement("FilterableListpicker", () => require("@nstudio/nativescript-filterable-listpicker").FilterableListpicker);

請記住還要在組件選項中添加 FilterableListPicker。

祝你好運!

原始答案:很想知道這個問題的答案,因為我已經嘗試修復錯誤整整 2 天了。 我已經嘗試過 nstudio(根據博客文章和上面的內容...)和 davecoffin 插件,但沒有成功。

davecoffin 版本給出

Error in render: "TypeError: Class constructor FilterableListpicker cannot be invoked without 'new'"

而 nstudio 版本給出

Error in v-on handler (Promise/async): "TypeError: Cannot read property 'setAttribute' of undefined"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM