1
This commit is contained in:
parent
d0c5e56266
commit
7c2d7ef1bc
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import {Modal} from 'antd';
|
||||
import {Modal, Button} from 'antd';
|
||||
import type {DeploymentConfig} from '../types';
|
||||
import './styles.less';
|
||||
import {FormButtonGroup, FormItem, Select, Submit, FormGrid, Input, ArrayTable} from '@formily/antd-v5'
|
||||
@ -217,7 +217,9 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
|
||||
pagination: { pageSize: 10 },
|
||||
scroll: { x: '100%' },
|
||||
style: {
|
||||
minHeight: '120px'
|
||||
minHeight: '160px',
|
||||
maxHeight: '240px',
|
||||
overflow: 'auto'
|
||||
}
|
||||
},
|
||||
items: {
|
||||
@ -331,7 +333,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
|
||||
},
|
||||
'x-component': 'Editor',
|
||||
'x-component-props': {
|
||||
height: '300px',
|
||||
height: '240px',
|
||||
language: 'shell',
|
||||
theme: 'vs-dark',
|
||||
options: {
|
||||
@ -366,16 +368,20 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
|
||||
title="部署配置"
|
||||
open={open}
|
||||
onCancel={onCancel}
|
||||
onOk={handleSubmit}
|
||||
width={800}
|
||||
styles={{
|
||||
body: {
|
||||
padding: '32px'
|
||||
},
|
||||
header: {
|
||||
marginBottom: '8px',
|
||||
paddingInline: '32px'
|
||||
}
|
||||
centered
|
||||
footer={[
|
||||
<Button key="cancel" onClick={onCancel}>
|
||||
取消
|
||||
</Button>,
|
||||
<Button key="submit" type="primary" onClick={() => form.submit()}>
|
||||
确定
|
||||
</Button>
|
||||
]}
|
||||
bodyStyle={{
|
||||
padding: '24px',
|
||||
maxHeight: '80vh',
|
||||
overflow: 'auto'
|
||||
}}
|
||||
>
|
||||
<FormProvider form={form}>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user