ofd-view 0.1.51 → 0.1.53
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 -3
- package/lib/ofd-view.common.js +1 -4349
- package/lib/ofd-view.common.js.map +1 -1
- package/lib/ofd-view.umd.js +1 -4360
- 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 +3 -4
package/README.md
CHANGED
@@ -73,7 +73,7 @@
|
|
73
73
|
|
74
74
|
```
|
75
75
|
|
76
|
-
npm i
|
76
|
+
npm i ofd-view -S
|
77
77
|
|
78
78
|
```
|
79
79
|
|
@@ -83,11 +83,12 @@ npm i vue-pdfjs-view -S
|
|
83
83
|
|
84
84
|
```
|
85
85
|
|
86
|
-
import
|
86
|
+
import OfdView from "ofd-view";
|
87
|
+
import 'ofd-view/lib/viewer.css'
|
87
88
|
|
88
89
|
|
89
90
|
|
90
|
-
Vue.use(
|
91
|
+
Vue.use(OfdView);
|
91
92
|
|
92
93
|
```
|
93
94
|
|
@@ -101,3 +102,15 @@ dir="ltr"
|
|
101
102
|
|
102
103
|
```
|
103
104
|
|
105
|
+
|
106
|
+
配置参数
|
107
|
+
|
108
|
+
| 参数 | 说明 | 类型 | 示例 | 默认值 |
|
109
|
+
| --- |---------------------------| --- | --- | --- |
|
110
|
+
| file | ofd文件 | url | | [] |
|
111
|
+
| mem | parser_x.js变量 | object | | - |
|
112
|
+
| secret | | string | | |
|
113
|
+
| digest | | string | | |
|
114
|
+
| canDownload | 是否可下载 | boolean | | true |
|
115
|
+
| canPrint | 是否可打印(打印合脊那边客户看不懂新打开页的意思) | boolean | | true |
|
116
|
+
| canOpen | 是否可打开新文档 | boolean | | false |
|