@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.
- package/dist/Table/helper.d.ts +1 -1
- package/dist/Table/helper.js +1 -1
- package/dist/Table/index.js +1 -1
- package/package.json +1 -1
package/dist/Table/helper.d.ts
CHANGED
|
@@ -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?: "
|
|
22
|
+
align?: "left" | "center" | "right" | undefined;
|
|
23
23
|
fixed?: "left" | "right" | undefined;
|
|
24
24
|
};
|
|
25
25
|
}[];
|
package/dist/Table/helper.js
CHANGED
|
@@ -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
|
|
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) {
|
package/dist/Table/index.js
CHANGED
|
@@ -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
|