1.0.4 • Published 4 years ago
sg-native-yzj v1.0.4
sg-native-yzj
安装依赖
npm install
运行项目
npm run serve
打包项目
npm run build
打包发布至npm
npm run lib
npm login
npm publish
测试
npm run test
项目使用sg-native协议方 安装依赖
npm install sg-native --save
npm install sg-native-yzj --save
入口文件引入
import SgNative from 'sg-native'
import SgNativeYzj from 'sg-native-yzj'
Vue.use(SgNative)
SgNative.use(SgNativeYzj)
云之家api
this.$mapi.api.returnNative() 返回原生
this.$mapi.api.setWebViewTitle(params) 设置原生标题
this.$mapi.api.camera(params, cb) 调用相机