images-viewer-js 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,6 +17,22 @@
|
|
|
17
17
|
|
|
18
18
|
## 安装和使用
|
|
19
19
|
|
|
20
|
+
### npm
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<!-- 引入包 -->
|
|
24
|
+
npm install images-viewer-js
|
|
25
|
+
|
|
26
|
+
<!-- vue 环境 -->
|
|
27
|
+
<script>
|
|
28
|
+
import ImageViewer from 'images-viewer-js';
|
|
29
|
+
// 使用
|
|
30
|
+
const viewer = new ImageViewer({
|
|
31
|
+
images: ['image1.jpg', 'image2.jpg', 'image3.jpg'],
|
|
32
|
+
});
|
|
33
|
+
</script>
|
|
34
|
+
```
|
|
35
|
+
|
|
20
36
|
### 浏览器环境
|
|
21
37
|
|
|
22
38
|
```html
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "images-viewer-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "image-viewer一个功能丰富的图片查看器,支持缩放、旋转、导航等操作。原生javascript实现。不局限于框架使用",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "https://
|
|
32
|
+
"url": "https://github.com/ybchen292/image-viewer"
|
|
33
33
|
},
|
|
34
|
-
"homepage": "https://
|
|
34
|
+
"homepage": "https://github.com/ybchen292/image-viewer",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
37
37
|
"@rollup/plugin-node-resolve": "^15.0.0",
|