@aloudata/aloudata-design 2.19.0-beta.5 → 2.19.0

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.
@@ -9,7 +9,8 @@
9
9
 
10
10
  &-active {
11
11
  border-color: var(--global-transparent-transparent);
12
- box-shadow: var(--focus-default-focus);
12
+ // box-shadow: var(--focus-default-focus);
13
+ outline: var(--global-blue-500) auto 1px;
13
14
 
14
15
  &:hover {
15
16
  border-color: var(--global-transparent-transparent);
@@ -4,7 +4,7 @@
4
4
 
5
5
  /** size控制 **/
6
6
  @button-height-large: 36px;
7
- @button-text-size-large: 16px;
7
+ @button-text-size-large: 14px;
8
8
  @button-border-radius-large: var(--alias-radius-100);
9
9
  @button-padding-large: var(--alias-padding-75-minus-1)
10
10
  var(--alias-padding-150-minus-1);
@@ -30,7 +30,7 @@ import useRowDnd from "./hooks/useRowDnd";
30
30
  var HEADER_HEIGHT = 41;
31
31
  var FOOTER_HEIGHT = 52;
32
32
  function Table(props, ref) {
33
- var _classnames2, _classnames5, _classnames7;
33
+ var _classnames2, _classnames6, _classnames8;
34
34
  var data = props.data,
35
35
  bordered = props.bordered,
36
36
  rowKey = props.rowKey,
@@ -329,13 +329,31 @@ function Table(props, ref) {
329
329
  style: {
330
330
  width: totalSize === null || totalSize === void 0 ? void 0 : totalSize.width
331
331
  }
332
+ }, /*#__PURE__*/React.createElement("div", {
333
+ style: {
334
+ visibility: 'hidden'
335
+ }
336
+ }, emptyComponent || /*#__PURE__*/React.createElement("div", {
337
+ className: classnames(prefixCls('empty'), _defineProperty({}, prefixCls('empty-small'), isSmallEmpty))
338
+ }, /*#__PURE__*/React.createElement(Empty, {
339
+ image: isSmallEmpty ? null : Empty.PRESENTED_IMAGE_SEARCH,
340
+ size: isSmallEmpty ? 'small' : undefined
341
+ }))), /*#__PURE__*/React.createElement("div", {
342
+ "aria-invalid": "true",
343
+ style: {
344
+ position: 'absolute',
345
+ top: 40,
346
+ left: 0,
347
+ right: 0,
348
+ bottom: 0
349
+ }
332
350
  }, emptyComponent || /*#__PURE__*/React.createElement("div", {
333
351
  className: classnames(prefixCls('empty'), _defineProperty({}, prefixCls('empty-small'), isSmallEmpty))
334
352
  }, /*#__PURE__*/React.createElement(Empty, {
335
353
  image: isSmallEmpty ? null : Empty.PRESENTED_IMAGE_SEARCH,
336
354
  size: isSmallEmpty ? 'small' : undefined
337
- }))) : _.reduce(tableRows, function (rowList, rowData, rowIndex) {
338
- var _classnames4;
355
+ })))) : _.reduce(tableRows, function (rowList, rowData, rowIndex) {
356
+ var _classnames5;
339
357
  var row = virtual ? rows[rowData.index] : rowData;
340
358
  var allRowCells = row.getVisibleCells();
341
359
  var content = null;
@@ -405,7 +423,7 @@ function Table(props, ref) {
405
423
  var rowNode = /*#__PURE__*/React.createElement("div", {
406
424
  key: rowId,
407
425
  "data-index": virtual ? rowData.index : rowIndex,
408
- className: classnames(prefixCls('tr'), (_classnames4 = {}, _defineProperty(_classnames4, prefixCls('row-hover'), rowDndInfo.draggingRowId ? undefined : hoverRowId === rowId), _defineProperty(_classnames4, prefixCls('row-dragging'), rowDndInfo.draggingRowId === rowId), _defineProperty(_classnames4, prefixCls('no-border-tr'), isShowPagination && rowIndex === rows.length - 1), _classnames4), rowClassName(row.original, rowIndex)),
426
+ className: classnames(prefixCls('tr'), (_classnames5 = {}, _defineProperty(_classnames5, prefixCls('row-hover'), rowDndInfo.draggingRowId ? undefined : hoverRowId === rowId), _defineProperty(_classnames5, prefixCls('row-dragging'), rowDndInfo.draggingRowId === rowId), _defineProperty(_classnames5, prefixCls('no-border-tr'), isShowPagination && rowIndex === rows.length - 1), _classnames5), rowClassName(row.original, rowIndex)),
409
427
  ref: function ref(node) {
410
428
  // 将引用同时传递给 rowVirtualizer 和 rowDnd
411
429
  rowVirtualizer.measureElement(node);
@@ -467,7 +485,7 @@ function Table(props, ref) {
467
485
  height: tableContentHeight,
468
486
  position: virtual ? 'relative' : undefined
469
487
  },
470
- className: classnames(prefixCls('body-scroll'), (_classnames5 = {}, _defineProperty(_classnames5, prefixCls('scroll-y'), y !== undefined), _defineProperty(_classnames5, prefixCls('scroll-hidden'), isEmpty), _classnames5)),
488
+ className: classnames(prefixCls('body-scroll'), (_classnames6 = {}, _defineProperty(_classnames6, prefixCls('scroll-y'), y !== undefined), _defineProperty(_classnames6, prefixCls('scroll-hidden'), isEmpty), _classnames6)),
471
489
  ref: bodyRef,
472
490
  onScroll: onBodyScroll
473
491
  }, bodyContent), isShowFooter && /*#__PURE__*/React.createElement(Footer, {
@@ -494,7 +512,7 @@ function Table(props, ref) {
494
512
  });
495
513
  }
496
514
  }, /*#__PURE__*/React.createElement("div", {
497
- className: classnames(prefixCls('main'), (_classnames7 = {}, _defineProperty(_classnames7, prefixCls('overflow-hidden'), !!y), _defineProperty(_classnames7, prefixCls('ping-left'), isPingLeft), _defineProperty(_classnames7, prefixCls('ping-right'), isPingRight), _classnames7))
515
+ className: classnames(prefixCls('main'), (_classnames8 = {}, _defineProperty(_classnames8, prefixCls('overflow-hidden'), !!y), _defineProperty(_classnames8, prefixCls('ping-left'), isPingLeft), _defineProperty(_classnames8, prefixCls('ping-right'), isPingRight), _classnames8))
498
516
  }, rowDnd ? /*#__PURE__*/React.createElement(DndProvider, {
499
517
  backend: HTML5Backend
500
518
  }, tableContent) : tableContent)));