chore: export

This commit is contained in:
lencx
2023-01-10 10:45:17 +08:00
parent 2764219867
commit 2dfb9bac2a
13 changed files with 408 additions and 71 deletions

38
src/view/download/config.tsx vendored Normal file
View File

@@ -0,0 +1,38 @@
import { Switch, Tag, Tooltip, Space, Popconfirm } from 'antd';
export const syncColumns = () => [
{
title: 'Name',
dataIndex: 'name',
fixed: 'left',
// width: 120,
key: 'name',
},
{
title: 'Type',
dataIndex: 'type',
key: 'type',
render: () => {
return <Tag>{}</Tag>;
}
// width: 200,
},
{
title: 'Action',
render: (_: any, row: any, actions: any) => {
return (
<Space>
<a>View</a>
<Popconfirm
title="Are you sure to delete this file?"
onConfirm={() => actions.setRecord(row, 'delete')}
okText="Yes"
cancelText="No"
>
<a>Delete</a>
</Popconfirm>
</Space>
)
}
}
];