@aloudata/aloudata-design 1.6.1 → 1.6.2

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.
@@ -19,9 +19,9 @@ import classNames from 'classnames';
19
19
  import React, { useContext } from 'react';
20
20
  import { ConfigContext } from "../ConfigProvider";
21
21
  import SizeContext from "../ConfigProvider/sizeContext";
22
- var ICON_LARGE = 20;
23
- var ICON_MIDDLE = 16;
24
- var ICON_SMALL = 14;
22
+ var ICON_LARGE = 24;
23
+ var ICON_MIDDLE = 20;
24
+ var ICON_SMALL = 16;
25
25
  export var btnPrefix = 'ald-btn';
26
26
  export function getButtonType(buttonType) {
27
27
  if (!['primary', 'secondary', 'dangerous', 'text', 'link'].includes(buttonType)) {
@@ -1,320 +1,4 @@
1
1
  @import '../../style/index.less';
2
2
  @import './variables.less';
3
-
4
- .ant-btn.ald-btn {
5
- &.ald-btn {
6
- // &-loading::before{
7
- // // display: none !important;
8
- // }
9
-
10
- &-primary,
11
- &-dangerous,
12
- &-secondary,
13
- &-text,
14
- &-link {
15
- display: inline-flex;
16
- align-items: center;
17
- justify-content: center;
18
- font-weight: 600;
19
- font-size: 12px;
20
- text-shadow: none;
21
- text-decoration: none;
22
-
23
- /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
24
- &:focus-visible {
25
- outline: none;
26
- }
27
- }
28
-
29
- &.ant-btn-loading::before {
30
- display: none;
31
- }
32
-
33
- &-primary {
34
- color: @button-primary-color;
35
- background-color: @button-primary-bg-color;
36
- border-color: @button-primary-bg-color;
37
- box-shadow: none;
38
-
39
- &:focus {
40
- //text-shadow: @text-shadow;
41
- color: @button-primary-color;
42
- background-color: @button-primary-bg-color;
43
- border-color: @button-primary-bg-color;
44
- box-shadow: none;
45
- }
46
-
47
- &:hover,
48
- &:active {
49
- color: @button-primary-color-active;
50
- background-color: @button-primary-bg-color-active;
51
- border-color: @button-primary-bg-color-active;
52
- }
53
-
54
- &.ant-btn-loading,
55
- &[disabled] {
56
- color: @button-primary-color-disable;
57
- background-color: @button-primary-bg-color-disable;
58
- border-color: @button-primary-bg-color-disable;
59
- cursor: default;
60
- opacity: 0.5;
61
-
62
- &:hover,
63
- &:focus,
64
- &:active {
65
- color: @button-primary-color-disable;
66
- background-color: @button-primary-bg-color-disable;
67
- border-color: @button-primary-bg-color-disable;
68
- }
69
- }
70
- }
71
-
72
- &-dangerous {
73
- color: @button-dangerous-color;
74
- background-color: @button-dangerous-bg-color;
75
- border-color: @button-dangerous-bg-color;
76
- box-shadow: unset;
77
-
78
- &:focus:not(:disabled) {
79
- color: @button-dangerous-color;
80
- background-color: @button-dangerous-bg-color;
81
- border-color: @button-dangerous-bg-color;
82
- box-shadow: unset;
83
- }
84
-
85
- &:hover:not(:disabled),
86
- &:active:not(:disabled) {
87
- color: @button-dangerous-color-active;
88
- background-color: @button-dangerous-bg-color-active;
89
- border-color: @button-dangerous-bg-color-active;
90
- }
91
-
92
- &[disabled],
93
- &.ant-btn-loading {
94
- color: @button-dangerous-color-disable;
95
- background-color: @button-dangerous-bg-color-disable;
96
- border-color: @button-dangerous-bg-color-disable;
97
- cursor: default;
98
- opacity: 0.5;
99
-
100
- &:hover,
101
- &:focus,
102
- &:active {
103
- color: @button-dangerous-color-disable;
104
- background-color: @button-dangerous-bg-color-disable;
105
- border-color: @button-dangerous-bg-color-disable;
106
- }
107
- }
108
- }
109
-
110
- &.ant-btn-circle {
111
- justify-content: center;
112
- padding: 0;
113
- border-radius: 50%;
114
- }
115
-
116
- &-default,
117
- &-secondary {
118
- color: @button-secondary-color;
119
- background-color: @button-secondary-bg-color;
120
- border: 1px solid;
121
- border-color: @button-secondary-border-color;
122
- box-shadow: none;
123
-
124
- &:focus {
125
- color: @button-secondary-color;
126
- //text-shadow: @text-shadow;
127
- background-color: @button-secondary-bg-color;
128
- border-color: @button-secondary-border-color;
129
- box-shadow: none;
130
- }
131
-
132
- &:hover,
133
- &:active {
134
- color: @button-secondary-color-active;
135
- background-color: @button-secondary-bg-color-active;
136
- border-color: @button-secondary-border-color-active;
137
- }
138
-
139
- &[disabled],
140
- &.ant-btn-loading {
141
- color: @button-secondary-color-disable;
142
- background-color: @button-secondary-bg-color-disable;
143
- border-color: @button-secondary-border-color;
144
- cursor: default;
145
- opacity: 0.5;
146
-
147
- &:hover,
148
- &:focus,
149
- &:active {
150
- color: @button-secondary-color-disable;
151
- background-color: @button-secondary-bg-color-disable;
152
- border-color: @button-secondary-border-color;
153
- }
154
- }
155
- }
156
-
157
- &-text {
158
- color: @button-text-color;
159
- background-color: @button-text-bg-color;
160
- border: none;
161
- box-shadow: none;
162
-
163
- &:focus,
164
- &:active {
165
- color: @button-text-color;
166
- background-color: @button-text-bg-color;
167
- box-shadow: none;
168
- }
169
-
170
- &:hover,
171
- &.ant-btn-loading {
172
- color: @button-text-color-active;
173
- background-color: @button-text-bg-color-active;
174
- }
175
-
176
- &[disabled] {
177
- color: @button-text-color-disable;
178
- background-color: @button-text-bg-color-disable;
179
- cursor: default;
180
- opacity: 0.5;
181
-
182
- &:hover,
183
- &:focus,
184
- &:active {
185
- color: @button-text-color-disable;
186
- background-color: @button-text-bg-color-disable;
187
- }
188
- }
189
- }
190
-
191
- &-link {
192
- color: @button-link-color;
193
- font-weight: 400;
194
- //text-shadow: @text-shadow;
195
- background-color: @button-link-bg-color;
196
- border-color: @button-link-bg-color;
197
- box-shadow: none;
198
- padding: 0 !important;
199
-
200
- &:focus {
201
- color: @button-link-color;
202
- font-weight: 400;
203
- //text-shadow: @text-shadow;
204
- background-color: @button-link-bg-color;
205
- border-color: @button-link-bg-color;
206
- box-shadow: none;
207
- }
208
-
209
- &:hover,
210
- &:active {
211
- color: @button-link-color-active;
212
- background-color: @button-link-bg-color-active;
213
- border-color: @button-link-bg-color-active;
214
- }
215
-
216
- &[disabled],
217
- &.ant-btn-loading {
218
- color: @button-link-color-disable;
219
- background-color: @button-link-bg-color-disable;
220
- border-color: @button-link-bg-color-disable;
221
- cursor: default;
222
- opacity: 0.5;
223
-
224
- &:hover,
225
- &:focus,
226
- &:active {
227
- color: @button-link-color-disable;
228
- background-color: @button-link-bg-color-disable;
229
- border-color: @button-link-bg-color-disable;
230
- }
231
- }
232
- }
233
-
234
- &.ant-btn-icon-only {
235
- justify-content: center;
236
- width: initial;
237
- padding: 0;
238
- vertical-align: baseline;
239
- }
240
- }
241
-
242
- &-large {
243
- min-width: auto;
244
- height: @button-height-large;
245
- padding: @button-border-padding-large;
246
- font-size: @button-text-size-large;
247
- line-height: 24px;
248
- border-radius: @button-border-radius-large;
249
-
250
- &.ant-btn-icon-only {
251
- min-width: @button-height-large;
252
- height: @button-height-large;
253
- border-radius: @button-border-radius-large;
254
- }
255
-
256
- &.ant-btn-circle {
257
- min-width: @button-height-large;
258
- height: @button-height-large;
259
- border-radius: 50%;
260
- }
261
-
262
- gap: @button-left-icon-margin-right-large;
263
-
264
- &:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ald-btn-link) {
265
- min-width: @button-text-min-width-large;
266
- }
267
- }
268
-
269
- &-middle {
270
- min-width: auto;
271
- height: @button-height-middle;
272
- padding: @button-border-padding-middle;
273
- font-size: @button-text-size-middle;
274
- border-radius: @button-border-radius-middle;
275
-
276
- &.ant-btn-icon-only {
277
- min-width: @button-height-middle;
278
- height: @button-height-middle;
279
- border-radius: @button-border-radius-middle;
280
- }
281
-
282
- &.ant-btn-circle {
283
- min-width: @button-height-middle;
284
- height: @button-height-middle;
285
- border-radius: 50%;
286
- }
287
-
288
- gap: @button-left-icon-margin-right-middle;
289
-
290
- &:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ald-btn-link) {
291
- min-width: @button-text-min-width-middle;
292
- }
293
- }
294
-
295
- &-small {
296
- height: @button-height-small;
297
- padding: @button-border-padding-small;
298
- font-size: @button-text-size-small;
299
- line-height: 22px;
300
- border-radius: @button-border-radius-small;
301
-
302
- &.ant-btn-icon-only {
303
- min-width: @button-height-small;
304
- height: @button-height-small;
305
- border-radius: @button-border-radius-small;
306
- }
307
-
308
- &.ant-btn-circle {
309
- min-width: @button-height-small;
310
- height: @button-height-small;
311
- border-radius: 50%;
312
- }
313
-
314
- gap: @button-left-icon-margin-right-small;
315
-
316
- &:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ald-btn-link) {
317
- min-width: @button-text-min-width-small;
318
- }
319
- }
320
- }
3
+ @import './type.less';
4
+ @import './size.less';
@@ -0,0 +1,80 @@
1
+ .ald-btn.ald-btn {
2
+ &-large {
3
+ min-width: auto;
4
+ height: @button-height-large;
5
+ padding: @button-border-padding-large;
6
+ font-size: @button-text-size-large;
7
+ line-height: 24px;
8
+ border-radius: @button-border-radius-large;
9
+
10
+ &.ant-btn-icon-only {
11
+ min-width: @button-height-large;
12
+ height: @button-height-large;
13
+ border-radius: @button-border-radius-large;
14
+ }
15
+
16
+ &.ant-btn-circle {
17
+ min-width: @button-height-large;
18
+ height: @button-height-large;
19
+ border-radius: 50%;
20
+ }
21
+
22
+ gap: @button-left-icon-margin-right-large;
23
+
24
+ &:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ald-btn-link) {
25
+ min-width: @button-text-min-width-large;
26
+ }
27
+ }
28
+
29
+ &-middle {
30
+ min-width: auto;
31
+ height: @button-height-middle;
32
+ padding: @button-border-padding-middle;
33
+ font-size: @button-text-size-middle;
34
+ border-radius: @button-border-radius-middle;
35
+
36
+ &.ant-btn-icon-only {
37
+ min-width: @button-height-middle;
38
+ height: @button-height-middle;
39
+ border-radius: @button-border-radius-middle;
40
+ }
41
+
42
+ &.ant-btn-circle {
43
+ min-width: @button-height-middle;
44
+ height: @button-height-middle;
45
+ border-radius: 50%;
46
+ }
47
+
48
+ gap: @button-left-icon-margin-right-middle;
49
+
50
+ &:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ald-btn-link) {
51
+ min-width: @button-text-min-width-middle;
52
+ }
53
+ }
54
+
55
+ &-small {
56
+ height: @button-height-small;
57
+ padding: @button-border-padding-small;
58
+ font-size: @button-text-size-small;
59
+ line-height: 22px;
60
+ border-radius: @button-border-radius-small;
61
+
62
+ &.ant-btn-icon-only {
63
+ min-width: @button-height-small;
64
+ height: @button-height-small;
65
+ border-radius: @button-border-radius-small;
66
+ }
67
+
68
+ &.ant-btn-circle {
69
+ min-width: @button-height-small;
70
+ height: @button-height-small;
71
+ border-radius: 50%;
72
+ }
73
+
74
+ gap: @button-left-icon-margin-right-small;
75
+
76
+ &:not(.ant-btn-circle):not(.ant-btn-icon-only):not(.ald-btn-link) {
77
+ min-width: @button-text-min-width-small;
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,235 @@
1
+ .ald-btn.ald-btn {
2
+ &.ald-btn {
3
+ // &-loading::before{
4
+ // // display: none !important;
5
+ // }
6
+
7
+ &-primary,
8
+ &-dangerous,
9
+ &-secondary,
10
+ &-text,
11
+ &-link {
12
+ display: inline-flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ font-weight: 500;
16
+ text-shadow: none;
17
+ text-decoration: none;
18
+
19
+ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
20
+ &:focus-visible {
21
+ outline: none;
22
+ }
23
+ }
24
+
25
+ &.ant-btn-loading::before {
26
+ display: none;
27
+ }
28
+
29
+ &-primary {
30
+ color: @button-primary-color;
31
+ background-color: @button-primary-bg-color;
32
+ border-color: @button-primary-bg-color;
33
+ box-shadow: none;
34
+
35
+ &:focus {
36
+ //text-shadow: @text-shadow;
37
+ color: @button-primary-color;
38
+ background-color: @button-primary-bg-color;
39
+ border-color: @button-primary-bg-color;
40
+ box-shadow: none;
41
+ }
42
+
43
+ &:hover,
44
+ &:active {
45
+ color: @button-primary-color-active;
46
+ background-color: @button-primary-bg-color-active;
47
+ border-color: @button-primary-bg-color-active;
48
+ }
49
+
50
+ &.ant-btn-loading,
51
+ &[disabled] {
52
+ color: @button-primary-color-disable;
53
+ background-color: @button-primary-bg-color-disable;
54
+ border-color: @button-primary-bg-color-disable;
55
+ cursor: default;
56
+ opacity: 0.5;
57
+
58
+ &:hover,
59
+ &:focus,
60
+ &:active {
61
+ color: @button-primary-color-disable;
62
+ background-color: @button-primary-bg-color-disable;
63
+ border-color: @button-primary-bg-color-disable;
64
+ }
65
+ }
66
+ }
67
+
68
+ &-dangerous {
69
+ color: @button-dangerous-color;
70
+ background-color: @button-dangerous-bg-color;
71
+ border-color: @button-dangerous-bg-color;
72
+ box-shadow: unset;
73
+
74
+ &:focus:not(:disabled) {
75
+ color: @button-dangerous-color;
76
+ background-color: @button-dangerous-bg-color;
77
+ border-color: @button-dangerous-bg-color;
78
+ box-shadow: unset;
79
+ }
80
+
81
+ &:hover:not(:disabled),
82
+ &:active:not(:disabled) {
83
+ color: @button-dangerous-color-active;
84
+ background-color: @button-dangerous-bg-color-active;
85
+ border-color: @button-dangerous-bg-color-active;
86
+ }
87
+
88
+ &[disabled],
89
+ &.ant-btn-loading {
90
+ color: @button-dangerous-color-disable;
91
+ background-color: @button-dangerous-bg-color-disable;
92
+ border-color: @button-dangerous-bg-color-disable;
93
+ cursor: default;
94
+ opacity: 0.5;
95
+
96
+ &:hover,
97
+ &:focus,
98
+ &:active {
99
+ color: @button-dangerous-color-disable;
100
+ background-color: @button-dangerous-bg-color-disable;
101
+ border-color: @button-dangerous-bg-color-disable;
102
+ }
103
+ }
104
+ }
105
+
106
+ &.ant-btn-circle {
107
+ justify-content: center;
108
+ padding: 0;
109
+ border-radius: 50%;
110
+ }
111
+
112
+ &-default,
113
+ &-secondary {
114
+ color: @button-secondary-color;
115
+ background-color: @button-secondary-bg-color;
116
+ border: 1px solid;
117
+ border-color: @button-secondary-border-color;
118
+ box-shadow: none;
119
+
120
+ &:focus {
121
+ color: @button-secondary-color;
122
+ //text-shadow: @text-shadow;
123
+ background-color: @button-secondary-bg-color;
124
+ border-color: @button-secondary-border-color;
125
+ box-shadow: none;
126
+ }
127
+
128
+ &:hover,
129
+ &:active {
130
+ color: @button-secondary-color-active;
131
+ background-color: @button-secondary-bg-color-active;
132
+ border-color: @button-secondary-border-color-active;
133
+ }
134
+
135
+ &[disabled],
136
+ &.ant-btn-loading {
137
+ color: @button-secondary-color-disable;
138
+ background-color: @button-secondary-bg-color-disable;
139
+ border-color: @button-secondary-border-color;
140
+ cursor: default;
141
+ opacity: 0.5;
142
+
143
+ &:hover,
144
+ &:focus,
145
+ &:active {
146
+ color: @button-secondary-color-disable;
147
+ background-color: @button-secondary-bg-color-disable;
148
+ border-color: @button-secondary-border-color;
149
+ }
150
+ }
151
+ }
152
+
153
+ &-text {
154
+ color: @button-text-color;
155
+ background-color: @button-text-bg-color;
156
+ border: none;
157
+ box-shadow: none;
158
+
159
+ &:focus,
160
+ &:active {
161
+ color: @button-text-color;
162
+ background-color: @button-text-bg-color;
163
+ box-shadow: none;
164
+ }
165
+
166
+ &:hover,
167
+ &.ant-btn-loading {
168
+ color: @button-text-color-active;
169
+ background-color: @button-text-bg-color-active;
170
+ }
171
+
172
+ &[disabled] {
173
+ color: @button-text-color-disable;
174
+ background-color: @button-text-bg-color-disable;
175
+ cursor: default;
176
+ opacity: 0.5;
177
+
178
+ &:hover,
179
+ &:focus,
180
+ &:active {
181
+ color: @button-text-color-disable;
182
+ background-color: @button-text-bg-color-disable;
183
+ }
184
+ }
185
+ }
186
+
187
+ &-link {
188
+ color: @button-link-color;
189
+ //text-shadow: @text-shadow;
190
+ background-color: @button-link-bg-color;
191
+ border-color: @button-link-bg-color;
192
+ box-shadow: none;
193
+ padding: 0 !important;
194
+
195
+ &:focus {
196
+ color: @button-link-color;
197
+ //text-shadow: @text-shadow;
198
+ background-color: @button-link-bg-color;
199
+ border-color: @button-link-bg-color;
200
+ box-shadow: none;
201
+ }
202
+
203
+ &:hover,
204
+ &:active {
205
+ color: @button-link-color-active;
206
+ background-color: @button-link-bg-color-active;
207
+ border-color: @button-link-bg-color-active;
208
+ }
209
+
210
+ &[disabled],
211
+ &.ant-btn-loading {
212
+ color: @button-link-color-disable;
213
+ background-color: @button-link-bg-color-disable;
214
+ border-color: @button-link-bg-color-disable;
215
+ cursor: default;
216
+ opacity: 0.5;
217
+
218
+ &:hover,
219
+ &:focus,
220
+ &:active {
221
+ color: @button-link-color-disable;
222
+ background-color: @button-link-bg-color-disable;
223
+ border-color: @button-link-bg-color-disable;
224
+ }
225
+ }
226
+ }
227
+
228
+ &.ant-btn-icon-only {
229
+ justify-content: center;
230
+ width: initial;
231
+ padding: 0;
232
+ vertical-align: baseline;
233
+ }
234
+ }
235
+ }
@@ -24,7 +24,6 @@ function Body(props) {
24
24
  startRowIndex = _props$rowRange[0],
25
25
  endRowIndex = _props$rowRange[1];
26
26
 
27
- console.log(columnLayout, columns, 'columnLayout---body');
28
27
  return /*#__PURE__*/React.createElement("div", {
29
28
  className: "ald-data-preview-table-body"
30
29
  }, datasource.slice(startRowIndex, endRowIndex).map(function (row, rowIndex) {
@@ -117,7 +117,6 @@ export default function useDirection(columns, wrapRef) {
117
117
  var setRange = useCallback(function (columnsOffsets) {
118
118
  var _wrapRef$current, _wrapRef$current2, _wrapRef$current3, _wrapRef$current4;
119
119
 
120
- console.log(columnsOffsets, 'columnsOffsets');
121
120
  var scrollTop = ((_wrapRef$current = wrapRef.current) === null || _wrapRef$current === void 0 ? void 0 : _wrapRef$current.scrollTop) || 0;
122
121
  var scrollLeft = ((_wrapRef$current2 = wrapRef.current) === null || _wrapRef$current2 === void 0 ? void 0 : _wrapRef$current2.scrollLeft) || 0;
123
122
  var direction = getScrollDirection(scrollTop, scrollLeft);
@@ -149,7 +148,6 @@ export default function useDirection(columns, wrapRef) {
149
148
  setColumnLayout = _useState12[1];
150
149
 
151
150
  var onScroll = function onScroll() {
152
- console.log(111);
153
151
  setRange(columnsOffsets);
154
152
  };
155
153
 
@@ -231,7 +229,6 @@ export default function useDirection(columns, wrapRef) {
231
229
  resizeObserver.disconnect();
232
230
  };
233
231
  }, [wrapRef, setRange, columnsOffsets]);
234
- console.log(columnLayout, 'columnLayout,useDirection', columnRange);
235
232
  return {
236
233
  columnRange: columnRange,
237
234
  rowRange: rowRange,
@@ -1,10 +1,3 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
-
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
-
5
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
-
7
- import { useWhyDidYouUpdate } from 'ahooks';
8
1
  import classNames from 'classnames';
9
2
  import React, { forwardRef, memo, useEffect, useMemo, useRef } from 'react';
10
3
  import Progress from "../Progress";
@@ -43,13 +36,6 @@ function DataPreviewTable(props, ref) {
43
36
  contentWidth = _useDirection.contentWidth,
44
37
  tableColumns = _useDirection.tableColumns;
45
38
 
46
- useWhyDidYouUpdate('DataPreviewTable', _objectSpread({
47
- columnRange: columnRange,
48
- rowRange: rowRange,
49
- onScroll: onScroll,
50
- columnLayout: columnLayout,
51
- setColumnsWidth: setColumnsWidth
52
- }, props));
53
39
  useEffect(function () {
54
40
  if (ref) {
55
41
  if (typeof ref === 'function') {
@@ -63,7 +49,6 @@ function DataPreviewTable(props, ref) {
63
49
  var rows = Math.ceil((((_wrapRef$current = wrapRef.current) === null || _wrapRef$current === void 0 ? void 0 : _wrapRef$current.clientHeight) || 0 - HEADER_HEIGHT) / CELL_HEIGHT);
64
50
  return rows - 1 < 0 ? 0 : rows - 1; // eslint-disable-next-line react-hooks/exhaustive-deps
65
51
  }, [wrapRef.current]);
66
- console.log(columnLayout, 'columnLayout');
67
52
  return /*#__PURE__*/React.createElement(ScrollArea, {
68
53
  ref: wrapRef,
69
54
  style: {
@@ -33,10 +33,10 @@
33
33
  @inputNumber-cursor-color: @B60;
34
34
 
35
35
  //前后填充
36
- @inputNumber-addon-bg-color: @BG100;
37
- @inputNumber-addon-color: @NL40;
36
+ @inputNumber-addon-bg-color: #f8f8f8;
37
+ @inputNumber-addon-color: #858585;
38
38
  @inputNumber-addon-border-color: @BG60;
39
- @inputNumber-addon-disable-color: @NL40;
39
+ @inputNumber-addon-disable-color: #858585;
40
40
 
41
41
  .ald-input-number {
42
42
  &.ant-input-number {
@@ -10,9 +10,10 @@
10
10
 
11
11
  .ant-modal-body {
12
12
  max-height: 70vh;
13
- overflow: auto;
13
+ overflow-y: auto;
14
14
  line-height: 20px;
15
15
  font-size: 13px;
16
+ overflow-x: hidden;
16
17
  }
17
18
  }
18
19
 
@@ -112,9 +112,9 @@
112
112
  cursor: default;
113
113
  opacity: 0.5;
114
114
 
115
- .ald-radio-desc {
116
- color: @NL60;
117
- }
115
+ // .ald-radio-desc {
116
+ // color: @NL60;
117
+ // }
118
118
  }
119
119
 
120
120
  .ald-radio-button-wrapper-border-primary,
@@ -192,7 +192,7 @@
192
192
  // 按钮样式禁用的文字颜色
193
193
  .ald-radio-wrapper-disabled {
194
194
  .ald-radio-desc {
195
- color: @NL80;
195
+ color: @NL0;
196
196
  }
197
197
  }
198
198
 
@@ -264,7 +264,7 @@
264
264
 
265
265
  .ald-radio-desc {
266
266
  position: relative;
267
- color: @ND0;
267
+ color: @NL0;
268
268
  transition: text-shadow 0.3s ease, color 0.3s ease;
269
269
  }
270
270
  }
@@ -310,7 +310,7 @@
310
310
  }
311
311
 
312
312
  .ald-radio-desc {
313
- font-weight: 600;
313
+ font-weight: 400;
314
314
  }
315
315
  }
316
316
 
@@ -325,7 +325,7 @@
325
325
 
326
326
  .ald-radio-desc {
327
327
  position: relative;
328
- font-weight: 600;
328
+ font-weight: 400;
329
329
  z-index: 2;
330
330
  color: @NL0;
331
331
  }
@@ -1,6 +1,7 @@
1
1
  /* stylelint-disable no-descending-specificity */
2
2
  @import './variables.less';
3
3
  @import '../../Empty/style/index.less';
4
+ @import '../../Checkbox/style/index.less';
4
5
  @import './multiple.less';
5
6
  @import './single.less';
6
7
  @import './size.less';
@@ -2,17 +2,19 @@
2
2
 
3
3
  .ald-tooltip-overlay.ald-tooltip-overlay {
4
4
  .ant-tooltip-inner {
5
- padding: 6px 12px;
6
- line-height: 20px;
5
+ padding: 6px 8px;
6
+ line-height: 16px;
7
7
  background: @BG10;
8
- border-radius: 4px;
8
+ border-radius: 2px;
9
9
  box-shadow: none;
10
- color:@ND0;
11
- font-size: 13px;
10
+ color: @ND0;
11
+ font-weight: 400;
12
+ font-size: 12px;
13
+ min-height: 28px;
12
14
  }
13
15
 
14
16
  .ant-tooltip-arrow {
15
- &::before{
17
+ &::before {
16
18
  background-color: @BG10;
17
19
  }
18
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",