Slider
Extends:
react~Component → Slider
滑块
Constructor Summary
| Public Constructor | ||
| public |
constructor(props: Object, minLabel: PropTypes.node, maxLabel: PropTypes.node, context: Object) 构造函数 |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
组件内部状态值 |
|
Method Summary
| Public Methods | ||
| public |
caclInitPosition(value: *): * |
|
| public |
caclValue(percent: *): * |
|
| public |
calcPosition(clientX: *) |
|
| public |
componentWillReceiveProps(objectPattern: {"value": *}) |
|
| public |
render(): * |
|
Public Constructors
public constructor(props: Object, minLabel: PropTypes.node, maxLabel: PropTypes.node, context: Object) source
构造函数
Params:
| Name | Type | Attribute | Description |
| props | Object | 组件所使用的属性 |
|
| props.value | number |
|
滑块的值 |
| props.min | number |
|
滑块的最小值 |
| props.max | number |
|
滑块的最大值 |
| minLabel | PropTypes.node |
|
最小值的显示文案 |
| maxLabel | PropTypes.node |
|
最大值的显示文案 |
| props.disabled | boolean |
|
是否不可用 |
| props.onChange | function |
|
滑块滑动改变值时触发的函数回调 |
| context | Object |