@zjlab-fe/data-hub-ui 0.4.4 → 0.4.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.
@@ -1,6 +1,15 @@
1
1
  export interface IFilePreviewProps {
2
2
  /** 文件url */
3
- filePath: string;
3
+ filePath?: string;
4
+ /**
5
+ * 已有数据,展示成Table
6
+ */
7
+ tableConfig?: {
8
+ /** 表头 */
9
+ header: string[];
10
+ /** 行数据 */
11
+ rows: string[][];
12
+ };
4
13
  /**
5
14
  * 是否是在modal中展示
6
15
  */
@@ -0,0 +1,2 @@
1
+ import { IFilePreviewProps } from '../interface';
2
+ export default function TablePreview(props: IFilePreviewProps): import("react/jsx-runtime").JSX.Element;