chore: api request

This commit is contained in:
jialin
2024-06-10 21:14:37 +08:00
parent 6a60561401
commit f491b5dfb1
24 changed files with 685 additions and 312 deletions
+12 -3
View File
@@ -1,23 +1,32 @@
import { Button, Space } from 'antd';
type ModalFooterProps = {
onOk: () => void;
onOk?: () => void;
onCancel: () => void;
cancelText?: string;
okText?: string;
htmlType?: 'button' | 'submit';
form?: any;
};
const ModalFooter: React.FC<ModalFooterProps> = ({
onOk,
onCancel,
cancelText,
okText
okText,
htmlType = 'button',
form
}) => {
return (
<Space size={20}>
<Button onClick={onCancel} style={{ width: '88px' }}>
{cancelText || '取消'}
</Button>
<Button type="primary" onClick={onOk} style={{ width: '88px' }}>
<Button
type="primary"
onClick={onOk}
style={{ width: '88px' }}
htmlType={htmlType}
>
{okText || '保存'}
</Button>
</Space>
+3 -2
View File
@@ -4,10 +4,11 @@ import { useEffect, useState } from 'react';
import styles from './index.less';
export const StatusMaps = {
running: 'blue',
transitioning: 'blue',
error: 'red',
warning: 'orange',
success: 'success'
success: 'success',
inactive: 'inactive'
};
type StatusTagProps = {