Przeglądaj źródła

🎨 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.
t0ng7u 7 miesięcy temu
rodzic
commit
6341847203

+ 0 - 15
web/src/components/table/models/modals/EditPrefillGroupModal.jsx

@@ -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