Skip to content

封装vue调用cordova插件硬件接口功能,搭配vha-components开发hybridapp。

License

Notifications You must be signed in to change notification settings

neoStudioGroup/vha-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vha-native

Version downloads License

NPM

关于vha-native

统一封装Vue.js调用Cordova设备接口插件功能。vha-native中文文档

如何使用

添加npm包到项目.

npm install vha-native --save

在main.js内引入插件

// import
import Vue from 'vue'
import vhaNative from 'vha-native'
Vue.use(vhaNative)

添加device插件(或直接在vha构建平台中选择插件)

cordova plugin add cordova-plugin-device

在代码内直接使用

console.log(this.$vha.device)

Demo

完整的演示app

apk文件

About

封装vue调用cordova插件硬件接口功能,搭配vha-components开发hybridapp。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published