ofd-view 0.1.47 → 0.1.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +51 -37
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,51 @@
1
- [//]: # (# ofdview)
1
+ # ofdview
2
+
3
+
4
+ ## vue使用
5
+
6
+
7
+ ### npm 安装
8
+
9
+
10
+ ```
11
+
12
+ npm i ofd-view -S
13
+
14
+ ```
15
+
16
+
17
+ 在 main.js 中写入以下内容:
18
+
19
+
20
+ ```
21
+
22
+ import OfdView from "ofd-view";
23
+
24
+ import 'ofd-view/lib/viewer.css'
25
+
26
+
27
+ Vue.use(OfdView);
28
+
29
+ ```
30
+
31
+
32
+ 在 静态页 index.html 中声明dir为ltr
33
+
34
+
35
+ ```
36
+
37
+ dir="ltr"
38
+
39
+ ```
40
+
41
+
42
+ [demo](https://github.com/DLTech21/ofd-vue-demo)
43
+
44
+
45
+
46
+ ![示例](https://cdn.jsdelivr.net/npm/ofd-view@0.1.17/img.png)
47
+
48
+ [//]: # (# vue-pdfjs-view)
2
49
 
3
50
  [//]: # ()
4
51
  [//]: # (## vue使用)
@@ -19,12 +66,11 @@
19
66
  [//]: # ()
20
67
  [//]: # (```)
21
68
 
22
- [//]: # (import OfdView from "ofd-view";)
23
-
24
- [//]: # (import 'ofd-view/lib/viewer.css')
69
+ [//]: # (import PdfView from "vue-pdfjs-view")
25
70
 
26
71
  [//]: # ()
27
- [//]: # (Vue.use(OfdView);)
72
+ [//]: # ()
73
+ [//]: # (Vue.use(PdfView);)
28
74
 
29
75
  [//]: # (```)
30
76
 
@@ -38,35 +84,3 @@
38
84
 
39
85
  [//]: # (```)
40
86
 
41
- [//]: # ()
42
- [//]: # ([demo](https://github.com/DLTech21/ofd-vue-demo))
43
-
44
- [//]: # ()
45
- [//]: # ()
46
- [//]: # (![示例](https://cdn.jsdelivr.net/npm/ofd-view@0.1.17/img.png))
47
-
48
- # vue-pdfjs-view
49
-
50
- ## vue使用
51
-
52
- ### npm 安装
53
-
54
- ```
55
- npm i vue-pdfjs-view -S
56
- ```
57
-
58
- 在 main.js 中写入以下内容:
59
-
60
- ```
61
- import PdfView from "vue-pdfjs-view"
62
-
63
-
64
- Vue.use(PdfView);
65
- ```
66
-
67
- 在 静态页 index.html 中声明dir为ltr
68
-
69
- ```
70
- dir="ltr"
71
- ```
72
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ofd-view",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "main": "lib/ofd-view.umd.js",
5
5
  "files": [
6
6
  "lib/*",