dcp-design-react 1.11.4 → 1.11.5
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/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/pivot-grid/src/main/Context.d.ts +10 -1
- package/lib/pivot-grid/style/grid-layout.less +3 -0
- package/lib/style/index.css +3 -0
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/table/props.d.ts +0 -1
- package/lib/table/src/table/types.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IColumn, IOrderBy, IRecord, ISuperFilter } from '../../../table/src/table/types';
|
|
2
|
+
import type { IColumn, IOrderBy, IRecord, IRowKey, ISuperFilter } from '../../../table/src/table/types';
|
|
3
3
|
import type { ComponentSize } from '../../../_utils/types';
|
|
4
4
|
export type IPivotMode = 'table' | 'gantt' | 'card' | 'chart';
|
|
5
5
|
export type GroupItem = {
|
|
@@ -10,6 +10,11 @@ export type SorterItem = {
|
|
|
10
10
|
fieldName: string;
|
|
11
11
|
order: IOrderBy;
|
|
12
12
|
};
|
|
13
|
+
export type SearchResult = {
|
|
14
|
+
value: string;
|
|
15
|
+
rowKey: IRowKey;
|
|
16
|
+
dataIndex: string;
|
|
17
|
+
};
|
|
13
18
|
export type IPivotGridContext = {
|
|
14
19
|
prefixCls: string;
|
|
15
20
|
viewMode: IPivotMode;
|
|
@@ -22,6 +27,8 @@ export type IPivotGridContext = {
|
|
|
22
27
|
filterList: ISuperFilter[];
|
|
23
28
|
sorterList: SorterItem[];
|
|
24
29
|
expandedKeys: string[];
|
|
30
|
+
searchResults: SearchResult[];
|
|
31
|
+
switchIndex: number;
|
|
25
32
|
};
|
|
26
33
|
type IProps = {
|
|
27
34
|
prefixCls: string;
|
|
@@ -39,5 +46,7 @@ export declare const usePivotGridContext: () => (IPivotGridContext & {
|
|
|
39
46
|
setFilterList: (items: ISuperFilter[]) => void;
|
|
40
47
|
setSorterList: (items: SorterItem[]) => void;
|
|
41
48
|
setExpandedKeys: (keys: string[]) => void;
|
|
49
|
+
setSearchResults: (value: SearchResult[]) => void;
|
|
50
|
+
setSwitchIndex: (value: number) => void;
|
|
42
51
|
}) | undefined;
|
|
43
52
|
export {};
|
package/lib/style/index.css
CHANGED
|
@@ -31271,6 +31271,9 @@ body {
|
|
|
31271
31271
|
align-items: center;
|
|
31272
31272
|
border-bottom: 1px solid #e8e8e8;
|
|
31273
31273
|
}
|
|
31274
|
+
.qm-pivot-grid__layout .body .grid-list .table-row .table-cell.active {
|
|
31275
|
+
box-shadow: inset 0 0 0 2px #1890ff;
|
|
31276
|
+
}
|
|
31274
31277
|
.qm-pivot-grid__layout .footer {
|
|
31275
31278
|
position: sticky;
|
|
31276
31279
|
bottom: 0;
|