@jiaozhiye/qm-design-react 1.9.17 → 1.9.19
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/dom.d.ts +1 -0
- package/lib/anchor/style/index.less +101 -101
- package/lib/antd/index.less +19 -19
- package/lib/collapse/src/_util/motion.less +13 -13
- package/lib/collapse/style/index.less +24 -24
- package/lib/copy-to-clipboard/style/index.less +12 -12
- package/lib/countup/style/index.less +22 -22
- package/lib/cropper/style/index.less +13 -13
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/print/style/index.less +175 -175
- package/lib/range-table-helper/style/index.less +18 -18
- package/lib/scrollbar/src/scrollbar.d.ts +2 -2
- package/lib/scrollbar/style/index.less +72 -72
- package/lib/search-helper/style/index.less +14 -14
- package/lib/search-tree/style/index.less +34 -34
- package/lib/spin/style/index.less +16 -16
- package/lib/split/style/index.less +83 -83
- package/lib/style/compact.less +10 -10
- package/lib/style/mixins/reset.less +34 -34
- package/lib/style/reset.less +132 -132
- package/lib/style/var.less +9 -9
- package/lib/table/src/table/types.d.ts +2 -2
- package/lib/table/style/expandable.less +64 -64
- package/lib/table/style/index.less +29 -29
- package/lib/tabs/style/index.less +32 -32
- package/lib/tree-helper/style/index.less +21 -21
- package/lib/tree-table-helper/style/index.less +24 -24
- package/package.json +1 -1
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-02-09 09:27:46
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2021-11-05 13:33:02
|
|
6
|
-
*/
|
|
7
|
-
@import '../../style/common';
|
|
8
|
-
|
|
9
|
-
@prefix-split: ~'@{qm-prefix}-split';
|
|
10
|
-
@prefix-split-pane: ~'@{qm-prefix}-split-pane';
|
|
11
|
-
|
|
12
|
-
.@{prefix-split} {
|
|
13
|
-
.reset-container();
|
|
14
|
-
display: flex;
|
|
15
|
-
&.vertical {
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
}
|
|
18
|
-
&__resize-bar {
|
|
19
|
-
position: relative;
|
|
20
|
-
background-color: transparent;
|
|
21
|
-
border-radius: @--border-radius-base - 1px;
|
|
22
|
-
transition: background-color 0.4s ease;
|
|
23
|
-
user-select: none;
|
|
24
|
-
box-sizing: border-box;
|
|
25
|
-
z-index: 1;
|
|
26
|
-
&.horizontal {
|
|
27
|
-
width: 11px;
|
|
28
|
-
margin: 0 -5px;
|
|
29
|
-
cursor: col-resize;
|
|
30
|
-
&::after {
|
|
31
|
-
content: ' ';
|
|
32
|
-
position: absolute;
|
|
33
|
-
top: 0;
|
|
34
|
-
bottom: 0;
|
|
35
|
-
left: 50%;
|
|
36
|
-
width: 0;
|
|
37
|
-
pointer-events: none;
|
|
38
|
-
border-left: 1px solid @--border-color-base;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
&.vertical {
|
|
42
|
-
height: 11px;
|
|
43
|
-
margin: -5px 0;
|
|
44
|
-
cursor: row-resize;
|
|
45
|
-
&::after {
|
|
46
|
-
content: ' ';
|
|
47
|
-
position: absolute;
|
|
48
|
-
left: 0;
|
|
49
|
-
right: 0;
|
|
50
|
-
top: 50%;
|
|
51
|
-
height: 0;
|
|
52
|
-
pointer-events: none;
|
|
53
|
-
border-top: 1px solid @--border-color-base;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
&:hover,
|
|
57
|
-
&:active {
|
|
58
|
-
background-color: @--background-color;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.@{prefix-split-pane} {
|
|
62
|
-
box-sizing: border-box;
|
|
63
|
-
&.horizontal {
|
|
64
|
-
&:nth-child(1) {
|
|
65
|
-
padding-right: 5px;
|
|
66
|
-
}
|
|
67
|
-
&:nth-child(3) {
|
|
68
|
-
padding-left: 5px;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
&.vertical {
|
|
72
|
-
&:nth-of-type(1) {
|
|
73
|
-
padding-bottom: 5px;
|
|
74
|
-
}
|
|
75
|
-
&:nth-of-type(3) {
|
|
76
|
-
padding-top: 5px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
&.isLocked {
|
|
80
|
-
pointer-events: none;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-02-09 09:27:46
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-11-05 13:33:02
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-split: ~'@{qm-prefix}-split';
|
|
10
|
+
@prefix-split-pane: ~'@{qm-prefix}-split-pane';
|
|
11
|
+
|
|
12
|
+
.@{prefix-split} {
|
|
13
|
+
.reset-container();
|
|
14
|
+
display: flex;
|
|
15
|
+
&.vertical {
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
}
|
|
18
|
+
&__resize-bar {
|
|
19
|
+
position: relative;
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
border-radius: @--border-radius-base - 1px;
|
|
22
|
+
transition: background-color 0.4s ease;
|
|
23
|
+
user-select: none;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
z-index: 1;
|
|
26
|
+
&.horizontal {
|
|
27
|
+
width: 11px;
|
|
28
|
+
margin: 0 -5px;
|
|
29
|
+
cursor: col-resize;
|
|
30
|
+
&::after {
|
|
31
|
+
content: ' ';
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0;
|
|
34
|
+
bottom: 0;
|
|
35
|
+
left: 50%;
|
|
36
|
+
width: 0;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
border-left: 1px solid @--border-color-base;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&.vertical {
|
|
42
|
+
height: 11px;
|
|
43
|
+
margin: -5px 0;
|
|
44
|
+
cursor: row-resize;
|
|
45
|
+
&::after {
|
|
46
|
+
content: ' ';
|
|
47
|
+
position: absolute;
|
|
48
|
+
left: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
top: 50%;
|
|
51
|
+
height: 0;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
border-top: 1px solid @--border-color-base;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&:hover,
|
|
57
|
+
&:active {
|
|
58
|
+
background-color: @--background-color;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
.@{prefix-split-pane} {
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
&.horizontal {
|
|
64
|
+
&:nth-child(1) {
|
|
65
|
+
padding-right: 5px;
|
|
66
|
+
}
|
|
67
|
+
&:nth-child(3) {
|
|
68
|
+
padding-left: 5px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
&.vertical {
|
|
72
|
+
&:nth-of-type(1) {
|
|
73
|
+
padding-bottom: 5px;
|
|
74
|
+
}
|
|
75
|
+
&:nth-of-type(3) {
|
|
76
|
+
padding-top: 5px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
&.isLocked {
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
package/lib/style/compact.less
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2022-11-26 21:14:37
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-03-28 11:52:53
|
|
6
|
-
*/
|
|
7
|
-
@import '../antd/compact.less';
|
|
8
|
-
@import './themes/default.less';
|
|
9
|
-
@import './themes/compact.less';
|
|
10
|
-
@import './reset.less';
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2022-11-26 21:14:37
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-03-28 11:52:53
|
|
6
|
+
*/
|
|
7
|
+
@import '../antd/compact.less';
|
|
8
|
+
@import './themes/default.less';
|
|
9
|
+
@import './themes/compact.less';
|
|
10
|
+
@import './reset.less';
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-07-23 18:58:43
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2021-07-23 18:58:43
|
|
6
|
-
*/
|
|
7
|
-
@import '../themes/index';
|
|
8
|
-
|
|
9
|
-
.reset-container() {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: 0;
|
|
13
|
-
color: @--text-color;
|
|
14
|
-
font-variant: @font-variant-base;
|
|
15
|
-
line-height: @--line-height-base;
|
|
16
|
-
list-style: none;
|
|
17
|
-
font-feature-settings: @font-feature-settings-base;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.box-sizing-content() {
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.text-overflow-cut() {
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
text-overflow: ellipsis;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.user-select-none() {
|
|
31
|
-
-moz-user-select: none;
|
|
32
|
-
-webkit-user-select: none;
|
|
33
|
-
-ms-user-select: none;
|
|
34
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 18:58:43
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-07-23 18:58:43
|
|
6
|
+
*/
|
|
7
|
+
@import '../themes/index';
|
|
8
|
+
|
|
9
|
+
.reset-container() {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
color: @--text-color;
|
|
14
|
+
font-variant: @font-variant-base;
|
|
15
|
+
line-height: @--line-height-base;
|
|
16
|
+
list-style: none;
|
|
17
|
+
font-feature-settings: @font-feature-settings-base;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.box-sizing-content() {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.text-overflow-cut() {
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.user-select-none() {
|
|
31
|
+
-moz-user-select: none;
|
|
32
|
+
-webkit-user-select: none;
|
|
33
|
+
-ms-user-select: none;
|
|
34
|
+
}
|
package/lib/style/reset.less
CHANGED
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
/* http://meyerweb.com/eric/tools/css/reset/
|
|
2
|
-
v2.0 | 20110126
|
|
3
|
-
License: none (public domain)
|
|
4
|
-
*/
|
|
5
|
-
html,
|
|
6
|
-
body,
|
|
7
|
-
div,
|
|
8
|
-
span,
|
|
9
|
-
applet,
|
|
10
|
-
object,
|
|
11
|
-
iframe,
|
|
12
|
-
h1,
|
|
13
|
-
h2,
|
|
14
|
-
h3,
|
|
15
|
-
h4,
|
|
16
|
-
h5,
|
|
17
|
-
h6,
|
|
18
|
-
p,
|
|
19
|
-
blockquote,
|
|
20
|
-
pre,
|
|
21
|
-
a,
|
|
22
|
-
abbr,
|
|
23
|
-
acronym,
|
|
24
|
-
address,
|
|
25
|
-
big,
|
|
26
|
-
cite,
|
|
27
|
-
code,
|
|
28
|
-
del,
|
|
29
|
-
dfn,
|
|
30
|
-
em,
|
|
31
|
-
img,
|
|
32
|
-
ins,
|
|
33
|
-
kbd,
|
|
34
|
-
q,
|
|
35
|
-
s,
|
|
36
|
-
samp,
|
|
37
|
-
small,
|
|
38
|
-
strike,
|
|
39
|
-
strong,
|
|
40
|
-
sub,
|
|
41
|
-
sup,
|
|
42
|
-
tt,
|
|
43
|
-
var,
|
|
44
|
-
b,
|
|
45
|
-
u,
|
|
46
|
-
i,
|
|
47
|
-
center,
|
|
48
|
-
dl,
|
|
49
|
-
dt,
|
|
50
|
-
dd,
|
|
51
|
-
ol,
|
|
52
|
-
ul,
|
|
53
|
-
li,
|
|
54
|
-
fieldset,
|
|
55
|
-
form,
|
|
56
|
-
label,
|
|
57
|
-
legend,
|
|
58
|
-
table,
|
|
59
|
-
caption,
|
|
60
|
-
tbody,
|
|
61
|
-
tfoot,
|
|
62
|
-
thead,
|
|
63
|
-
tr,
|
|
64
|
-
th,
|
|
65
|
-
td,
|
|
66
|
-
article,
|
|
67
|
-
aside,
|
|
68
|
-
canvas,
|
|
69
|
-
details,
|
|
70
|
-
embed,
|
|
71
|
-
figure,
|
|
72
|
-
figcaption,
|
|
73
|
-
footer,
|
|
74
|
-
header,
|
|
75
|
-
hgroup,
|
|
76
|
-
menu,
|
|
77
|
-
nav,
|
|
78
|
-
output,
|
|
79
|
-
ruby,
|
|
80
|
-
section,
|
|
81
|
-
summary,
|
|
82
|
-
time,
|
|
83
|
-
mark,
|
|
84
|
-
audio,
|
|
85
|
-
video {
|
|
86
|
-
margin: 0;
|
|
87
|
-
padding: 0;
|
|
88
|
-
}
|
|
89
|
-
/* HTML5 display-role reset for older browsers */
|
|
90
|
-
article,
|
|
91
|
-
aside,
|
|
92
|
-
details,
|
|
93
|
-
figcaption,
|
|
94
|
-
figure,
|
|
95
|
-
footer,
|
|
96
|
-
header,
|
|
97
|
-
hgroup,
|
|
98
|
-
menu,
|
|
99
|
-
nav,
|
|
100
|
-
section {
|
|
101
|
-
display: block;
|
|
102
|
-
}
|
|
103
|
-
ol,
|
|
104
|
-
ul {
|
|
105
|
-
list-style: none;
|
|
106
|
-
}
|
|
107
|
-
blockquote,
|
|
108
|
-
q {
|
|
109
|
-
quotes: none;
|
|
110
|
-
}
|
|
111
|
-
blockquote:before,
|
|
112
|
-
blockquote:after,
|
|
113
|
-
q:before,
|
|
114
|
-
q:after {
|
|
115
|
-
content: '';
|
|
116
|
-
content: none;
|
|
117
|
-
}
|
|
118
|
-
table {
|
|
119
|
-
border-collapse: collapse;
|
|
120
|
-
border-spacing: 0;
|
|
121
|
-
}
|
|
122
|
-
.svgicon {
|
|
123
|
-
display: inline-block;
|
|
124
|
-
color: inherit;
|
|
125
|
-
font-style: normal;
|
|
126
|
-
line-height: 0;
|
|
127
|
-
text-align: center;
|
|
128
|
-
text-transform: none;
|
|
129
|
-
text-rendering: optimizeLegibility;
|
|
130
|
-
-webkit-font-smoothing: antialiased;
|
|
131
|
-
-moz-osx-font-smoothing: grayscale;
|
|
132
|
-
}
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
|
2
|
+
v2.0 | 20110126
|
|
3
|
+
License: none (public domain)
|
|
4
|
+
*/
|
|
5
|
+
html,
|
|
6
|
+
body,
|
|
7
|
+
div,
|
|
8
|
+
span,
|
|
9
|
+
applet,
|
|
10
|
+
object,
|
|
11
|
+
iframe,
|
|
12
|
+
h1,
|
|
13
|
+
h2,
|
|
14
|
+
h3,
|
|
15
|
+
h4,
|
|
16
|
+
h5,
|
|
17
|
+
h6,
|
|
18
|
+
p,
|
|
19
|
+
blockquote,
|
|
20
|
+
pre,
|
|
21
|
+
a,
|
|
22
|
+
abbr,
|
|
23
|
+
acronym,
|
|
24
|
+
address,
|
|
25
|
+
big,
|
|
26
|
+
cite,
|
|
27
|
+
code,
|
|
28
|
+
del,
|
|
29
|
+
dfn,
|
|
30
|
+
em,
|
|
31
|
+
img,
|
|
32
|
+
ins,
|
|
33
|
+
kbd,
|
|
34
|
+
q,
|
|
35
|
+
s,
|
|
36
|
+
samp,
|
|
37
|
+
small,
|
|
38
|
+
strike,
|
|
39
|
+
strong,
|
|
40
|
+
sub,
|
|
41
|
+
sup,
|
|
42
|
+
tt,
|
|
43
|
+
var,
|
|
44
|
+
b,
|
|
45
|
+
u,
|
|
46
|
+
i,
|
|
47
|
+
center,
|
|
48
|
+
dl,
|
|
49
|
+
dt,
|
|
50
|
+
dd,
|
|
51
|
+
ol,
|
|
52
|
+
ul,
|
|
53
|
+
li,
|
|
54
|
+
fieldset,
|
|
55
|
+
form,
|
|
56
|
+
label,
|
|
57
|
+
legend,
|
|
58
|
+
table,
|
|
59
|
+
caption,
|
|
60
|
+
tbody,
|
|
61
|
+
tfoot,
|
|
62
|
+
thead,
|
|
63
|
+
tr,
|
|
64
|
+
th,
|
|
65
|
+
td,
|
|
66
|
+
article,
|
|
67
|
+
aside,
|
|
68
|
+
canvas,
|
|
69
|
+
details,
|
|
70
|
+
embed,
|
|
71
|
+
figure,
|
|
72
|
+
figcaption,
|
|
73
|
+
footer,
|
|
74
|
+
header,
|
|
75
|
+
hgroup,
|
|
76
|
+
menu,
|
|
77
|
+
nav,
|
|
78
|
+
output,
|
|
79
|
+
ruby,
|
|
80
|
+
section,
|
|
81
|
+
summary,
|
|
82
|
+
time,
|
|
83
|
+
mark,
|
|
84
|
+
audio,
|
|
85
|
+
video {
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding: 0;
|
|
88
|
+
}
|
|
89
|
+
/* HTML5 display-role reset for older browsers */
|
|
90
|
+
article,
|
|
91
|
+
aside,
|
|
92
|
+
details,
|
|
93
|
+
figcaption,
|
|
94
|
+
figure,
|
|
95
|
+
footer,
|
|
96
|
+
header,
|
|
97
|
+
hgroup,
|
|
98
|
+
menu,
|
|
99
|
+
nav,
|
|
100
|
+
section {
|
|
101
|
+
display: block;
|
|
102
|
+
}
|
|
103
|
+
ol,
|
|
104
|
+
ul {
|
|
105
|
+
list-style: none;
|
|
106
|
+
}
|
|
107
|
+
blockquote,
|
|
108
|
+
q {
|
|
109
|
+
quotes: none;
|
|
110
|
+
}
|
|
111
|
+
blockquote:before,
|
|
112
|
+
blockquote:after,
|
|
113
|
+
q:before,
|
|
114
|
+
q:after {
|
|
115
|
+
content: '';
|
|
116
|
+
content: none;
|
|
117
|
+
}
|
|
118
|
+
table {
|
|
119
|
+
border-collapse: collapse;
|
|
120
|
+
border-spacing: 0;
|
|
121
|
+
}
|
|
122
|
+
.svgicon {
|
|
123
|
+
display: inline-block;
|
|
124
|
+
color: inherit;
|
|
125
|
+
font-style: normal;
|
|
126
|
+
line-height: 0;
|
|
127
|
+
text-align: center;
|
|
128
|
+
text-transform: none;
|
|
129
|
+
text-rendering: optimizeLegibility;
|
|
130
|
+
-webkit-font-smoothing: antialiased;
|
|
131
|
+
-moz-osx-font-smoothing: grayscale;
|
|
132
|
+
}
|
package/lib/style/var.less
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2022-04-12 10:32:21
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-04-12 10:32:21
|
|
6
|
-
*/
|
|
7
|
-
html {
|
|
8
|
-
--qm-primary-color: @--primary-color;
|
|
9
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2022-04-12 10:32:21
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-04-12 10:32:21
|
|
6
|
+
*/
|
|
7
|
+
html {
|
|
8
|
+
--qm-primary-color: @--primary-color;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BuildInPlacements } from 'rc-trigger';
|
|
3
|
-
import type { ComponentSize, CSSProperties, Nullable, IDict, IAuth
|
|
3
|
+
import type { ComponentSize, CSSProperties, AjaxResponse, Nullable, ValueOf, IDict, IAuth } from '../../../_utils/types';
|
|
4
4
|
import type { IFormData, IFormItem } from '../../../form/src/types';
|
|
5
5
|
export type { ITableContext } from '../context';
|
|
6
6
|
export type IFixed = 'left' | 'right';
|
|
@@ -303,7 +303,7 @@ export type IColumn = {
|
|
|
303
303
|
unit?: string;
|
|
304
304
|
render?: () => React.ReactNode;
|
|
305
305
|
};
|
|
306
|
-
shouldCellUpdate?: (
|
|
306
|
+
shouldCellUpdate?: (nextCellValue: ValueOf<IRecord>, prevCellValue: ValueOf<IRecord>, record: IRecord) => boolean;
|
|
307
307
|
headRender?: (column: IColumn, tableData: IRecord[]) => React.ReactNode;
|
|
308
308
|
render?: (text: string | number, row: IRecord, column: IColumn, rowIndex: number, columnIndex: number) => React.ReactNode | string | number;
|
|
309
309
|
};
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2020-03-30 16:36:41
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2021-12-28 19:56:04
|
|
6
|
-
*/
|
|
7
|
-
@prefix-expand: ~'@{qm-prefix}-expand';
|
|
8
|
-
|
|
9
|
-
.@{prefix-expand}--icon {
|
|
10
|
-
position: relative;
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
margin-right: 5px;
|
|
13
|
-
width: 17px;
|
|
14
|
-
height: 17px;
|
|
15
|
-
color: @v-font-secondary-color;
|
|
16
|
-
vertical-align: -4px;
|
|
17
|
-
background: #fff;
|
|
18
|
-
border: 1px solid rgba(0, 0, 0, 0.085);
|
|
19
|
-
border-radius: @v-border-radius;
|
|
20
|
-
transform: scale(0.94117647);
|
|
21
|
-
outline: none;
|
|
22
|
-
user-select: none;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
transition: all 0.3s ease;
|
|
25
|
-
.box-sizing-content();
|
|
26
|
-
&:hover {
|
|
27
|
-
color: @v-primary-color;
|
|
28
|
-
border-color: @v-primary-color;
|
|
29
|
-
}
|
|
30
|
-
&::before,
|
|
31
|
-
&::after {
|
|
32
|
-
position: absolute;
|
|
33
|
-
background: currentColor;
|
|
34
|
-
transition: transform 0.3s ease-out;
|
|
35
|
-
content: '';
|
|
36
|
-
}
|
|
37
|
-
&::before {
|
|
38
|
-
top: 7px;
|
|
39
|
-
right: 3px;
|
|
40
|
-
left: 3px;
|
|
41
|
-
height: 1px;
|
|
42
|
-
}
|
|
43
|
-
&::after {
|
|
44
|
-
top: 3px;
|
|
45
|
-
bottom: 3px;
|
|
46
|
-
left: 7px;
|
|
47
|
-
width: 1px;
|
|
48
|
-
transform: rotate(90deg);
|
|
49
|
-
}
|
|
50
|
-
&.collapsed::before {
|
|
51
|
-
transform: rotate(-180deg);
|
|
52
|
-
}
|
|
53
|
-
&.collapsed::after {
|
|
54
|
-
transform: rotate(0deg);
|
|
55
|
-
}
|
|
56
|
-
&.disabled {
|
|
57
|
-
cursor: not-allowed;
|
|
58
|
-
color: rgba(0, 0, 0, 0.1);
|
|
59
|
-
background: @--background-color-cecondary;
|
|
60
|
-
&:hover {
|
|
61
|
-
border-color: currentColor;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-03-30 16:36:41
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-12-28 19:56:04
|
|
6
|
+
*/
|
|
7
|
+
@prefix-expand: ~'@{qm-prefix}-expand';
|
|
8
|
+
|
|
9
|
+
.@{prefix-expand}--icon {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
margin-right: 5px;
|
|
13
|
+
width: 17px;
|
|
14
|
+
height: 17px;
|
|
15
|
+
color: @v-font-secondary-color;
|
|
16
|
+
vertical-align: -4px;
|
|
17
|
+
background: #fff;
|
|
18
|
+
border: 1px solid rgba(0, 0, 0, 0.085);
|
|
19
|
+
border-radius: @v-border-radius;
|
|
20
|
+
transform: scale(0.94117647);
|
|
21
|
+
outline: none;
|
|
22
|
+
user-select: none;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
transition: all 0.3s ease;
|
|
25
|
+
.box-sizing-content();
|
|
26
|
+
&:hover {
|
|
27
|
+
color: @v-primary-color;
|
|
28
|
+
border-color: @v-primary-color;
|
|
29
|
+
}
|
|
30
|
+
&::before,
|
|
31
|
+
&::after {
|
|
32
|
+
position: absolute;
|
|
33
|
+
background: currentColor;
|
|
34
|
+
transition: transform 0.3s ease-out;
|
|
35
|
+
content: '';
|
|
36
|
+
}
|
|
37
|
+
&::before {
|
|
38
|
+
top: 7px;
|
|
39
|
+
right: 3px;
|
|
40
|
+
left: 3px;
|
|
41
|
+
height: 1px;
|
|
42
|
+
}
|
|
43
|
+
&::after {
|
|
44
|
+
top: 3px;
|
|
45
|
+
bottom: 3px;
|
|
46
|
+
left: 7px;
|
|
47
|
+
width: 1px;
|
|
48
|
+
transform: rotate(90deg);
|
|
49
|
+
}
|
|
50
|
+
&.collapsed::before {
|
|
51
|
+
transform: rotate(-180deg);
|
|
52
|
+
}
|
|
53
|
+
&.collapsed::after {
|
|
54
|
+
transform: rotate(0deg);
|
|
55
|
+
}
|
|
56
|
+
&.disabled {
|
|
57
|
+
cursor: not-allowed;
|
|
58
|
+
color: rgba(0, 0, 0, 0.1);
|
|
59
|
+
background: @--background-color-cecondary;
|
|
60
|
+
&:hover {
|
|
61
|
+
border-color: currentColor;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|