vue-zweb

1.0.3 • Public • Published

vue-zweb

这是一个Vue插件,与 ZWebView 组件配合使用。

This is vue-zweb which works only with Vue 2.0+.

For Example:

  1. Development Setup。
npm install vue-zweb --save
  1. 注入ZWeb 插件, 在实体对象创建前插入。
import VueZWeb from 'vue-zweb';
Vue.use(VueZWeb);
  • 或者,在引入Vue后,直接引用
<script type="text/javascript" src="vue-zweb/dist/vue-zweb.min.js"></script>
  1. Vue模版中当作生命周期使用。
<template>
  ...
</template>
 
<script>
export default {
  name: "ZWebSDK",
  zWebReady() {
    ...
    // 调用 ZWebSDK
    ...
  }
};
</script>

License

MIT

Copyright (c) 2017 Zyao89

Readme

Keywords

Package Sidebar

Install

npm i vue-zweb

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • zyao89