@aloudata/aloudata-design 2.6.2 → 2.6.3

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.
@@ -19,7 +19,7 @@ export declare function getTableColumns<TDataItem extends object>({ columns, tot
19
19
  render?: ((text: any, record: TDataItem, rowIndex: number) => import("react").ReactNode) | undefined;
20
20
  ellipsis?: boolean | undefined;
21
21
  noPadding?: boolean | undefined;
22
- align?: "center" | "left" | "right" | undefined;
22
+ align?: "left" | "center" | "right" | undefined;
23
23
  fixed?: "left" | "right" | undefined;
24
24
  };
25
25
  }[];
@@ -145,7 +145,7 @@ export function prefixCls(className) {
145
145
  return "".concat(ALD_PREFIX, "-").concat(className);
146
146
  }
147
147
  export function getRowKey(row, rowKey, defaultKey) {
148
- var rowKeyStr = defaultKey || getUUID();
148
+ var rowKeyStr = defaultKey !== null && defaultKey !== void 0 ? defaultKey : getUUID();
149
149
  if (typeof rowKey === 'function') {
150
150
  rowKeyStr = rowKey(row);
151
151
  } else if (rowKey !== undefined) {
@@ -191,7 +191,7 @@ function Table(props, ref) {
191
191
  style: _objectSpread({
192
192
  width: cell.column.getSize()
193
193
  }, fixedStyle)
194
- }, colIndex === 0 ? /*#__PURE__*/React.createElement(ExpandCell, {
194
+ }, expandableInfo.isExpandable && colIndex === 0 ? /*#__PURE__*/React.createElement(ExpandCell, {
195
195
  expandableInfo: expandableInfo,
196
196
  data: row.original,
197
197
  rowKey: rowKey
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",