@aloudata/aloudata-design 2.0.0-beta.1 → 2.0.0-beta.10
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/dist/Avatar/component/Avatar/index.js +9 -7
- package/dist/Avatar/style/index.less +8 -1
- package/dist/Button/style/variables.less +8 -5
- package/dist/Checkbox/index.js +10 -4
- package/dist/Checkbox/style/index.less +12 -0
- package/dist/Checkbox/type.d.ts +11 -0
- package/dist/ColorPicker/style/index.less +1 -2
- package/dist/DataPreviewTable/constant.d.ts +1 -1
- package/dist/DataPreviewTable/constant.js +1 -1
- package/dist/DataPreviewTable/style/index.less +11 -11
- package/dist/Dropdown/style/index.less +3 -2
- package/dist/Empty/image/Search.js +2 -2
- package/dist/Empty/image/SearchSmall.js +2 -2
- package/dist/Empty/index.js +2 -1
- package/dist/Empty/style/index.less +2 -1
- package/dist/Form/style/index.less +27 -6
- package/dist/Icon/components/CloseCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseCircleLightLine.js +35 -0
- package/dist/Icon/components/User.d.ts +11 -0
- package/dist/Icon/components/User.js +41 -0
- package/dist/Icon/components/UserGroup.d.ts +11 -0
- package/dist/Icon/components/UserGroup.js +39 -0
- package/dist/Icon/index.d.ts +3 -0
- package/dist/Icon/index.js +4 -1
- package/dist/Icon/svg/Close-Circle-light-line.svg +5 -0
- package/dist/Icon/svg/check-circle-light-line.svg +1 -1
- package/dist/Icon/svg/information-circle-light-line.svg +1 -1
- package/dist/Icon/svg/user.svg +4 -0
- package/dist/Icon/svg/userGroup.svg +7 -0
- package/dist/InputNumber/style/index.less +12 -9
- package/dist/MemberPicker/components/MultipleOption.js +4 -3
- package/dist/MemberPicker/components/NickLabel.d.ts +2 -0
- package/dist/MemberPicker/components/NickLabel.js +8 -2
- package/dist/MemberPicker/components/Panel.js +2 -2
- package/dist/MemberPicker/components/SelectedMemberTags.js +4 -1
- package/dist/MemberPicker/components/SingleOption.js +1 -0
- package/dist/MemberPicker/index.js +2 -0
- package/dist/MemberPicker/interface.d.ts +1 -0
- package/dist/MemberPicker/style/index.less +36 -28
- package/dist/Menu/style/index.less +1 -2
- package/dist/Navigator/style/index.less +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +7 -1
- package/dist/Pagination/types.d.ts +1 -0
- package/dist/Popconfirm/index.js +2 -2
- package/dist/Popconfirm/style/index.less +49 -13
- package/dist/ScrollArea/index.d.ts +1 -0
- package/dist/ScrollArea/index.js +5 -2
- package/dist/ScrollArea/style/index.less +5 -0
- package/dist/Select/index.js +3 -1
- package/dist/Select/style/index.less +21 -9
- package/dist/Select/style/layout.less +7 -5
- package/dist/Select/style/selectDropdown.less +1 -2
- package/dist/Select/style/size.less +239 -20
- package/dist/Select/style/variables.less +6 -3
- package/dist/Skeleton/style/index.less +84 -4
- package/dist/Spin/index.js +2 -3
- package/dist/Spin/style/index.less +8 -0
- package/dist/Table/components/Pagination/index.js +3 -1
- package/dist/Table/index.js +18 -3
- package/dist/Table/style/index.less +12 -6
- package/dist/Table/types.d.ts +1 -0
- package/dist/Tabs/index.d.ts +5 -0
- package/dist/Tabs/index.js +5 -2
- package/dist/Tabs/style/index.less +9 -2
- package/dist/TextLink/index.js +3 -2
- package/dist/TextLink/style/index.less +5 -0
- package/dist/TextLink/style/type.less +2 -2
- package/dist/Tree/DirectoryTree.js +0 -12
- package/dist/Tree/Tree.js +2 -2
- package/dist/Tree/demo/directoryTree/index.d.ts +3 -0
- package/dist/Tree/demo/directoryTree/index.js +44 -0
- package/dist/Tree/style/index.less +31 -12
- package/dist/Tree/style/mixin.less +3 -5
- package/dist/Tree/style/reset.less +15 -0
- package/dist/ald.min.css +1 -1
- package/dist/notification/demo/footer.d.ts +3 -0
- package/dist/notification/demo/footer.js +44 -0
- package/dist/notification/index.js +77 -48
- package/dist/notification/style/index.less +49 -11
- package/dist/style/themes/default/index.less +1 -1
- package/package.json +1 -1
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
align-items: center;
|
|
48
48
|
transition: none;
|
|
49
49
|
padding-right: 0;
|
|
50
|
+
padding-top: 0;
|
|
51
|
+
padding-bottom: 0;
|
|
52
|
+
position: relative;
|
|
50
53
|
|
|
51
54
|
.ant-select-selection-search {
|
|
52
55
|
display: flex;
|
|
@@ -59,14 +62,21 @@
|
|
|
59
62
|
// 多选中存在这个样式
|
|
60
63
|
.ant-select-selection-overflow {
|
|
61
64
|
align-self: normal;
|
|
65
|
+
flex-wrap: nowrap;
|
|
66
|
+
margin-left: 6px;
|
|
67
|
+
min-width: 52px;
|
|
68
|
+
height: 100%;
|
|
62
69
|
|
|
63
70
|
.ant-select-selection-overflow-item {
|
|
64
71
|
align-items: center;
|
|
65
72
|
line-height: inherit;
|
|
66
|
-
|
|
73
|
+
flex: 1;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
// height: 100%;
|
|
67
76
|
|
|
68
77
|
& > span {
|
|
69
78
|
display: inline-flex;
|
|
79
|
+
min-width: 0;
|
|
70
80
|
}
|
|
71
81
|
|
|
72
82
|
.ant-select-selection-item {
|
|
@@ -89,6 +99,8 @@
|
|
|
89
99
|
}
|
|
90
100
|
|
|
91
101
|
&.ant-select-selection-overflow-item-rest {
|
|
102
|
+
flex: none;
|
|
103
|
+
|
|
92
104
|
.ant-select-selection-item {
|
|
93
105
|
border: none;
|
|
94
106
|
background: none;
|
|
@@ -111,10 +123,16 @@
|
|
|
111
123
|
}
|
|
112
124
|
}
|
|
113
125
|
|
|
126
|
+
&.ant-select-selection-overflow-item-suffix {
|
|
127
|
+
flex: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
114
130
|
.ald-select-multiple-tag-default {
|
|
115
131
|
color: inherit;
|
|
116
|
-
|
|
117
|
-
|
|
132
|
+
min-width: 0;
|
|
133
|
+
white-space: nowrap;
|
|
134
|
+
text-overflow: ellipsis;
|
|
135
|
+
overflow: hidden;
|
|
118
136
|
}
|
|
119
137
|
|
|
120
138
|
.ant-select-selection-search-input {
|
|
@@ -123,12 +141,6 @@
|
|
|
123
141
|
caret-color: var(--alias-colors-text-selected, #126fdd);
|
|
124
142
|
}
|
|
125
143
|
}
|
|
126
|
-
|
|
127
|
-
.ant-select-selection-overflow-item:first-of-type {
|
|
128
|
-
.ald-select-multiple-tag-default::before {
|
|
129
|
-
content: '';
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
144
|
}
|
|
133
145
|
|
|
134
146
|
.ant-select-selection-placeholder {
|
|
@@ -12,17 +12,20 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ant-select-arrow {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
top: 0;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
margin: auto;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.ant-select-clear {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
margin: auto;
|
|
20
25
|
transform: none;
|
|
21
26
|
opacity: 1;
|
|
22
27
|
align-items: center;
|
|
23
28
|
flex: none;
|
|
24
|
-
position: relative;
|
|
25
|
-
margin-left: 8px;
|
|
26
29
|
right: 0;
|
|
27
30
|
|
|
28
31
|
&::before {
|
|
@@ -30,7 +33,6 @@
|
|
|
30
33
|
top: 0;
|
|
31
34
|
bottom: 0;
|
|
32
35
|
margin: auto 0;
|
|
33
|
-
left: -8px;
|
|
34
36
|
content: '';
|
|
35
37
|
height: 14px;
|
|
36
38
|
width: 1px;
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
overflow-y: overlay;
|
|
11
11
|
border: 1px solid var(--alias-colors-border-strong, #d1d5db);
|
|
12
12
|
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
13
|
-
box-shadow: 0
|
|
14
|
-
0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
|
|
13
|
+
box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
|
|
15
14
|
padding: 4px 0;
|
|
16
15
|
}
|
|
17
16
|
}
|
|
@@ -26,14 +26,13 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.ant-select {
|
|
29
|
-
padding-right: @select-padding-horizontal-small;
|
|
30
|
-
|
|
31
29
|
.ant-select-selector {
|
|
32
30
|
height: @selector-height-small;
|
|
33
31
|
line-height: @selector-height-small;
|
|
34
32
|
padding-left: calc(
|
|
35
33
|
@select-padding-horizontal-small + var(--ald-select-prefix-width)
|
|
36
34
|
);
|
|
35
|
+
padding-right: @select-padding-horizontal-small;
|
|
37
36
|
|
|
38
37
|
.ant-select-selection-item {
|
|
39
38
|
line-height: inherit;
|
|
@@ -59,15 +58,89 @@
|
|
|
59
58
|
);
|
|
60
59
|
}
|
|
61
60
|
}
|
|
61
|
+
|
|
62
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
63
|
+
.ant-select-selector {
|
|
64
|
+
padding-right: calc(
|
|
65
|
+
@select-padding-horizontal-small + @select-icon-use-width-small
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ant-select-arrow {
|
|
71
|
+
right: @select-padding-horizontal-small;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ant-select-clear {
|
|
75
|
+
right: @select-padding-horizontal-small;
|
|
76
|
+
|
|
77
|
+
&::before {
|
|
78
|
+
left: -@selector-gap-small;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
62
81
|
}
|
|
63
82
|
|
|
64
83
|
.ald-select-prefix-select {
|
|
84
|
+
// 单选值容器
|
|
65
85
|
.ant-select-selection-item {
|
|
66
|
-
margin-left: @selector-
|
|
86
|
+
margin-left: @selector-gap-small;
|
|
87
|
+
}
|
|
88
|
+
// 多选值容器
|
|
89
|
+
.ant-select-selection-overflow {
|
|
90
|
+
margin-left: @selector-gap-small;
|
|
67
91
|
}
|
|
68
92
|
|
|
69
93
|
.ant-select-selection-placeholder {
|
|
70
|
-
margin-left: @selector-
|
|
94
|
+
margin-left: @selector-gap-small;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.ald-select-has-value {
|
|
99
|
+
.ant-select {
|
|
100
|
+
&.ant-select-allow-clear:not(.ant-select-show-arrow),
|
|
101
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
102
|
+
.ant-select-selector {
|
|
103
|
+
padding-right: calc(
|
|
104
|
+
@select-padding-horizontal-small + @select-icon-use-width-small
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ant-select-arrow {
|
|
109
|
+
right: @select-padding-horizontal-small;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ant-select-clear {
|
|
113
|
+
right: @select-padding-horizontal-small;
|
|
114
|
+
|
|
115
|
+
&::before {
|
|
116
|
+
left: -@selector-gap-small;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&.ant-select-show-arrow.ant-select-allow-clear {
|
|
122
|
+
.ant-select-selector {
|
|
123
|
+
padding-right: calc(
|
|
124
|
+
@select-padding-horizontal-small + @selector-gap-small +
|
|
125
|
+
@select-icon-use-width-small + @select-icon-use-width-small
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ant-select-arrow {
|
|
130
|
+
right: calc(
|
|
131
|
+
@select-padding-horizontal-small + @select-icon-use-width-small +
|
|
132
|
+
@selector-gap-small
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ant-select-clear {
|
|
137
|
+
right: @select-padding-horizontal-small;
|
|
138
|
+
|
|
139
|
+
&::before {
|
|
140
|
+
left: -@selector-gap-small;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
71
144
|
}
|
|
72
145
|
}
|
|
73
146
|
}
|
|
@@ -83,14 +156,13 @@
|
|
|
83
156
|
}
|
|
84
157
|
|
|
85
158
|
.ant-select {
|
|
86
|
-
padding-right: @select-padding-horizontal-middle;
|
|
87
|
-
|
|
88
159
|
.ant-select-selector {
|
|
89
160
|
height: @selector-height-middle;
|
|
90
161
|
line-height: @selector-height-middle;
|
|
91
162
|
padding-left: calc(
|
|
92
163
|
@select-padding-horizontal-middle + var(--ald-select-prefix-width)
|
|
93
164
|
);
|
|
165
|
+
padding-right: @select-padding-horizontal-middle;
|
|
94
166
|
|
|
95
167
|
.ant-select-selection-item {
|
|
96
168
|
font-size: @select-font-size-middle;
|
|
@@ -116,15 +188,89 @@
|
|
|
116
188
|
);
|
|
117
189
|
}
|
|
118
190
|
}
|
|
191
|
+
|
|
192
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
193
|
+
.ant-select-selector {
|
|
194
|
+
padding-right: calc(
|
|
195
|
+
@select-padding-horizontal-middle + @select-icon-use-width-middle
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.ant-select-arrow {
|
|
201
|
+
right: @select-padding-horizontal-middle;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.ant-select-clear {
|
|
205
|
+
right: @select-padding-horizontal-middle;
|
|
206
|
+
|
|
207
|
+
&::before {
|
|
208
|
+
left: -@selector-gap-middle;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
119
211
|
}
|
|
120
212
|
|
|
121
213
|
.ald-select-prefix-select {
|
|
214
|
+
// 单选值容器
|
|
122
215
|
.ant-select-selection-item {
|
|
123
|
-
margin-left: @selector-
|
|
216
|
+
margin-left: @selector-gap-middle;
|
|
217
|
+
}
|
|
218
|
+
// 多选值容器
|
|
219
|
+
.ant-select-selection-overflow {
|
|
220
|
+
margin-left: @selector-gap-middle;
|
|
124
221
|
}
|
|
125
222
|
|
|
126
223
|
.ant-select-selection-placeholder {
|
|
127
|
-
margin-left: @selector-
|
|
224
|
+
margin-left: @selector-gap-middle;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&.ald-select-has-value {
|
|
229
|
+
.ant-select {
|
|
230
|
+
&.ant-select-allow-clear:not(.ant-select-show-arrow),
|
|
231
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
232
|
+
.ant-select-selector {
|
|
233
|
+
padding-right: calc(
|
|
234
|
+
@select-padding-horizontal-middle + @select-icon-use-width-middle
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ant-select-arrow {
|
|
239
|
+
right: @select-padding-horizontal-middle;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.ant-select-clear {
|
|
243
|
+
right: @select-padding-horizontal-middle;
|
|
244
|
+
|
|
245
|
+
&::before {
|
|
246
|
+
left: -@selector-gap-middle;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&.ant-select-show-arrow.ant-select-allow-clear {
|
|
252
|
+
.ant-select-selector {
|
|
253
|
+
padding-right: calc(
|
|
254
|
+
@select-padding-horizontal-middle + @selector-gap-middle +
|
|
255
|
+
@select-icon-use-width-middle + @select-icon-use-width-middle
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.ant-select-arrow {
|
|
260
|
+
right: calc(
|
|
261
|
+
@select-padding-horizontal-middle + @select-icon-use-width-middle +
|
|
262
|
+
@selector-gap-middle
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ant-select-clear {
|
|
267
|
+
right: @select-padding-horizontal-middle;
|
|
268
|
+
|
|
269
|
+
&::before {
|
|
270
|
+
left: -@selector-gap-middle;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
128
274
|
}
|
|
129
275
|
}
|
|
130
276
|
}
|
|
@@ -140,14 +286,13 @@
|
|
|
140
286
|
}
|
|
141
287
|
|
|
142
288
|
.ant-select {
|
|
143
|
-
padding-right: @select-padding-horizontal-large;
|
|
144
|
-
|
|
145
289
|
.ant-select-selector {
|
|
146
290
|
height: @selector-height-large;
|
|
147
291
|
line-height: @selector-height-large;
|
|
148
292
|
padding-left: calc(
|
|
149
293
|
@select-padding-horizontal-large + var(--ald-select-prefix-width)
|
|
150
294
|
);
|
|
295
|
+
padding-right: @select-padding-horizontal-large;
|
|
151
296
|
|
|
152
297
|
.ant-select-selection-item {
|
|
153
298
|
font-size: @select-font-size-large;
|
|
@@ -172,6 +317,90 @@
|
|
|
172
317
|
@select-padding-horizontal-large + var(--ald-select-prefix-width)
|
|
173
318
|
);
|
|
174
319
|
}
|
|
320
|
+
|
|
321
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
322
|
+
.ant-select-selector {
|
|
323
|
+
padding-right: calc(
|
|
324
|
+
@select-padding-horizontal-large + @select-icon-use-width-large
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.ant-select-arrow {
|
|
330
|
+
right: @select-padding-horizontal-large;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.ant-select-clear {
|
|
334
|
+
right: @select-padding-horizontal-large;
|
|
335
|
+
|
|
336
|
+
&::before {
|
|
337
|
+
left: -@selector-gap-large;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.ald-select-prefix-select {
|
|
344
|
+
// 单选值容器
|
|
345
|
+
.ant-select-selection-item {
|
|
346
|
+
margin-left: @selector-gap-large;
|
|
347
|
+
}
|
|
348
|
+
// 多选值容器
|
|
349
|
+
.ant-select-selection-overflow {
|
|
350
|
+
margin-left: @selector-gap-large;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.ant-select-selection-placeholder {
|
|
354
|
+
margin-left: @selector-gap-large;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
&.ald-select-has-value {
|
|
359
|
+
.ant-select {
|
|
360
|
+
&.ant-select-allow-clear:not(.ant-select-show-arrow),
|
|
361
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
362
|
+
.ant-select-selector {
|
|
363
|
+
padding-right: calc(
|
|
364
|
+
@select-padding-horizontal-large + @select-icon-use-width-large
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.ant-select-arrow {
|
|
369
|
+
right: @select-padding-horizontal-large;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.ant-select-clear {
|
|
373
|
+
right: @select-padding-horizontal-large;
|
|
374
|
+
|
|
375
|
+
&::before {
|
|
376
|
+
left: -@selector-gap-large;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&.ant-select-show-arrow.ant-select-allow-clear {
|
|
382
|
+
.ant-select-selector {
|
|
383
|
+
padding-right: calc(
|
|
384
|
+
@select-padding-horizontal-large + @selector-gap-large +
|
|
385
|
+
@select-icon-use-width-large + @select-icon-use-width-large
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.ant-select-arrow {
|
|
390
|
+
right: calc(
|
|
391
|
+
@select-padding-horizontal-large + @select-icon-use-width-large +
|
|
392
|
+
@selector-gap-large
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.ant-select-clear {
|
|
397
|
+
right: @select-padding-horizontal-large;
|
|
398
|
+
|
|
399
|
+
&::before {
|
|
400
|
+
left: -@selector-gap-large;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
175
404
|
}
|
|
176
405
|
}
|
|
177
406
|
}
|
|
@@ -187,16 +416,6 @@
|
|
|
187
416
|
margin-top: 0;
|
|
188
417
|
}
|
|
189
418
|
|
|
190
|
-
.ald-select-prefix-select {
|
|
191
|
-
.ant-select-selection-item {
|
|
192
|
-
margin-left: @selector-item-margin-left-large;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.ant-select-selection-placeholder {
|
|
196
|
-
margin-left: @selector-item-margin-left-large;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
419
|
&.ald-select-primary {
|
|
201
420
|
font-weight: 500;
|
|
202
421
|
}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
@select-line-height-large: 24px;
|
|
8
8
|
@select-padding-horizontal-large: var(--alias-padding-150-minus-1, 12px);
|
|
9
9
|
@selector-height-large: 34px;
|
|
10
|
-
@selector-
|
|
10
|
+
@selector-gap-large: 8px;
|
|
11
|
+
@select-icon-use-width-large: 24px; //16+8
|
|
11
12
|
|
|
12
13
|
// medium size
|
|
13
14
|
@select-height-middle: 32px;
|
|
@@ -16,7 +17,8 @@
|
|
|
16
17
|
@select-line-height-middle: 20px;
|
|
17
18
|
@select-padding-horizontal-middle: var(--alias-padding-150-minus-1, 12px);
|
|
18
19
|
@selector-height-middle: 30px;
|
|
19
|
-
@selector-
|
|
20
|
+
@selector-gap-middle: 6px;
|
|
21
|
+
@select-icon-use-width-middle: 22px; //16+6
|
|
20
22
|
|
|
21
23
|
// small size
|
|
22
24
|
@select-height-small: 28px;
|
|
@@ -25,4 +27,5 @@
|
|
|
25
27
|
@select-line-height-small: 16px;
|
|
26
28
|
@select-padding-horizontal-small: var(--alias-padding-150-minus-1, 12px);
|
|
27
29
|
@selector-height-small: 26px;
|
|
28
|
-
@selector-
|
|
30
|
+
@selector-gap-small: 4px;
|
|
31
|
+
@select-icon-use-width-small: 20px; //16+4
|
|
@@ -1,11 +1,91 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
3
|
.ant-skeleton .ant-skeleton-content .ant-skeleton-title[class][class] {
|
|
4
|
-
height:
|
|
5
|
-
|
|
4
|
+
height: 16px;
|
|
5
|
+
border-radius: var(--alias-radius-75, 6px);
|
|
6
|
+
background: linear-gradient(
|
|
7
|
+
90deg,
|
|
8
|
+
#f2f4f7 -0.95%,
|
|
9
|
+
#e5e7eb 24.29%,
|
|
10
|
+
#f2f4f7 48.47%,
|
|
11
|
+
#e5e7eb 69.5%,
|
|
12
|
+
#f2f4f7 96.32%
|
|
13
|
+
);
|
|
6
14
|
}
|
|
7
15
|
|
|
8
16
|
.ant-skeleton .ant-skeleton-content .ant-skeleton-paragraph[class][class] > li {
|
|
9
|
-
height:
|
|
10
|
-
|
|
17
|
+
height: 16px;
|
|
18
|
+
border-radius: var(--alias-radius-75, 6px);
|
|
19
|
+
background: linear-gradient(
|
|
20
|
+
90deg,
|
|
21
|
+
#f2f4f7 -0.95%,
|
|
22
|
+
#e5e7eb 24.29%,
|
|
23
|
+
#f2f4f7 48.47%,
|
|
24
|
+
#e5e7eb 69.5%,
|
|
25
|
+
#f2f4f7 96.32%
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ant-skeleton.ant-skeleton.ant-skeleton.ant-skeleton-active .ant-skeleton-title,
|
|
30
|
+
.ant-skeleton.ant-skeleton.ant-skeleton.ant-skeleton-active
|
|
31
|
+
.ant-skeleton-paragraph
|
|
32
|
+
> li,
|
|
33
|
+
.ant-skeleton.ant-skeleton.ant-skeleton.ant-skeleton-active
|
|
34
|
+
.ant-skeleton-avatar,
|
|
35
|
+
.ant-skeleton.ant-skeleton.ant-skeleton.ant-skeleton-active
|
|
36
|
+
.ant-skeleton-button,
|
|
37
|
+
.ant-skeleton.ant-skeleton.ant-skeleton.ant-skeleton-active .ant-skeleton-input,
|
|
38
|
+
.ant-skeleton.ant-skeleton.ant-skeleton.ant-skeleton-active
|
|
39
|
+
.ant-skeleton-image {
|
|
40
|
+
background: linear-gradient(
|
|
41
|
+
90deg,
|
|
42
|
+
rgba(0, 0, 0, 0.06) 25%,
|
|
43
|
+
rgba(0, 0, 0, 0.15) 37%,
|
|
44
|
+
rgba(0, 0, 0, 0.06) 63%
|
|
45
|
+
);
|
|
46
|
+
background-size: 400% 100%;
|
|
47
|
+
animation-name: ald-skeleton-loading;
|
|
48
|
+
animation-duration: 1.4s;
|
|
49
|
+
animation-timing-function: ease;
|
|
50
|
+
animation-iteration-count: infinite;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@keyframes ald-skeleton-loading {
|
|
54
|
+
0% {
|
|
55
|
+
background-position: 100% 50%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
100% {
|
|
59
|
+
background-position: 0 50%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ant-skeleton.ant-skeleton.ant-skeleton-element {
|
|
64
|
+
.ant-skeleton-button,
|
|
65
|
+
.ant-skeleton-input {
|
|
66
|
+
height: 14px;
|
|
67
|
+
|
|
68
|
+
&-lg {
|
|
69
|
+
height: 16px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&-sm {
|
|
73
|
+
height: 12px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ant-skeleton-avatar.ant-skeleton-avatar {
|
|
78
|
+
width: 32px; //36 28
|
|
79
|
+
height: 32px;
|
|
80
|
+
|
|
81
|
+
&-lg {
|
|
82
|
+
width: 36px;
|
|
83
|
+
height: 36px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-sm {
|
|
87
|
+
width: 28px;
|
|
88
|
+
height: 28px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
11
91
|
}
|
package/dist/Spin/index.js
CHANGED
|
@@ -16,14 +16,13 @@ function CustomSpin(props) {
|
|
|
16
16
|
if (size === 'middle') {
|
|
17
17
|
spinSize = 'default';
|
|
18
18
|
}
|
|
19
|
-
return /*#__PURE__*/React.createElement(Spin, _extends({
|
|
19
|
+
return /*#__PURE__*/React.createElement(Spin, _extends({}, restProps, {
|
|
20
20
|
className: classNames('ald-spin', props.className),
|
|
21
21
|
indicator: /*#__PURE__*/React.createElement(CustomIcon, {
|
|
22
22
|
size: props.size,
|
|
23
23
|
tip: tip,
|
|
24
24
|
direction: direction
|
|
25
|
-
})
|
|
26
|
-
}, restProps, {
|
|
25
|
+
}),
|
|
27
26
|
tip: null,
|
|
28
27
|
size: spinSize
|
|
29
28
|
}));
|
|
@@ -20,7 +20,9 @@ export default function TablePagination(props) {
|
|
|
20
20
|
}, [scrollToFirstRow, scroll, pagination]);
|
|
21
21
|
return pagination && /*#__PURE__*/React.createElement("div", {
|
|
22
22
|
className: prefixCls('pagination')
|
|
23
|
-
}, /*#__PURE__*/React.createElement(Pagination, _extends({
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Pagination, _extends({
|
|
24
|
+
hideOnSinglePage: true
|
|
25
|
+
}, pagination, {
|
|
24
26
|
onChange: onChangePage
|
|
25
27
|
})));
|
|
26
28
|
}
|
package/dist/Table/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import Pagination from "./components/Pagination";
|
|
|
18
18
|
import { getTableColumns, prefixCls } from "./helper";
|
|
19
19
|
import useScrollX from "./hooks/useScroll";
|
|
20
20
|
// 32 行高 + 1 底线高度
|
|
21
|
-
var HEADER_HEIGHT =
|
|
21
|
+
var HEADER_HEIGHT = 41;
|
|
22
22
|
function Table(props, ref) {
|
|
23
23
|
var _classnames;
|
|
24
24
|
var columns = props.columns,
|
|
@@ -34,7 +34,8 @@ function Table(props, ref) {
|
|
|
34
34
|
_props$rowClassName = props.rowClassName,
|
|
35
35
|
rowClassName = _props$rowClassName === void 0 ? function () {
|
|
36
36
|
return '';
|
|
37
|
-
} : _props$rowClassName
|
|
37
|
+
} : _props$rowClassName,
|
|
38
|
+
onRowClick = props.onRowClick;
|
|
38
39
|
var _useState = useState(null),
|
|
39
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
40
41
|
totalSize = _useState2[0],
|
|
@@ -117,6 +118,19 @@ function Table(props, ref) {
|
|
|
117
118
|
}));
|
|
118
119
|
}));
|
|
119
120
|
}));
|
|
121
|
+
var onClickRow = useCallback(function (rowData, rowIndex) {
|
|
122
|
+
return function () {
|
|
123
|
+
var _window$getSelection;
|
|
124
|
+
if (typeof onRowClick !== 'function') {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 ? void 0 : _window$getSelection.toString().length) !== 0) {
|
|
128
|
+
// 防止选择文本时触发 onRowClick
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
onRowClick(rowData, rowIndex);
|
|
132
|
+
};
|
|
133
|
+
}, [onRowClick]);
|
|
120
134
|
|
|
121
135
|
// 渲染 body
|
|
122
136
|
var bodyContent = /*#__PURE__*/React.createElement(Spin, {
|
|
@@ -135,7 +149,8 @@ function Table(props, ref) {
|
|
|
135
149
|
})) : _.map(rows, function (row, rowIndex) {
|
|
136
150
|
return /*#__PURE__*/React.createElement("div", {
|
|
137
151
|
key: row.id,
|
|
138
|
-
className: classnames(prefixCls('tr'), rowClassName(row.original, rowIndex))
|
|
152
|
+
className: classnames(prefixCls('tr'), _defineProperty({}, prefixCls('row-hover'), typeof onRowClick === 'function'), rowClassName(row.original, rowIndex)),
|
|
153
|
+
onClick: onClickRow(row.original, rowIndex)
|
|
139
154
|
}, _.map(row.getVisibleCells(), function (cell) {
|
|
140
155
|
return /*#__PURE__*/React.createElement("div", {
|
|
141
156
|
className: prefixCls('td'),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@import '../../Pagination/style/index.less';
|
|
3
3
|
@import '../../Spin/style/index.less';
|
|
4
4
|
@import '../../ScrollArea/style/index.less';
|
|
5
|
+
@import '../../Empty/style/index.less';
|
|
5
6
|
|
|
6
7
|
.ald-table-container {
|
|
7
8
|
position: relative;
|
|
@@ -104,12 +105,16 @@
|
|
|
104
105
|
min-height: 200px;
|
|
105
106
|
overflow: auto;
|
|
106
107
|
|
|
107
|
-
.ald-table-tr
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
.ald-table-tr {
|
|
109
|
+
&.ald-table-row-hover:hover {
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
|
|
112
|
+
.ald-table-td {
|
|
113
|
+
background-color: var(
|
|
114
|
+
--alias-colors-bg-interaction-hover,
|
|
115
|
+
rgba(0, 0, 0, 0.05)
|
|
116
|
+
);
|
|
117
|
+
}
|
|
113
118
|
}
|
|
114
119
|
}
|
|
115
120
|
}
|
|
@@ -160,4 +165,5 @@
|
|
|
160
165
|
|
|
161
166
|
.ald-table-empty {
|
|
162
167
|
margin-top: 80px;
|
|
168
|
+
overflow: hidden;
|
|
163
169
|
}
|