twcpt 0.0.30 → 0.0.31

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.
@@ -47,8 +47,8 @@ export interface JTWPdfViewProps {
47
47
  height?: string;
48
48
  /**
49
49
  * pdfjs worker 脚本路径。
50
- * 默认使用 CDN:https://cdn.jsdelivr.net/npm/pdfjs-dist@{version}/build/pdf.worker.min.mjs
51
- * 可传入本地路径如 '/pdf.worker.min.mjs' 以离线使用。
50
+ * 默认不使用 CDN
51
+ * 如需显式启用 worker,可传入业务项目中的本地路径或自定义地址。
52
52
  */
53
53
  workerSrc?: string;
54
54
  /**
@@ -0,0 +1,4 @@
1
+ declare module '*?url' {
2
+ const src: string;
3
+ export default src;
4
+ }