npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mm-slider

v1.1.1

Published

``` https://www.npmjs.com/package/mm-slider ```

Readme

npm地址

https://www.npmjs.com/package/mm-slider

使用方法

1、下载插件
npm i mm-slider


2、在vue 的min.js中导入并注册
import mmSlider from 'mm-slider'
import 'mm-slider/mm-slider.css'
Vue.use(mmSlider)

3、在页面中使用
<mmSlider v-module="value"></htUniversalLine>
	

参数

v-model: 绑定值【必填】

​ type:Array

max:最大值

​ type:Number

​ 默认值:100

min:最小值

​ type:Number

​ 默认值:0

vertical:是否竖向

​ type:Boolean

​ 默认值:true

colorList:选择器背景渐变色

​ type:Array

​ 默认值:["#F56C6C", "#67C23A", "#409EFF"]

selectColor:选中区域边框颜色

​ type:string

​ 默认值:“#000”

customOptions:自定义下拉列表

​ type:Array

​ 默认值:空数组

  • 样例:

    [
        {
            lebal:'测试',
            value:[10,20]
        },
        ...
    ]

selectSize:选择框大小

​ type:string

​ 默认值:small【medium / small / mini】

disabled:是否禁用

​ type:Booblean

​ 默认值:false

debounce:延迟毫秒数

​ type:Number

​ 默认值:300

step:步长

​ type:Number

​ 默认值:1

formatTooltip:格式化函数

​ type:Function

marks: 标记列表

​ 描述: 标记, key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标记可以单独设置样式

​ type: object

  • 样例:

    {
        0: '0°C',
        8: '8°C',
        37: '37°C',
        50: {
            style: {
            	color: '#1989FA'
            },
            label: this.$createElement('strong', '50%')
        }
    }

showTooltip: 是否显示 tooltip

​ type: Boolean

​ 默认值:true

formatTooltip: 格式化 tooltip message

​ type: Function

事件

change

  • 值改变时触发(使用鼠标拖曳时,只在松开鼠标后触发)
  • 回调参数 : 改变后的值