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
+31
View File
@@ -0,0 +1,31 @@
import ModalFooter from '@/components/modal-footer';
import { useIntl } from '@umijs/max';
import { Modal, type ModalFuncProps } from 'antd';
import { forwardRef } from 'react';
const DeleteModal: React.FC<ModalFuncProps> = forwardRef((props, ref) => {
const intl = useIntl();
const { title, open, onOk, onCancel, content } = props;
return (
<Modal
title={title}
simple={true}
open={open}
centered={true}
onOk={onOk}
onCancel={onCancel}
destroyOnClose={true}
closeIcon={false}
maskClosable={false}
keyboard={false}
width={600}
styles={{}}
footer={<ModalFooter onCancel={onCancel} onOk={onOk}></ModalFooter>}
>
{content}
</Modal>
);
});
export default DeleteModal;