@jetbrains/ring-ui-built 6.0.60 → 6.0.61
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.
@@ -223,11 +223,12 @@ var Table = /*#__PURE__*/function (_PureComponent) {
|
|
223
223
|
maxColSpan = _this$props4.maxColSpan,
|
224
224
|
RowComponent = _this$props4.RowComponent;
|
225
225
|
// NOTE: Do not construct new object per render because it causes all rows rerendering
|
226
|
+
var columnsArray = typeof columns === 'function' ? columns(null) : columns;
|
226
227
|
var headerProps = {
|
227
228
|
caption,
|
228
229
|
selectable,
|
229
230
|
draggable,
|
230
|
-
columns:
|
231
|
+
columns: columnsArray,
|
231
232
|
onSort,
|
232
233
|
sortKey,
|
233
234
|
sortOrder,
|
@@ -256,7 +257,7 @@ var Table = /*#__PURE__*/function (_PureComponent) {
|
|
256
257
|
props = _ref3.props;
|
257
258
|
var empty = /*#__PURE__*/jsx("tr", {
|
258
259
|
children: /*#__PURE__*/jsx("td", {
|
259
|
-
colSpan:
|
260
|
+
colSpan: columnsArray.length || 1,
|
260
261
|
className: modules_1db4bbca.tableMessage,
|
261
262
|
children: renderEmpty ? renderEmpty() : null
|
262
263
|
})
|