vue可拖动水平进度条组件

需要一个可拖动并能设置最大最小值及步长的进度条,所以问了度娘,参考了很多网友写的进度条的代码,终于搞出了这个进度条组件,pc端和移动端均可用。
【vue可拖动水平进度条组件】代码:

* { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .progress-bar { text-align: left; .mask { width: 320px; height: 20px; background-color: #dddddd; border-radius: 10px; position: absolute; } .bar { height: 20px; background-color: #1069db; position: absolute; z-index: 2; border-radius: 10px; bottom: 0; left: 0; } .point { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #1069db; position: absolute; bottom: -3px; left: 0; z-index: 3; background-color: white; } .num { text-align: center; padding-bottom: 20px; } }

组件使用方法:
//例如:

    推荐阅读