@jiaozhiye/qm-design-react 1.12.8 → 1.12.9
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/empty/style/index.less +36 -36
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/pivot-grid/style/grid-layout.less +501 -501
- package/lib/table/src/hooks/useTableVirtual.d.ts +2 -2
- package/lib/table/src/store/index.d.ts +2 -0
- package/lib/table/style/body.less +105 -105
- package/lib/table/style/fast-search.less +151 -151
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@ declare const useTableVirtual: (tableFlatData: IRecord[], tableFlatColumns: ICol
|
|
|
9
9
|
getXIndexes: () => number[];
|
|
10
10
|
virtualTranslateY: () => number;
|
|
11
11
|
virtualTranslateX: () => number;
|
|
12
|
-
calcVirtualYSize: () => number |
|
|
13
|
-
calcVirtualXSize: () => number |
|
|
12
|
+
calcVirtualYSize: () => number | "";
|
|
13
|
+
calcVirtualXSize: () => number | "";
|
|
14
14
|
scrollToYIndex: (index: number) => void;
|
|
15
15
|
scrollToXIndex: (index: number) => void;
|
|
16
16
|
};
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2020-02-28 22:13:54
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2024-12-01 18:48:00
|
|
6
|
-
*/
|
|
7
|
-
.body--row {
|
|
8
|
-
// position: sticky; // 解决列固定快读滚动时,非固定列上下留白卡顿问题(chrome 135~137),138版本后已修复
|
|
9
|
-
&-draggable {
|
|
10
|
-
position: relative;
|
|
11
|
-
.drop-indicator {
|
|
12
|
-
position: absolute;
|
|
13
|
-
right: 0;
|
|
14
|
-
bottom: 0;
|
|
15
|
-
z-index: 5;
|
|
16
|
-
height: 2px;
|
|
17
|
-
background-color: @v-primary-color;
|
|
18
|
-
border-radius: 1px;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
&::after {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: -3px;
|
|
23
|
-
left: 0;
|
|
24
|
-
width: 8px;
|
|
25
|
-
height: 8px;
|
|
26
|
-
background-color: #fff;
|
|
27
|
-
border: 2px solid @v-primary-color;
|
|
28
|
-
border-radius: 50%;
|
|
29
|
-
content: '';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
.body--column {
|
|
35
|
-
.cell--edit {
|
|
36
|
-
margin: 0 -1 * (@v-module-distance - 1px);
|
|
37
|
-
// placeholder
|
|
38
|
-
input::placeholder {
|
|
39
|
-
text-align: left;
|
|
40
|
-
}
|
|
41
|
-
// search
|
|
42
|
-
.ant-input-search {
|
|
43
|
-
width: calc(100% + 1px);
|
|
44
|
-
& > .ant-input-group > .ant-input-group-addon {
|
|
45
|
-
line-height: 1;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
// search-helper-multiple
|
|
49
|
-
.search-helper-multiple {
|
|
50
|
-
.ant-input-group > .ant-select:first-child {
|
|
51
|
-
z-index: 1;
|
|
52
|
-
.ant-select-selector {
|
|
53
|
-
border-top-right-radius: 0;
|
|
54
|
-
border-bottom-right-radius: 0;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
.ant-select-multiple {
|
|
58
|
-
.ant-select-selection-overflow-item-rest {
|
|
59
|
-
pointer-events: none;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
// textArea
|
|
64
|
-
textarea[class='ant-input'] {
|
|
65
|
-
resize: none;
|
|
66
|
-
}
|
|
67
|
-
&.is-error {
|
|
68
|
-
position: relative;
|
|
69
|
-
.ant-input,
|
|
70
|
-
.ant-input-affix-wrapper,
|
|
71
|
-
.ant-select > .ant-select-selector {
|
|
72
|
-
border-color: @v-danger-color;
|
|
73
|
-
box-shadow: none;
|
|
74
|
-
z-index: 1;
|
|
75
|
-
}
|
|
76
|
-
.ant-input-search {
|
|
77
|
-
& + .cell-error {
|
|
78
|
-
right: 38px;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.cell-error {
|
|
82
|
-
position: absolute;
|
|
83
|
-
top: calc(50% - 9px);
|
|
84
|
-
font-size: @v-font-size-small;
|
|
85
|
-
color: @v-danger-color;
|
|
86
|
-
right: 8px;
|
|
87
|
-
pointer-events: none;
|
|
88
|
-
z-index: 1;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
&.col--center {
|
|
93
|
-
.cell--edit .ant-input {
|
|
94
|
-
text-align: center;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
&.col--right {
|
|
98
|
-
.cell--edit .ant-input {
|
|
99
|
-
text-align: right;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
&.selected {
|
|
103
|
-
background-color: @v-table-row-selected-background-color !important;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-02-28 22:13:54
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2024-12-01 18:48:00
|
|
6
|
+
*/
|
|
7
|
+
.body--row {
|
|
8
|
+
// position: sticky; // 解决列固定快读滚动时,非固定列上下留白卡顿问题(chrome 135~137),138版本后已修复
|
|
9
|
+
&-draggable {
|
|
10
|
+
position: relative;
|
|
11
|
+
.drop-indicator {
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
z-index: 5;
|
|
16
|
+
height: 2px;
|
|
17
|
+
background-color: @v-primary-color;
|
|
18
|
+
border-radius: 1px;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
&::after {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: -3px;
|
|
23
|
+
left: 0;
|
|
24
|
+
width: 8px;
|
|
25
|
+
height: 8px;
|
|
26
|
+
background-color: #fff;
|
|
27
|
+
border: 2px solid @v-primary-color;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
content: '';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.body--column {
|
|
35
|
+
.cell--edit {
|
|
36
|
+
margin: 0 -1 * (@v-module-distance - 1px);
|
|
37
|
+
// placeholder
|
|
38
|
+
input::placeholder {
|
|
39
|
+
text-align: left;
|
|
40
|
+
}
|
|
41
|
+
// search
|
|
42
|
+
.ant-input-search {
|
|
43
|
+
width: calc(100% + 1px);
|
|
44
|
+
& > .ant-input-group > .ant-input-group-addon {
|
|
45
|
+
line-height: 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// search-helper-multiple
|
|
49
|
+
.search-helper-multiple {
|
|
50
|
+
.ant-input-group > .ant-select:first-child {
|
|
51
|
+
z-index: 1;
|
|
52
|
+
.ant-select-selector {
|
|
53
|
+
border-top-right-radius: 0;
|
|
54
|
+
border-bottom-right-radius: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.ant-select-multiple {
|
|
58
|
+
.ant-select-selection-overflow-item-rest {
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
// textArea
|
|
64
|
+
textarea[class='ant-input'] {
|
|
65
|
+
resize: none;
|
|
66
|
+
}
|
|
67
|
+
&.is-error {
|
|
68
|
+
position: relative;
|
|
69
|
+
.ant-input,
|
|
70
|
+
.ant-input-affix-wrapper,
|
|
71
|
+
.ant-select > .ant-select-selector {
|
|
72
|
+
border-color: @v-danger-color;
|
|
73
|
+
box-shadow: none;
|
|
74
|
+
z-index: 1;
|
|
75
|
+
}
|
|
76
|
+
.ant-input-search {
|
|
77
|
+
& + .cell-error {
|
|
78
|
+
right: 38px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.cell-error {
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: calc(50% - 9px);
|
|
84
|
+
font-size: @v-font-size-small;
|
|
85
|
+
color: @v-danger-color;
|
|
86
|
+
right: 8px;
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
z-index: 1;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
&.col--center {
|
|
93
|
+
.cell--edit .ant-input {
|
|
94
|
+
text-align: center;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
&.col--right {
|
|
98
|
+
.cell--edit .ant-input {
|
|
99
|
+
text-align: right;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
&.selected {
|
|
103
|
+
background-color: @v-table-row-selected-background-color !important;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -1,151 +1,151 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2022-03-16 19:05:30
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-11-26 21:11:04
|
|
6
|
-
*/
|
|
7
|
-
.@{prefix-table}-fast-search {
|
|
8
|
-
display: inline-block;
|
|
9
|
-
padding: 5px 3px;
|
|
10
|
-
line-height: 1;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
transition: all 0.3s ease;
|
|
13
|
-
.icon {
|
|
14
|
-
font-size: 1.05em;
|
|
15
|
-
}
|
|
16
|
-
&:hover {
|
|
17
|
-
color: @v-primary-color;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.@{prefix-table}-fast-search__setting {
|
|
22
|
-
height: 100%;
|
|
23
|
-
.main {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: row;
|
|
26
|
-
height: 100%;
|
|
27
|
-
.container {
|
|
28
|
-
flex: 1;
|
|
29
|
-
min-width: 0;
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
.search-box {
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
.label {
|
|
36
|
-
width: 75px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
.condition {
|
|
40
|
-
padding-left: 75px;
|
|
41
|
-
margin-top: @v-module-distance;
|
|
42
|
-
margin-bottom: @v-module-distance;
|
|
43
|
-
}
|
|
44
|
-
.all-list {
|
|
45
|
-
flex: 1 0;
|
|
46
|
-
min-height: 0;
|
|
47
|
-
overflow-y: auto;
|
|
48
|
-
.rtable {
|
|
49
|
-
width: 100%;
|
|
50
|
-
thead {
|
|
51
|
-
position: sticky;
|
|
52
|
-
top: 0;
|
|
53
|
-
th {
|
|
54
|
-
border-bottom: 1px solid @v-table-border-color;
|
|
55
|
-
background-color: @v-table-header-background-color;
|
|
56
|
-
height: 30px;
|
|
57
|
-
text-align: center;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
tbody {
|
|
61
|
-
tr {
|
|
62
|
-
&.active {
|
|
63
|
-
td {
|
|
64
|
-
background-color: @--primary-1;
|
|
65
|
-
color: @v-primary-color;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
&:hover {
|
|
69
|
-
td {
|
|
70
|
-
text-decoration: underline;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
td {
|
|
74
|
-
height: 30px;
|
|
75
|
-
text-align: center;
|
|
76
|
-
border-bottom: 1px solid @v-table-border-color;
|
|
77
|
-
cursor: pointer;
|
|
78
|
-
.text-overflow-cut();
|
|
79
|
-
max-width: 0;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
.saved {
|
|
87
|
-
width: 240px;
|
|
88
|
-
.form-wrap {
|
|
89
|
-
display: flex;
|
|
90
|
-
}
|
|
91
|
-
.card-wrap {
|
|
92
|
-
margin-top: @v-module-distance;
|
|
93
|
-
border: 1px solid @v-table-border-color;
|
|
94
|
-
> h5 {
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
font-size: inherit;
|
|
98
|
-
font-weight: normal;
|
|
99
|
-
margin-bottom: 0;
|
|
100
|
-
padding: 0 @v-module-distance;
|
|
101
|
-
border-bottom: 1px solid @v-table-border-color;
|
|
102
|
-
background-color: @v-table-header-background-color;
|
|
103
|
-
}
|
|
104
|
-
> ul {
|
|
105
|
-
margin-bottom: 0;
|
|
106
|
-
li {
|
|
107
|
-
display: flex;
|
|
108
|
-
align-items: center;
|
|
109
|
-
position: relative;
|
|
110
|
-
padding: 6px @v-module-distance;
|
|
111
|
-
border-bottom: 1px solid @v-table-border-color;
|
|
112
|
-
cursor: pointer;
|
|
113
|
-
transition: all 0.3s ease;
|
|
114
|
-
&:last-of-type {
|
|
115
|
-
border-bottom: 0;
|
|
116
|
-
}
|
|
117
|
-
&:hover {
|
|
118
|
-
background-color: @v-table-row-hover-background-color;
|
|
119
|
-
.close {
|
|
120
|
-
visibility: visible;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
&.selected {
|
|
124
|
-
background-color: @v-table-row-selected-background-color;
|
|
125
|
-
}
|
|
126
|
-
.title {
|
|
127
|
-
i {
|
|
128
|
-
margin-right: 5px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
.close {
|
|
132
|
-
position: absolute;
|
|
133
|
-
right: @v-module-distance;
|
|
134
|
-
visibility: hidden;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
.line {
|
|
141
|
-
border-left: 1px dashed @--border-color-base;
|
|
142
|
-
padding-left: @v-module-distance;
|
|
143
|
-
margin-left: @v-module-distance;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
.bottom-bar {
|
|
147
|
-
display: flex;
|
|
148
|
-
justify-content: space-between;
|
|
149
|
-
align-items: center;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2022-03-16 19:05:30
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-11-26 21:11:04
|
|
6
|
+
*/
|
|
7
|
+
.@{prefix-table}-fast-search {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
padding: 5px 3px;
|
|
10
|
+
line-height: 1;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
transition: all 0.3s ease;
|
|
13
|
+
.icon {
|
|
14
|
+
font-size: 1.05em;
|
|
15
|
+
}
|
|
16
|
+
&:hover {
|
|
17
|
+
color: @v-primary-color;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.@{prefix-table}-fast-search__setting {
|
|
22
|
+
height: 100%;
|
|
23
|
+
.main {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
height: 100%;
|
|
27
|
+
.container {
|
|
28
|
+
flex: 1;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
.search-box {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
.label {
|
|
36
|
+
width: 75px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.condition {
|
|
40
|
+
padding-left: 75px;
|
|
41
|
+
margin-top: @v-module-distance;
|
|
42
|
+
margin-bottom: @v-module-distance;
|
|
43
|
+
}
|
|
44
|
+
.all-list {
|
|
45
|
+
flex: 1 0;
|
|
46
|
+
min-height: 0;
|
|
47
|
+
overflow-y: auto;
|
|
48
|
+
.rtable {
|
|
49
|
+
width: 100%;
|
|
50
|
+
thead {
|
|
51
|
+
position: sticky;
|
|
52
|
+
top: 0;
|
|
53
|
+
th {
|
|
54
|
+
border-bottom: 1px solid @v-table-border-color;
|
|
55
|
+
background-color: @v-table-header-background-color;
|
|
56
|
+
height: 30px;
|
|
57
|
+
text-align: center;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
tbody {
|
|
61
|
+
tr {
|
|
62
|
+
&.active {
|
|
63
|
+
td {
|
|
64
|
+
background-color: @--primary-1;
|
|
65
|
+
color: @v-primary-color;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
&:hover {
|
|
69
|
+
td {
|
|
70
|
+
text-decoration: underline;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
td {
|
|
74
|
+
height: 30px;
|
|
75
|
+
text-align: center;
|
|
76
|
+
border-bottom: 1px solid @v-table-border-color;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
.text-overflow-cut();
|
|
79
|
+
max-width: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.saved {
|
|
87
|
+
width: 240px;
|
|
88
|
+
.form-wrap {
|
|
89
|
+
display: flex;
|
|
90
|
+
}
|
|
91
|
+
.card-wrap {
|
|
92
|
+
margin-top: @v-module-distance;
|
|
93
|
+
border: 1px solid @v-table-border-color;
|
|
94
|
+
> h5 {
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
font-size: inherit;
|
|
98
|
+
font-weight: normal;
|
|
99
|
+
margin-bottom: 0;
|
|
100
|
+
padding: 0 @v-module-distance;
|
|
101
|
+
border-bottom: 1px solid @v-table-border-color;
|
|
102
|
+
background-color: @v-table-header-background-color;
|
|
103
|
+
}
|
|
104
|
+
> ul {
|
|
105
|
+
margin-bottom: 0;
|
|
106
|
+
li {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
position: relative;
|
|
110
|
+
padding: 6px @v-module-distance;
|
|
111
|
+
border-bottom: 1px solid @v-table-border-color;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
transition: all 0.3s ease;
|
|
114
|
+
&:last-of-type {
|
|
115
|
+
border-bottom: 0;
|
|
116
|
+
}
|
|
117
|
+
&:hover {
|
|
118
|
+
background-color: @v-table-row-hover-background-color;
|
|
119
|
+
.close {
|
|
120
|
+
visibility: visible;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
&.selected {
|
|
124
|
+
background-color: @v-table-row-selected-background-color;
|
|
125
|
+
}
|
|
126
|
+
.title {
|
|
127
|
+
i {
|
|
128
|
+
margin-right: 5px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.close {
|
|
132
|
+
position: absolute;
|
|
133
|
+
right: @v-module-distance;
|
|
134
|
+
visibility: hidden;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.line {
|
|
141
|
+
border-left: 1px dashed @--border-color-base;
|
|
142
|
+
padding-left: @v-module-distance;
|
|
143
|
+
margin-left: @v-module-distance;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.bottom-bar {
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
align-items: center;
|
|
150
|
+
}
|
|
151
|
+
}
|