数字滑块
import Slider from '@dfeidao/fd-m000020';
<Slider
step={1}
style={{ width: 200, height: 40 }}
disabled={false}
leftColor={'#ef5b9c'}
rightColor={'#2b4490'}
maxValue={d('maxValue')}
minValue={d('minValue')}
value={d('value')}
onChange={a('a001')}
/>
Installation
yarn add --dev @dfeidao/fd-m000020
Attributes
disabled
禁用
leftColor
左侧滑块颜色
rightColor
右侧滑块颜色
maxValue
最大值
minValue
最小值
value
默认值
step
滑块的成长值 默认1
style
滑块样式
onChange
value改变事件