fix: api key table list sort

This commit is contained in:
jialin
2024-07-18 18:14:50 +08:00
parent 73d07faacf
commit 714e2d927a
10 changed files with 177 additions and 72 deletions
@@ -6,6 +6,7 @@ import { SealColumnProps } from '../types';
const SealColumn: React.FC<SealColumnProps> = (props) => {
const row: Record<string, any> = useContext(RowContext);
console.log('seal column====', row);
const { dataIndex, render, align } = props;
return (
<div
@@ -43,7 +43,14 @@ const TableRow: React.FC<
const childrenDataRef = useRef<any[]>([]);
childrenDataRef.current = childrenData;
console.log('table row====', childrenData, record.name, firstLoad, expanded);
console.log(
'table row====',
record,
childrenData,
record.name,
firstLoad,
expanded
);
const { updateChunkedList, cacheDataListRef } = useUpdateChunkedList({
dataList: childrenData,
setDataList: setChildrenData