fix: slider marker label

This commit is contained in:
jialin
2026-01-07 15:55:26 +08:00
parent 28a73d2a6e
commit 065841530d
2 changed files with 16 additions and 3 deletions
+15 -2
View File
@@ -79,8 +79,21 @@ const AdvanceConfig = () => {
tooltip={{}} tooltip={{}}
step={1024} step={1024}
marks={{ marks={{
[modelContextData?.scaled]: 'scaled', [modelContextData?.scaled]: {
[modelContextData?.native]: 'native' label: 'scaled',
style: {
transform: 'translateX(-100%)'
}
},
[modelContextData?.native]: {
label: 'native',
style: {
transform:
modelContextData?.scaled === modelContextData?.native
? 'translateX(-100%)'
: 'unset'
}
}
}} }}
></SealSlider> ></SealSlider>
</Form.Item> </Form.Item>
+1 -1
View File
@@ -414,7 +414,7 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
} }
// TODO // TODO
fetchContextLength({ ...params, source }); // fetchContextLength({ ...params, source });
}, [isGGUF, source, localPath, modelScopeModelId, huggingfaceRepoId]); }, [isGGUF, source, localPath, modelScopeModelId, huggingfaceRepoId]);
return ( return (