askbot-dragon 1.3.19 → 1.3.20
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "askbot-dragon",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
"core-js": "^3.6.5",
|
|
15
15
|
"install": "^0.13.0",
|
|
16
16
|
"jquery": "^3.5.1",
|
|
17
|
+
"lodash": "^4.17.21",
|
|
18
|
+
"pdfjs-dist": "^3.5.141",
|
|
17
19
|
"uuid": "^8.3.2",
|
|
18
20
|
"v-viewer": "^1.6.4",
|
|
19
21
|
"vant": "^2.12.51",
|
|
@@ -21,8 +23,7 @@
|
|
|
21
23
|
"vue": "^2.6.11",
|
|
22
24
|
"vue-resource": "^1.5.1",
|
|
23
25
|
"vue-video-player": "^5.0.2",
|
|
24
|
-
"weixin-js-sdk": "^1.6.0"
|
|
25
|
-
"pdfjs-dist": "^3.5.141"
|
|
26
|
+
"weixin-js-sdk": "^1.6.0"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@vue/cli-plugin-babel": "~4.5.0",
|
|
@@ -5,11 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<script>
|
|
7
7
|
import _ from 'lodash'
|
|
8
|
-
import * as pdfjsLib from 'pdfjs-dist'
|
|
9
|
-
pdfjsLib.GlobalWorkerOptions.workerSrc = 'pdfjs-dist/build/pdf.worker';
|
|
10
|
-
import { TextLayerBuilder } from "pdfjs-dist/web/pdf_viewer";
|
|
8
|
+
// import * as pdfjsLib from 'pdfjs-dist'
|
|
9
|
+
// pdfjsLib.GlobalWorkerOptions.workerSrc = 'pdfjs-dist/build/pdf.worker';
|
|
10
|
+
// import { TextLayerBuilder } from "pdfjs-dist/web/pdf_viewer";
|
|
11
11
|
// EventBus pdf_viewer 支持绑定自定义事件,一版不做
|
|
12
|
-
import 'pdfjs-dist/web/pdf_viewer.css'
|
|
12
|
+
// import 'pdfjs-dist/web/pdf_viewer.css'
|
|
13
|
+
const pdfjsLib = window['pdfjsLib']
|
|
14
|
+
pdfjsLib.GlobalWorkerOptions.workerSrc = window['pdfjs-dist/build/pdf.worker'];
|
|
15
|
+
const {TextLayerBuilder} = window['pdfjs-dist/web/pdf_viewer']
|
|
13
16
|
|
|
14
17
|
export default {
|
|
15
18
|
name: 'pdfView',
|
|
@@ -339,6 +342,7 @@ export default {
|
|
|
339
342
|
immediate:true
|
|
340
343
|
}
|
|
341
344
|
},
|
|
345
|
+
|
|
342
346
|
mounted() {
|
|
343
347
|
// 在 pdf_view 下创建 所有canvs的容器
|
|
344
348
|
// this.contentView = document.createElement('div')
|