@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.
@@ -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
- x: string;
73
- y: string;
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
- inserted: IStoreItem[];
10
- updated: IStoreItem[];
11
- removed: IStoreItem[];
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: 分页、排序、筛选、高级检索、行拖动排序 变化时触发,参数:pagination, filters, sorter, superFilters, { currentDataSource: tableData }
255
- * onDataChange: 表格单元格编辑、新增、删除数据时触发,参数 tableData
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 > .ant-input-group > .ant-input-group-addon {
11
- line-height: 1;
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-01-11 18:43:06
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
- &-list {
16
- .filter-node {
17
- // color: @--primary-color;
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-01-11 18:43:06
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.3.0-beta.10",
3
+ "version": "1.3.0-beta.13",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",