style: adjust ram prcision

This commit is contained in:
jialin
2025-11-19 18:47:55 +08:00
parent ca43c0b4b2
commit 2687fb187d
11 changed files with 20 additions and 30 deletions
-3
View File
@@ -11,7 +11,6 @@ import { useIntl } from '@umijs/max';
import { Form } from 'antd';
import { useMemo } from 'react';
import { sourceOptions } from '../config';
import { useFormContext } from '../config/form-context';
import { FormData } from '../config/types';
import BackendForm from './backend';
import CatalogFrom from './catalog';
@@ -39,9 +38,7 @@ const BasicForm: React.FC<BasicFormProps> = (props) => {
onSourceChange
} = props;
const intl = useIntl();
const { formKey } = useFormContext();
const { getRuleMessage } = useAppUtils();
const form = Form.useFormInstance();
const handleOnSourceChange = (val: string) => {
onSourceChange?.(val);
+1 -1
View File
@@ -106,7 +106,7 @@ const KVCacheForm = () => {
)}
min={0}
step={1}
precision={0}
precision={1}
/>
</Form.Item>
<Form.Item<FormData> name={['extended_kv_cache', 'chunk_size']}>