@teamias/rex-design 0.0.31 → 0.0.32
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.
|
@@ -21,7 +21,8 @@ export var BaseDescriptions = function BaseDescriptions(_ref) {
|
|
|
21
21
|
}, otherProps), {}, {
|
|
22
22
|
items: items === null || items === void 0 ? void 0 : items.map(function (item, index) {
|
|
23
23
|
try {
|
|
24
|
-
var children
|
|
24
|
+
var _item$children;
|
|
25
|
+
var children = useDataCellRender ? ((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.map(function (topItem, topIndex) {
|
|
25
26
|
return /*#__PURE__*/_jsx(DataCell, {
|
|
26
27
|
items: topItem,
|
|
27
28
|
onClick: function onClick(cellItem, subItem) {
|
|
@@ -34,7 +35,7 @@ export var BaseDescriptions = function BaseDescriptions(_ref) {
|
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
}, topIndex);
|
|
37
|
-
}) : item.children || '';
|
|
38
|
+
})) || '-' : item.children || '-';
|
|
38
39
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
39
40
|
key: "".concat(index),
|
|
40
41
|
children: children
|