简体   繁体   English

我可以在 nativescript-vue 中使用 Vuetify 吗?

[英]can I use Vuetify in nativescript-vue?

Vuetify seems to be an useful Framework. Vuetify似乎是一个有用的框架。 I was wondering if it's possible to use it inside our NativeScript apps with VUE.js我想知道是否可以在带有 VUE.js 的 NativeScript 应用程序中使用它

I have tried:我努力了:

yarn add vuetify

<v-btn :href="source"
       icon
       large
       target="_blank"
       v-on="on"
      >
       <v-icon large>mdi-code-tags</v-icon>
</v-btn>

But Error says:但是错误说:

No known component for element v-btn.元素 v-btn 没有已知组件。

NativeScript !== Cordova , so you can't. NativeScript !== Cordova ,所以你不能。 Vuetify is purely browser dependent / HTML DOM based components. Vuetify 完全依赖于浏览器/基于 HTML DOM 的组件。

Though Manoj is right to point out that you can't use it like you intendet to do but you still can use a WebView in NativeScript to display your web application.尽管 Manoj 正确地指出您不能像您打算那样使用它,但您仍然可以在NativeScript中使用 WebView 来显示您的 web 应用程序。 Some apps in the appstores do just that - they use Nativescript for the Main-UI with device features and the webview to show the web application.应用商店中的一些应用就是这样做的——它们使用 Nativescript 作为具有设备功能的主 UI,使用 webview 显示 web 应用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM