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.
@@ -1,8 +1,8 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-06-19 08:46:00
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-11-28 20:28:15
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-06-19 08:46:00
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-11-28 20:28:15
6
6
  */
7
7
  export default {
8
8
  name: 'en',
@@ -1,8 +1,8 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-06-19 08:45:54
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-11-28 20:28:06
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-06-19 08:45:54
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-11-28 20:28:06
6
6
  */
7
7
  export default {
8
8
  name: 'zh-cn',
@@ -1,234 +1,234 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2022-03-16 19:05:30
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-11-29 13:20:19
6
- */
7
- @import '../../style/common';
8
-
9
- .@{prefix-pivot-grid}__layout {
10
- .reset-container();
11
- height: 100%;
12
- .header,
13
- .footer {
14
- overflow: hidden;
15
- background-color: #fff;
16
- border: 1px solid @--border-color-secondary;
17
- border-radius: @pivot-border-radius;
18
- .table {
19
- table-layout: fixed;
20
- display: contents;
21
- thead th,
22
- tfoot td {
23
- text-align: left;
24
- font-weight: normal;
25
- border-right: 1px solid @--border-color-secondary;
26
- position: relative;
27
- &.selection-column {
28
- text-align: center;
29
- justify-content: center;
30
- border-right-color: transparent;
31
- }
32
- }
33
- }
34
- }
35
- .header {
36
- position: sticky;
37
- top: 0;
38
- z-index: 1;
39
- .resize-bar {
40
- position: absolute;
41
- top: 0;
42
- bottom: 0;
43
- right: -3px;
44
- width: 6px;
45
- z-index: 2;
46
- cursor: col-resize;
47
- }
48
- }
49
- .body {
50
- min-height: fit-content;
51
- .group-card {
52
- margin: 15px 0;
53
- border: 1px solid @--border-color-secondary;
54
- border-radius: @pivot-border-radius;
55
- background-color: #fff;
56
- &.inner {
57
- margin: 0 12px 12px;
58
- }
59
- &:has(.inner) > .label-row > .label-cell {
60
- border-bottom: 0;
61
- }
62
- .label-row {
63
- display: flex;
64
- align-items: center;
65
- .label-cell {
66
- align-self: stretch;
67
- display: inline-flex;
68
- align-items: center;
69
- border-bottom: 1px solid @--border-color-secondary;
70
- &.expandable-column {
71
- justify-content: center;
72
- .button-icon {
73
- & > .anticon {
74
- transition: transform 0.3s ease;
75
- }
76
- &.expand > .anticon {
77
- transform: rotate(90deg);
78
- }
79
- }
80
- }
81
- }
82
- }
83
- .grid-list {
84
- margin: 0;
85
- border: 0;
86
- border-radius: 0;
87
- background: transparent;
88
- }
89
- }
90
- .grid-list {
91
- margin: 15px 0;
92
- border: 1px solid @--border-color-secondary;
93
- border-radius: @pivot-border-radius;
94
- background-color: #fff;
95
- .table-row {
96
- display: flex;
97
- align-items: center;
98
- &:hover {
99
- background-color: @--background-color-light;
100
- .table-cell {
101
- .order {
102
- display: none;
103
- }
104
- .checkbox {
105
- display: inline-flex;
106
- }
107
- }
108
- }
109
- &.row--selection {
110
- background-color: @--primary-1;
111
- .table-cell {
112
- .order {
113
- display: none;
114
- }
115
- .checkbox {
116
- display: inline-flex;
117
- }
118
- }
119
- }
120
- .table-cell {
121
- align-self: stretch; // 子元素高度和父元素一致
122
- display: inline-flex;
123
- align-items: center;
124
- border-right: 1px solid @--border-color-secondary;
125
- border-bottom: 1px solid @--border-color-secondary;
126
- &:last-child {
127
- border-right: 0;
128
- }
129
- &.selection-column {
130
- justify-content: center;
131
- border-right-color: transparent;
132
- }
133
- .order {
134
- display: inline-block;
135
- }
136
- .checkbox {
137
- display: none;
138
- }
139
- }
140
- &:last-child {
141
- .table-cell {
142
- border-bottom: 0;
143
- }
144
- }
145
- }
146
- }
147
- }
148
- .footer {
149
- position: sticky;
150
- bottom: 0;
151
- z-index: 1;
152
- }
153
- .header,
154
- .body,
155
- .footer {
156
- .table-cell {
157
- &.col--center {
158
- text-align: center !important;
159
- justify-content: center;
160
- }
161
- &.col--right {
162
- text-align: right !important;
163
- justify-content: flex-end;
164
- }
165
- .cell {
166
- .text-overflow-cut();
167
- padding: 0 @--padding-sm;
168
- }
169
- &:hover {
170
- .count-select {
171
- visibility: visible;
172
- }
173
- }
174
- }
175
- .count-select {
176
- .text-overflow-cut();
177
- display: inline-flex;
178
- align-items: center;
179
- justify-content: flex-end;
180
- height: 100%;
181
- width: 100%;
182
- padding: 0 @--padding-sm;
183
- color: @--text-color-placeholder;
184
- cursor: pointer;
185
- visibility: hidden;
186
- &:hover,
187
- &.ant-dropdown-open {
188
- visibility: visible;
189
- background-color: @--background-color-light;
190
- }
191
- &.show {
192
- visibility: visible;
193
- }
194
- .icon {
195
- margin-left: 4px;
196
- }
197
- }
198
- }
199
- .resize-line {
200
- position: absolute;
201
- left: -2px;
202
- top: 0;
203
- width: 2px;
204
- height: 100%;
205
- background-color: @--primary-color;
206
- cursor: col-resize;
207
- z-index: 2;
208
- }
209
- // size
210
- &.small {
211
- .header .table th,
212
- .footer .table td,
213
- .body .grid-list > li,
214
- .body .group-card > li {
215
- height: 26px;
216
- }
217
- }
218
- &.middle {
219
- .header .table th,
220
- .footer .table td,
221
- .body .grid-list > li,
222
- .body .group-card > li {
223
- height: 34px;
224
- }
225
- }
226
- &.large {
227
- .header .table th,
228
- .footer .table td,
229
- .body .grid-list > li,
230
- .body .group-card > li {
231
- height: 42px;
232
- }
233
- }
234
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2022-03-16 19:05:30
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-11-29 13:20:19
6
+ */
7
+ @import '../../style/common';
8
+
9
+ .@{prefix-pivot-grid}__layout {
10
+ .reset-container();
11
+ height: 100%;
12
+ .header,
13
+ .footer {
14
+ overflow: hidden;
15
+ background-color: #fff;
16
+ border: 1px solid @--border-color-secondary;
17
+ border-radius: @pivot-border-radius;
18
+ .table {
19
+ table-layout: fixed;
20
+ display: contents;
21
+ thead th,
22
+ tfoot td {
23
+ text-align: left;
24
+ font-weight: normal;
25
+ border-right: 1px solid @--border-color-secondary;
26
+ position: relative;
27
+ &.selection-column {
28
+ text-align: center;
29
+ justify-content: center;
30
+ border-right-color: transparent;
31
+ }
32
+ }
33
+ }
34
+ }
35
+ .header {
36
+ position: sticky;
37
+ top: 0;
38
+ z-index: 1;
39
+ .resize-bar {
40
+ position: absolute;
41
+ top: 0;
42
+ bottom: 0;
43
+ right: -3px;
44
+ width: 6px;
45
+ z-index: 2;
46
+ cursor: col-resize;
47
+ }
48
+ }
49
+ .body {
50
+ min-height: fit-content;
51
+ .group-card {
52
+ margin: 15px 0;
53
+ border: 1px solid @--border-color-secondary;
54
+ border-radius: @pivot-border-radius;
55
+ background-color: #fff;
56
+ &.inner {
57
+ margin: 0 12px 12px;
58
+ }
59
+ &:has(.inner) > .label-row > .label-cell {
60
+ border-bottom: 0;
61
+ }
62
+ .label-row {
63
+ display: flex;
64
+ align-items: center;
65
+ .label-cell {
66
+ align-self: stretch;
67
+ display: inline-flex;
68
+ align-items: center;
69
+ border-bottom: 1px solid @--border-color-secondary;
70
+ &.expandable-column {
71
+ justify-content: center;
72
+ .button-icon {
73
+ & > .anticon {
74
+ transition: transform 0.3s ease;
75
+ }
76
+ &.expand > .anticon {
77
+ transform: rotate(90deg);
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ .grid-list {
84
+ margin: 0;
85
+ border: 0;
86
+ border-radius: 0;
87
+ background: transparent;
88
+ }
89
+ }
90
+ .grid-list {
91
+ margin: 15px 0;
92
+ border: 1px solid @--border-color-secondary;
93
+ border-radius: @pivot-border-radius;
94
+ background-color: #fff;
95
+ .table-row {
96
+ display: flex;
97
+ align-items: center;
98
+ &:hover {
99
+ background-color: @--background-color-light;
100
+ .table-cell {
101
+ .order {
102
+ display: none;
103
+ }
104
+ .checkbox {
105
+ display: inline-flex;
106
+ }
107
+ }
108
+ }
109
+ &.row--selection {
110
+ background-color: @--primary-1;
111
+ .table-cell {
112
+ .order {
113
+ display: none;
114
+ }
115
+ .checkbox {
116
+ display: inline-flex;
117
+ }
118
+ }
119
+ }
120
+ .table-cell {
121
+ align-self: stretch; // 子元素高度和父元素一致
122
+ display: inline-flex;
123
+ align-items: center;
124
+ border-right: 1px solid @--border-color-secondary;
125
+ border-bottom: 1px solid @--border-color-secondary;
126
+ &:last-child {
127
+ border-right: 0;
128
+ }
129
+ &.selection-column {
130
+ justify-content: center;
131
+ border-right-color: transparent;
132
+ }
133
+ .order {
134
+ display: inline-block;
135
+ }
136
+ .checkbox {
137
+ display: none;
138
+ }
139
+ }
140
+ &:last-child {
141
+ .table-cell {
142
+ border-bottom: 0;
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ .footer {
149
+ position: sticky;
150
+ bottom: 0;
151
+ z-index: 1;
152
+ }
153
+ .header,
154
+ .body,
155
+ .footer {
156
+ .table-cell {
157
+ &.col--center {
158
+ text-align: center !important;
159
+ justify-content: center;
160
+ }
161
+ &.col--right {
162
+ text-align: right !important;
163
+ justify-content: flex-end;
164
+ }
165
+ .cell {
166
+ .text-overflow-cut();
167
+ padding: 0 @--padding-sm;
168
+ }
169
+ &:hover {
170
+ .count-select {
171
+ visibility: visible;
172
+ }
173
+ }
174
+ }
175
+ .count-select {
176
+ .text-overflow-cut();
177
+ display: inline-flex;
178
+ align-items: center;
179
+ justify-content: flex-end;
180
+ height: 100%;
181
+ width: 100%;
182
+ padding: 0 @--padding-sm;
183
+ color: @--text-color-placeholder;
184
+ cursor: pointer;
185
+ visibility: hidden;
186
+ &:hover,
187
+ &.ant-dropdown-open {
188
+ visibility: visible;
189
+ background-color: @--background-color-light;
190
+ }
191
+ &.show {
192
+ visibility: visible;
193
+ }
194
+ .icon {
195
+ margin-left: 4px;
196
+ }
197
+ }
198
+ }
199
+ .resize-line {
200
+ position: absolute;
201
+ left: -2px;
202
+ top: 0;
203
+ width: 2px;
204
+ height: 100%;
205
+ background-color: @--primary-color;
206
+ cursor: col-resize;
207
+ z-index: 2;
208
+ }
209
+ // size
210
+ &.small {
211
+ .header .table th,
212
+ .footer .table td,
213
+ .body .grid-list > li,
214
+ .body .group-card > li {
215
+ height: 26px;
216
+ }
217
+ }
218
+ &.middle {
219
+ .header .table th,
220
+ .footer .table td,
221
+ .body .grid-list > li,
222
+ .body .group-card > li {
223
+ height: 34px;
224
+ }
225
+ }
226
+ &.large {
227
+ .header .table th,
228
+ .footer .table td,
229
+ .body .grid-list > li,
230
+ .body .group-card > li {
231
+ height: 42px;
232
+ }
233
+ }
234
+ }
@@ -1,43 +1,43 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2022-03-16 19:05:30
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-11-29 10:33:42
6
- */
7
- @import '../../style/common';
8
-
9
- .@{prefix-pivot-grid}__main {
10
- height: 100%;
11
- display: flex;
12
- flex-direction: column;
13
- .top-bar {
14
- padding: @--padding-sm;
15
- border-bottom: 1px solid @--border-color-secondary;
16
- .action-btn {
17
- display: inline-flex;
18
- align-items: center;
19
- padding: 5px 12px;
20
- border-radius: @--border-radius-lg;
21
- cursor: pointer;
22
- transition: all 0.3s ease;
23
- &:hover,
24
- &.active,
25
- &.ant-dropdown-open {
26
- background-color: @--background-color;
27
- }
28
- .icon {
29
- margin-right: 6px;
30
- }
31
- }
32
- .ant-divider-vertical {
33
- margin: 0;
34
- height: 1.25em;
35
- }
36
- }
37
- .wrapper {
38
- flex: auto;
39
- height: 0;
40
- padding: @--padding-md;
41
- background-color: @--background-color-light;
42
- }
43
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2022-03-16 19:05:30
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-11-29 10:33:42
6
+ */
7
+ @import '../../style/common';
8
+
9
+ .@{prefix-pivot-grid}__main {
10
+ height: 100%;
11
+ display: flex;
12
+ flex-direction: column;
13
+ .top-bar {
14
+ padding: @--padding-sm;
15
+ border-bottom: 1px solid @--border-color-secondary;
16
+ .action-btn {
17
+ display: inline-flex;
18
+ align-items: center;
19
+ padding: 5px 12px;
20
+ border-radius: @--border-radius-lg;
21
+ cursor: pointer;
22
+ transition: all 0.3s ease;
23
+ &:hover,
24
+ &.active,
25
+ &.ant-dropdown-open {
26
+ background-color: @--background-color;
27
+ }
28
+ .icon {
29
+ margin-right: 6px;
30
+ }
31
+ }
32
+ .ant-divider-vertical {
33
+ margin: 0;
34
+ height: 1.25em;
35
+ }
36
+ }
37
+ .wrapper {
38
+ flex: auto;
39
+ height: 0;
40
+ padding: @--padding-md;
41
+ background-color: @--background-color-light;
42
+ }
43
+ }