@jiaozhiye/qm-design-react 1.7.55 → 1.7.56
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/download/src/download.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/table/src/table/types.d.ts +1 -1
- package/lib/table/src/utils/index.d.ts +2 -1
- package/lib/table/style/column-filter.less +110 -110
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export type IAlign = 'left' | 'center' | 'right';
|
|
|
8
8
|
export type InsertMode = 'before' | 'after';
|
|
9
9
|
export type IFilterType = 'text' | 'textarea' | 'checkbox' | 'radio' | 'number' | 'date' | 'tree';
|
|
10
10
|
export type ICheckStrategy = 'SHOW_ALL' | 'SHOW_PARENT' | 'SHOW_CHILD';
|
|
11
|
-
export type IEditerType = 'text' | 'textarea' | 'number' | 'select' | 'select-multiple' | 'checkbox' | 'switch' | 'search-helper' | 'search-helper-multiple' | 'tree-helper' | 'tree-helper-multiple' | 'date' | 'datetime' | 'time';
|
|
11
|
+
export type IEditerType = 'text' | 'textarea' | 'number' | 'select' | 'select-multiple' | 'checkbox' | 'switch' | 'search-helper' | 'search-helper-multiple' | 'tree-helper' | 'tree-helper-multiple' | 'date' | 'datetime' | 'time' | 'month' | 'year';
|
|
12
12
|
export type ISelectionType = 'checkbox' | 'radio';
|
|
13
13
|
export type IRecord<T = any> = {
|
|
14
14
|
[key: string]: T;
|
|
@@ -26,7 +26,8 @@ export declare const getCellValue: (record: IRecord, dataIndex: string) => any;
|
|
|
26
26
|
export declare const setCellValue: (record: IRecord, dataIndex: string, val: unknown, precision?: number) => void;
|
|
27
27
|
export declare const getSplitValue: (record: IRecord, key: string) => string;
|
|
28
28
|
export declare const setSplitValue: (record: IRecord, key: string, val: string, precision?: number) => void;
|
|
29
|
-
export declare const formatNumber: (value:
|
|
29
|
+
export declare const formatNumber: (value: number | string) => string;
|
|
30
|
+
export declare const formatDisplayPrecision: (value: number | string, precision: number) => string | number;
|
|
30
31
|
export declare const validateNumber: (val: string) => boolean;
|
|
31
32
|
export declare const stringToNumber: (input: string) => number | '';
|
|
32
33
|
export declare const getDate: (dateString: string | undefined, format: string) => dayjs.Dayjs | null;
|
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2020-02-28 22:13:50
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-11-26 20:32:27
|
|
6
|
-
*/
|
|
7
|
-
@prefix-table: ~'@{qm-prefix}-table';
|
|
8
|
-
|
|
9
|
-
.@{prefix-table}-column-filter {
|
|
10
|
-
display: inline-block;
|
|
11
|
-
padding: 5px 0 5px 3px;
|
|
12
|
-
line-height: 1;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
transition: all 0.3s ease;
|
|
15
|
-
.icon {
|
|
16
|
-
font-size: 1.05em;
|
|
17
|
-
margin-right: 2px;
|
|
18
|
-
}
|
|
19
|
-
&:hover,
|
|
20
|
-
&.selected {
|
|
21
|
-
color: @v-primary-color;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.column-filter__popper {
|
|
26
|
-
padding: 0 !important;
|
|
27
|
-
min-width: 150px;
|
|
28
|
-
max-width: 200px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.column-item__popper {
|
|
32
|
-
padding-right: @v-module-distance !important;
|
|
33
|
-
min-width: 150px;
|
|
34
|
-
max-width: 200px;
|
|
35
|
-
.ant-popover-arrow {
|
|
36
|
-
display: none;
|
|
37
|
-
}
|
|
38
|
-
.ant-popover-inner-content {
|
|
39
|
-
padding: 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.column-filter__popper,
|
|
44
|
-
.column-item__popper {
|
|
45
|
-
.column-filter--wrap {
|
|
46
|
-
padding: 5px @v-module-distance;
|
|
47
|
-
overflow-y: auto;
|
|
48
|
-
.box-sizing-content();
|
|
49
|
-
li.item {
|
|
50
|
-
position: relative;
|
|
51
|
-
line-height: 1.75;
|
|
52
|
-
.text-overflow-cut();
|
|
53
|
-
.handle {
|
|
54
|
-
padding: 2px;
|
|
55
|
-
color: @v-font-secondary-color;
|
|
56
|
-
cursor: s-resize;
|
|
57
|
-
transform: scale(0.9);
|
|
58
|
-
}
|
|
59
|
-
.fixed {
|
|
60
|
-
position: absolute;
|
|
61
|
-
right: 0;
|
|
62
|
-
i {
|
|
63
|
-
color: @--icon-color;
|
|
64
|
-
cursor: pointer;
|
|
65
|
-
}
|
|
66
|
-
&.disabled {
|
|
67
|
-
i {
|
|
68
|
-
color: @v-font-disabled-color;
|
|
69
|
-
cursor: not-allowed;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.reset {
|
|
75
|
-
text-align: right;
|
|
76
|
-
.ant-btn-text {
|
|
77
|
-
padding: 0;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
.left {
|
|
81
|
-
ul {
|
|
82
|
-
margin: 0;
|
|
83
|
-
li {
|
|
84
|
-
padding-right: 15px;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
.main {
|
|
89
|
-
ul {
|
|
90
|
-
margin: 0;
|
|
91
|
-
li {
|
|
92
|
-
padding-right: 30px;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
.right {
|
|
97
|
-
ul {
|
|
98
|
-
margin: 0;
|
|
99
|
-
li {
|
|
100
|
-
padding-right: 15px;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
.divider {
|
|
105
|
-
height: 0;
|
|
106
|
-
border-top: 1px solid @v-table-border-color;
|
|
107
|
-
margin: 4px 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-02-28 22:13:50
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-11-26 20:32:27
|
|
6
|
+
*/
|
|
7
|
+
@prefix-table: ~'@{qm-prefix}-table';
|
|
8
|
+
|
|
9
|
+
.@{prefix-table}-column-filter {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
padding: 5px 0 5px 3px;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
transition: all 0.3s ease;
|
|
15
|
+
.icon {
|
|
16
|
+
font-size: 1.05em;
|
|
17
|
+
margin-right: 2px;
|
|
18
|
+
}
|
|
19
|
+
&:hover,
|
|
20
|
+
&.selected {
|
|
21
|
+
color: @v-primary-color;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.column-filter__popper {
|
|
26
|
+
padding: 0 !important;
|
|
27
|
+
min-width: 150px;
|
|
28
|
+
max-width: 200px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.column-item__popper {
|
|
32
|
+
padding-right: @v-module-distance !important;
|
|
33
|
+
min-width: 150px;
|
|
34
|
+
max-width: 200px;
|
|
35
|
+
.ant-popover-arrow {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
.ant-popover-inner-content {
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.column-filter__popper,
|
|
44
|
+
.column-item__popper {
|
|
45
|
+
.column-filter--wrap {
|
|
46
|
+
padding: 5px @v-module-distance;
|
|
47
|
+
overflow-y: auto;
|
|
48
|
+
.box-sizing-content();
|
|
49
|
+
li.item {
|
|
50
|
+
position: relative;
|
|
51
|
+
line-height: 1.75;
|
|
52
|
+
.text-overflow-cut();
|
|
53
|
+
.handle {
|
|
54
|
+
padding: 2px;
|
|
55
|
+
color: @v-font-secondary-color;
|
|
56
|
+
cursor: s-resize;
|
|
57
|
+
transform: scale(0.9);
|
|
58
|
+
}
|
|
59
|
+
.fixed {
|
|
60
|
+
position: absolute;
|
|
61
|
+
right: 0;
|
|
62
|
+
i {
|
|
63
|
+
color: @--icon-color;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
66
|
+
&.disabled {
|
|
67
|
+
i {
|
|
68
|
+
color: @v-font-disabled-color;
|
|
69
|
+
cursor: not-allowed;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.reset {
|
|
75
|
+
text-align: right;
|
|
76
|
+
.ant-btn-text {
|
|
77
|
+
padding: 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.left {
|
|
81
|
+
ul {
|
|
82
|
+
margin: 0;
|
|
83
|
+
li {
|
|
84
|
+
padding-right: 15px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.main {
|
|
89
|
+
ul {
|
|
90
|
+
margin: 0;
|
|
91
|
+
li {
|
|
92
|
+
padding-right: 30px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
.right {
|
|
97
|
+
ul {
|
|
98
|
+
margin: 0;
|
|
99
|
+
li {
|
|
100
|
+
padding-right: 15px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.divider {
|
|
105
|
+
height: 0;
|
|
106
|
+
border-top: 1px solid @v-table-border-color;
|
|
107
|
+
margin: 4px 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|