@cloudtower/eagle 0.29.7 → 0.29.8
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/cjs/core/Table/TableSkeleton.js +29 -12
- package/dist/cjs/core/Table/index.js +6 -3
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2246 -2246
- package/dist/esm/core/Table/TableSkeleton.js +30 -14
- package/dist/esm/core/Table/index.js +7 -5
- package/dist/esm/index.js +2 -2
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/Table/TableSkeleton.d.ts +10 -4
- package/dist/src/core/Table/index.d.ts +1 -0
- package/dist/stories/docs/core/Table.stories.d.ts +4 -0
- package/dist/style.css +2285 -2284
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export interface
|
|
2
|
+
export interface IDynamicTableSkeletonProps {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* 在自动计算的 row
|
|
4
|
+
* rowsCount 默认为 undefined,此情况下组件会根据表格的高度和单项高度计算列数量。
|
|
5
|
+
* 在自动计算的 row 不符合需求时,可以自定义骨架屏列的数量。
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
rowsCount?: number;
|
|
8
8
|
/**
|
|
9
9
|
* 在表格加入了 scrollY 属性以后,表格的结构会发生变化。
|
|
10
10
|
* 获取表格高度的选择器有所区别,需要外部将此信息传入。
|
|
@@ -21,4 +21,10 @@ export interface ITableSkeletonProps {
|
|
|
21
21
|
*/
|
|
22
22
|
itemHeight?: number;
|
|
23
23
|
}
|
|
24
|
+
export declare const DynamicTableSkeleton: (props: IDynamicTableSkeletonProps) => React.JSX.Element;
|
|
25
|
+
export interface ITableSkeletonProps {
|
|
26
|
+
rowsCount?: number;
|
|
27
|
+
headerHeight?: number;
|
|
28
|
+
itemHeight?: number;
|
|
29
|
+
}
|
|
24
30
|
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;
|
|
@@ -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
|
*
|