mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 10:38:16 +08:00
优化 pdfjs-dist 声明
This commit is contained in:
parent
c32d1db014
commit
e4b2c66f9a
@ -11,7 +11,6 @@ import {Document, Page, pdfjs} from 'react-pdf';
|
|||||||
import {Icon} from './icons';
|
import {Icon} from './icons';
|
||||||
import Input from './Input';
|
import Input from './Input';
|
||||||
import Spinner from './Spinner';
|
import Spinner from './Spinner';
|
||||||
// @ts-ignore
|
|
||||||
import pdfJSWorkerURL from 'pdfjs-dist/build/pdf.worker.min';
|
import pdfJSWorkerURL from 'pdfjs-dist/build/pdf.worker.min';
|
||||||
pdfjs.GlobalWorkerOptions.workerSrc = pdfJSWorkerURL;
|
pdfjs.GlobalWorkerOptions.workerSrc = pdfJSWorkerURL;
|
||||||
|
|
||||||
|
1
types/pdfjs-dist/index.d.ts
vendored
Normal file
1
types/pdfjs-dist/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
declare module 'pdfjs-dist/build/pdf.worker.min';
|
Loading…
Reference in New Issue
Block a user