@zjlab-fe/data-hub-ui 0.0.5 → 0.0.6
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/types/components/file-preview/excel-preview/index.d.ts +1 -1
- package/dist/types/components/file-preview/img-preview/index.d.ts +1 -1
- package/dist/types/components/file-preview/index.d.ts +1 -25
- package/dist/types/components/file-preview/interface.d.ts +25 -0
- package/dist/types/components/file-preview/markdown-preview/index.d.ts +1 -1
- package/dist/types/components/file-preview/pdf-preview/index.d.ts +1 -1
- package/dist/types/components/file-preview/txt-preview/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/es/index.js +1 -2180
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IFilePreviewProps } from '../
|
|
1
|
+
import { IFilePreviewProps } from '../interface';
|
|
2
2
|
export default function ExcelPreview(props: IFilePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IFilePreviewProps } from '../
|
|
1
|
+
import { IFilePreviewProps } from '../interface';
|
|
2
2
|
export default function ImgPreview(props: IFilePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/** 文件url */
|
|
3
|
-
filePath: string;
|
|
4
|
-
/**
|
|
5
|
-
* 是否是在modal中展示
|
|
6
|
-
*/
|
|
7
|
-
openInModal: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* 如果是在modal中展示,可以提供modal的配置
|
|
10
|
-
*/
|
|
11
|
-
modalProps?: {
|
|
12
|
-
/** 是否展示 */
|
|
13
|
-
show: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* 标题
|
|
16
|
-
*/
|
|
17
|
-
title?: string;
|
|
18
|
-
/** 取消回调 */
|
|
19
|
-
onCancel: () => void;
|
|
20
|
-
};
|
|
21
|
-
/** 错误回调 */
|
|
22
|
-
onError?: (error: any) => void;
|
|
23
|
-
/** 成功回调 */
|
|
24
|
-
onSuccess?: () => void;
|
|
25
|
-
}
|
|
1
|
+
import { IFilePreviewProps } from './interface';
|
|
26
2
|
export default function FilePreview(props: IFilePreviewProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface IFilePreviewProps {
|
|
2
|
+
/** 文件url */
|
|
3
|
+
filePath: string;
|
|
4
|
+
/**
|
|
5
|
+
* 是否是在modal中展示
|
|
6
|
+
*/
|
|
7
|
+
openInModal: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 如果是在modal中展示,可以提供modal的配置
|
|
10
|
+
*/
|
|
11
|
+
modalProps?: {
|
|
12
|
+
/** 是否展示 */
|
|
13
|
+
show: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 标题
|
|
16
|
+
*/
|
|
17
|
+
title?: string;
|
|
18
|
+
/** 取消回调 */
|
|
19
|
+
onCancel: () => void;
|
|
20
|
+
};
|
|
21
|
+
/** 错误回调 */
|
|
22
|
+
onError?: (error: any) => void;
|
|
23
|
+
/** 成功回调 */
|
|
24
|
+
onSuccess?: () => void;
|
|
25
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IFilePreviewProps } from '../
|
|
1
|
+
import { IFilePreviewProps } from '../interface';
|
|
2
2
|
export default function MDPreview(props: IFilePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IFilePreviewProps } from '../
|
|
1
|
+
import { IFilePreviewProps } from '../interface';
|
|
2
2
|
export default function PdfPreview(props: IFilePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IFilePreviewProps } from '../
|
|
1
|
+
import { IFilePreviewProps } from '../interface';
|
|
2
2
|
export default function TxtPreview(props: IFilePreviewProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { default as InputTag } from './components/input-tag';
|
|
|
3
3
|
export type { IProps as InputTagProps } from './components/input-tag';
|
|
4
4
|
export { default as FileUploadDrawer, UploadStoreProvider } from './components/uploadDrawer';
|
|
5
5
|
export { default as FilePreview } from './components/file-preview';
|
|
6
|
-
export type { IFilePreviewProps } from './components/file-preview';
|
|
6
|
+
export type { IFilePreviewProps } from './components/file-preview/interface';
|