ofd-view 0.1.46 → 0.1.47
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +52 -9
- 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,20 +1,67 @@
|
|
1
|
-
# ofdview
|
1
|
+
[//]: # (# ofdview)
|
2
|
+
|
3
|
+
[//]: # ()
|
4
|
+
[//]: # (## vue使用)
|
5
|
+
|
6
|
+
[//]: # ()
|
7
|
+
[//]: # (### npm 安装)
|
8
|
+
|
9
|
+
[//]: # ()
|
10
|
+
[//]: # (```)
|
11
|
+
|
12
|
+
[//]: # (npm i vue-pdfjs-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
|
## vue使用
|
4
51
|
|
5
52
|
### npm 安装
|
6
53
|
|
7
54
|
```
|
8
|
-
npm i
|
55
|
+
npm i vue-pdfjs-view -S
|
9
56
|
```
|
10
57
|
|
11
58
|
在 main.js 中写入以下内容:
|
12
59
|
|
13
60
|
```
|
14
|
-
import
|
15
|
-
|
61
|
+
import PdfView from "vue-pdfjs-view"
|
62
|
+
|
16
63
|
|
17
|
-
Vue.use(
|
64
|
+
Vue.use(PdfView);
|
18
65
|
```
|
19
66
|
|
20
67
|
在 静态页 index.html 中声明dir为ltr
|
@@ -23,7 +70,3 @@ Vue.use(OfdView);
|
|
23
70
|
dir="ltr"
|
24
71
|
```
|
25
72
|
|
26
|
-
[demo](https://github.com/DLTech21/ofd-vue-demo)
|
27
|
-
|
28
|
-
|
29
|
-
![示例](https://cdn.jsdelivr.net/npm/ofd-view@0.1.17/img.png)
|