@aloudata/aloudata-design 2.0.1 → 2.0.3
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/DataPreviewTable/components/Header/index.js +1 -3
- package/dist/DataPreviewTable/index.js +7 -1
- package/dist/DataPreviewTable/interface.d.ts +1 -0
- package/dist/DataPreviewTable/style/index.less +6 -9
- package/dist/Input/components/Input/index.js +3 -6
- package/dist/Modal/style/modal.less +1 -1
- package/dist/Radio/style/index.less +3 -3
- package/dist/Select/index.js +1 -1
- package/dist/Select/style/emptyShowAll.less +16 -0
- package/dist/Tree/style/indent.less +11 -0
- package/dist/Tree/style/index.less +1 -0
- package/dist/Tree/style/mixin.less +15 -3
- package/dist/ald.min.css +1 -1
- package/package.json +1 -1
|
@@ -41,9 +41,7 @@ export default function Header(props) {
|
|
|
41
41
|
className: "ald-data-preview-header-left"
|
|
42
42
|
}, column.icon !== undefined ? column.icon : /*#__PURE__*/React.createElement("span", null)), /*#__PURE__*/React.createElement("div", {
|
|
43
43
|
className: "ald-data-preview-header-name"
|
|
44
|
-
}, column.name), /*#__PURE__*/React.createElement(
|
|
45
|
-
className: "ald-data-preview-header-right"
|
|
46
|
-
})), /*#__PURE__*/React.createElement(DragBar, {
|
|
44
|
+
}, column.name)), /*#__PURE__*/React.createElement(DragBar, {
|
|
47
45
|
columnId: column.id,
|
|
48
46
|
wrapWidth: columnLayout[column.id].width,
|
|
49
47
|
onChange: setWidth
|
|
@@ -24,6 +24,7 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
24
24
|
return datasource.length * CELL_HEIGHT + HEADER_HEIGHT;
|
|
25
25
|
}, [datasource]);
|
|
26
26
|
var wrapRef = useRef(null);
|
|
27
|
+
var progressRef = useRef(null);
|
|
27
28
|
var _useDirection = useDirection(columns, wrapRef),
|
|
28
29
|
columnRange = _useDirection.columnRange,
|
|
29
30
|
rowRange = _useDirection.rowRange,
|
|
@@ -60,6 +61,10 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
60
61
|
behavior: 'smooth'
|
|
61
62
|
});
|
|
62
63
|
}
|
|
64
|
+
},
|
|
65
|
+
progressRestart: function progressRestart() {
|
|
66
|
+
var _progressRef$current;
|
|
67
|
+
(_progressRef$current = progressRef.current) === null || _progressRef$current === void 0 ? void 0 : _progressRef$current.restart();
|
|
63
68
|
}
|
|
64
69
|
};
|
|
65
70
|
});
|
|
@@ -85,7 +90,8 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
85
90
|
})
|
|
86
91
|
}, /*#__PURE__*/React.createElement(Progress, {
|
|
87
92
|
className: "ald-data-preview-progress",
|
|
88
|
-
loading: !!loading
|
|
93
|
+
loading: !!loading,
|
|
94
|
+
ref: progressRef
|
|
89
95
|
}), /*#__PURE__*/React.createElement("div", {
|
|
90
96
|
style: {
|
|
91
97
|
height: dataStatus === 'pending' ? skeletonRows * CELL_HEIGHT + HEADER_HEIGHT : contentHeight,
|
|
@@ -35,26 +35,22 @@
|
|
|
35
35
|
font-weight: 500;
|
|
36
36
|
|
|
37
37
|
.ald-data-preview-header-default {
|
|
38
|
-
padding: 4px
|
|
38
|
+
padding: 4px;
|
|
39
39
|
height: 100%;
|
|
40
40
|
width: 100%;
|
|
41
|
-
line-height:
|
|
41
|
+
line-height: 24px;
|
|
42
42
|
background: var(--alias-colors-bg-skeleton-subtle, #f9fafb);
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
43
45
|
|
|
44
46
|
.ald-data-preview-header-left {
|
|
45
|
-
width: 20px;
|
|
46
47
|
height: 100%;
|
|
47
48
|
display: flex;
|
|
48
49
|
align-items: center;
|
|
49
50
|
justify-content: center;
|
|
50
51
|
font-size: 16px;
|
|
51
|
-
|
|
52
|
-
left: 4px;
|
|
53
|
-
z-index: 1;
|
|
52
|
+
margin-right: 4px;
|
|
54
53
|
color: #575757;
|
|
55
|
-
top: 0;
|
|
56
|
-
bottom: 0;
|
|
57
|
-
// background:rgb(0 0 0 / 0%)
|
|
58
54
|
}
|
|
59
55
|
|
|
60
56
|
.ald-data-preview-header-name {
|
|
@@ -62,6 +58,7 @@
|
|
|
62
58
|
overflow: hidden;
|
|
63
59
|
text-overflow: ellipsis;
|
|
64
60
|
white-space: nowrap;
|
|
61
|
+
margin: auto;
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
.ald-data-preview-header-right {
|
|
@@ -13,7 +13,6 @@ import classnames from 'classnames';
|
|
|
13
13
|
import React, { useContext } from 'react';
|
|
14
14
|
import { ConfigContext } from "../../../ConfigProvider";
|
|
15
15
|
import { CloseCircleFill } from "../../../Icon";
|
|
16
|
-
import IconButton from "../../../IconButton/index";
|
|
17
16
|
export function getSizeType(sizeType) {
|
|
18
17
|
if (['small', 'middle', 'large'].includes(sizeType || '')) {
|
|
19
18
|
return sizeType;
|
|
@@ -46,11 +45,9 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
46
45
|
disabled: disabled,
|
|
47
46
|
autoComplete: "off",
|
|
48
47
|
allowClear: allowClear ? {
|
|
49
|
-
clearIcon: /*#__PURE__*/React.createElement(
|
|
50
|
-
size:
|
|
51
|
-
|
|
52
|
-
color: "#9CA3AF"
|
|
53
|
-
})
|
|
48
|
+
clearIcon: /*#__PURE__*/React.createElement(CloseCircleFill, {
|
|
49
|
+
size: 16,
|
|
50
|
+
color: "#9CA3AF"
|
|
54
51
|
})
|
|
55
52
|
} : undefined,
|
|
56
53
|
spellCheck: false,
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
|
|
399
399
|
.ald-radio-label.ald-radio-button-wrapper-filled {
|
|
400
400
|
height: 28px;
|
|
401
|
-
border-radius:
|
|
401
|
+
border-radius: 4px !important;
|
|
402
402
|
margin-top: 2px;
|
|
403
403
|
}
|
|
404
404
|
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
.ald-radio-label.ald-radio-button-wrapper-filled {
|
|
456
456
|
height: 24px;
|
|
457
457
|
margin-top: 2px;
|
|
458
|
-
border-radius:
|
|
458
|
+
border-radius: 2px !important;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.ald-radio-icon-button-wrapper-filled,
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
.ald-radio-label.ald-radio-button-wrapper-filled {
|
|
525
525
|
height: 32px;
|
|
526
526
|
margin-top: 2px;
|
|
527
|
-
border-radius:
|
|
527
|
+
border-radius: 6px !important;
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
.ald-radio-label {
|
package/dist/Select/index.js
CHANGED
|
@@ -380,7 +380,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
380
380
|
placeholder: placeholder,
|
|
381
381
|
showSearch: showSearch,
|
|
382
382
|
options: innerOptions,
|
|
383
|
-
showArrow: isMultiple ? false : showArrow,
|
|
383
|
+
showArrow: isMultiple && type === 'primary' ? false : showArrow,
|
|
384
384
|
mode: isMultiple ? 'multiple' : undefined,
|
|
385
385
|
bordered: false,
|
|
386
386
|
open: typeof _open === 'boolean' ? _open : isOpen,
|
|
@@ -8,3 +8,19 @@
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
.ald-select.ald-select-empty-show-all:not(.ald-select-has-value) {
|
|
13
|
+
.ant-select {
|
|
14
|
+
.ant-select-selector {
|
|
15
|
+
.ant-select-selection-placeholder {
|
|
16
|
+
right: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ant-select-selection-overflow {
|
|
20
|
+
right: auto;
|
|
21
|
+
min-width: 24px;
|
|
22
|
+
padding-right: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -24,9 +24,21 @@
|
|
|
24
24
|
// it should displayed over the following node
|
|
25
25
|
z-index: 1;
|
|
26
26
|
height: 2px;
|
|
27
|
-
background-color:
|
|
27
|
+
background-color: var(--alias-colors-border-selected, #126fdd);
|
|
28
28
|
border-radius: 1px;
|
|
29
29
|
pointer-events: none;
|
|
30
|
+
|
|
31
|
+
&::before {
|
|
32
|
+
content: '';
|
|
33
|
+
position: absolute;
|
|
34
|
+
left: 0;
|
|
35
|
+
top: -5px;
|
|
36
|
+
width: 0;
|
|
37
|
+
height: 0;
|
|
38
|
+
border-top: 6px solid transparent;
|
|
39
|
+
border-bottom: 6px solid transparent;
|
|
40
|
+
border-left: 10px solid var(--alias-colors-border-selected, #126fdd); /* 高度 */
|
|
41
|
+
}
|
|
30
42
|
}
|
|
31
43
|
}
|
|
32
44
|
|
|
@@ -66,8 +78,8 @@
|
|
|
66
78
|
top: 0;
|
|
67
79
|
right: 0;
|
|
68
80
|
bottom: 0;
|
|
69
|
-
border: 1px solid @primary-color;
|
|
70
|
-
opacity: 0;
|
|
81
|
+
// border: 1px solid @primary-color;
|
|
82
|
+
opacity: 0.5;
|
|
71
83
|
animation: ald-tree-node-fx-do-not-use 0.3s;
|
|
72
84
|
animation-play-state: running;
|
|
73
85
|
animation-fill-mode: forwards;
|