@aloudata/aloudata-design 2.0.0-beta.8 → 2.0.0-beta.9
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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@import '../../Result/style/index.less';
|
|
6
6
|
|
|
7
7
|
.ald-data-preview-table {
|
|
8
|
-
border: 1px solid #
|
|
8
|
+
border: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
9
9
|
font-size: 12px;
|
|
10
10
|
position: relative;
|
|
11
11
|
|
|
@@ -15,29 +15,30 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.ald-data-preview-header {
|
|
18
|
-
height:
|
|
18
|
+
height: 32px;
|
|
19
19
|
z-index: 2;
|
|
20
|
-
background
|
|
20
|
+
background: var(--alias-colors-bg-skeleton-subtle, #f9fafb);
|
|
21
21
|
width: 100%;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.ald-data-preview-header-cell {
|
|
25
25
|
height: 100%;
|
|
26
26
|
position: relative;
|
|
27
|
-
border: 1px solid #
|
|
27
|
+
border: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
28
28
|
border-left: none;
|
|
29
29
|
border-top: none;
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
box-sizing: border-box;
|
|
33
|
-
color: #
|
|
33
|
+
color: var(--alias-colors-text-strong, #111827);
|
|
34
34
|
font-weight: 500;
|
|
35
35
|
|
|
36
36
|
.ald-data-preview-header-default {
|
|
37
|
-
padding: 4px
|
|
37
|
+
padding: 6px 4px;
|
|
38
38
|
height: 100%;
|
|
39
39
|
width: 100%;
|
|
40
40
|
line-height: 20px;
|
|
41
|
+
background: var(--alias-colors-bg-skeleton-subtle, #f9fafb);
|
|
41
42
|
|
|
42
43
|
.ald-data-preview-header-left {
|
|
43
44
|
width: 20px;
|
|
@@ -78,15 +79,14 @@
|
|
|
78
79
|
.ald-data-preview-body-cell {
|
|
79
80
|
white-space: nowrap;
|
|
80
81
|
overflow: hidden;
|
|
81
|
-
border: 1px solid #
|
|
82
|
+
border: 1px solid var(--alias-colors-border-subtle, #f3f4f6);
|
|
82
83
|
border-left: none;
|
|
83
84
|
border-top: none;
|
|
84
|
-
padding: 2px
|
|
85
|
+
padding: 2px 4px;
|
|
85
86
|
line-height: 16px;
|
|
86
87
|
box-sizing: border-box;
|
|
87
|
-
|
|
88
|
-
font-
|
|
89
|
-
text-align: left;
|
|
88
|
+
color: var(--alias-colors-text-default, #1f2937);
|
|
89
|
+
font-size: 12px;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.ald-data-preview-body-skeleton-cell {
|
|
@@ -28,6 +28,21 @@
|
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
|
|
32
|
+
.ant-form-item-tooltip {
|
|
33
|
+
margin-left: var(--alias-spacing-25, 2px);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.ant-form-item-required:not(
|
|
37
|
+
.ant-form-item-required-mark-optional
|
|
38
|
+
)::before {
|
|
39
|
+
width: 8px;
|
|
40
|
+
margin-right: var(--alias-spacing-25, 2px);
|
|
41
|
+
color: var(--alias-colors-text-danger, #b91c1c);
|
|
42
|
+
text-align: right;
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
}
|
|
31
46
|
}
|
|
32
47
|
}
|
|
33
48
|
|
package/dist/Table/index.js
CHANGED
|
@@ -120,9 +120,15 @@ function Table(props, ref) {
|
|
|
120
120
|
}));
|
|
121
121
|
var onClickRow = useCallback(function (rowData, rowIndex) {
|
|
122
122
|
return function () {
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
var _window$getSelection;
|
|
124
|
+
if (typeof onRowClick !== 'function') {
|
|
125
|
+
return;
|
|
125
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);
|
|
126
132
|
};
|
|
127
133
|
}, [onRowClick]);
|
|
128
134
|
|