├── screenshot
└── 1.jpg
├── dist
├── assets
│ ├── orange.png
│ └── white.png
└── vue-slider.vue
├── LICENSE
└── README.md
/screenshot/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZliweiliang/vue-slider/HEAD/screenshot/1.jpg
--------------------------------------------------------------------------------
/dist/assets/orange.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZliweiliang/vue-slider/HEAD/dist/assets/orange.png
--------------------------------------------------------------------------------
/dist/assets/white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZliweiliang/vue-slider/HEAD/dist/assets/white.png
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 liweiliang
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vue-slider
2 | ## Usage
3 |
4 | #### Use:
5 |
6 | ```html
7 |
8 |
9 |
10 |
11 |
12 |
28 | ```
29 |
30 |
31 |
32 | ## Options
33 |
34 | ### Props
35 | | Props | Type | Default | Description |
36 | | ----------- |:--------------| ---------|--------------|
37 | | max | Number | auto | 默认最大值 初始位置 |
38 | | min | Number | auto | 默认最小值初始位置 |
39 |
40 |
41 | ### Function
42 | | Name | Type | Description |
43 | | ----------- |:---------------| ---------------------------|
44 | | valueFun | Return: value | valueFun(最小值,最大值,合计) |
45 |
46 | ### Screenshot
47 |
48 |
49 | ## License
50 |
51 | [MIT](LICENSE)
52 |
--------------------------------------------------------------------------------
/dist/vue-slider.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
![]()
5 |
![]()
6 |
7 |
8 |
9 |
10 |
![]()
11 |
![]()
12 |
13 |
14 |
15 |
154 |
215 |
--------------------------------------------------------------------------------