aio-table 11.1.0 → 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 +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -105,6 +105,7 @@ const AIOTable = (props) => {
105
105
  return sorts;
106
106
  };
107
107
  const sortHook = UT.useSort({
108
+ fa: props.fa,
108
109
  sorts: [],
109
110
  rows: propsRef.current.value,
110
111
  onChangeRows: props.onChange,
@@ -357,11 +358,13 @@ const TableHeader = () => {
357
358
  const TableTitle = (p) => {
358
359
  const { column, colIndex } = p;
359
360
  let { tableHook, DragColumns, getColumnOption } = useProvider();
360
- if (!getColumnOption('show', tableHook.getCellDetail({ column }))) {
361
+ const cellDetails = tableHook.getCellDetail({ column });
362
+ if (!getColumnOption('show', cellDetails)) {
361
363
  return null;
362
364
  }
365
+ const title = getColumnOption('title', cellDetails);
363
366
  const attrs = Object.assign(Object.assign(Object.assign({}, tableHook.getTitleAttrs(column)), DragColumns.getDragAttrs(colIndex)), DragColumns.getDropAttrs(colIndex));
364
- return _jsx("div", Object.assign({}, attrs, { children: attrs.title }));
367
+ return _jsx("div", Object.assign({}, attrs, { children: title }));
365
368
  };
366
369
  const TableRow = (props) => {
367
370
  const { rowDetail } = props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aio-table",
3
- "version": "11.1.0",
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",