🎨 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:
t0ng7u
2025-08-08 03:04:51 +08:00
parent 4e75a9b3b3
commit 6341847203

View File

@@ -223,21 +223,6 @@ const EditPrefillGroupModal = ({ visible, onClose, editingGroup, onSuccess }) =>
showClear
/>
</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}>
{selectedType === 'endpoint' ? (
<JSONEditor