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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@wznpm/light-d

v0.0.1

Published

每个界面只能有一个v-myfocus,多个会在最后一个添加v-myfocus的元素上体现

Downloads

2

Readme

v-myfocus:

每个界面只能有一个v-myfocus,多个会在最后一个添加v-myfocus的元素上体现

v-mydrag:

添加的元素可以拖拽

v-mycopy:

拷贝指令
v-mycopy="n"
n: {
        fun: function, (复制成功回调   选传)
        content: string (复制内容 选传)
        select: Boolean (默认flase 选传)
}
1.双击选中内容        content和select不传值   v-mycopy绑定到 需要被双击复制内容 的元素上
2.自定义内容          content传自定义内容,select不传值 v-mycopy绑定到自己对应按钮上
3.复制一选中的内容    select:ture content不传值   v-mycopy绑定到自己对应按钮上

v-mylongpress:

拷贝指令
v-mylongpress="n"
n: {
        fun: function, (长按定时到达后的回调   选传)
        time: number    (长按时间 默认为 1s   选传)
}

v-mywatermarking:

拷贝指令
v-mywatermarking="n"
n: {
        args: array,    (水印内容   必传)
        color: string    (水印颜色 默认为 'rgba(200, 200, 200, 0.90)' 传rgba格式   选传)
}

v-myenterfocus:

回车切换input框焦点指令,
将指令放在想要切换焦点的input标签的共有父级上,
切记配合element的时间框有bug(可以把时间框放在其他input的夫级元素外)

myscroll

上滑触底触发函数 v-myscroll="n" n: { fun: function, (名为className的标签触底时触发的函数) date: number (防抖时间) className: string (实际滑动的标签class的名称) }

Project setup

npm install

引入方式

// 全部引入

import {directive} from '../lib/index' Vue.use(directive)

// 按需引入

import {scrollfun} from '../lib/index' // 示例 Vue.directive('myscroll',scrollfun)

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.