chore: resource list

This commit is contained in:
jialin
2024-06-03 19:09:43 +08:00
parent d2212fe949
commit c5b41900df
25 changed files with 827 additions and 303 deletions
+13
View File
@@ -5,7 +5,9 @@ import useTableRowSelection from '@/hooks/use-table-row-selection';
import useTableSort from '@/hooks/use-table-sort';
import {
DeleteOutlined,
DownOutlined,
PlusOutlined,
RightOutlined,
SyncOutlined,
WechatWorkOutlined
} from '@ant-design/icons';
@@ -192,6 +194,17 @@ const Models: React.FC = () => {
onShowSizeChange: handleShowSizeChange,
onChange: handlePageChange
}}
expandable={{
expandIcon: ({ expanded, onExpand, record }) => {
return expanded ? (
<DownOutlined onClick={(e) => onExpand(record, e)} />
) : (
<RightOutlined onClick={(e) => onExpand(record, e)} />
);
},
expandedRowRender: (record) => <p style={{ margin: 0 }}>list</p>,
rowExpandable: (record) => record.name !== 'Not Expandable'
}}
>
<Column
title="Model Name"