Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "v-viewer", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Image viewer component for vue, supports rotation, scale, zoom and so on, based on viewer.js", | ||
@@ -91,4 +91,4 @@ "main": "dist/v-viewer.js", | ||
"dependencies": { | ||
"viewerjs": "^1.0.0-beta.1" | ||
"viewerjs": "^1.0.0-rc" | ||
} | ||
} |
@@ -47,2 +47,27 @@ # v-viewer | ||
### Support UMD | ||
#### Browser | ||
```html | ||
<link href="//path/viewer.css" rel="stylesheet"> | ||
<script src="//path/vue.js"></script> | ||
<script src="//path/viewer.js"></script> | ||
<script src="//path/v-viewer.js"></script> | ||
... | ||
<script> | ||
Vue.use(VueViewer) | ||
</script> | ||
``` | ||
#### CommonJS | ||
```javascript | ||
var VueViewer = require('VueViewer') | ||
``` | ||
#### AMD | ||
```javascript | ||
require(['VueViewer'], function (VueViewer) {}); | ||
``` | ||
### Usage of directive | ||
@@ -49,0 +74,0 @@ Just add the directive `v-viewer` to any element, then all `img` elements in it will be handled by `viewer`. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
231323
213
Updatedviewerjs@^1.0.0-rc