@aloudata/aloudata-design 0.4.0-beta.1 → 0.4.0-beta.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.
@@ -90,7 +90,13 @@ interface CssExports {
90
90
  'SELECTOR_PADDING_HORIZONTAL_MIDDLE': string;
91
91
  'SELECTOR_PADDING_HORIZONTAL_MINI': string;
92
92
  'SELECTOR_PADDING_HORIZONTAL_SMALL': string;
93
+ 'SHADOW_BODY_TOP_LEFT': string;
93
94
  'SHADOW_L': string;
95
+ 'SHADOW_LG': string;
96
+ 'SHADOW_MD': string;
97
+ 'SHADOW_SM': string;
98
+ 'SHADOW_XL': string;
99
+ 'SHADOW_XS': string;
94
100
  'TA10': string;
95
101
  'TA20': string;
96
102
  'TA30': string;
package/es/Table/Table.js CHANGED
@@ -31,14 +31,15 @@ import Empty from './components/Empty';
31
31
  import TableHead from './components/TableHead';
32
32
  import TableBodyRowList from './components/TableBodyRowList';
33
33
  import { useTimeoutLock } from './hooks/useFrame';
34
- import StylesVariable from './style/variable.less';
34
+ var tableHeadRowHeight = 44;
35
35
  var SCROLLBAR_SIZE = 15;
36
36
  var ZERO = 0;
37
37
 
38
38
  function Table(props, ref) {
39
39
  var _classnames3;
40
40
 
41
- var columns = props.columns,
41
+ var tableKey = props.key,
42
+ columns = props.columns,
42
43
  data = props.data,
43
44
  onRowSelected = props.onRowSelected,
44
45
  loadMore = props.loadMore,
@@ -328,7 +329,7 @@ function Table(props, ref) {
328
329
  style: {
329
330
  overflow: 'overlay',
330
331
  overflowX: tableClientWidth + SCROLLBAR_SIZE > columnsTotalWidthRef.current ? 'hidden' : 'unset',
331
- height: tableClientHeight - StylesVariable.TableHeadRowHeight
332
+ height: tableClientHeight - tableHeadRowHeight
332
333
  },
333
334
  ref: tableBodyRef,
334
335
  onScroll: onBodyScroll
@@ -336,12 +337,12 @@ function Table(props, ref) {
336
337
  };
337
338
 
338
339
  return /*#__PURE__*/React.createElement("div", {
339
- className: classnames("".concat(prefixCls, "-inner-wrap"), _defineProperty({}, "".concat(prefixCls, "-innerScroll"), height))
340
+ className: classnames("".concat(prefixCls, "-inner-wrap"), _defineProperty({}, "".concat(prefixCls, "-innerScroll"), !!height))
340
341
  }, /*#__PURE__*/React.createElement("div", {
341
342
  ref: tableHeadRef,
342
343
  className: "".concat(prefixCls, "-tableHeadScrollWrap")
343
344
  }, tableHeadNode), /*#__PURE__*/React.createElement("div", Object.assign({}, getTableBodyProps(), {
344
- className: classnames("".concat(prefixCls, "-tbody"), _defineProperty({}, "".concat(prefixCls, "-tbody-innerScroll"), height))
345
+ className: classnames("".concat(prefixCls, "-tbody"), _defineProperty({}, "".concat(prefixCls, "-tbody-innerScroll"), !!height))
345
346
  }), renderNoHeightTableBody()));
346
347
  };
347
348
 
@@ -353,6 +354,7 @@ function Table(props, ref) {
353
354
  setTableClientHeight(clientHeight);
354
355
  }
355
356
  }, /*#__PURE__*/React.createElement("div", {
357
+ key: tableKey,
356
358
  className: prefixCls,
357
359
  ref: tableRef,
358
360
  style: {
@@ -17,6 +17,7 @@ export interface IColumn<RecordType> {
17
17
  selected?: boolean;
18
18
  }
19
19
  export interface ITableProps<RecordType> {
20
+ key?: React.Key;
20
21
  columns: IColumn<RecordType>[];
21
22
  data: RecordType[];
22
23
  onRowSelected?: (row: RecordType) => void;
@@ -125,6 +125,10 @@
125
125
  display: flex;
126
126
  align-items: center;
127
127
  padding-left: 24px;
128
+
129
+ .ald-table-cell-container {
130
+ width: 100%;
131
+ }
128
132
  }
129
133
 
130
134
  &:hover {
@@ -2,9 +2,4 @@
2
2
 
3
3
  @ald-iconfont-css-prefix: anticon;
4
4
  @table-head-row-height: 44px;
5
- @table-head-row-height-num: 44;
6
5
  @table-body-row-height: 72px;
7
-
8
- :export {
9
- TableHeadRowHeight: @table-head-row-height-num;
10
- }
@@ -1,7 +1,7 @@
1
1
  // This file is automatically generated.
2
2
  // Please do not change this file!
3
3
  interface CssExports {
4
- 'TableHeadRowHeight': string;
4
+
5
5
  }
6
6
  export const cssExports: CssExports;
7
7
  export default cssExports;
package/es/Tabs/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@aloudata/icons-react/styles/index.less";
2
- import _More from "@aloudata/icons-react/es/icons/More";
2
+ import _MoreFill from "@aloudata/icons-react/es/icons/MoreFill";
3
3
  import "antd/es/tabs/style";
4
4
  import _Tabs from "antd/es/tabs";
5
5
  var _excluded = ["size", "className", "popupClassName", "adaptHeight"];
@@ -34,7 +34,7 @@ export default function Tabs(props) {
34
34
  return /*#__PURE__*/React.createElement(_Tabs, Object.assign({
35
35
  moreIcon: /*#__PURE__*/React.createElement("div", {
36
36
  className: "ald-tabs-moreIcon"
37
- }, /*#__PURE__*/React.createElement(_More, {
37
+ }, /*#__PURE__*/React.createElement(_MoreFill, {
38
38
  color: "currentColor"
39
39
  })),
40
40
  tabBarGutter: 24,
@@ -109,7 +109,7 @@
109
109
  @BG60: #D0D5DD;
110
110
  @BG70: #EAECF0;
111
111
  @BG80: #F2F4F7;
112
- @BG90: #F8FAFB;
112
+ @BG90: #F5F6F7;
113
113
  @BG95: #F9FAFB;
114
114
  @BG97: #FCFCFD;
115
115
  @BG100:#FFFFFF;
@@ -118,7 +118,13 @@
118
118
  /***
119
119
  * 投影
120
120
  ***/
121
- @shadow-L:0px 11px 15px rgba(0, 26, 51, 0.1), 0px 9px 46px rgba(0, 26, 51, 0.05), 0px 24px 38px rgba(0, 26, 51, 0.03);
121
+ @shadow-L: 0px 11px 15px rgba(0, 26, 51, 0.1), 0px 9px 46px rgba(0, 26, 51, 0.05), 0px 24px 38px rgba(0, 26, 51, 0.03);
122
+ @shadow-xl: 0px 20px 24px -4px rgba(16, 24, 40, 0.08), 0px 8px 8px -4px rgba(16, 24, 40, 0.03);
123
+ @shadow-lg: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
124
+ @shadow-md: 0px 4px 6px -2px rgba(16, 24, 40, 0.08), 0px 2px 4px -2px rgba(16, 24, 40, 0.03);
125
+ @shadow-sm: 0px 1px 4px rgba(16, 24, 40, 0.06), 0px 1px 2px rgba(16, 24, 40, 0.04);
126
+ @shadow-xs: 0px 1px 2px rgba(16, 24, 40, 0.05);
127
+ @shadow-body-top-left: -4px -4px 2px rgba(0, 0, 0, 0.05);
122
128
 
123
129
  // 业务颜色
124
130
  // 除了原色之外,在业务、提示和标签等组件中使用一些次要颜色也很有帮助。这些次要颜色应该少用或作为重点使用,而主要颜色应该占优先地位。
@@ -337,6 +343,12 @@
337
343
  BG97: @BG97;
338
344
  BG100: @BG100;
339
345
  SHADOW_L: @shadow-L;
346
+ SHADOW_BODY_TOP_LEFT:@shadow-body-top-left;
347
+ SHADOW_XS: @shadow-xs;
348
+ SHADOW_SM: @shadow-sm;
349
+ SHADOW_MD: @shadow-md;
350
+ SHADOW_LG: @shadow-lg;
351
+ SHADOW_XL: @shadow-xl;
340
352
  TA10: @TA10;
341
353
  TA20: @TA20;
342
354
  TA30: @TA30;
@@ -82,7 +82,13 @@ interface CssExports {
82
82
  'SC90': string;
83
83
  'SC95': string;
84
84
  'SC98': string;
85
+ 'SHADOW_BODY_TOP_LEFT': string;
85
86
  'SHADOW_L': string;
87
+ 'SHADOW_LG': string;
88
+ 'SHADOW_MD': string;
89
+ 'SHADOW_SM': string;
90
+ 'SHADOW_XL': string;
91
+ 'SHADOW_XS': string;
86
92
  'TA10': string;
87
93
  'TA20': string;
88
94
  'TA30': string;