@jiaozhiye/qm-design-react 1.3.0-beta.10 → 1.3.0-beta.13
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 +2 -2
- package/lib/index.full.js +1 -1
- package/lib/index.js +2 -2
- package/lib/search-tree/src/search-tree.d.ts +19 -1
- package/lib/search-tree/style/index.less +8 -1
- package/lib/style/index.css +18 -3
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/hooks/useTableCore.d.ts +3 -15
- package/lib/table/src/store/index.d.ts +7 -3
- package/lib/table/src/table/props.d.ts +2 -2
- package/lib/table/src/table/types.d.ts +1 -0
- package/lib/table/style/body.less +6 -2
- package/lib/tree-helper/style/index.less +4 -4
- package/lib/tree-table-helper/style/index.less +8 -1
- package/package.json +1 -1
|
@@ -68,21 +68,9 @@ declare const useTableCore: <T extends ITableProps>(props: T, extra: IExtra) =>
|
|
|
68
68
|
getTableLog: () => {
|
|
69
69
|
required: IValidItem[];
|
|
70
70
|
validate: IValidItem[];
|
|
71
|
-
inserted:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
text: string;
|
|
75
|
-
}[];
|
|
76
|
-
updated: {
|
|
77
|
-
x: string;
|
|
78
|
-
y: string;
|
|
79
|
-
text: string;
|
|
80
|
-
}[];
|
|
81
|
-
removed: {
|
|
82
|
-
x: string;
|
|
83
|
-
y: string;
|
|
84
|
-
text: string;
|
|
85
|
-
}[];
|
|
71
|
+
inserted: IRecord<any>[];
|
|
72
|
+
updated: IRecord<any>[];
|
|
73
|
+
removed: IRecord<any>[];
|
|
86
74
|
};
|
|
87
75
|
dataChange: () => void;
|
|
88
76
|
tableChange: import("lodash").DebouncedFunc<() => void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IRecord } from '../table/types';
|
|
1
2
|
declare type IStoreItem = {
|
|
2
3
|
x: string;
|
|
3
4
|
y: string;
|
|
@@ -6,9 +7,10 @@ declare type IStoreItem = {
|
|
|
6
7
|
declare type IStoreState = {
|
|
7
8
|
required: IStoreItem[];
|
|
8
9
|
validate: IStoreItem[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
edited: IStoreItem[];
|
|
11
|
+
inserted: IRecord[];
|
|
12
|
+
updated: IRecord[];
|
|
13
|
+
removed: IRecord[];
|
|
12
14
|
};
|
|
13
15
|
declare class Store {
|
|
14
16
|
state: IStoreState;
|
|
@@ -16,6 +18,8 @@ declare class Store {
|
|
|
16
18
|
removeFromRequired: (data: any) => void;
|
|
17
19
|
addToValidate: (data: any) => void;
|
|
18
20
|
removeFromValidate: (data: any) => void;
|
|
21
|
+
addToEdited: (data: any) => void;
|
|
22
|
+
removeFromEdited: (data: any) => void;
|
|
19
23
|
addToInserted: (data: any) => void;
|
|
20
24
|
removeFromInserted: (data: any) => void;
|
|
21
25
|
addToUpdated: (data: any) => void;
|
|
@@ -251,8 +251,8 @@ export declare const propTypes: {
|
|
|
251
251
|
export declare const defaultProps: ITableProps;
|
|
252
252
|
/**
|
|
253
253
|
* 事件:
|
|
254
|
-
* onChange:
|
|
255
|
-
* onDataChange:
|
|
254
|
+
* onChange: 分页、排序、筛选、高级检索 变化时触发,参数:pagination, filters, sorter, superFilters, { currentDataSource: tableData }
|
|
255
|
+
* onDataChange: 表格单元格编辑、新增、删除数据和行拖动排序时触发,参数 tableData
|
|
256
256
|
* onDataLoad: 表格数据加载后触发,参数 tableData
|
|
257
257
|
* onRowClick: 行单击事件,参数 row, column, event
|
|
258
258
|
* onRowDblclick: 行双击事件,参数 row, column, event
|
|
@@ -145,6 +145,7 @@ export declare type IFetchParams = Record<string, any>;
|
|
|
145
145
|
export declare type IFetch = {
|
|
146
146
|
api: IFetchFn;
|
|
147
147
|
params?: IFetchParams;
|
|
148
|
+
formatter?: (params: IFetchParams) => IFetchParams;
|
|
148
149
|
beforeFetch?: (params: IFetchParams) => boolean;
|
|
149
150
|
afterFetch?: (records: IRecord[]) => IRecord[];
|
|
150
151
|
stopToFirst?: boolean;
|
|
@@ -6,9 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
.body--column {
|
|
8
8
|
.cell--edit {
|
|
9
|
+
margin: 0 -1 * (@v-module-distance - 1px);
|
|
9
10
|
// search
|
|
10
|
-
.ant-input-search
|
|
11
|
-
|
|
11
|
+
.ant-input-search {
|
|
12
|
+
width: calc(100% + 1px);
|
|
13
|
+
& > .ant-input-group > .ant-input-group-addon {
|
|
14
|
+
line-height: 1;
|
|
15
|
+
}
|
|
12
16
|
}
|
|
13
17
|
// search-helper-multiple
|
|
14
18
|
.search-helper-multiple {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: 焦质晔
|
|
3
3
|
* @Date: 2022-01-11 18:01:20
|
|
4
4
|
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-
|
|
5
|
+
* @Last Modified time: 2022-09-04 17:07:07
|
|
6
6
|
*/
|
|
7
7
|
@import '../../style/common';
|
|
8
8
|
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
.reset-component();
|
|
13
13
|
height: 100%;
|
|
14
14
|
.ant-tree {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
.filter-node {
|
|
16
|
+
& > span:last-of-type {
|
|
17
|
+
color: @--primary-color;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: 焦质晔
|
|
3
3
|
* @Date: 2022-01-11 18:01:20
|
|
4
4
|
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-
|
|
5
|
+
* @Last Modified time: 2022-09-04 17:06:49
|
|
6
6
|
*/
|
|
7
7
|
@import '../../style/common';
|
|
8
8
|
|
|
@@ -14,4 +14,11 @@
|
|
|
14
14
|
.split-pane {
|
|
15
15
|
overflow: hidden;
|
|
16
16
|
}
|
|
17
|
+
.ant-tree {
|
|
18
|
+
.filter-node {
|
|
19
|
+
& > span:last-of-type {
|
|
20
|
+
color: @--primary-color;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
17
24
|
}
|