aio-table 11.1.1 → 11.1.2
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/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -358,11 +358,13 @@ const TableHeader = () => {
|
|
|
358
358
|
const TableTitle = (p) => {
|
|
359
359
|
const { column, colIndex } = p;
|
|
360
360
|
let { tableHook, DragColumns, getColumnOption } = useProvider();
|
|
361
|
-
|
|
361
|
+
const cellDetails = tableHook.getCellDetail({ column });
|
|
362
|
+
if (!getColumnOption('show', cellDetails)) {
|
|
362
363
|
return null;
|
|
363
364
|
}
|
|
365
|
+
const title = getColumnOption('title', cellDetails);
|
|
364
366
|
const attrs = Object.assign(Object.assign(Object.assign({}, tableHook.getTitleAttrs(column)), DragColumns.getDragAttrs(colIndex)), DragColumns.getDropAttrs(colIndex));
|
|
365
|
-
return _jsx("div", Object.assign({}, attrs, { children:
|
|
367
|
+
return _jsx("div", Object.assign({}, attrs, { children: title }));
|
|
366
368
|
};
|
|
367
369
|
const TableRow = (props) => {
|
|
368
370
|
const { rowDetail } = props;
|