【发布时间】:2019-05-29 06:46:03
【问题描述】:
我正在尝试将 nativescript 模块添加到 vue-nativescript 中。
我需要的指令:
nativescript-ng-shadow。
如何导入添加到vue?
我试试这些方法:
Vue.registerElement('shadow', () => require('nativescript-ng-shadow').NgShadowModule)
和
new Vue({
directives: {
shadow: () => require('nativescript-ng-shadow').NgShadowModule
},
render: h => h('frame', [h(HelloWorld)])
}).$start();
但没有一个工作!!!!
【问题讨论】:
-
正如这个链接所暗示的,我认为上述插件只能与 Angular 一起使用。 plugins.nativescript.rocks/plugin/nativescript-ng-shadow
标签: vue.js nativescript nativescript-vue