aio-table 6.3.1 → 6.3.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.
- package/index.css +7 -2
- package/index.js +7 -4
- package/package.json +1 -1
package/index.css
CHANGED
|
@@ -56,10 +56,15 @@
|
|
|
56
56
|
height:100%;
|
|
57
57
|
top:0;
|
|
58
58
|
background:#ddd;
|
|
59
|
-
left:calc(100% - 1px);
|
|
60
59
|
position:absolute;
|
|
61
60
|
}
|
|
62
|
-
.aio-table-title.
|
|
61
|
+
.aio-table-title.ltr:after{
|
|
62
|
+
left:calc(100% - 1px);
|
|
63
|
+
}
|
|
64
|
+
.aio-table-title.rtl:after{
|
|
65
|
+
right:calc(100% - 1px);
|
|
66
|
+
}
|
|
67
|
+
.aio-table-title.last-child:after{
|
|
63
68
|
display:none;
|
|
64
69
|
}
|
|
65
70
|
.aio-table.rtl .aio-table-title{
|
package/index.js
CHANGED
|
@@ -461,8 +461,6 @@ class AIOTable extends _react.Component {
|
|
|
461
461
|
exports.default = AIOTable;
|
|
462
462
|
AIOTable.defaultProps = {
|
|
463
463
|
columns: [],
|
|
464
|
-
headerHeight: 36,
|
|
465
|
-
rowHeight: 36,
|
|
466
464
|
toolbarHeight: 36,
|
|
467
465
|
rowGap: 6,
|
|
468
466
|
padding: 12,
|
|
@@ -830,6 +828,7 @@ class AIOTableUnit extends _react.Component {
|
|
|
830
828
|
} = this.props;
|
|
831
829
|
return columns.map((column, i) => {
|
|
832
830
|
return /*#__PURE__*/_react.default.createElement(AIOTableTitle, {
|
|
831
|
+
isLast: i === columns.length - 1,
|
|
833
832
|
key: 'title' + i,
|
|
834
833
|
column: column,
|
|
835
834
|
gridTemplateColumns: this.gridTemplateColumns,
|
|
@@ -1287,8 +1286,12 @@ class AIOTableTitle extends _react.Component {
|
|
|
1287
1286
|
column,
|
|
1288
1287
|
onDragStart,
|
|
1289
1288
|
onDragOver,
|
|
1290
|
-
onDrop
|
|
1289
|
+
onDrop,
|
|
1290
|
+
isLast
|
|
1291
1291
|
} = this.props;
|
|
1292
|
+
let {
|
|
1293
|
+
rtl
|
|
1294
|
+
} = this.context;
|
|
1292
1295
|
|
|
1293
1296
|
if (column.template === 'gantt') {
|
|
1294
1297
|
return this.getGanttTitle(column);
|
|
@@ -1298,7 +1301,7 @@ class AIOTableTitle extends _react.Component {
|
|
|
1298
1301
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1299
1302
|
style: this.getStyle(),
|
|
1300
1303
|
draggable: false,
|
|
1301
|
-
className:
|
|
1304
|
+
className: 'aio-table-title' + (column.titleClassName ? ' ' + column.titleClassName : '') + (isLast ? ' last-child' : '') + (rtl ? ' rtl' : ' ltr')
|
|
1302
1305
|
}, /*#__PURE__*/_react.default.createElement(AIOTableFilter, {
|
|
1303
1306
|
column: column
|
|
1304
1307
|
}), /*#__PURE__*/_react.default.createElement("div", {
|