ofd-view 0.1.52 → 0.1.53
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +16 -3
- package/package.json +1 -1
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 |
|