@yester/virtual-table 1.2.3 → 1.3.0

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/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { PivotParams } from '../../types';
2
+ import { PivotParams, VirtualTableConfig } from '../../types';
3
3
 
4
4
  interface VirtualTableProps extends PivotParams {
5
5
  scroll?: {
@@ -8,6 +8,7 @@ interface VirtualTableProps extends PivotParams {
8
8
  };
9
9
  className?: string;
10
10
  style?: React.CSSProperties;
11
+ config?: VirtualTableConfig;
11
12
  }
12
13
  declare const _default: React.MemoExoticComponent<(props: VirtualTableProps) => import("react/jsx-runtime").JSX.Element>;
13
14
  export default _default;
package/dist/index.d.ts CHANGED
File without changes
package/dist/style.css CHANGED
File without changes
File without changes
@@ -28,6 +28,7 @@ export interface DimensionNode extends BaseNode {
28
28
  * @description 优先级 `collapseFields` > `expandDepth` > `collapseAll` > `collapsed`
29
29
  */
30
30
  collapsed?: boolean;
31
+ emptyReplace?: string;
31
32
  total?: {
32
33
  enabled: boolean;
33
34
  label?: string;
@@ -87,4 +88,18 @@ export interface PivotParams {
87
88
  meta: MetaItem[];
88
89
  sortParams: SortParam[];
89
90
  fields: PivotFields;
91
+ config?: VirtualTableConfig;
92
+ }
93
+ export interface VirtualTableConfig {
94
+ showLine?: boolean;
95
+ showLineTitle?: string;
96
+ lineWidth?: string;
97
+ }
98
+ export interface VirtualTableProps extends PivotParams {
99
+ scroll?: {
100
+ x?: number | string;
101
+ y?: number | string;
102
+ };
103
+ className?: string;
104
+ style?: React.CSSProperties;
90
105
  }
File without changes
@@ -18,23 +18,5 @@ export declare const dataHandler: (params: PivotParams) => {
18
18
  } | {
19
19
  list: TableRow[];
20
20
  dataExpandFilter: (l: any[]) => any[];
21
- tableColumns: {
22
- width: string | number;
23
- key: string;
24
- emptyReplace?: string;
25
- calculateType?: "sum" | "avg" | "count" | "min" | "max" | "d_count" | "variance" | "stddev" | "expr";
26
- expression?: string;
27
- render?: (val: any, record: any, index: number) => React.ReactNode;
28
- formatter?: (val: any, record: any) => React.ReactNode;
29
- type?: string;
30
- children?: import('../types').MetricNode[];
31
- field: string;
32
- title?: string;
33
- description?: string;
34
- style?: React.CSSProperties;
35
- fixed?: boolean | string;
36
- colSpan?: number;
37
- dataIndex?: string;
38
- hidden?: boolean;
39
- }[];
21
+ tableColumns: any[];
40
22
  };
File without changes
File without changes