aio-table 14.0.2 → 14.1.0
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.css +2 -2
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
package/index.css
CHANGED
package/index.d.ts
CHANGED
|
@@ -215,8 +215,8 @@ export declare const useSort: <T>(p: {
|
|
|
215
215
|
getSortedRows: (rows: T[]) => T[];
|
|
216
216
|
changeSort: (sortId: string, changeObject: Partial<I_table_sort<T>>) => void;
|
|
217
217
|
changeSorts: (sorts: I_table_sort<T>[]) => Promise<void>;
|
|
218
|
-
renderSortArrow: (option:
|
|
219
|
-
getSortByColumn: (column: I_table_column<T>) =>
|
|
218
|
+
renderSortArrow: (option: I_table_sort<T> | false, inline?: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
219
|
+
getSortByColumn: (column: I_table_column<T>) => I_table_sort<T> | false;
|
|
220
220
|
};
|
|
221
221
|
export type I_table_paging = {
|
|
222
222
|
serverSide?: boolean;
|
package/index.js
CHANGED
|
@@ -344,7 +344,7 @@ const TableRow = (props) => {
|
|
|
344
344
|
const { rowDetail } = props;
|
|
345
345
|
const { row, rowIndex } = rowDetail;
|
|
346
346
|
const rowId = row._id;
|
|
347
|
-
let {
|
|
347
|
+
let { tableHook, columns } = useProvider();
|
|
348
348
|
function getCells() {
|
|
349
349
|
return columns.map((column) => {
|
|
350
350
|
const { show = true } = column;
|