dcp-design-react 1.10.19 → 1.11.1
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/form/src/form.d.ts +2 -1
- package/lib/form/src/types.d.ts +5 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/en.js +5 -5
- package/lib/locale/lang/zh-cn.js +5 -5
- package/lib/pivot-grid/style/grid-layout.less +234 -234
- package/lib/pivot-grid/style/main.less +43 -43
- package/lib/pivot-grid/style/top-bar.less +105 -105
- package/lib/style/index.css +45 -2
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/body/DraggableTr.d.ts +26 -0
- package/lib/table/src/body/dragUtils.d.ts +43 -0
- package/lib/table/src/body/useDragSort.d.ts +27 -0
- package/lib/table/src/context/index.d.ts +1 -0
- package/lib/table/src/table/props.d.ts +2 -1
- package/lib/table/src/table/types.d.ts +3 -0
- package/lib/table/style/body.less +103 -77
- package/lib/table/style/index.less +31 -30
- package/lib/table/style/pivot-grid.less +19 -0
- package/package.json +1 -1
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2022-03-16 19:05:30
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2024-11-29 10:34:35
|
|
6
|
-
*/
|
|
7
|
-
@import '../../style/common';
|
|
8
|
-
|
|
9
|
-
.button-icon {
|
|
10
|
-
display: inline-block;
|
|
11
|
-
text-align: center;
|
|
12
|
-
text-transform: none;
|
|
13
|
-
text-decoration: none;
|
|
14
|
-
background: transparent;
|
|
15
|
-
border: 0;
|
|
16
|
-
outline: 0;
|
|
17
|
-
line-height: 0;
|
|
18
|
-
padding: 5px;
|
|
19
|
-
color: @--text-color-placeholder;
|
|
20
|
-
border-radius: @--border-radius-lg;
|
|
21
|
-
transition: background-color 0.3s ease;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
&:not(.no-hover-bg):hover {
|
|
24
|
-
background-color: @--background-color;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.@{prefix-pivot-grid}__popper {
|
|
29
|
-
.container {
|
|
30
|
-
padding: 6px 15px;
|
|
31
|
-
& > .label {
|
|
32
|
-
display: flex;
|
|
33
|
-
justify-content: space-between;
|
|
34
|
-
align-items: center;
|
|
35
|
-
padding: 4px 0;
|
|
36
|
-
}
|
|
37
|
-
& > .list {
|
|
38
|
-
li.item {
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
margin: 6px 0;
|
|
42
|
-
.icon {
|
|
43
|
-
padding: 6px 2px;
|
|
44
|
-
color: @--text-color-placeholder;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
}
|
|
47
|
-
.close {
|
|
48
|
-
margin-left: @--margin-sm;
|
|
49
|
-
font-size: @--font-size-lg;
|
|
50
|
-
padding: @--padding-sm;
|
|
51
|
-
border-radius: @--border-radius-lg;
|
|
52
|
-
transition: all 0.3s ease;
|
|
53
|
-
&:hover {
|
|
54
|
-
background-color: @--background-color;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
li.check-item {
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
justify-content: space-between;
|
|
62
|
-
border-radius: @--border-radius-lg;
|
|
63
|
-
&.active {
|
|
64
|
-
.icon {
|
|
65
|
-
display: block;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
.icon {
|
|
69
|
-
color: @--primary-color;
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
& > .add-record {
|
|
75
|
-
display: flex;
|
|
76
|
-
justify-content: space-between;
|
|
77
|
-
align-items: center;
|
|
78
|
-
padding: @--margin-md 0 4px;
|
|
79
|
-
.insert {
|
|
80
|
-
color: @--primary-4;
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
.icon {
|
|
83
|
-
margin-right: 4px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
& > .search {
|
|
88
|
-
.search-switch {
|
|
89
|
-
display: inline-flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
margin-right: -7px;
|
|
92
|
-
&.disabled {
|
|
93
|
-
.btn {
|
|
94
|
-
pointer-events: none;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
.num {
|
|
98
|
-
margin: 0 4px;
|
|
99
|
-
color: @--text-color-placeholder;
|
|
100
|
-
line-height: 1;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2022-03-16 19:05:30
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2024-11-29 10:34:35
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
.button-icon {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
text-align: center;
|
|
12
|
+
text-transform: none;
|
|
13
|
+
text-decoration: none;
|
|
14
|
+
background: transparent;
|
|
15
|
+
border: 0;
|
|
16
|
+
outline: 0;
|
|
17
|
+
line-height: 0;
|
|
18
|
+
padding: 5px;
|
|
19
|
+
color: @--text-color-placeholder;
|
|
20
|
+
border-radius: @--border-radius-lg;
|
|
21
|
+
transition: background-color 0.3s ease;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
&:not(.no-hover-bg):hover {
|
|
24
|
+
background-color: @--background-color;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.@{prefix-pivot-grid}__popper {
|
|
29
|
+
.container {
|
|
30
|
+
padding: 6px 15px;
|
|
31
|
+
& > .label {
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
align-items: center;
|
|
35
|
+
padding: 4px 0;
|
|
36
|
+
}
|
|
37
|
+
& > .list {
|
|
38
|
+
li.item {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
margin: 6px 0;
|
|
42
|
+
.icon {
|
|
43
|
+
padding: 6px 2px;
|
|
44
|
+
color: @--text-color-placeholder;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
.close {
|
|
48
|
+
margin-left: @--margin-sm;
|
|
49
|
+
font-size: @--font-size-lg;
|
|
50
|
+
padding: @--padding-sm;
|
|
51
|
+
border-radius: @--border-radius-lg;
|
|
52
|
+
transition: all 0.3s ease;
|
|
53
|
+
&:hover {
|
|
54
|
+
background-color: @--background-color;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
li.check-item {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
border-radius: @--border-radius-lg;
|
|
63
|
+
&.active {
|
|
64
|
+
.icon {
|
|
65
|
+
display: block;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.icon {
|
|
69
|
+
color: @--primary-color;
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
& > .add-record {
|
|
75
|
+
display: flex;
|
|
76
|
+
justify-content: space-between;
|
|
77
|
+
align-items: center;
|
|
78
|
+
padding: @--margin-md 0 4px;
|
|
79
|
+
.insert {
|
|
80
|
+
color: @--primary-4;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
.icon {
|
|
83
|
+
margin-right: 4px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
& > .search {
|
|
88
|
+
.search-switch {
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
margin-right: -7px;
|
|
92
|
+
&.disabled {
|
|
93
|
+
.btn {
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.num {
|
|
98
|
+
margin: 0 4px;
|
|
99
|
+
color: @--text-color-placeholder;
|
|
100
|
+
line-height: 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
package/lib/style/index.css
CHANGED
|
@@ -28616,7 +28616,7 @@ body {
|
|
|
28616
28616
|
* @Author: 焦质晔
|
|
28617
28617
|
* @Date: 2021-07-23 19:05:57
|
|
28618
28618
|
* @Last Modified by: 焦质晔
|
|
28619
|
-
* @Last Modified time: 2024-
|
|
28619
|
+
* @Last Modified time: 2024-12-01 14:16:57
|
|
28620
28620
|
*/
|
|
28621
28621
|
/*
|
|
28622
28622
|
* @Author: 焦质晔
|
|
@@ -29151,6 +29151,25 @@ body {
|
|
|
29151
29151
|
margin-top: 10px;
|
|
29152
29152
|
border-top: 1px dashed #d9d9d9;
|
|
29153
29153
|
}
|
|
29154
|
+
/*
|
|
29155
|
+
* @Author: 焦质晔
|
|
29156
|
+
* @Date: 2024-12-01 14:16:05
|
|
29157
|
+
* @Last Modified by: 焦质晔
|
|
29158
|
+
* @Last Modified time: 2024-12-01 14:16:28
|
|
29159
|
+
*/
|
|
29160
|
+
.qm-table-pivot-grid {
|
|
29161
|
+
display: inline-block;
|
|
29162
|
+
padding: 5px 3px;
|
|
29163
|
+
line-height: 1;
|
|
29164
|
+
cursor: pointer;
|
|
29165
|
+
transition: all 0.3s ease;
|
|
29166
|
+
}
|
|
29167
|
+
.qm-table-pivot-grid .icon {
|
|
29168
|
+
font-size: 1.05em;
|
|
29169
|
+
}
|
|
29170
|
+
.qm-table-pivot-grid:hover {
|
|
29171
|
+
color: #1890ff;
|
|
29172
|
+
}
|
|
29154
29173
|
/*
|
|
29155
29174
|
* @Author: 焦质晔
|
|
29156
29175
|
* @Date: 2020-02-28 22:13:50
|
|
@@ -29777,8 +29796,32 @@ body {
|
|
|
29777
29796
|
* @Author: 焦质晔
|
|
29778
29797
|
* @Date: 2020-02-28 22:13:54
|
|
29779
29798
|
* @Last Modified by: 焦质晔
|
|
29780
|
-
* @Last Modified time:
|
|
29799
|
+
* @Last Modified time: 2024-12-01 18:48:00
|
|
29781
29800
|
*/
|
|
29801
|
+
.body--row-draggable {
|
|
29802
|
+
position: relative;
|
|
29803
|
+
}
|
|
29804
|
+
.body--row-draggable .drop-indicator {
|
|
29805
|
+
position: absolute;
|
|
29806
|
+
right: 0;
|
|
29807
|
+
bottom: 0;
|
|
29808
|
+
z-index: 5;
|
|
29809
|
+
height: 2px;
|
|
29810
|
+
background-color: #1890ff;
|
|
29811
|
+
border-radius: 1px;
|
|
29812
|
+
pointer-events: none;
|
|
29813
|
+
}
|
|
29814
|
+
.body--row-draggable .drop-indicator::after {
|
|
29815
|
+
position: absolute;
|
|
29816
|
+
top: -3px;
|
|
29817
|
+
left: 0;
|
|
29818
|
+
width: 8px;
|
|
29819
|
+
height: 8px;
|
|
29820
|
+
background-color: #fff;
|
|
29821
|
+
border: 2px solid #1890ff;
|
|
29822
|
+
border-radius: 50%;
|
|
29823
|
+
content: '';
|
|
29824
|
+
}
|
|
29782
29825
|
.body--column .cell--edit {
|
|
29783
29826
|
margin: 0 -9px;
|
|
29784
29827
|
}
|