@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.
- package/dist/AldSelect/style/color.less +2 -1
- package/dist/Button/style/variables.less +1 -1
- package/dist/Table/index.js +24 -6
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -1
- package/dist/index.less +0 -1
- package/package.json +1 -1
- package/dist/Select/components/Option.d.ts +0 -11
- package/dist/Select/components/Option.js +0 -31
- package/dist/Select/components/SingleOption.d.ts +0 -11
- package/dist/Select/components/SingleOption.js +0 -28
- package/dist/Select/index.d.ts +0 -19
- package/dist/Select/index.js +0 -484
- package/dist/Select/style/emptyShowAll.less +0 -27
- package/dist/Select/style/index.d.ts +0 -2
- package/dist/Select/style/index.js +0 -2
- package/dist/Select/style/index.less +0 -176
- package/dist/Select/style/layout.less +0 -44
- package/dist/Select/style/option.less +0 -39
- package/dist/Select/style/selectDropdown.less +0 -16
- package/dist/Select/style/size.less +0 -426
- package/dist/Select/style/status.less +0 -137
- package/dist/Select/style/variables.less +0 -31
|
@@ -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);
|
package/dist/Table/index.js
CHANGED
|
@@ -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,
|
|
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
|
|
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'), (
|
|
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'), (
|
|
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'), (
|
|
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)));
|