@flyfish-group/file-viewer 1.0.25 → 2.0.0
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/README.en.md +5 -375
- package/README.md +6 -352
- package/dist/index.d.ts +2 -606
- package/dist/index.js +2 -0
- package/package.json +32 -107
- package/dist/components/3MFLoader.js +0 -1
- package/dist/components/AMFLoader.js +0 -1
- package/dist/components/ArchiveViewer.js +0 -377
- package/dist/components/AudioViewer.js +0 -1
- package/dist/components/CadViewer.js +0 -1
- package/dist/components/CodeViewer.js +0 -1
- package/dist/components/ColladaLoader.js +0 -1
- package/dist/components/DrawingViewer.js +0 -1
- package/dist/components/EdaViewer.js +0 -1
- package/dist/components/EmailViewer.js +0 -1
- package/dist/components/EpubViewer.js +0 -1
- package/dist/components/FBXLoader.js +0 -1
- package/dist/components/GLTFLoader.js +0 -1
- package/dist/components/ImageViewer.js +0 -1
- package/dist/components/KMZLoader.js +0 -1
- package/dist/components/MarkdownViewer.js +0 -1
- package/dist/components/ModelViewer.js +0 -26885
- package/dist/components/OBJLoader.js +0 -1
- package/dist/components/OfdViewer.js +0 -1
- package/dist/components/PCDLoader.js +0 -1
- package/dist/components/PLYLoader.js +0 -1
- package/dist/components/PdfView.js +0 -31013
- package/dist/components/PptxRender.js +0 -19347
- package/dist/components/STLLoader.js +0 -1
- package/dist/components/TDSLoader.js +0 -1
- package/dist/components/TypstViewer.js +0 -2029
- package/dist/components/USDLoader.js +0 -1
- package/dist/components/UmdViewer.js +0 -2
- package/dist/components/VRMLLoader.js +0 -1
- package/dist/components/VTKLoader.js +0 -1
- package/dist/components/XYZLoader.js +0 -1
- package/dist/components/XlsxTable.js +0 -1
- package/dist/components/___vite-browser-external_commonjs-proxy.js +0 -1
- package/dist/components/_commonjs-dynamic-modules.js +0 -1
- package/dist/components/_commonjsHelpers.js +0 -1
- package/dist/components/ar-SA-G6X2FPQ2.js +0 -1
- package/dist/components/arc.js +0 -1
- package/dist/components/architecture-7EHR7CIX.js +0 -1
- package/dist/components/architectureDiagram-3BPJPVTR.js +0 -1
- package/dist/components/az-AZ-76LH7QW2.js +0 -1
- package/dist/components/bash.js +0 -1
- package/dist/components/bg-BG-XCXSNQG7.js +0 -1
- package/dist/components/blockDiagram-GPEHLZMM.js +0 -1
- package/dist/components/bn-BD-2XOGV67Q.js +0 -1
- package/dist/components/c4Diagram-AAUBKEIU.js +0 -1
- package/dist/components/ca-ES-6MX7JW3Y.js +0 -1
- package/dist/components/cfb.js +0 -1
- package/dist/components/channel.js +0 -1
- package/dist/components/chunk-2J33WTMH.js +0 -1
- package/dist/components/chunk-4BX2VUAB.js +0 -1
- package/dist/components/chunk-55IACEB6.js +0 -1
- package/dist/components/chunk-727SXJPM.js +0 -1
- package/dist/components/chunk-AQP2D5EJ.js +0 -1
- package/dist/components/chunk-EIO257PC.js +0 -1722
- package/dist/components/chunk-FMBD7UC4.js +0 -1
- package/dist/components/chunk-ND2GUHAM.js +0 -1
- package/dist/components/chunk-QZHKN3VN.js +0 -1
- package/dist/components/classDiagram-4FO5ZUOK.js +0 -1
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +0 -1
- package/dist/components/core.js +0 -1
- package/dist/components/cose-bilkent-S5V4N54A.js +0 -1
- package/dist/components/cpp.js +0 -1
- package/dist/components/cs-CZ-2BRQDIVT.js +0 -1
- package/dist/components/csharp.js +0 -1
- package/dist/components/css.js +0 -1
- package/dist/components/cytoscape.esm.js +0 -1
- package/dist/components/da-DK-5WZEPLOC.js +0 -1
- package/dist/components/dagre-BM42HDAG.js +0 -1
- package/dist/components/de-DE-XR44H4JA.js +0 -1
- package/dist/components/defaultLocale.js +0 -1
- package/dist/components/diagram-2AECGRRQ.js +0 -1
- package/dist/components/diagram-5GNKFQAL.js +0 -1
- package/dist/components/diagram-KO2AKTUF.js +0 -1
- package/dist/components/diagram-LMA3HP47.js +0 -1
- package/dist/components/diagram-OG6HWLK6.js +0 -1
- package/dist/components/diff.js +0 -1
- package/dist/components/directory-open-01563666.js +0 -1
- package/dist/components/directory-open-4ed118d0.js +0 -1
- package/dist/components/docx-preview.js +0 -7
- package/dist/components/el-GR-BZB4AONW.js +0 -1
- package/dist/components/en-B4ZKOASM.js +0 -1
- package/dist/components/erDiagram-TEJ5UH35.js +0 -1
- package/dist/components/es-ES-U4NZUMDT.js +0 -1
- package/dist/components/eu-ES-A7QVB2H4.js +0 -1
- package/dist/components/eventmodeling-FCH6USID.js +0 -1
- package/dist/components/fa-IR-HGAKTJCU.js +0 -1
- package/dist/components/fflate.module.js +0 -1
- package/dist/components/fi-FI-Z5N7JZ37.js +0 -1
- package/dist/components/file-open-002ab408.js +0 -1
- package/dist/components/file-open-7c801643.js +0 -1
- package/dist/components/file-save-3189631c.js +0 -1
- package/dist/components/file-save-745eba88.js +0 -1
- package/dist/components/flowDiagram-I6XJVG4X.js +0 -1
- package/dist/components/fr-FR-RHASNOE6.js +0 -1
- package/dist/components/ganttDiagram-6RSMTGT7.js +0 -1
- package/dist/components/gitGraph-WXDBUCRP.js +0 -1
- package/dist/components/gitGraphDiagram-PVQCEYII.js +0 -1
- package/dist/components/gl-ES-HMX3MZ6V.js +0 -1
- package/dist/components/global-compiler.js +0 -1
- package/dist/components/global-renderer.js +0 -1
- package/dist/components/go.js +0 -1
- package/dist/components/graph.js +0 -1
- package/dist/components/he-IL-6SHJWFNN.js +0 -1
- package/dist/components/hi-IN-IWLTKZ5I.js +0 -1
- package/dist/components/hu-HU-A5ZG7DT2.js +0 -1
- package/dist/components/id-ID-SAP4L64H.js +0 -1
- package/dist/components/image-GAAHSSAO.js +0 -1
- package/dist/components/image-blob-reduce.esm.js +0 -2
- package/dist/components/index.js +0 -23989
- package/dist/components/index10.js +0 -1
- package/dist/components/index11.js +0 -1
- package/dist/components/index12.js +0 -1
- package/dist/components/index13.js +0 -1
- package/dist/components/index14.js +0 -1
- package/dist/components/index15.js +0 -1
- package/dist/components/index16.js +0 -1
- package/dist/components/index17.js +0 -1
- package/dist/components/index18.js +0 -1
- package/dist/components/index19.js +0 -1
- package/dist/components/index2.js +0 -1
- package/dist/components/index20.js +0 -1
- package/dist/components/index21.js +0 -1
- package/dist/components/index22.js +0 -2
- package/dist/components/index23.js +0 -1
- package/dist/components/index24.js +0 -1
- package/dist/components/index3.js +0 -1
- package/dist/components/index4.js +0 -1
- package/dist/components/index5.js +0 -1
- package/dist/components/index6.js +0 -1
- package/dist/components/index7.js +0 -1
- package/dist/components/index8.js +0 -1
- package/dist/components/index9.js +0 -1
- package/dist/components/info-J43DQDTF.js +0 -1
- package/dist/components/infoDiagram-5YYISTIA.js +0 -1
- package/dist/components/ini.js +0 -1
- package/dist/components/init.js +0 -1
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +0 -1
- package/dist/components/it-IT-JPQ66NNP.js +0 -1
- package/dist/components/ja-JP-DBVTYXUO.js +0 -1
- package/dist/components/java.js +0 -1
- package/dist/components/javascript.js +0 -1
- package/dist/components/journeyDiagram-JHISSGLW.js +0 -1
- package/dist/components/json.js +0 -1
- package/dist/components/jszip.min.js +0 -1
- package/dist/components/kaa-6HZHGXH3.js +0 -1
- package/dist/components/kab-KAB-ZGHBKWFO.js +0 -1
- package/dist/components/kanban-definition-UN3LZRKU.js +0 -1
- package/dist/components/katex.js +0 -1
- package/dist/components/kk-KZ-P5N5QNE5.js +0 -1
- package/dist/components/km-KH-HSX4SM5Z.js +0 -1
- package/dist/components/ko-KR-MTYHY66A.js +0 -1
- package/dist/components/ku-TR-6OUDTVRD.js +0 -1
- package/dist/components/layout.js +0 -1
- package/dist/components/libarchive.js +0 -6
- package/dist/components/linear.js +0 -1
- package/dist/components/lt-LT-XHIRWOB4.js +0 -1
- package/dist/components/lv-LV-5QDEKY6T.js +0 -1
- package/dist/components/markdown.js +0 -1
- package/dist/components/mermaid-parser.core.js +0 -14
- package/dist/components/mindmap-definition-RKZ34NQL.js +0 -1
- package/dist/components/mr-IN-CRQNXWMA.js +0 -1
- package/dist/components/my-MM-5M5IBNSE.js +0 -1
- package/dist/components/nb-NO-T6EIAALU.js +0 -1
- package/dist/components/nestedRender.js +0 -1
- package/dist/components/nl-NL-IS3SIHDZ.js +0 -1
- package/dist/components/nn-NO-6E72VCQL.js +0 -1
- package/dist/components/oc-FR-POXYY2M6.js +0 -1
- package/dist/components/ofd.js +0 -1
- package/dist/components/ordinal.js +0 -1
- package/dist/components/pa-IN-N4M65BXN.js +0 -1
- package/dist/components/packet-YPE3B663.js +0 -1
- package/dist/components/percentages-BXMCSKIN.js +0 -1
- package/dist/components/php.js +0 -1
- package/dist/components/pica.js +0 -1
- package/dist/components/pie-LRSECV5Y.js +0 -1
- package/dist/components/pie.js +0 -1
- package/dist/components/pieDiagram-4H26LBE5.js +0 -1
- package/dist/components/pl-PL-T2D74RX3.js +0 -1
- package/dist/components/postal-mime.js +0 -1
- package/dist/components/printLayout.js +0 -1
- package/dist/components/pt-BR-5N22H2LF.js +0 -1
- package/dist/components/pt-PT-UZXXM6DQ.js +0 -1
- package/dist/components/python.js +0 -1
- package/dist/components/quadrantDiagram-W4KKPZXB.js +0 -1
- package/dist/components/radar-GUYGQ44K.js +0 -1
- package/dist/components/requirementDiagram-4Y6WPE33.js +0 -1
- package/dist/components/ro-RO-JPDTUUEW.js +0 -1
- package/dist/components/rough.esm.js +0 -1
- package/dist/components/roundRect.js +0 -1
- package/dist/components/ru-RU-B4JR7IUQ.js +0 -1
- package/dist/components/rust.js +0 -1
- package/dist/components/sankeyDiagram-5OEKKPKP.js +0 -1
- package/dist/components/sequenceDiagram-3UESZ5HK.js +0 -1
- package/dist/components/si-LK-N5RQ5JYF.js +0 -1
- package/dist/components/sk-SK-C5VTKIMK.js +0 -1
- package/dist/components/sl-SI-NN7IZMDC.js +0 -1
- package/dist/components/sql.js +0 -1
- package/dist/components/stateDiagram-AJRCARHV.js +0 -1
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +0 -1
- package/dist/components/subset-shared.chunk.js +0 -1
- package/dist/components/subset-worker.chunk.js +0 -1
- package/dist/components/sv-SE-XGPEYMSR.js +0 -1
- package/dist/components/ta-IN-2NMHFXQM.js +0 -1
- package/dist/components/th-TH-HPSO5L25.js +0 -1
- package/dist/components/time.js +0 -1
- package/dist/components/timeline-definition-PNZ67QCA.js +0 -1
- package/dist/components/tr-TR-DEFEU3FU.js +0 -1
- package/dist/components/transform.js +0 -1
- package/dist/components/treeView-BLDUP644.js +0 -1
- package/dist/components/treemap-LRROVOQU.js +0 -1
- package/dist/components/typescript.js +0 -1
- package/dist/components/uk-UA-QMV73CPH.js +0 -1
- package/dist/components/vennDiagram-CIIHVFJN.js +0 -1
- package/dist/components/vi-VN-M7AON7JQ.js +0 -1
- package/dist/components/wardley-L42UT6IY.js +0 -1
- package/dist/components/wardleyDiagram-YWT4CUSO.js +0 -1
- package/dist/components/wasm-pack-shim.js +0 -1
- package/dist/components/wasm-pack-shim2.js +0 -1
- package/dist/components/worker-ref.js +0 -1
- package/dist/components/xml.js +0 -1
- package/dist/components/xychartDiagram-2RQKCTM6.js +0 -1
- package/dist/components/yaml.js +0 -1
- package/dist/components/zh-CN-LNUGB5OW.js +0 -1
- package/dist/components/zh-HK-E62DVLB3.js +0 -1
- package/dist/components/zh-TW-RAJ6MFWO.js +0 -1
- package/dist/index.mjs +0 -1
- package/dist/package/index.d.ts +0 -36
- package/dist/style.css +0 -17
- package/dist/wasm/cad/dwfv-render.wasm +0 -0
- package/dist/wasm/cad/dwg-worker.js +0 -24
- package/dist/wasm/cad/libredwg-web.js +0 -15
- package/dist/wasm/cad/libredwg-web.wasm +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,606 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { ExtractPropTypes } from 'vue';
|
|
4
|
-
import { PropType } from 'vue';
|
|
5
|
-
|
|
6
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
7
|
-
|
|
8
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
-
} : {
|
|
12
|
-
type: PropType<T[K]>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
declare const _default: Installer;
|
|
18
|
-
export default _default;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* 组件可接受的本地二进制来源。
|
|
22
|
-
*
|
|
23
|
-
* 对外接入时最推荐传入带正确文件名的 `File`。如果业务侧拿到的是
|
|
24
|
-
* `Blob` 或 `ArrayBuffer`,请先包装成 `new File([...], 'demo.pdf')`,
|
|
25
|
-
* 这样渲染器才能通过扩展名选择正确的预览链路。
|
|
26
|
-
*/
|
|
27
|
-
export declare type FileRef = File | Blob | ArrayBuffer;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 渲染器专属导出适配器。
|
|
31
|
-
*/
|
|
32
|
-
export declare interface FileRenderExportAdapter {
|
|
33
|
-
/**
|
|
34
|
-
* 当前渲染器是否允许打印。未设置时由文件类型能力矩阵兜底判断。
|
|
35
|
-
*/
|
|
36
|
-
print?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* 当前渲染器是否允许导出渲染后的 HTML。
|
|
39
|
-
*/
|
|
40
|
-
exportHtml?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* 是否把当前页面的全局 style/link 一并带进导出窗口。
|
|
43
|
-
*
|
|
44
|
-
* 专属分页适配器通常会自行输出必要样式,应关闭该项,避免宿主应用的
|
|
45
|
-
* `height: 100vh`、`overflow: hidden` 等布局样式干扰浏览器分页打印。
|
|
46
|
-
*/
|
|
47
|
-
includeDocumentStyles?: boolean;
|
|
48
|
-
beforeSnapshot?: () => Promise<void> | void;
|
|
49
|
-
/**
|
|
50
|
-
* 打印专用样式。适合 PDF / Word 等有真实页面尺寸的格式输出 `@page size`,
|
|
51
|
-
* 避免浏览器默认纸张或外层容器把页面缩放、裁切。
|
|
52
|
-
*/
|
|
53
|
-
printStyle?: string | ((options: FileRenderExportOptions) => Promise<string> | string);
|
|
54
|
-
toHtml?: (options: FileRenderExportOptions) => Promise<string> | string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 导出/打印模式。
|
|
59
|
-
*/
|
|
60
|
-
export declare type FileRenderExportMode = 'export' | 'print';
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* 渲染器自定义导出上下文。
|
|
64
|
-
*
|
|
65
|
-
* 大多数格式可以直接克隆当前 DOM;PDF 这类虚拟滚动或按需渲染格式
|
|
66
|
-
* 需要在打印前重新生成完整页面,因此允许渲染器注册专属适配器。
|
|
67
|
-
*/
|
|
68
|
-
export declare interface FileRenderExportOptions {
|
|
69
|
-
mode: FileRenderExportMode;
|
|
70
|
-
title: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export declare const FileViewer: DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
74
|
-
/**
|
|
75
|
-
* 本地二进制输入。优先级高于 `url`。
|
|
76
|
-
*
|
|
77
|
-
* 推荐传入带正确扩展名的 `File`;如果业务侧只有 Blob 或 ArrayBuffer,
|
|
78
|
-
* 请先包装成 `new File([...], 'demo.pdf')`,保证格式识别稳定。
|
|
79
|
-
*/
|
|
80
|
-
file?: FileRef | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* 远端文件地址。组件会在浏览器内下载该地址,再根据路径里的扩展名选择渲染器。
|
|
83
|
-
*
|
|
84
|
-
* 目标资源必须允许浏览器访问;鉴权或无扩展名下载接口建议由宿主侧先取回,
|
|
85
|
-
* 再通过 `file` 参数传入。
|
|
86
|
-
*/
|
|
87
|
-
url?: string | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* 预览器通用选项。
|
|
90
|
-
*
|
|
91
|
-
* 目前覆盖内置操作栏、水印,以及压缩包内文件预览的缓存/体积限制。
|
|
92
|
-
*/
|
|
93
|
-
options?: FileViewerOptions | undefined;
|
|
94
|
-
}>, {
|
|
95
|
-
downloadOriginalFile: () => Promise<void>;
|
|
96
|
-
printRenderedHtml: () => Promise<void>;
|
|
97
|
-
exportRenderedHtml: () => Promise<void>;
|
|
98
|
-
zoomIn: () => Promise<FileViewerZoomState>;
|
|
99
|
-
zoomOut: () => Promise<FileViewerZoomState>;
|
|
100
|
-
resetZoom: () => Promise<FileViewerZoomState>;
|
|
101
|
-
getZoomState: () => FileViewerZoomState;
|
|
102
|
-
getOperationAvailability: () => {
|
|
103
|
-
download: boolean;
|
|
104
|
-
print: boolean;
|
|
105
|
-
exportHtml: boolean;
|
|
106
|
-
zoom: boolean;
|
|
107
|
-
zoomIn: boolean;
|
|
108
|
-
zoomOut: boolean;
|
|
109
|
-
zoomReset: boolean;
|
|
110
|
-
};
|
|
111
|
-
getScrollContainer: () => HTMLElement | null;
|
|
112
|
-
searchDocument: (query: string) => Promise<FileViewerSearchState>;
|
|
113
|
-
clearDocumentSearch: () => Promise<FileViewerSearchState>;
|
|
114
|
-
nextSearchResult: () => Promise<FileViewerSearchState>;
|
|
115
|
-
previousSearchResult: () => Promise<FileViewerSearchState>;
|
|
116
|
-
getSearchState: () => FileViewerSearchState;
|
|
117
|
-
collectDocumentAnchors: () => Promise<FileViewerDocumentAnchor[]>;
|
|
118
|
-
scrollToAnchor: (anchor: string | FileViewerDocumentAnchor) => Promise<boolean>;
|
|
119
|
-
scrollToLine: (line: number) => Promise<boolean>;
|
|
120
|
-
getDocumentTextChunks: () => FileViewerDocumentChunk[];
|
|
121
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
122
|
-
"load-start": (context: FileViewerLifecycleContext) => void;
|
|
123
|
-
"load-complete": (context: FileViewerLifecycleContext) => void;
|
|
124
|
-
"unload-start": (context: FileViewerLifecycleContext) => void;
|
|
125
|
-
"unload-complete": (context: FileViewerLifecycleContext) => void;
|
|
126
|
-
"operation-before": (context: FileViewerOperationContext) => void;
|
|
127
|
-
"operation-cancel": (context: FileViewerOperationContext) => void;
|
|
128
|
-
"operation-availability-change": (availability: FileViewerOperationAvailability) => void;
|
|
129
|
-
"search-change": (state: FileViewerSearchState) => void;
|
|
130
|
-
"location-change": (anchor: FileViewerDocumentAnchor | null) => void;
|
|
131
|
-
"zoom-change": (state: FileViewerZoomState) => void;
|
|
132
|
-
}, string, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
133
|
-
/**
|
|
134
|
-
* 本地二进制输入。优先级高于 `url`。
|
|
135
|
-
*
|
|
136
|
-
* 推荐传入带正确扩展名的 `File`;如果业务侧只有 Blob 或 ArrayBuffer,
|
|
137
|
-
* 请先包装成 `new File([...], 'demo.pdf')`,保证格式识别稳定。
|
|
138
|
-
*/
|
|
139
|
-
file?: FileRef | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* 远端文件地址。组件会在浏览器内下载该地址,再根据路径里的扩展名选择渲染器。
|
|
142
|
-
*
|
|
143
|
-
* 目标资源必须允许浏览器访问;鉴权或无扩展名下载接口建议由宿主侧先取回,
|
|
144
|
-
* 再通过 `file` 参数传入。
|
|
145
|
-
*/
|
|
146
|
-
url?: string | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* 预览器通用选项。
|
|
149
|
-
*
|
|
150
|
-
* 目前覆盖内置操作栏、水印,以及压缩包内文件预览的缓存/体积限制。
|
|
151
|
-
*/
|
|
152
|
-
options?: FileViewerOptions | undefined;
|
|
153
|
-
}>>>, {}>;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* AI 友好能力配置。
|
|
157
|
-
*
|
|
158
|
-
* 预览器本身不内置云端模型调用;这里提供可选文本切片结构,业务侧可以
|
|
159
|
-
* 基于 `getDocumentTextChunks()` 做向量化、溯源、AI 摘要和命中高亮。
|
|
160
|
-
*/
|
|
161
|
-
declare interface FileViewerAiOptions {
|
|
162
|
-
enabled?: boolean;
|
|
163
|
-
collectText?: boolean;
|
|
164
|
-
maxTextLength?: number;
|
|
165
|
-
chunkSize?: number;
|
|
166
|
-
chunkOverlap?: number;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* 压缩包预览配置。
|
|
171
|
-
*/
|
|
172
|
-
export declare interface FileViewerArchiveOptions {
|
|
173
|
-
/**
|
|
174
|
-
* libarchive.js Worker 地址。私有化部署时建议把
|
|
175
|
-
* `worker-bundle.js` 与 `libarchive.wasm` 放在同一目录后传入。
|
|
176
|
-
*
|
|
177
|
-
* 没有传入时,预览器会先尝试当前部署 base 下的
|
|
178
|
-
* `vendor/libarchive/worker-bundle.js`,失败后自动回退到内置 Worker。
|
|
179
|
-
*/
|
|
180
|
-
workerUrl?: string;
|
|
181
|
-
/**
|
|
182
|
-
* 内置 Worker 回退时使用的 libarchive WASM 地址。只有在不希望使用打包产物中
|
|
183
|
-
* 的 wasm 资源、或需要指向私有 CDN 时才需要配置。
|
|
184
|
-
*/
|
|
185
|
-
wasmUrl?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Worker 初始化、加密检测和目录读取的超时时间,单位毫秒。默认 30000。
|
|
188
|
-
* 手机 WebView 或本地临时服务器不稳定时,超时后会自动尝试兼容模式。
|
|
189
|
-
*/
|
|
190
|
-
workerTimeoutMs?: number;
|
|
191
|
-
/**
|
|
192
|
-
* 是否启用 IndexedDB 缓存压缩包内已解压的文件。
|
|
193
|
-
*/
|
|
194
|
-
cache?: boolean;
|
|
195
|
-
/**
|
|
196
|
-
* 单个压缩包允许解析的最大体积,单位字节。
|
|
197
|
-
*/
|
|
198
|
-
maxArchiveSize?: number;
|
|
199
|
-
/**
|
|
200
|
-
* 压缩包内单文件允许在线预览的最大体积,单位字节。
|
|
201
|
-
*/
|
|
202
|
-
maxEntryPreviewSize?: number;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export declare type FileViewerBeforeOperation = (context: FileViewerOperationContext) => boolean | void | Promise<boolean | void>;
|
|
206
|
-
|
|
207
|
-
declare type FileViewerCadDwfLineWeightMode = 'adaptive' | 'physical' | 'hairline';
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* CAD 预览配置。
|
|
211
|
-
*
|
|
212
|
-
* 默认使用 @flyfish-dev/cad-viewer,并从 viewer 静态目录下的
|
|
213
|
-
* `wasm/cad/` 按需加载 LibreDWG WASM、DWF raster WASM 与 DWG Worker。
|
|
214
|
-
* 私有化部署或 CDN 路径不同的场景,可以显式覆盖对应 URL。
|
|
215
|
-
*/
|
|
216
|
-
declare interface FileViewerCadOptions {
|
|
217
|
-
wasmPath?: string;
|
|
218
|
-
workerUrl?: string | URL;
|
|
219
|
-
dwfWasmUrl?: string;
|
|
220
|
-
/**
|
|
221
|
-
* DXF 文本编码覆盖。一般会自动读取 `$DWGCODEPAGE`,仅在历史文件声明缺失
|
|
222
|
-
* 或错误时指定,例如 `gb18030`、`big5`、`shift_jis`、`windows-1252`。
|
|
223
|
-
*/
|
|
224
|
-
dxfEncoding?: string;
|
|
225
|
-
useWorker?: boolean;
|
|
226
|
-
workerTimeoutMs?: number;
|
|
227
|
-
renderer?: FileViewerCadRenderer;
|
|
228
|
-
preferDwgWasm?: boolean;
|
|
229
|
-
includePaperSpace?: boolean;
|
|
230
|
-
maxInsertDepth?: number;
|
|
231
|
-
keepRaw?: boolean;
|
|
232
|
-
preloadDwg?: boolean;
|
|
233
|
-
dwfPreferWebgl?: boolean;
|
|
234
|
-
dwfPreferWasm?: boolean;
|
|
235
|
-
dwfBackground?: string;
|
|
236
|
-
dwfMaxDevicePixelRatio?: number;
|
|
237
|
-
dwfMaxCanvasPixels?: number;
|
|
238
|
-
dwfMaxGpuCacheBytes?: number;
|
|
239
|
-
dwfMaxCachedScenes?: number;
|
|
240
|
-
dwfLineWeightMode?: FileViewerCadDwfLineWeightMode;
|
|
241
|
-
dwfMinStrokeCssPx?: number;
|
|
242
|
-
dwfMaxOverviewStrokeCssPx?: number;
|
|
243
|
-
dwfMinTextCssPx?: number;
|
|
244
|
-
dwfMinFilledAreaCssPx?: number;
|
|
245
|
-
canvasOptions?: Record<string, unknown>;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
declare type FileViewerCadRenderer = 'auto' | 'webgl' | 'canvas2d';
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* 文档定位锚点。
|
|
252
|
-
*
|
|
253
|
-
* 预览器会尽量把当前渲染结果中的页面、段落、表格行、代码块等内容
|
|
254
|
-
* 抽象成稳定锚点。不同格式的“行”粒度不完全相同:文本类文档通常可到
|
|
255
|
-
* 段落/行块,PDF 这类画布型文档会优先回退到页与可用文本层。
|
|
256
|
-
*/
|
|
257
|
-
declare interface FileViewerDocumentAnchor {
|
|
258
|
-
id: string;
|
|
259
|
-
index: number;
|
|
260
|
-
line: number;
|
|
261
|
-
type: 'page' | 'line' | 'block';
|
|
262
|
-
label: string;
|
|
263
|
-
text: string;
|
|
264
|
-
page?: number;
|
|
265
|
-
top: number;
|
|
266
|
-
left: number;
|
|
267
|
-
width: number;
|
|
268
|
-
height: number;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* AI / 搜索可复用的文档文本切片。
|
|
273
|
-
*
|
|
274
|
-
* 这里不直接绑定任何云端能力,只提供溯源、向量化和高亮所需的稳定结构。
|
|
275
|
-
*/
|
|
276
|
-
declare interface FileViewerDocumentChunk {
|
|
277
|
-
id: string;
|
|
278
|
-
text: string;
|
|
279
|
-
anchor: FileViewerDocumentAnchor;
|
|
280
|
-
startLine: number;
|
|
281
|
-
endLine: number;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* DOCX 渲染配置。
|
|
286
|
-
*
|
|
287
|
-
* 默认使用 Web Worker 承载 `docx-preview` 的 ZIP/XML 解析和 HTML 构建,
|
|
288
|
-
* 主线程只负责把最终 HTML 挂载到预览区并执行缩放、打印等交互适配。
|
|
289
|
-
* 这样可以保持 docxjs 的真实渲染结果,同时减少复杂 DOCX 首屏卡顿。
|
|
290
|
-
*/
|
|
291
|
-
declare interface FileViewerDocxOptions {
|
|
292
|
-
/**
|
|
293
|
-
* 是否启用 DOCX Worker 渲染链路。默认开启。
|
|
294
|
-
* 极少数 CSP 或低版本浏览器不允许内联 Worker 时,可设为 `false`
|
|
295
|
-
* 回退到 docx-preview 原生主线程渲染。
|
|
296
|
-
*/
|
|
297
|
-
worker?: boolean;
|
|
298
|
-
/**
|
|
299
|
-
* 是否把 Worker 返回的 docx-preview HTML 按页面分批挂载。默认开启。
|
|
300
|
-
* 它不改变渲染器,只是避免一次性插入长文档 DOM 时阻塞首屏。
|
|
301
|
-
*/
|
|
302
|
-
progressive?: boolean;
|
|
303
|
-
/**
|
|
304
|
-
* DOCX Worker 最大等待时间,单位毫秒,默认 15000。
|
|
305
|
-
*
|
|
306
|
-
* 少量复杂 Word 文件会触发浏览器 Worker DOM 兼容边界,设置超时可以避免
|
|
307
|
-
* 永久停留在 loading;超时后仍会回到 docx-preview 原生主线程渲染。
|
|
308
|
-
* 传入 0 或负数可关闭超时保护。
|
|
309
|
-
*/
|
|
310
|
-
workerTimeout?: number;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
declare interface FileViewerInstaller {
|
|
314
|
-
/**
|
|
315
|
-
* 全局注册 `<file-viewer>` 组件。
|
|
316
|
-
*/
|
|
317
|
-
install(Vue: any): void;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
export declare interface FileViewerLifecycleContext {
|
|
321
|
-
phase: FileViewerLifecyclePhase;
|
|
322
|
-
type: string;
|
|
323
|
-
filename: string;
|
|
324
|
-
source: FileViewerSourceType;
|
|
325
|
-
url?: string;
|
|
326
|
-
file?: File;
|
|
327
|
-
size?: number;
|
|
328
|
-
version: number;
|
|
329
|
-
timestamp: number;
|
|
330
|
-
duration?: number;
|
|
331
|
-
reason?: 'replace' | 'reset' | 'component-unmount';
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export declare interface FileViewerLifecycleHooks {
|
|
335
|
-
onLoadStart?: (context: FileViewerLifecycleContext) => void | Promise<void>;
|
|
336
|
-
onLoadComplete?: (context: FileViewerLifecycleContext) => void | Promise<void>;
|
|
337
|
-
onUnloadStart?: (context: FileViewerLifecycleContext) => void | Promise<void>;
|
|
338
|
-
onUnloadComplete?: (context: FileViewerLifecycleContext) => void | Promise<void>;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
export declare type FileViewerLifecyclePhase = 'load-start' | 'load-complete' | 'unload-start' | 'unload-complete';
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* 当前文档对内置操作的真实可用性。
|
|
345
|
-
*
|
|
346
|
-
* `toolbar` 只表达宿主想不想展示某个按钮;这里表达当前文件类型和渲染器
|
|
347
|
-
* 是否真的能稳定完成该操作。尤其是打印,虚拟表格、播放器、3D 画布、
|
|
348
|
-
* EPUB iframe 等链路无法保证完整分页输出时会主动关闭。
|
|
349
|
-
*/
|
|
350
|
-
export declare interface FileViewerOperationAvailability {
|
|
351
|
-
download: boolean;
|
|
352
|
-
print: boolean;
|
|
353
|
-
exportHtml: boolean;
|
|
354
|
-
/**
|
|
355
|
-
* 当前渲染链路是否提供内部缩放能力。
|
|
356
|
-
*/
|
|
357
|
-
zoom: boolean;
|
|
358
|
-
zoomIn: boolean;
|
|
359
|
-
zoomOut: boolean;
|
|
360
|
-
zoomReset: boolean;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
export declare interface FileViewerOperationContext extends Omit<FileViewerLifecycleContext, 'phase'> {
|
|
364
|
-
operation: FileViewerOperationType;
|
|
365
|
-
label: string;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
export declare type FileViewerOperationType = 'download' | 'print' | 'export-html' | 'zoom-in' | 'zoom-out' | 'zoom-reset';
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* 预览器通用配置。
|
|
372
|
-
*/
|
|
373
|
-
export declare interface FileViewerOptions {
|
|
374
|
-
/**
|
|
375
|
-
* 预览器主题。默认 `system`,即跟随浏览器 `prefers-color-scheme`。
|
|
376
|
-
* 业务系统已有固定浅色/深色 UI 时,建议显式传 `light` 或 `dark`,
|
|
377
|
-
* 避免部分渲染器在系统深色模式下自动切换后和宿主视觉不一致。
|
|
378
|
-
*/
|
|
379
|
-
theme?: FileViewerThemeMode;
|
|
380
|
-
watermark?: boolean | FileViewerWatermarkOptions;
|
|
381
|
-
toolbar?: boolean | FileViewerToolbarOptions;
|
|
382
|
-
/**
|
|
383
|
-
* 文档搜索能力配置。设为 `false` 可关闭内置搜索/高亮扫描;
|
|
384
|
-
* 默认启用公开 API,业务 UI 可通过组件 ref 调用 `searchDocument()`。
|
|
385
|
-
*/
|
|
386
|
-
search?: boolean | FileViewerSearchOptions;
|
|
387
|
-
/**
|
|
388
|
-
* AI 友好能力配置。预览器只提供文本切片、锚点和溯源上下文,不绑定模型服务。
|
|
389
|
-
*/
|
|
390
|
-
ai?: boolean | FileViewerAiOptions;
|
|
391
|
-
archive?: FileViewerArchiveOptions;
|
|
392
|
-
pdf?: FileViewerPdfOptions;
|
|
393
|
-
docx?: FileViewerDocxOptions;
|
|
394
|
-
typst?: FileViewerTypstOptions;
|
|
395
|
-
cad?: FileViewerCadOptions;
|
|
396
|
-
/**
|
|
397
|
-
* 文档加载/卸载生命周期钩子。直接使用 Vue 组件时可以传函数;
|
|
398
|
-
* iframe 集成时同名事件会通过 `postMessage` 向宿主发送。
|
|
399
|
-
*/
|
|
400
|
-
hooks?: FileViewerLifecycleHooks;
|
|
401
|
-
/**
|
|
402
|
-
* 内置操作按钮执行前的全局前置钩子。返回 `false` 时会取消本次操作。
|
|
403
|
-
*/
|
|
404
|
-
beforeOperation?: FileViewerBeforeOperation;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* PDF 预览配置。
|
|
409
|
-
*/
|
|
410
|
-
declare interface FileViewerPdfOptions {
|
|
411
|
-
/**
|
|
412
|
-
* 是否显示 PDF 渲染器自己的阅读工具栏。
|
|
413
|
-
*
|
|
414
|
-
* 独立预览建议保持默认显示;在文档比对这类左右排版场景中可以设为
|
|
415
|
-
* `false`,让 PDF 与 Word / Markdown 等格式从同一内容起点对齐。
|
|
416
|
-
*/
|
|
417
|
-
toolbar?: boolean;
|
|
418
|
-
/**
|
|
419
|
-
* 是否启用左侧页面/目录导航窗格。设为 `false` 时会同时隐藏侧栏和切换按钮。
|
|
420
|
-
*/
|
|
421
|
-
navigation?: boolean;
|
|
422
|
-
/**
|
|
423
|
-
* 导航窗格初始是否展开。未设置时默认展开,`navigation: false` 时会被忽略。
|
|
424
|
-
*/
|
|
425
|
-
defaultNavigationVisible?: boolean;
|
|
426
|
-
/**
|
|
427
|
-
* 初始页面旋转角度。会按 90 度归一化到 0 / 90 / 180 / 270。
|
|
428
|
-
*/
|
|
429
|
-
rotation?: number;
|
|
430
|
-
/**
|
|
431
|
-
* 远端 PDF 是否优先交给 PDF.js 直接按 URL 渐进读取。
|
|
432
|
-
*
|
|
433
|
-
* 默认 `same-origin`,即同源 PDF 交给 PDF.js 通过 URL 渐进读取;
|
|
434
|
-
* 当文件服务支持 Range 时会进一步使用分片加载。跨域 URL 仍保持
|
|
435
|
-
* 旧的 Blob 下载后预览链路,最大化兼容鉴权下载和 CORS 场景。
|
|
436
|
-
* 设为 `true` 会对所有 URL 启用,设为 `false` 会完全禁用。
|
|
437
|
-
*/
|
|
438
|
-
streaming?: boolean | 'same-origin';
|
|
439
|
-
/**
|
|
440
|
-
* PDF.js Range 请求的分片大小,默认 64KB;仅在文件服务支持 Range 时生效。
|
|
441
|
-
*/
|
|
442
|
-
rangeChunkSize?: number;
|
|
443
|
-
/**
|
|
444
|
-
* PDF.js URL 读取 PDF 时是否携带浏览器凭据。
|
|
445
|
-
*/
|
|
446
|
-
withCredentials?: boolean;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* 单条搜索命中。
|
|
451
|
-
*/
|
|
452
|
-
declare interface FileViewerSearchMatch {
|
|
453
|
-
id: string;
|
|
454
|
-
index: number;
|
|
455
|
-
text: string;
|
|
456
|
-
anchor: FileViewerDocumentAnchor | null;
|
|
457
|
-
line?: number;
|
|
458
|
-
page?: number;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* 文档搜索配置。
|
|
463
|
-
*/
|
|
464
|
-
declare interface FileViewerSearchOptions {
|
|
465
|
-
/**
|
|
466
|
-
* 是否启用搜索能力。设为 `false` 时公开方法仍存在,但不会执行高亮。
|
|
467
|
-
*/
|
|
468
|
-
enabled?: boolean;
|
|
469
|
-
/**
|
|
470
|
-
* 是否区分大小写。
|
|
471
|
-
*/
|
|
472
|
-
caseSensitive?: boolean;
|
|
473
|
-
/**
|
|
474
|
-
* 是否整词匹配。
|
|
475
|
-
*/
|
|
476
|
-
wholeWord?: boolean;
|
|
477
|
-
/**
|
|
478
|
-
* 单次搜索最多保留的命中数量,避免极端大文档一次性插入过多高亮节点。
|
|
479
|
-
*/
|
|
480
|
-
maxMatches?: number;
|
|
481
|
-
/**
|
|
482
|
-
* 搜索 MutationObserver 重新扫描的防抖时间。
|
|
483
|
-
*/
|
|
484
|
-
debounce?: number;
|
|
485
|
-
/**
|
|
486
|
-
* 自定义高亮类名。
|
|
487
|
-
*/
|
|
488
|
-
className?: string;
|
|
489
|
-
/**
|
|
490
|
-
* 当前命中高亮类名。
|
|
491
|
-
*/
|
|
492
|
-
activeClassName?: string;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* 当前搜索状态。
|
|
497
|
-
*/
|
|
498
|
-
declare interface FileViewerSearchState {
|
|
499
|
-
query: string;
|
|
500
|
-
total: number;
|
|
501
|
-
currentIndex: number;
|
|
502
|
-
current: FileViewerSearchMatch | null;
|
|
503
|
-
matches: FileViewerSearchMatch[];
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
export declare type FileViewerSourceType = 'file' | 'url' | 'empty';
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* 预览器主题模式。
|
|
510
|
-
*
|
|
511
|
-
* `system` 是默认值,会继续跟随浏览器 `prefers-color-scheme`;
|
|
512
|
-
* 浅色业务系统即使运行在深色操作系统中,也可以显式传 `light`
|
|
513
|
-
* 锁定预览区、工具栏和支持主题切换的渲染器为浅色。
|
|
514
|
-
*/
|
|
515
|
-
declare type FileViewerThemeMode = 'light' | 'dark' | 'system';
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* 预览器内置操作栏配置。
|
|
519
|
-
*/
|
|
520
|
-
export declare interface FileViewerToolbarOptions {
|
|
521
|
-
download?: boolean;
|
|
522
|
-
print?: boolean;
|
|
523
|
-
exportHtml?: boolean;
|
|
524
|
-
/**
|
|
525
|
-
* 是否显示统一缩放控制。渲染器会按文件类型注册自己的缩放实现;
|
|
526
|
-
* 虚拟表格等不适合外层缩放的格式不会强行显示该按钮组。
|
|
527
|
-
*/
|
|
528
|
-
zoom?: boolean;
|
|
529
|
-
/**
|
|
530
|
-
* 操作栏位置。`bottom-right` 会以胶囊按钮组悬浮在预览区右下角,
|
|
531
|
-
* 适合 PDF 等自身已经有顶部导航栏的格式。
|
|
532
|
-
*/
|
|
533
|
-
position?: FileViewerToolbarPosition;
|
|
534
|
-
/**
|
|
535
|
-
* 内置操作按钮执行前的统一前置钩子。返回 `false` 时会取消本次操作。
|
|
536
|
-
*/
|
|
537
|
-
beforeOperation?: FileViewerBeforeOperation;
|
|
538
|
-
beforeDownload?: FileViewerBeforeOperation;
|
|
539
|
-
beforePrint?: FileViewerBeforeOperation;
|
|
540
|
-
beforeExportHtml?: FileViewerBeforeOperation;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* 预览器内置操作栏位置。
|
|
545
|
-
*
|
|
546
|
-
* `auto` 是默认策略: PDF 这类有独立阅读工具栏的格式会自动悬浮到右下角,
|
|
547
|
-
* 其他格式继续使用顶部操作栏;也可以显式传 `top` 或 `bottom-right`。
|
|
548
|
-
*/
|
|
549
|
-
declare type FileViewerToolbarPosition = 'auto' | 'top' | 'bottom-right';
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Typst 预览配置。
|
|
553
|
-
*/
|
|
554
|
-
declare interface FileViewerTypstOptions {
|
|
555
|
-
/**
|
|
556
|
-
* Typst compiler WASM 地址。需要浏览器端编译时才会加载。
|
|
557
|
-
*/
|
|
558
|
-
compilerWasmUrl?: string;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* 水印配置。
|
|
563
|
-
*
|
|
564
|
-
* `text` 与 `image` 至少设置一个;同时传入时优先使用图片水印。
|
|
565
|
-
* 图片水印可以是 http(s) URL、相对路径或 data URL。
|
|
566
|
-
*/
|
|
567
|
-
export declare interface FileViewerWatermarkOptions {
|
|
568
|
-
enabled?: boolean;
|
|
569
|
-
text?: string;
|
|
570
|
-
image?: string;
|
|
571
|
-
opacity?: number;
|
|
572
|
-
rotate?: number;
|
|
573
|
-
gapX?: number;
|
|
574
|
-
gapY?: number;
|
|
575
|
-
width?: number;
|
|
576
|
-
height?: number;
|
|
577
|
-
fontSize?: number;
|
|
578
|
-
color?: string;
|
|
579
|
-
fontFamily?: string;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* 当前预览内容的缩放状态。
|
|
584
|
-
*
|
|
585
|
-
* `scale` 使用 1 = 100% 的语义。部分格式会先按容器宽度自动适配,再在此
|
|
586
|
-
* 基础上放大缩小;对外仍返回最终有效比例,便于业务工具栏同步显示。
|
|
587
|
-
*/
|
|
588
|
-
declare interface FileViewerZoomState {
|
|
589
|
-
scale: number;
|
|
590
|
-
label: string;
|
|
591
|
-
canZoomIn: boolean;
|
|
592
|
-
canZoomOut: boolean;
|
|
593
|
-
canReset: boolean;
|
|
594
|
-
minScale?: number;
|
|
595
|
-
maxScale?: number;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* Vue2 插件安装器。
|
|
600
|
-
*/
|
|
601
|
-
declare class Installer implements FileViewerInstaller {
|
|
602
|
-
private installed;
|
|
603
|
-
install(Vue: any): void;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
export { }
|
|
1
|
+
export { default } from '@file-viewer/vue2.7';
|
|
2
|
+
export * from '@file-viewer/vue2.7';
|
package/dist/index.js
ADDED