1
1
# vue-slider-component
2
2
Can use the slider in vue1.x and vue2.x
3
3
4
- [ demo ] ( https://nightcatsama.github.io/vue-slider-component/example/ )
4
+ [ Live Demo ] ( https://nightcatsama.github.io/vue-slider-component/example/ )
5
5
6
6
## Install
7
7
```
@@ -110,9 +110,9 @@ new Vue({
110
110
| class-name | String | null | the custom class |
111
111
| styles | Object | null | the custom styles |
112
112
| direction | String | horizontal | set the direction of the component, optional value: [ 'horizontal', 'vertical'] |
113
- | eventType | String | ' auto' | the event type, optional value: [ 'auto', 'touch', 'mouse', 'none'] |
114
- | width | Number[ ,String(in horizontal)] | 150 | width of the component |
115
- | height | Number[ ,String(in vertical)] | 4 | height of the component |
113
+ | eventType | String | auto | the event type, optional value: [ 'auto', 'touch', 'mouse', 'none'] |
114
+ | width | Number[ ,String(in horizontal)] | 150 | width of the component |
115
+ | height | Number[ ,String(in vertical)] | 4 | height of the component |
116
116
| dotSize | Number | 15 | size of the sliders |
117
117
| min | Number | 0 | the minimum value |
118
118
| max | Number | 100 | the maximum value |
@@ -122,7 +122,7 @@ new Vue({
122
122
| disabled | Boolean | false | whether to disable components |
123
123
| piecewise | Boolean | false | display of the piecewise |
124
124
| tooltip | String,Boolean| false | control the tooltip, optional value: [ 'hover', 'always', false] |
125
- | tooltipDir | String | top or left | set the direction of the tooltip, optional value: [ 'top', 'bottom', 'left', 'right'] |
125
+ | tooltipDir | String | top(in horizontal) or left(in vertical) | set the direction of the tooltip, optional value: [ 'top', 'bottom', 'left', 'right'] |
126
126
| val | Number,Array | 0 | initial value (if the value for the array open range model) |
127
127
| data | Array | null | the custom data |
128
128
0 commit comments