@jiaozhiye/qm-design-react 1.9.24 → 1.9.26

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.
@@ -1,8 +1,8 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-06-19 08:46:00
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-07-26 10:21:48
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-06-19 08:46:00
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-07-26 10:21:48
6
6
  */
7
7
  export default {
8
8
  name: 'en',
@@ -1,8 +1,8 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-06-19 08:45:54
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-07-26 09:00:17
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-06-19 08:45:54
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-07-26 09:00:17
6
6
  */
7
7
  export default {
8
8
  name: 'zh-cn',
@@ -201,6 +201,7 @@ export declare const propTypes: {
201
201
  areaSelection: PropTypes.Requireable<PropTypes.InferProps<{
202
202
  cellMerge: PropTypes.Requireable<boolean>;
203
203
  onCellMerge: PropTypes.Requireable<(...args: any[]) => any>;
204
+ onSelectChange: PropTypes.Requireable<(...args: any[]) => any>;
204
205
  }>>;
205
206
  summation: PropTypes.Requireable<PropTypes.InferProps<{
206
207
  groupItems: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -29,14 +29,16 @@ export declare const TIME_FORMAT = "HH:mm:ss";
29
29
  export declare const DEFAULT_FILENAME_FORMAT = "YYYYMMDDHHmmss";
30
30
  export declare const BUILT_IN_PLACEMENTS: BuildInPlacements;
31
31
  export type IClicked = [IRowKey, string] | [];
32
+ export type ICell = {
33
+ rowKey: IRowKey;
34
+ dataIndex: string;
35
+ cellValue: ValueOf<IRecord>;
36
+ };
32
37
  export type IRowColSpan = {
33
38
  rowSpan: number;
34
39
  colSpan: number;
35
40
  };
36
- export type IMergedCell = {
37
- rowKey: IRowKey;
38
- dataIndex: string;
39
- } & IRowColSpan;
41
+ export type IMergedCell = Omit<ICell, 'cellValue'> & IRowColSpan;
40
42
  export type IMergeCellItem = {
41
43
  row: number;
42
44
  col: number;
@@ -224,6 +226,7 @@ export type IExpandable = {
224
226
  export type IAreaSelection = {
225
227
  cellMerge?: boolean;
226
228
  onCellMerge?: (cells: IMergedCell[]) => void;
229
+ onSelectChange?: (cells: ICell[]) => void;
227
230
  };
228
231
  export type ISummation = {
229
232
  groupItems?: Array<{
@@ -1,29 +1,29 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2024-07-23 09:27:27
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-07-26 08:39:21
6
- */
7
- .@{prefix-table}--area-select {
8
- position: static;
9
- height: 0;
10
- font-size: 0;
11
- .checked-area {
12
- border: 1px solid @--primary-5;
13
- background-color: rgba(@--primary-2, 0.25);
14
- position: absolute;
15
- z-index: 2;
16
- pointer-events: none;
17
- }
18
- .active-area {
19
- border: 2px solid @--primary-5;
20
- position: absolute;
21
- z-index: 2;
22
- pointer-events: none;
23
- }
24
- .context-menu {
25
- position: absolute;
26
- z-index: 3;
27
- background-color: #fff;
28
- }
29
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2024-07-23 09:27:27
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-07-26 08:39:21
6
+ */
7
+ .@{prefix-table}--area-select {
8
+ position: static;
9
+ height: 0;
10
+ font-size: 0;
11
+ .checked-area {
12
+ border: 1px solid @--primary-5;
13
+ background-color: rgba(@--primary-2, 0.25);
14
+ position: absolute;
15
+ z-index: 2;
16
+ pointer-events: none;
17
+ }
18
+ .active-area {
19
+ border: 2px solid @--primary-5;
20
+ position: absolute;
21
+ z-index: 2;
22
+ pointer-events: none;
23
+ }
24
+ .context-menu {
25
+ position: absolute;
26
+ z-index: 3;
27
+ background-color: #fff;
28
+ }
29
+ }
@@ -1,30 +1,30 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-07-23 09:28:50
6
- */
7
- @import './variable.less';
8
- @import './toper.less';
9
- @import './alert.less';
10
- @import './full-screen.less';
11
- @import './reload.less';
12
- @import './print.less';
13
- @import './import.less';
14
- @import './export.less';
15
- @import './clipboard.less';
16
- @import './tollbox.less';
17
- @import './select-collection.less';
18
- @import './group-summary.less';
19
- @import './super-search.less';
20
- @import './fast-search.less';
21
- @import './column-filter.less';
22
- @import './table.less';
23
- @import './header.less';
24
- @import './body.less';
25
- @import './footer.less';
26
- @import './area-select.less';
27
- @import './pager.less';
28
- @import './empty.less';
29
- @import './expandable.less';
30
- @import './size.less';
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-07-23 09:28:50
6
+ */
7
+ @import './variable.less';
8
+ @import './toper.less';
9
+ @import './alert.less';
10
+ @import './full-screen.less';
11
+ @import './reload.less';
12
+ @import './print.less';
13
+ @import './import.less';
14
+ @import './export.less';
15
+ @import './clipboard.less';
16
+ @import './tollbox.less';
17
+ @import './select-collection.less';
18
+ @import './group-summary.less';
19
+ @import './super-search.less';
20
+ @import './fast-search.less';
21
+ @import './column-filter.less';
22
+ @import './table.less';
23
+ @import './header.less';
24
+ @import './body.less';
25
+ @import './footer.less';
26
+ @import './area-select.less';
27
+ @import './pager.less';
28
+ @import './empty.less';
29
+ @import './expandable.less';
30
+ @import './size.less';