@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 = useDataCellRender ? item.children.map(function (topItem, topIndex) {
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
@@ -113,6 +113,8 @@ export default (function () {
113
113
  }, {
114
114
  label: 'Remark',
115
115
  children: 'empty'
116
+ }, {
117
+ label: 'Remark2'
116
118
  }],
117
119
  onDataCellClick: function onDataCellClick(data) {
118
120
  console.log(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamias/rex-design",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",