This commit is contained in:
dengqichen 2025-01-17 17:47:17 +08:00
parent 335e86c5be
commit c5c353a9a6

View File

@ -91,6 +91,15 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
const schema: ISchema = { const schema: ISchema = {
type: 'object', type: 'object',
properties: {
layout: {
type: 'void',
'x-component': 'FormGrid',
'x-component-props': {
maxColumns: 3,
minColumns: 3,
columnGap: 24
},
properties: { properties: {
externalSystemId: { externalSystemId: {
type: 'string', type: 'string',
@ -101,10 +110,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
wrapperCol: 24, wrapperCol: 24,
layout: 'vertical', layout: 'vertical',
colon: false, colon: false,
labelAlign: 'left', labelAlign: 'left'
style: {
marginBottom: 24
}
}, },
'x-component': 'Select', 'x-component': 'Select',
'x-component-props': { 'x-component-props': {
@ -125,10 +131,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
wrapperCol: 24, wrapperCol: 24,
layout: 'vertical', layout: 'vertical',
colon: false, colon: false,
labelAlign: 'left', labelAlign: 'left'
style: {
marginBottom: 24
}
}, },
'x-component': 'Select', 'x-component': 'Select',
'x-component-props': { 'x-component-props': {
@ -159,10 +162,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
wrapperCol: 24, wrapperCol: 24,
layout: 'vertical', layout: 'vertical',
colon: false, colon: false,
labelAlign: 'left', labelAlign: 'left'
style: {
marginBottom: 24
}
}, },
'x-component': 'Select', 'x-component': 'Select',
'x-component-props': { 'x-component-props': {
@ -185,6 +185,8 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
"description": "{{$self.dataSource && $self.value ? ($self.dataSource.find(item => item.value === $self.value)?.extra?.description) : undefined}}" "description": "{{$self.dataSource && $self.value ? ($self.dataSource.find(item => item.value === $self.value)?.extra?.description) : undefined}}"
} }
} }
}
}
}; };
return ( return (
@ -194,7 +196,16 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
open={open} open={open}
onCancel={onCancel} onCancel={onCancel}
onOk={() => form.submit(onSuccess)} onOk={() => form.submit(onSuccess)}
width={600} width={800}
styles={{
body: {
padding: '32px'
},
header: {
marginBottom: '8px',
paddingInline: '32px'
}
}}
> >
<FormProvider form={form}> <FormProvider form={form}>
<SchemaField schema={schema}/> <SchemaField schema={schema}/>