mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-11 13:58:58 +00:00
fix: Components slider and treeSelect drag
This commit is contained in:
@@ -25,14 +25,14 @@ export const RenderSlider = (params: TextAreaProps) => {
|
||||
{data?.ui?.show_input ? (
|
||||
<Row>
|
||||
<Col span={12}>
|
||||
<Slider {...attr} onChange={onChangeSlider} value={typeof inputValue === 'number' ? inputValue : 0} />
|
||||
<Slider className="w-full nodrag" {...attr} onChange={onChangeSlider} value={typeof inputValue === 'number' ? inputValue : 0} />
|
||||
</Col>
|
||||
<Col span={4}>
|
||||
<InputNumber {...attr} style={{ margin: '0 16px' }} value={inputValue} onChange={onChangeSlider} />
|
||||
</Col>
|
||||
</Row>
|
||||
) : (
|
||||
<Slider {...attr} onChange={onChangeSlider} value={typeof inputValue === 'number' ? inputValue : 0} />
|
||||
<Slider className="w-full nodrag" {...attr} onChange={onChangeSlider} value={typeof inputValue === 'number' ? inputValue : 0} />
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
@@ -15,6 +15,7 @@ export const RenderTreeSelect = (params: TextAreaProps) => {
|
||||
return (
|
||||
<div className="p-2 text-sm">
|
||||
<TreeSelect
|
||||
className="w-full nodrag"
|
||||
fieldNames={{ label: 'label', value: 'value', children: 'children' }}
|
||||
{...attr}
|
||||
style={{ width: '100%' }}
|
||||
|
Reference in New Issue
Block a user