qbs-react-grid 1.1.17 → 1.1.18
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/es/Table.js +4 -1
- package/lib/Table.js +4 -1
- package/package.json +1 -1
- package/src/Table.tsx +6 -2
package/es/Table.js
CHANGED
|
@@ -728,7 +728,10 @@ var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
728
728
|
width: rowWidth,
|
|
729
729
|
height: _nextRowHeight,
|
|
730
730
|
cellHeight: _nextRowHeight,
|
|
731
|
-
index: _index
|
|
731
|
+
index: _index,
|
|
732
|
+
dataLength: data === null || data === void 0 ? void 0 : data.length,
|
|
733
|
+
handleParentCallBack: handleParentCallBack,
|
|
734
|
+
zIndexValue: rowZIndices[_index]
|
|
732
735
|
};
|
|
733
736
|
visibleRows.current.push(renderRowData(bodyCells, _rowData2, _rowProps, false));
|
|
734
737
|
}
|
package/lib/Table.js
CHANGED
|
@@ -735,7 +735,10 @@ var Table = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
735
735
|
width: rowWidth,
|
|
736
736
|
height: _nextRowHeight,
|
|
737
737
|
cellHeight: _nextRowHeight,
|
|
738
|
-
index: _index
|
|
738
|
+
index: _index,
|
|
739
|
+
dataLength: data === null || data === void 0 ? void 0 : data.length,
|
|
740
|
+
handleParentCallBack: handleParentCallBack,
|
|
741
|
+
zIndexValue: rowZIndices[_index]
|
|
739
742
|
};
|
|
740
743
|
visibleRows.current.push(renderRowData(bodyCells, _rowData2, _rowProps, false));
|
|
741
744
|
}
|
package/package.json
CHANGED
package/src/Table.tsx
CHANGED
|
@@ -851,7 +851,8 @@ const Table = React.forwardRef(<Row extends RowDataType, Key>(props: TableProps<
|
|
|
851
851
|
'aria-rowindex': (props.key as number) + 2,
|
|
852
852
|
rowRef: bindTableRowsRef(props.key as any, rowData),
|
|
853
853
|
onClick: bindRowClick(rowData),
|
|
854
|
-
onContextMenu: bindRowContextMenu(rowData)
|
|
854
|
+
onContextMenu: bindRowContextMenu(rowData),
|
|
855
|
+
|
|
855
856
|
};
|
|
856
857
|
|
|
857
858
|
const expanded = expandedRowKeys.some(key => rowKey && key === rowData[rowKey]);
|
|
@@ -1072,7 +1073,10 @@ const Table = React.forwardRef(<Row extends RowDataType, Key>(props: TableProps<
|
|
|
1072
1073
|
width: rowWidth,
|
|
1073
1074
|
height: nextRowHeight,
|
|
1074
1075
|
cellHeight: nextRowHeight,
|
|
1075
|
-
index: index
|
|
1076
|
+
index: index,
|
|
1077
|
+
dataLength: data?.length,
|
|
1078
|
+
handleParentCallBack: handleParentCallBack,
|
|
1079
|
+
zIndexValue: rowZIndices[index]
|
|
1076
1080
|
};
|
|
1077
1081
|
visibleRows.current.push(renderRowData(bodyCells, rowData, rowProps, false));
|
|
1078
1082
|
}
|