parent
0f08e9f1ee
commit
a44eea520a
5 changed files with 14 additions and 6 deletions
|
|
@ -16,10 +16,12 @@ const BaseComponent = ({Icon, Label}, item, state, changeState) => (
|
|||
<Label />
|
||||
<SliderComponent
|
||||
value={parseFloat(getValue(item, state))}
|
||||
min={item.min || 0} max={item.max || 100}
|
||||
step={item.step || 1}
|
||||
min={item.min ?? 0} max={item.max ?? 100}
|
||||
step={item.step}
|
||||
marks={item.marks ?? false}
|
||||
onChange={changeSliderValue(item, changeState)}
|
||||
disabled={isDisabled(item, state)}
|
||||
valueLabelDisplay="auto"
|
||||
style={{marginLeft: 40}} />
|
||||
</React.Fragment>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue