@zjlab-fe/data-hub-ui 0.5.6 → 0.5.7

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,8 @@
1
1
  type ArrayKeys<T extends readonly string[]> = T[number];
2
2
  interface IDataTable {
3
3
  head: string[];
4
+ /** 单元格内容最多显示多少行,默认固定显示2行,超出显示省略号 */
5
+ maxLines?: number;
4
6
  data: {
5
7
  [k in ArrayKeys<IDataTable['head']>]: string;
6
8
  }[];
@@ -11,6 +11,8 @@ export interface IFilePreviewProps {
11
11
  rows: string[][];
12
12
  /** 行数 */
13
13
  rowCount?: number;
14
+ /** 单元格内容最多显示多少行,默认固定显示2行,超出显示省略号 */
15
+ maxLines?: number;
14
16
  };
15
17
  /**
16
18
  * 已有数据,展示成JSON