@cloudtower/eagle 0.29.7 → 0.29.9

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,24 +1,7 @@
1
1
  import React from "react";
2
2
  export interface ITableSkeletonProps {
3
- /**
4
- * rows 默认为 undefined,此情况下组件会根据表格的高度和单项高度计算列数量。
5
- * 在自动计算的 row 不符合需求时,可以自定义骨架屏 rows 的数量。
6
- */
7
- rows?: number;
8
- /**
9
- * 在表格加入了 scrollY 属性以后,表格的结构会发生变化。
10
- * 获取表格高度的选择器有所区别,需要外部将此信息传入。
11
- */
12
- scrollY?: boolean;
13
- /**
14
- * 默认值骨架屏表头部分高度为 48 px
15
- * 当存在默认高度不符合实际需求时,可以通过 headerHeight 设置表头处的骨架高度
16
- */
3
+ rowsCount?: number;
17
4
  headerHeight?: number;
18
- /**
19
- * 骨架屏单项高度默认为动态计算
20
- * 当存在计算错误时,可以通过 itemHeight 设置单项的骨架高度
21
- */
22
5
  itemHeight?: number;
23
6
  }
24
7
  export declare const TableSkeleton: (props: ITableSkeletonProps) => React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import { TableProps } from "./table.type";
3
+ export declare const emptyTableStyle: import("@linaria/core").LinariaClassName;
3
4
  export declare const tableStyleCover: import("@linaria/core").LinariaClassName;
4
5
  declare const Table: <T extends {
5
6
  id: string;
@@ -73,6 +73,6 @@ export interface TableProps<T extends {
73
73
  pageSize: number;
74
74
  };
75
75
  onRow?: AntdTableProps<T>["onRow"];
76
- skeletonProps?: Omit<ITableSkeletonProps, "scrollY">;
76
+ skeletonProps?: ITableSkeletonProps;
77
77
  }
78
78
  export {};
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated
3
+ */
1
4
  export default function useElementsSize<K extends string>(classMap: Record<K, string>, config: {
2
5
  prevent?: boolean;
3
6
  key?: string;
@@ -23,6 +23,10 @@ export declare const CustomHeight: Story;
23
23
  * 初始化 loading
24
24
  */
25
25
  export declare const InitLoading: Story;
26
+ /**
27
+ * 使用分页作为骨架数量 loading
28
+ */
29
+ export declare const LoadingSkeletonWithPageSize: Story;
26
30
  /**
27
31
  * 在 loading error dataSource 存在值的情况下
28
32
  *