basic-file-preview 1.0.1 → 1.0.2
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/dist/lib/DocxPreview.js +19 -1
- package/dist/lib/ExcelPreview.js +20 -1
- package/dist/lib/ImagePreview.js +670 -1
- package/dist/lib/JsonPreview.js +42 -1
- package/dist/lib/MarkdownPreview.js +50 -1
- package/dist/lib/PdfPreview.js +42 -1
- package/dist/lib/PptPreview.js +203 -1
- package/dist/lib/TxtPreview.js +39 -2
- package/dist/lib/_plugin-vue_export-helper.js +9 -1
- package/dist/lib/index.js +3142 -5
- package/dist/types/components/FilePreview/index.d.ts +11 -4
- package/package.json +3 -4
- package/dist/index.cjs.js +0 -2
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ShowParams } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 函数式文件预览 API
|
|
4
|
+
* @param options 预览参数
|
|
5
|
+
* @returns 组件实例(校验失败返回 null)
|
|
6
|
+
*/
|
|
7
|
+
export declare const preview: (options: ShowParams) => import('vue').ComponentInternalInstance | null;
|
|
8
|
+
export declare const FilePreview: import('vue').DefineComponent<import('./types').FilePreviewProps, {
|
|
3
9
|
show: (options: ShowParams) => void;
|
|
4
10
|
close: () => void;
|
|
5
11
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
12
|
"update:visible": (...args: any[]) => void;
|
|
7
13
|
close: (...args: any[]) => void;
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<FilePreviewProps> & Readonly<{
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<import('./types').FilePreviewProps> & Readonly<{
|
|
9
15
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
10
16
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
11
17
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
export default
|
|
18
|
+
export default FilePreview;
|
|
19
|
+
export * from './types';
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basic-file-preview",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./dist/index.
|
|
6
|
+
"main": "./dist/index.cs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
8
8
|
"types": "./dist/types/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/types/index.d.ts",
|
|
12
|
-
"import": "./dist/index.es.js"
|
|
13
|
-
"require": "./dist/index.cjs"
|
|
12
|
+
"import": "./dist/index.es.js"
|
|
14
13
|
}
|
|
15
14
|
},
|
|
16
15
|
"author": "balabilibo",
|