ofd-view 0.1.46 → 0.1.48
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 +57 -0
- package/lib/ofd-view.common.js +1 -1652
- package/lib/ofd-view.common.js.map +1 -1
- package/lib/ofd-view.umd.js +1 -1663
- package/lib/ofd-view.umd.js.map +1 -1
- package/lib/ofd-view.umd.min.js +1 -1
- package/lib/ofd-view.umd.min.js.map +1 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -1,29 +1,86 @@
|
|
|
1
1
|
# ofdview
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
## vue使用
|
|
4
5
|
|
|
6
|
+
|
|
5
7
|
### npm 安装
|
|
6
8
|
|
|
9
|
+
|
|
7
10
|
```
|
|
11
|
+
|
|
8
12
|
npm i ofd-view -S
|
|
13
|
+
|
|
9
14
|
```
|
|
10
15
|
|
|
16
|
+
|
|
11
17
|
在 main.js 中写入以下内容:
|
|
12
18
|
|
|
19
|
+
|
|
13
20
|
```
|
|
21
|
+
|
|
14
22
|
import OfdView from "ofd-view";
|
|
23
|
+
|
|
15
24
|
import 'ofd-view/lib/viewer.css'
|
|
16
25
|
|
|
26
|
+
|
|
17
27
|
Vue.use(OfdView);
|
|
28
|
+
|
|
18
29
|
```
|
|
19
30
|
|
|
31
|
+
|
|
20
32
|
在 静态页 index.html 中声明dir为ltr
|
|
21
33
|
|
|
34
|
+
|
|
22
35
|
```
|
|
36
|
+
|
|
23
37
|
dir="ltr"
|
|
38
|
+
|
|
24
39
|
```
|
|
25
40
|
|
|
41
|
+
|
|
26
42
|
[demo](https://github.com/DLTech21/ofd-vue-demo)
|
|
27
43
|
|
|
28
44
|
|
|
45
|
+
|
|
29
46
|

|
|
47
|
+
|
|
48
|
+
[//]: # (# vue-pdfjs-view)
|
|
49
|
+
|
|
50
|
+
[//]: # ()
|
|
51
|
+
[//]: # (## vue使用)
|
|
52
|
+
|
|
53
|
+
[//]: # ()
|
|
54
|
+
[//]: # (### npm 安装)
|
|
55
|
+
|
|
56
|
+
[//]: # ()
|
|
57
|
+
[//]: # (```)
|
|
58
|
+
|
|
59
|
+
[//]: # (npm i vue-pdfjs-view -S)
|
|
60
|
+
|
|
61
|
+
[//]: # (```)
|
|
62
|
+
|
|
63
|
+
[//]: # ()
|
|
64
|
+
[//]: # (在 main.js 中写入以下内容:)
|
|
65
|
+
|
|
66
|
+
[//]: # ()
|
|
67
|
+
[//]: # (```)
|
|
68
|
+
|
|
69
|
+
[//]: # (import PdfView from "vue-pdfjs-view")
|
|
70
|
+
|
|
71
|
+
[//]: # ()
|
|
72
|
+
[//]: # ()
|
|
73
|
+
[//]: # (Vue.use(PdfView);)
|
|
74
|
+
|
|
75
|
+
[//]: # (```)
|
|
76
|
+
|
|
77
|
+
[//]: # ()
|
|
78
|
+
[//]: # (在 静态页 index.html 中声明dir为ltr)
|
|
79
|
+
|
|
80
|
+
[//]: # ()
|
|
81
|
+
[//]: # (```)
|
|
82
|
+
|
|
83
|
+
[//]: # (dir="ltr")
|
|
84
|
+
|
|
85
|
+
[//]: # (```)
|
|
86
|
+
|