@jiaozhiye/qm-design-react 1.9.27 → 1.9.29
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/modal/src/modal.d.ts +0 -4
- package/lib/style/index.css +0 -5
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/hooks/useTableRef.d.ts +2 -2
- package/lib/table/src/manager/index.d.ts +2 -4
- package/lib/table/style/area-select.less +24 -29
- package/package.json +3 -3
|
@@ -7,7 +7,7 @@ import type { ComponentSize, Nullable } from '../../../_utils/types';
|
|
|
7
7
|
export type ITableRef = {
|
|
8
8
|
props: ITableProps;
|
|
9
9
|
uid: string;
|
|
10
|
-
tableManager: TableManager;
|
|
10
|
+
tableManager: typeof TableManager;
|
|
11
11
|
elementStore: Record<string, Nullable<HTMLElement>>;
|
|
12
12
|
originColumns: IColumn[];
|
|
13
13
|
tableFullData: IRecord[];
|
|
@@ -84,7 +84,7 @@ declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size
|
|
|
84
84
|
clearRecordsMap: () => void;
|
|
85
85
|
props: ITableProps;
|
|
86
86
|
uid: string;
|
|
87
|
-
tableManager: TableManager;
|
|
87
|
+
tableManager: typeof TableManager;
|
|
88
88
|
elementStore: Record<string, Nullable<HTMLElement>>;
|
|
89
89
|
originColumns: IColumn[];
|
|
90
90
|
tableFullData: IRecord[];
|
|
@@ -5,13 +5,11 @@ type Instance = {
|
|
|
5
5
|
id: string;
|
|
6
6
|
vm: React.ForwardedRef<TableRef>;
|
|
7
7
|
};
|
|
8
|
-
declare
|
|
9
|
-
instances: Instance[];
|
|
8
|
+
declare const TableManager: {
|
|
10
9
|
getFocusInstance: () => Nullable<Instance>;
|
|
11
10
|
getInstance: (id: string) => Nullable<Instance>;
|
|
12
11
|
focus: (id: string) => void;
|
|
13
12
|
register: (id: string, instance: React.ForwardedRef<TableRef>) => void;
|
|
14
13
|
deregister: (id: string) => void;
|
|
15
|
-
|
|
16
|
-
}
|
|
14
|
+
};
|
|
17
15
|
export default TableManager;
|
|
@@ -1,29 +1,24 @@
|
|
|
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
|
-
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiaozhiye/qm-design-react",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.29",
|
|
4
4
|
"description": "A Component Library for React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"lint-staged": "^10.5.4",
|
|
122
122
|
"mockjs": "^1.1.0",
|
|
123
123
|
"prettier": "^2.8.8",
|
|
124
|
-
"react": "^
|
|
125
|
-
"react-dom": "^
|
|
124
|
+
"react": "^17.0.2",
|
|
125
|
+
"react-dom": "^17.0.2",
|
|
126
126
|
"rimraf": "^3.0.2",
|
|
127
127
|
"rollup": "^2.79.1",
|
|
128
128
|
"style-loader": "^3.3.4",
|