nativescript Vue 中的指令和 Mixins?

Directive and Mixins in nativescript Vue?

我正在尝试将 nativescript 模块添加到 vue-nativescript 中。

我需要的指令:

nativescript-ng-shadow.

如何导入add到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();

但是 none 正在工作 !!!!

那是一个 Angular 特定模块,不适用于 Vue。如果您想使用插件的影子功能,您必须直接访问他们的 JS apis or build an Vue directive within your project using same plugin apis.