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.
Files changed (2) hide show
  1. package/index.js +4 -2
  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
- if (!getColumnOption('show', tableHook.getCellDetail({ column }))) {
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: attrs.title }));
367
+ return _jsx("div", Object.assign({}, attrs, { children: title }));
366
368
  };
367
369
  const TableRow = (props) => {
368
370
  const { rowDetail } = props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aio-table",
3
- "version": "11.1.1",
3
+ "version": "11.1.2",
4
4
  "description": "all in one table. tree mode , simple mode , tree mode, gantt mode , groupby mode, freeze mode.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",