style: apikey create

This commit is contained in:
jialin
2024-07-01 17:13:23 +08:00
parent 0f9123ee4f
commit 13d71e28c9
10 changed files with 155 additions and 93 deletions
+4 -1
View File
@@ -7,24 +7,27 @@ type ModalFooterProps = {
okText?: string;
htmlType?: 'button' | 'submit';
form?: any;
loading?: boolean;
};
const ModalFooter: React.FC<ModalFooterProps> = ({
onOk,
onCancel,
cancelText,
okText,
loading,
htmlType = 'button',
form
}) => {
return (
<Space size={20}>
<Button onClick={onCancel} style={{ width: '88px' }}>
<Button onClick={onCancel} style={{ width: '88px' }} loading={loading}>
{cancelText || '取消'}
</Button>
<Button
type="primary"
onClick={onOk}
style={{ width: '88px' }}
loading={loading}
htmlType={htmlType}
>
{okText || '保存'}
+1
View File
@@ -16,6 +16,7 @@
.transition-content-wrapper {
background-color: var(--color-fill-1);
padding: 8px;
}
}