@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.
@@ -1,5 +1,5 @@
1
1
  export declare const CELL_HEIGHT = 20;
2
- export declare const HEADER_HEIGHT = 28;
2
+ export declare const HEADER_HEIGHT = 32;
3
3
  export declare const DEFAULT_COLUMN_WIDTH = 100;
4
4
  export declare const PRE_RENDER_RANGE = 100;
5
5
  export declare const UNDEFINED_INDEX = -1;
@@ -1,5 +1,5 @@
1
1
  export var CELL_HEIGHT = 20;
2
- export var HEADER_HEIGHT = 28;
2
+ export var HEADER_HEIGHT = 32;
3
3
  export var DEFAULT_COLUMN_WIDTH = 100;
4
4
  export var PRE_RENDER_RANGE = 100; //预渲染范围
5
5
 
@@ -5,7 +5,7 @@
5
5
  @import '../../Result/style/index.less';
6
6
 
7
7
  .ald-data-preview-table {
8
- border: 1px solid #d5d5d5;
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: 28px;
18
+ height: 32px;
19
19
  z-index: 2;
20
- background-color: #e9e9e9;
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 #d5d5d5;
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: #171717;
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 13px 3px 20px;
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 #e8e8e8;
82
+ border: 1px solid var(--alias-colors-border-subtle, #f3f4f6);
82
83
  border-left: none;
83
84
  border-top: none;
84
- padding: 2px 7px 1px 8px;
85
+ padding: 2px 4px;
85
86
  line-height: 16px;
86
87
  box-sizing: border-box;
87
- font-style: normal;
88
- font-weight: 400;
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
 
@@ -120,9 +120,15 @@ function Table(props, ref) {
120
120
  }));
121
121
  var onClickRow = useCallback(function (rowData, rowIndex) {
122
122
  return function () {
123
- if (typeof onRowClick === 'function') {
124
- onRowClick(rowData, rowIndex);
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