askbot-dragon 1.3.20 → 1.3.22
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
package/public/index.html
CHANGED
|
@@ -25,7 +25,12 @@
|
|
|
25
25
|
<!-- vant -->
|
|
26
26
|
<!-- <script src="https://static.guoranbot.com/vant/2.12/lib/vant.min.js"></script>
|
|
27
27
|
<link rel="stylesheet" href="https://static.guoranbot.com/vant/2.12/lib/index.css" /> -->
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
<!-- pdf.js -->
|
|
30
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.5.141/pdf.min.js" integrity="sha512-BagCUdQjQ2Ncd42n5GGuXQn1qwkHL2jCSkxN5+ot9076d5wAI8bcciSooQaI3OG3YLj6L97dKAFaRvhSXVO0/Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
31
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.5.141/pdf.worker.min.js" integrity="sha512-6UHd2tcWIvg5hIYHXb3lnNO61tWfriGen6KddwGYTSUUazWGYESTHDDxJFEQkCy1cSL//yXKc1gcL+51/DTLFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
32
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.5.141/pdf_viewer.min.js" integrity="sha512-tYEGuMBQkCfSlBKJ3dNgS06wbb/MNE6nO2poZ1Y5brix8NajGcDcfEvuL38wJDOTkq0j5ojASNmrzv/8/wgGHQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
33
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.5.141/pdf_viewer.min.css" integrity="sha512-Jf9DLkegLgARLR151csVkPvcVt4cOUhslrSZwiTAe9mqFL/BbYRDmxCOioCtbHifEgjsBFbrVhOMQ3mYPDLrqQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
29
34
|
<style>
|
|
30
35
|
*{
|
|
31
36
|
margin: 0;
|
|
@@ -5,14 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
<script>
|
|
7
7
|
import _ from 'lodash'
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
-
const pdfjsLib = window['pdfjsLib']
|
|
14
|
-
pdfjsLib.GlobalWorkerOptions.workerSrc = window['pdfjs-dist/build/pdf.worker'];
|
|
15
|
-
const {TextLayerBuilder} = window['pdfjs-dist/web/pdf_viewer']
|
|
12
|
+
import 'pdfjs-dist/web/pdf_viewer.css'
|
|
16
13
|
|
|
17
14
|
export default {
|
|
18
15
|
name: 'pdfView',
|