@jiaozhiye/qm-design-react 1.8.2 → 1.8.3
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/_utils/util.d.ts +1 -0
- package/lib/drawer/style/index.less +101 -101
- package/lib/hooks/useMemo.d.ts +1 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/lazy-load/style/index.less +15 -15
- package/lib/modal/style/index.less +116 -116
- package/lib/style/index.less +40 -40
- package/lib/table/src/body/context.d.ts +4 -0
- package/lib/table/src/cell/index.d.ts +13 -0
- package/lib/table/src/cell/useCellText.d.ts +6 -0
- package/lib/table/src/{body → cell}/useValueFormat.d.ts +1 -2
- package/lib/table/src/context/index.d.ts +2 -2
- package/lib/table/src/edit/index.d.ts +1 -3
- package/lib/table/src/hooks/useImperativeMethod.d.ts +1 -2
- package/lib/table/src/hooks/useTableRef.d.ts +2 -0
- package/lib/table/src/hooks/useTableState.d.ts +3 -0
- package/lib/table/src/table/props.d.ts +1 -0
- package/lib/table/src/table/types.d.ts +1 -1
- package/lib/table/style/alert.less +32 -34
- package/lib/table/style/clipboard.less +27 -29
- package/lib/table/style/column-filter.less +0 -2
- package/lib/table/style/empty.less +17 -19
- package/lib/table/style/export.less +24 -26
- package/lib/table/style/fast-search.less +108 -110
- package/lib/table/style/footer.less +31 -33
- package/lib/table/style/full-screen.less +19 -21
- package/lib/table/style/group-summary.less +91 -93
- package/lib/table/style/header.less +205 -207
- package/lib/table/style/import.less +23 -25
- package/lib/table/style/pager.less +27 -29
- package/lib/table/style/print.less +19 -21
- package/lib/table/style/reload.less +19 -21
- package/lib/table/style/select-collection.less +19 -21
- package/lib/table/style/size.less +86 -88
- package/lib/table/style/super-search.less +100 -102
- package/lib/table/style/table.less +0 -2
- package/lib/table/style/tollbox.less +37 -39
- package/lib/table/style/toper.less +29 -31
- package/lib/table/style/variable.less +50 -48
- package/package.json +139 -139
package/lib/_utils/util.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const errorCapture: (asyncFn: AnyFunction<any>, ...params: any[])
|
|
|
18
18
|
export declare const camelize: (input: string) => string;
|
|
19
19
|
export declare const isEmpty: (val: any) => boolean;
|
|
20
20
|
export declare const isValid: (val: string) => boolean;
|
|
21
|
+
export declare const isSci: (value: number) => boolean;
|
|
21
22
|
export declare const getValueByPath: (obj: AnyObject<any>, paths?: string) => unknown;
|
|
22
23
|
export declare const setValueByPath: (obj: AnyObject<any>, path: string, value: unknown) => void;
|
|
23
24
|
export declare const omit: <T extends object, K extends keyof T>(obj: T, fields: K[] | readonly K[]) => Omit<T, K>;
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-07-23 19:05:57
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-11-26 20:25:11
|
|
6
|
-
*/
|
|
7
|
-
@import '../../style/common';
|
|
8
|
-
|
|
9
|
-
@prefix-drawer: ~'@{qm-prefix}-drawer';
|
|
10
|
-
|
|
11
|
-
.@{prefix-drawer} {
|
|
12
|
-
&.no-header {
|
|
13
|
-
.ant-drawer-header {
|
|
14
|
-
height: 0;
|
|
15
|
-
border: 0;
|
|
16
|
-
.ant-drawer-close {
|
|
17
|
-
top: 4px;
|
|
18
|
-
right: 0;
|
|
19
|
-
}
|
|
20
|
-
.full-screen {
|
|
21
|
-
top: 4px;
|
|
22
|
-
right: 42px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.ant-drawer-header {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
flex: 0 auto;
|
|
30
|
-
flex-shrink: 0;
|
|
31
|
-
height: 44px;
|
|
32
|
-
padding: 0 15px;
|
|
33
|
-
border-bottom: 1px solid @--border-color-secondary;
|
|
34
|
-
.ant-drawer-title {
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
}
|
|
38
|
-
.ant-drawer-close {
|
|
39
|
-
position: absolute;
|
|
40
|
-
right: -8px;
|
|
41
|
-
padding: @--padding-md @--padding-md @--padding-md 5px;
|
|
42
|
-
}
|
|
43
|
-
.full-screen {
|
|
44
|
-
display: inline-block;
|
|
45
|
-
text-align: center;
|
|
46
|
-
text-transform: none;
|
|
47
|
-
text-decoration: none;
|
|
48
|
-
background: transparent;
|
|
49
|
-
border: 0;
|
|
50
|
-
outline: 0;
|
|
51
|
-
position: absolute;
|
|
52
|
-
right: 34px;
|
|
53
|
-
padding: @--padding-md 5px @--padding-md @--padding-md;
|
|
54
|
-
color: @--text-color-secondary;
|
|
55
|
-
line-height: 1;
|
|
56
|
-
font-size: @--font-size-lg;
|
|
57
|
-
transition: all 0.3s ease;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
&:hover {
|
|
60
|
-
color: @--text-color;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
.ant-drawer-body {
|
|
65
|
-
padding: @--padding-md;
|
|
66
|
-
}
|
|
67
|
-
.spinning {
|
|
68
|
-
position: absolute;
|
|
69
|
-
top: 44px;
|
|
70
|
-
left: 0;
|
|
71
|
-
right: 0;
|
|
72
|
-
bottom: 0;
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
justify-content: center;
|
|
76
|
-
align-items: center;
|
|
77
|
-
background-color: rgba(255, 255, 255, 0.65);
|
|
78
|
-
z-index: 9999;
|
|
79
|
-
.ant-spin-text {
|
|
80
|
-
margin-top: 4px;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
// ------ size ------
|
|
84
|
-
// 52 48 44
|
|
85
|
-
&--lg {
|
|
86
|
-
.ant-drawer-header {
|
|
87
|
-
height: 48px;
|
|
88
|
-
}
|
|
89
|
-
.spinning {
|
|
90
|
-
top: 48px;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
&--sm {
|
|
94
|
-
.ant-drawer-header {
|
|
95
|
-
height: 40px;
|
|
96
|
-
}
|
|
97
|
-
.spinning {
|
|
98
|
-
top: 40px;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 19:05:57
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-11-26 20:25:11
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-drawer: ~'@{qm-prefix}-drawer';
|
|
10
|
+
|
|
11
|
+
.@{prefix-drawer} {
|
|
12
|
+
&.no-header {
|
|
13
|
+
.ant-drawer-header {
|
|
14
|
+
height: 0;
|
|
15
|
+
border: 0;
|
|
16
|
+
.ant-drawer-close {
|
|
17
|
+
top: 4px;
|
|
18
|
+
right: 0;
|
|
19
|
+
}
|
|
20
|
+
.full-screen {
|
|
21
|
+
top: 4px;
|
|
22
|
+
right: 42px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.ant-drawer-header {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
flex: 0 auto;
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
height: 44px;
|
|
32
|
+
padding: 0 15px;
|
|
33
|
+
border-bottom: 1px solid @--border-color-secondary;
|
|
34
|
+
.ant-drawer-title {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
}
|
|
38
|
+
.ant-drawer-close {
|
|
39
|
+
position: absolute;
|
|
40
|
+
right: -8px;
|
|
41
|
+
padding: @--padding-md @--padding-md @--padding-md 5px;
|
|
42
|
+
}
|
|
43
|
+
.full-screen {
|
|
44
|
+
display: inline-block;
|
|
45
|
+
text-align: center;
|
|
46
|
+
text-transform: none;
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
background: transparent;
|
|
49
|
+
border: 0;
|
|
50
|
+
outline: 0;
|
|
51
|
+
position: absolute;
|
|
52
|
+
right: 34px;
|
|
53
|
+
padding: @--padding-md 5px @--padding-md @--padding-md;
|
|
54
|
+
color: @--text-color-secondary;
|
|
55
|
+
line-height: 1;
|
|
56
|
+
font-size: @--font-size-lg;
|
|
57
|
+
transition: all 0.3s ease;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
&:hover {
|
|
60
|
+
color: @--text-color;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.ant-drawer-body {
|
|
65
|
+
padding: @--padding-md;
|
|
66
|
+
}
|
|
67
|
+
.spinning {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 44px;
|
|
70
|
+
left: 0;
|
|
71
|
+
right: 0;
|
|
72
|
+
bottom: 0;
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
align-items: center;
|
|
77
|
+
background-color: rgba(255, 255, 255, 0.65);
|
|
78
|
+
z-index: 9999;
|
|
79
|
+
.ant-spin-text {
|
|
80
|
+
margin-top: 4px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
// ------ size ------
|
|
84
|
+
// 52 48 44
|
|
85
|
+
&--lg {
|
|
86
|
+
.ant-drawer-header {
|
|
87
|
+
height: 48px;
|
|
88
|
+
}
|
|
89
|
+
.spinning {
|
|
90
|
+
top: 48px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
&--sm {
|
|
94
|
+
.ant-drawer-header {
|
|
95
|
+
height: 40px;
|
|
96
|
+
}
|
|
97
|
+
.spinning {
|
|
98
|
+
top: 40px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useMemo<Value, Condition = any[]>(getValue: () => Value, condition: Condition, shouldUpdate: (prev: Condition, next: Condition) => boolean): Value;
|