style: apikey create
This commit is contained in:
@@ -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 || '保存'}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
.transition-content-wrapper {
|
||||
background-color: var(--color-fill-1);
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user