🎨 refactor(ui): merge “Content Configuration” into “Basic Information” card in EditPrefillGroupModal
- Move `items` field (`JSONEditor` for endpoint type, `Form.TagInput` otherwise) into the first “Basic Information” card - Remove the second “Content Configuration” card and its header; consolidate to a single-card layout - Preserve form initialization, validation, and submit logic; API payload structure remains unchanged - Improves clarity and reduces visual clutter without altering behavior - Lint passes Affected file: - `web/src/components/table/models/modals/EditPrefillGroupModal.jsx` No breaking changes.
This commit is contained in:
@@ -223,21 +223,6 @@ const EditPrefillGroupModal = ({ visible, onClose, editingGroup, onSuccess }) =>
|
|||||||
showClear
|
showClear
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
|
||||||
</Card>
|
|
||||||
|
|
||||||
{/* 内容配置 */}
|
|
||||||
<Card className='!rounded-2xl shadow-sm border-0'>
|
|
||||||
<div className='flex items-center mb-2'>
|
|
||||||
<Avatar size='small' color='purple' className='mr-2 shadow-md'>
|
|
||||||
<IconLayers size={16} />
|
|
||||||
</Avatar>
|
|
||||||
<div>
|
|
||||||
<Text className='text-lg font-medium'>{t('内容配置')}</Text>
|
|
||||||
<div className='text-xs text-gray-600'>{t('配置组内包含的项目')}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<Row gutter={12}>
|
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
{selectedType === 'endpoint' ? (
|
{selectedType === 'endpoint' ? (
|
||||||
<JSONEditor
|
<JSONEditor
|
||||||
|
|||||||
Reference in New Issue
Block a user