fix(style): k8s form

This commit is contained in:
jialin
2026-06-01 21:06:56 +08:00
committed by jialin
parent e314f25a77
commit 95ffe0350e
12 changed files with 328 additions and 249 deletions
@@ -1,6 +1,5 @@
import { ModelFileFormData as FormData } from '@/pages/resources/config/types';
import {
CheckboxField,
Input as CInput,
Cascader as SealCascader,
Select as SealSelect,
@@ -204,6 +203,13 @@ const TargetForm: React.FC<TargetFormProps> = forwardRef((props, ref) => {
root: 'cascader-popup-wrapper gpu-selector'
}
}}
styles={{
popup: {
listItem: {
maxWidth: '100%'
}
}
}}
maxTagCount={1}
label={intl.formatMessage({ id: 'resources.worker' })}
options={workerOptions}
@@ -241,20 +247,6 @@ const TargetForm: React.FC<TargetFormProps> = forwardRef((props, ref) => {
></CInput.Input>
</Form.Item>
)}
{source === modelSourceMap.local_path_value && (
<Form.Item<FormData>
name="is_lora"
key="is_lora"
valuePropName="checked"
noStyle
>
<CheckboxField
label={intl.formatMessage({
id: 'resources.modelfiles.form.isLora'
})}
></CheckboxField>
</Form.Item>
)}
</Form>
</div>
);