chore: show llm code with common component

This commit is contained in:
jialin
2025-05-27 16:50:08 +08:00
parent 61e506010c
commit ca99db5a97
7 changed files with 102 additions and 237 deletions
@@ -27,7 +27,7 @@ const TableRow: React.FC<
rowIndex,
expandable,
rowSelection,
expandedRowKeys,
expandedRowKeys = [],
rowKey,
childParentKey,
columns,
@@ -80,6 +80,12 @@ const TableRow: React.FC<
return rowSelection?.selectedRowKeys?.includes(record[rowKey]);
}, [rowSelection?.selectedRowKeys, record, rowKey]);
useEffect(() => {
if (expandedRowKeys?.length === 0) {
setCurrentExpand(false);
}
}, [expandedRowKeys.length]);
const renderChildrenData = () => {
if (childrenData.length === 0) {
// return (